]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.1.5
[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.5.
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.5'
754 PACKAGE_STRING='linux nfs-utils 1.1.5'
755 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
756
757 ac_default_prefix=/usr
758 ac_unique_file="support/include/config.h.in"
759 # Factoring default headers for most tests.
760 ac_includes_default="\
761 #include <stdio.h>
762 #ifdef HAVE_SYS_TYPES_H
763 # include <sys/types.h>
764 #endif
765 #ifdef HAVE_SYS_STAT_H
766 # include <sys/stat.h>
767 #endif
768 #ifdef STDC_HEADERS
769 # include <stdlib.h>
770 # include <stddef.h>
771 #else
772 # ifdef HAVE_STDLIB_H
773 #  include <stdlib.h>
774 # endif
775 #endif
776 #ifdef HAVE_STRING_H
777 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
778 #  include <memory.h>
779 # endif
780 # include <string.h>
781 #endif
782 #ifdef HAVE_STRINGS_H
783 # include <strings.h>
784 #endif
785 #ifdef HAVE_INTTYPES_H
786 # include <inttypes.h>
787 #endif
788 #ifdef HAVE_STDINT_H
789 # include <stdint.h>
790 #endif
791 #ifdef HAVE_UNISTD_H
792 # include <unistd.h>
793 #endif"
794
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 GSSGLUE_LIBS
814 GSSGLUE_CFLAGS
815 RPCSECGSS_LIBS
816 RPCSECGSS_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 EGREP
832 GREP
833 SED
834 LN_S
835 CPP
836 am__fastdepCXX_FALSE
837 am__fastdepCXX_TRUE
838 CXXDEPMODE
839 ac_ct_CXX
840 CXXFLAGS
841 CXX
842 HAVE_TCP_WRAPPER
843 HAVE_LIBWRAP
844 LIBWRAP
845 am__fastdepCC_FALSE
846 am__fastdepCC_TRUE
847 CCDEPMODE
848 AMDEPBACKSLASH
849 AMDEP_FALSE
850 AMDEP_TRUE
851 am__quote
852 am__include
853 DEPDIR
854 OBJEXT
855 EXEEXT
856 ac_ct_CC
857 CPPFLAGS
858 LDFLAGS
859 CFLAGS
860 CC
861 CONFIG_TIRPC_FALSE
862 CONFIG_TIRPC_TRUE
863 enable_tirpc
864 CONFIG_IPV6_FALSE
865 CONFIG_IPV6_TRUE
866 enable_ipv6
867 CONFIG_MOUNT_FALSE
868 CONFIG_MOUNT_TRUE
869 CONFIG_RPCGEN_FALSE
870 CONFIG_RPCGEN_TRUE
871 RPCGEN_PATH
872 kprefix
873 CONFIG_GSS_FALSE
874 CONFIG_GSS_TRUE
875 enable_gss
876 SVCGSSD
877 GSSD
878 CONFIG_NFSV4_FALSE
879 CONFIG_NFSV4_TRUE
880 enable_nfsv4
881 IDMAPD
882 enable_nfsv3
883 startstatd
884 statduser
885 statedir
886 RELEASE
887 MAINT
888 MAINTAINER_MODE_FALSE
889 MAINTAINER_MODE_TRUE
890 am__untar
891 am__tar
892 AMTAR
893 am__leading_dot
894 SET_MAKE
895 AWK
896 mkdir_p
897 MKDIR_P
898 INSTALL_STRIP_PROGRAM
899 STRIP
900 install_sh
901 MAKEINFO
902 AUTOHEADER
903 AUTOMAKE
904 AUTOCONF
905 ACLOCAL
906 VERSION
907 PACKAGE
908 CYGPATH_W
909 am__isrc
910 INSTALL_DATA
911 INSTALL_SCRIPT
912 INSTALL_PROGRAM
913 host_os
914 host_vendor
915 host_cpu
916 host
917 build_os
918 build_vendor
919 build_cpu
920 build
921 target_alias
922 host_alias
923 build_alias
924 LIBS
925 ECHO_T
926 ECHO_N
927 ECHO_C
928 DEFS
929 mandir
930 localedir
931 libdir
932 psdir
933 pdfdir
934 dvidir
935 htmldir
936 infodir
937 docdir
938 oldincludedir
939 includedir
940 localstatedir
941 sharedstatedir
942 sysconfdir
943 datadir
944 datarootdir
945 libexecdir
946 sbindir
947 bindir
948 program_transform_name
949 prefix
950 exec_prefix
951 PACKAGE_BUGREPORT
952 PACKAGE_STRING
953 PACKAGE_VERSION
954 PACKAGE_TARNAME
955 PACKAGE_NAME
956 PATH_SEPARATOR
957 SHELL'
958 ac_subst_files=''
959 ac_user_opts='
960 enable_option_checking
961 enable_maintainer_mode
962 with_release
963 with_statedir
964 with_statduser
965 with_start_statd
966 enable_nfsv3
967 enable_nfsv4
968 enable_gss
969 enable_kprefix
970 with_rpcgen
971 enable_uuid
972 enable_mount
973 enable_ipv6
974 enable_tirpc
975 with_tcp_wrappers
976 enable_dependency_tracking
977 enable_largefile
978 enable_shared
979 enable_static
980 enable_fast_install
981 with_gnu_ld
982 enable_libtool_lock
983 with_pic
984 with_tags
985 with_krb5
986 '
987       ac_precious_vars='build_alias
988 host_alias
989 target_alias
990 CC
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
995 CXX
996 CXXFLAGS
997 CCC
998 CPP
999 CXXCPP
1000 F77
1001 FFLAGS
1002 PKG_CONFIG
1003 RPCSECGSS_CFLAGS
1004 RPCSECGSS_LIBS
1005 GSSGLUE_CFLAGS
1006 GSSGLUE_LIBS'
1007
1008
1009 # Initialize some variables set by options.
1010 ac_init_help=
1011 ac_init_version=false
1012 ac_unrecognized_opts=
1013 ac_unrecognized_sep=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file=/dev/null
1017 exec_prefix=NONE
1018 no_create=
1019 no_recursion=
1020 prefix=NONE
1021 program_prefix=NONE
1022 program_suffix=NONE
1023 program_transform_name=s,x,x,
1024 silent=
1025 site=
1026 srcdir=
1027 verbose=
1028 x_includes=NONE
1029 x_libraries=NONE
1030
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir='${exec_prefix}/bin'
1038 sbindir='${exec_prefix}/sbin'
1039 libexecdir='${exec_prefix}/libexec'
1040 datarootdir='${prefix}/share'
1041 datadir='${datarootdir}'
1042 sysconfdir='${prefix}/etc'
1043 sharedstatedir='${prefix}/com'
1044 localstatedir='${prefix}/var'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048 infodir='${datarootdir}/info'
1049 htmldir='${docdir}'
1050 dvidir='${docdir}'
1051 pdfdir='${docdir}'
1052 psdir='${docdir}'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1056
1057 ac_prev=
1058 ac_dashdash=
1059 for ac_option
1060 do
1061   # If the previous option needs an argument, assign it.
1062   if test -n "$ac_prev"; then
1063     eval $ac_prev=\$ac_option
1064     ac_prev=
1065     continue
1066   fi
1067
1068   case $ac_option in
1069   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070   *)    ac_optarg=yes ;;
1071   esac
1072
1073   # Accept the important Cygnus configure options, so we can diagnose typos.
1074
1075   case $ac_dashdash$ac_option in
1076   --)
1077     ac_dashdash=yes ;;
1078
1079   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080     ac_prev=bindir ;;
1081   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082     bindir=$ac_optarg ;;
1083
1084   -build | --build | --buil | --bui | --bu)
1085     ac_prev=build_alias ;;
1086   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087     build_alias=$ac_optarg ;;
1088
1089   -cache-file | --cache-file | --cache-fil | --cache-fi \
1090   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091     ac_prev=cache_file ;;
1092   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094     cache_file=$ac_optarg ;;
1095
1096   --config-cache | -C)
1097     cache_file=config.cache ;;
1098
1099   -datadir | --datadir | --datadi | --datad)
1100     ac_prev=datadir ;;
1101   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102     datadir=$ac_optarg ;;
1103
1104   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105   | --dataroo | --dataro | --datar)
1106     ac_prev=datarootdir ;;
1107   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109     datarootdir=$ac_optarg ;;
1110
1111   -disable-* | --disable-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval enable_$ac_useropt=no ;;
1127
1128   -docdir | --docdir | --docdi | --doc | --do)
1129     ac_prev=docdir ;;
1130   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131     docdir=$ac_optarg ;;
1132
1133   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134     ac_prev=dvidir ;;
1135   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136     dvidir=$ac_optarg ;;
1137
1138   -enable-* | --enable-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval enable_$ac_useropt=\$ac_optarg ;;
1154
1155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157   | --exec | --exe | --ex)
1158     ac_prev=exec_prefix ;;
1159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161   | --exec=* | --exe=* | --ex=*)
1162     exec_prefix=$ac_optarg ;;
1163
1164   -gas | --gas | --ga | --g)
1165     # Obsolete; use --with-gas.
1166     with_gas=yes ;;
1167
1168   -help | --help | --hel | --he | -h)
1169     ac_init_help=long ;;
1170   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171     ac_init_help=recursive ;;
1172   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173     ac_init_help=short ;;
1174
1175   -host | --host | --hos | --ho)
1176     ac_prev=host_alias ;;
1177   -host=* | --host=* | --hos=* | --ho=*)
1178     host_alias=$ac_optarg ;;
1179
1180   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181     ac_prev=htmldir ;;
1182   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183   | --ht=*)
1184     htmldir=$ac_optarg ;;
1185
1186   -includedir | --includedir | --includedi | --included | --include \
1187   | --includ | --inclu | --incl | --inc)
1188     ac_prev=includedir ;;
1189   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190   | --includ=* | --inclu=* | --incl=* | --inc=*)
1191     includedir=$ac_optarg ;;
1192
1193   -infodir | --infodir | --infodi | --infod | --info | --inf)
1194     ac_prev=infodir ;;
1195   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196     infodir=$ac_optarg ;;
1197
1198   -libdir | --libdir | --libdi | --libd)
1199     ac_prev=libdir ;;
1200   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201     libdir=$ac_optarg ;;
1202
1203   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204   | --libexe | --libex | --libe)
1205     ac_prev=libexecdir ;;
1206   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207   | --libexe=* | --libex=* | --libe=*)
1208     libexecdir=$ac_optarg ;;
1209
1210   -localedir | --localedir | --localedi | --localed | --locale)
1211     ac_prev=localedir ;;
1212   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213     localedir=$ac_optarg ;;
1214
1215   -localstatedir | --localstatedir | --localstatedi | --localstated \
1216   | --localstate | --localstat | --localsta | --localst | --locals)
1217     ac_prev=localstatedir ;;
1218   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220     localstatedir=$ac_optarg ;;
1221
1222   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223     ac_prev=mandir ;;
1224   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225     mandir=$ac_optarg ;;
1226
1227   -nfp | --nfp | --nf)
1228     # Obsolete; use --without-fp.
1229     with_fp=no ;;
1230
1231   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232   | --no-cr | --no-c | -n)
1233     no_create=yes ;;
1234
1235   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237     no_recursion=yes ;;
1238
1239   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241   | --oldin | --oldi | --old | --ol | --o)
1242     ac_prev=oldincludedir ;;
1243   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246     oldincludedir=$ac_optarg ;;
1247
1248   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249     ac_prev=prefix ;;
1250   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251     prefix=$ac_optarg ;;
1252
1253   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254   | --program-pre | --program-pr | --program-p)
1255     ac_prev=program_prefix ;;
1256   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258     program_prefix=$ac_optarg ;;
1259
1260   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261   | --program-suf | --program-su | --program-s)
1262     ac_prev=program_suffix ;;
1263   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265     program_suffix=$ac_optarg ;;
1266
1267   -program-transform-name | --program-transform-name \
1268   | --program-transform-nam | --program-transform-na \
1269   | --program-transform-n | --program-transform- \
1270   | --program-transform | --program-transfor \
1271   | --program-transfo | --program-transf \
1272   | --program-trans | --program-tran \
1273   | --progr-tra | --program-tr | --program-t)
1274     ac_prev=program_transform_name ;;
1275   -program-transform-name=* | --program-transform-name=* \
1276   | --program-transform-nam=* | --program-transform-na=* \
1277   | --program-transform-n=* | --program-transform-=* \
1278   | --program-transform=* | --program-transfor=* \
1279   | --program-transfo=* | --program-transf=* \
1280   | --program-trans=* | --program-tran=* \
1281   | --progr-tra=* | --program-tr=* | --program-t=*)
1282     program_transform_name=$ac_optarg ;;
1283
1284   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285     ac_prev=pdfdir ;;
1286   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287     pdfdir=$ac_optarg ;;
1288
1289   -psdir | --psdir | --psdi | --psd | --ps)
1290     ac_prev=psdir ;;
1291   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292     psdir=$ac_optarg ;;
1293
1294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295   | -silent | --silent | --silen | --sile | --sil)
1296     silent=yes ;;
1297
1298   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299     ac_prev=sbindir ;;
1300   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301   | --sbi=* | --sb=*)
1302     sbindir=$ac_optarg ;;
1303
1304   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306   | --sharedst | --shareds | --shared | --share | --shar \
1307   | --sha | --sh)
1308     ac_prev=sharedstatedir ;;
1309   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312   | --sha=* | --sh=*)
1313     sharedstatedir=$ac_optarg ;;
1314
1315   -site | --site | --sit)
1316     ac_prev=site ;;
1317   -site=* | --site=* | --sit=*)
1318     site=$ac_optarg ;;
1319
1320   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321     ac_prev=srcdir ;;
1322   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323     srcdir=$ac_optarg ;;
1324
1325   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326   | --syscon | --sysco | --sysc | --sys | --sy)
1327     ac_prev=sysconfdir ;;
1328   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330     sysconfdir=$ac_optarg ;;
1331
1332   -target | --target | --targe | --targ | --tar | --ta | --t)
1333     ac_prev=target_alias ;;
1334   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335     target_alias=$ac_optarg ;;
1336
1337   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338     verbose=yes ;;
1339
1340   -version | --version | --versio | --versi | --vers | -V)
1341     ac_init_version=: ;;
1342
1343   -with-* | --with-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=\$ac_optarg ;;
1359
1360   -without-* | --without-*)
1361     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1365    { (exit 1); exit 1; }; }
1366     ac_useropt_orig=$ac_useropt
1367     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368     case $ac_user_opts in
1369       *"
1370 "with_$ac_useropt"
1371 "*) ;;
1372       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373          ac_unrecognized_sep=', ';;
1374     esac
1375     eval with_$ac_useropt=no ;;
1376
1377   --x)
1378     # Obsolete; use --with-x.
1379     with_x=yes ;;
1380
1381   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382   | --x-incl | --x-inc | --x-in | --x-i)
1383     ac_prev=x_includes ;;
1384   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386     x_includes=$ac_optarg ;;
1387
1388   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390     ac_prev=x_libraries ;;
1391   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393     x_libraries=$ac_optarg ;;
1394
1395   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1396 Try \`$0 --help' for more information." >&2
1397    { (exit 1); exit 1; }; }
1398     ;;
1399
1400   *=*)
1401     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1402     # Reject names that are not valid shell variable names.
1403     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1404       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1405    { (exit 1); exit 1; }; }
1406     eval $ac_envvar=\$ac_optarg
1407     export $ac_envvar ;;
1408
1409   *)
1410     # FIXME: should be removed in autoconf 3.0.
1411     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1415     ;;
1416
1417   esac
1418 done
1419
1420 if test -n "$ac_prev"; then
1421   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1423    { (exit 1); exit 1; }; }
1424 fi
1425
1426 if test -n "$ac_unrecognized_opts"; then
1427   case $enable_option_checking in
1428     no) ;;
1429     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1430    { (exit 1); exit 1; }; } ;;
1431     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432   esac
1433 fi
1434
1435 # Check all directory arguments for consistency.
1436 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1437                 datadir sysconfdir sharedstatedir localstatedir includedir \
1438                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1439                 libdir localedir mandir
1440 do
1441   eval ac_val=\$$ac_var
1442   # Remove trailing slashes.
1443   case $ac_val in
1444     */ )
1445       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1446       eval $ac_var=\$ac_val;;
1447   esac
1448   # Be sure to have absolute directory names.
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$as_myself" ||
1496 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$as_myself" : 'X\(//\)[^/]' \| \
1498          X"$as_myself" : 'X\(//\)$' \| \
1499          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1500 $as_echo X"$as_myself" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures linux nfs-utils 1.1.5 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR            user executables [EPREFIX/bin]
1594   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR        program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR            object code libraries [EPREFIX/lib]
1600   --includedir=DIR        C header files [PREFIX/include]
1601   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR           info documentation [DATAROOTDIR/info]
1605   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR            man documentation [DATAROOTDIR/man]
1607   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1608   --htmldir=DIR           html documentation [DOCDIR]
1609   --dvidir=DIR            dvi documentation [DOCDIR]
1610   --pdfdir=DIR            pdf documentation [DOCDIR]
1611   --psdir=DIR             ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 Program names:
1617   --program-prefix=PREFIX            prepend PREFIX to installed program names
1618   --program-suffix=SUFFIX            append SUFFIX to installed program names
1619   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1620
1621 System types:
1622   --build=BUILD     configure for building on BUILD [guessed]
1623   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of linux nfs-utils 1.1.5:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-option-checking  ignore unrecognized --enable/--with options
1635   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1636   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1637   --enable-maintainer-mode  enable make rules and dependencies not useful
1638                           (and sometimes confusing) to the casual installer
1639   --enable-nfsv3          enable support for NFSv3 [default=yes]
1640   --enable-nfsv4          enable support for NFSv4 [default=yes]
1641   --enable-gss            enable support for rpcsec_gss [default=yes]
1642   --enable-kprefix        install progs as rpc.knfsd etc
1643   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1644   --enable-mount          Create mount.nfs and don't use the util-linux
1645                           mount(8) functionality. [default=yes]
1646   --enable-ipv6           enable support for IPv6 [default=no]
1647   --enable-tirpc          enable use of TI-RPC [default=no]
1648   --disable-dependency-tracking  speeds up one-time build
1649   --enable-dependency-tracking   do not reject slow dependency extractors
1650   --disable-largefile     omit support for large files
1651   --enable-shared[=PKGS]  build shared libraries [default=yes]
1652   --enable-static[=PKGS]  build static libraries [default=yes]
1653   --enable-fast-install[=PKGS]
1654                           optimize for fast installation [default=yes]
1655   --disable-libtool-lock  avoid locking (might break parallel builds)
1656
1657 Optional Packages:
1658   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1659   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1660   --with-release=XXX      set release to XXX [1]
1661   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1662   --with-statduser=rpcuser
1663                           statd to run under [rpcuser or nobody]
1664   --with-start-statd=scriptname
1665                           When an nfs filesystems is mounted with locking, run
1666                           this script
1667   --with-rpcgen=internal  use internal rpcgen instead of system one
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   CXX         C++ compiler command
1685   CXXFLAGS    C++ compiler flags
1686   CPP         C preprocessor
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   RPCSECGSS_CFLAGS
1692               C compiler flags for RPCSECGSS, overriding pkg-config
1693   RPCSECGSS_LIBS
1694               linker flags for RPCSECGSS, overriding pkg-config
1695   GSSGLUE_CFLAGS
1696               C compiler flags for GSSGLUE, overriding pkg-config
1697   GSSGLUE_LIBS
1698               linker flags for GSSGLUE, 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.5
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.5, 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.5'
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-ipv6 was given.
2928 if test "${enable_ipv6+set}" = set; then
2929   enableval=$enable_ipv6; enable_ipv6=$enableval
2930 else
2931   enable_ipv6=no
2932 fi
2933
2934         if test "$enable_ipv6" = yes; then
2935
2936 cat >>confdefs.h <<\_ACEOF
2937 #define IPV6_SUPPORTED 1
2938 _ACEOF
2939
2940         else
2941                 enable_ipv6=
2942         fi
2943
2944          if test "$enable_ipv6" = "yes"; then
2945   CONFIG_IPV6_TRUE=
2946   CONFIG_IPV6_FALSE='#'
2947 else
2948   CONFIG_IPV6_TRUE='#'
2949   CONFIG_IPV6_FALSE=
2950 fi
2951
2952
2953 # Check whether --enable-tirpc was given.
2954 if test "${enable_tirpc+set}" = set; then
2955   enableval=$enable_tirpc; enable_tirpc=$enableval
2956 else
2957   enable_tirpc=no
2958 fi
2959
2960
2961          if test "$enable_tirpc" = "yes"; then
2962   CONFIG_TIRPC_TRUE=
2963   CONFIG_TIRPC_FALSE='#'
2964 else
2965   CONFIG_TIRPC_TRUE='#'
2966   CONFIG_TIRPC_FALSE=
2967 fi
2968
2969
2970 # Check whether user wants TCP wrappers support
2971 DEPDIR="${am__leading_dot}deps"
2972
2973 ac_config_commands="$ac_config_commands depfiles"
2974
2975
2976 am_make=${MAKE-make}
2977 cat > confinc << 'END'
2978 am__doit:
2979         @echo done
2980 .PHONY: am__doit
2981 END
2982 # If we don't find an include directive, just comment out the code.
2983 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2984 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2985 am__include="#"
2986 am__quote=
2987 _am_result=none
2988 # First try GNU make style include.
2989 echo "include confinc" > confmf
2990 # We grep out `Entering directory' and `Leaving directory'
2991 # messages which can occur if `w' ends up in MAKEFLAGS.
2992 # In particular we don't look at `^make:' because GNU make might
2993 # be invoked under some other name (usually "gmake"), in which
2994 # case it prints its new name instead of `make'.
2995 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2996    am__include=include
2997    am__quote=
2998    _am_result=GNU
2999 fi
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002    echo '.include "confinc"' > confmf
3003    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3004       am__include=.include
3005       am__quote="\""
3006       _am_result=BSD
3007    fi
3008 fi
3009
3010
3011 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3012 $as_echo "$_am_result" >&6; }
3013 rm -f confinc confmf
3014
3015 # Check whether --enable-dependency-tracking was given.
3016 if test "${enable_dependency_tracking+set}" = set; then
3017   enableval=$enable_dependency_tracking;
3018 fi
3019
3020 if test "x$enable_dependency_tracking" != xno; then
3021   am_depcomp="$ac_aux_dir/depcomp"
3022   AMDEPBACKSLASH='\'
3023 fi
3024  if test "x$enable_dependency_tracking" != xno; then
3025   AMDEP_TRUE=
3026   AMDEP_FALSE='#'
3027 else
3028   AMDEP_TRUE='#'
3029   AMDEP_FALSE=
3030 fi
3031
3032
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 if test -n "$ac_tool_prefix"; then
3039   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$CC"; then
3047   ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3057     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071   { $as_echo "$as_me:$LINENO: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 fi
3077 if test -z "$ac_cv_prog_CC"; then
3078   ac_ct_CC=$CC
3079   # Extract the first word of "gcc", so it can be a program name with args.
3080 set dummy gcc; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$ac_ct_CC"; then
3087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   for ac_exec_ext in '' $ac_executable_extensions; do
3095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096     ac_cv_prog_ac_ct_CC="gcc"
3097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107 if test -n "$ac_ct_CC"; then
3108   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109 $as_echo "$ac_ct_CC" >&6; }
3110 else
3111   { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115   if test "x$ac_ct_CC" = x; then
3116     CC=""
3117   else
3118     case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124     CC=$ac_ct_CC
3125   fi
3126 else
3127   CC="$ac_cv_prog_CC"
3128 fi
3129
3130 if test -z "$CC"; then
3131           if test -n "$ac_tool_prefix"; then
3132     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}cc; ac_word=$2
3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_CC+set}" = set; then
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_CC="${ac_tool_prefix}cc"
3150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:$LINENO: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169   fi
3170 fi
3171 if test -z "$CC"; then
3172   # Extract the first word of "cc", so it can be a program name with args.
3173 set dummy cc; ac_word=$2
3174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_CC+set}" = set; then
3177   $as_echo_n "(cached) " >&6
3178 else
3179   if test -n "$CC"; then
3180   ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182   ac_prog_rejected=no
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3191        ac_prog_rejected=yes
3192        continue
3193      fi
3194     ac_cv_prog_CC="cc"
3195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 if test $ac_prog_rejected = yes; then
3203   # We found a bogon in the path, so make sure we never use it.
3204   set dummy $ac_cv_prog_CC
3205   shift
3206   if test $# != 0; then
3207     # We chose a different compiler from the bogus one.
3208     # However, it has the same basename, so the bogon will be chosen
3209     # first if we set CC to just the basename; use the full file name.
3210     shift
3211     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3212   fi
3213 fi
3214 fi
3215 fi
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3219 $as_echo "$CC" >&6; }
3220 else
3221   { $as_echo "$as_me:$LINENO: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$CC"; then
3228   if test -n "$ac_tool_prefix"; then
3229   for ac_prog in cl.exe
3230   do
3231     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_CC+set}" = set; then
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$CC"; then
3239   ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246   for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3249     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:$LINENO: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268     test -n "$CC" && break
3269   done
3270 fi
3271 if test -z "$CC"; then
3272   ac_ct_CC=$CC
3273   for ac_prog in cl.exe
3274 do
3275   # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if test -n "$ac_ct_CC"; then
3283   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288   IFS=$as_save_IFS
3289   test -z "$as_dir" && as_dir=.
3290   for ac_exec_ext in '' $ac_executable_extensions; do
3291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292     ac_cv_prog_ac_ct_CC="$ac_prog"
3293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3306 else
3307   { $as_echo "$as_me:$LINENO: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312   test -n "$ac_ct_CC" && break
3313 done
3314
3315   if test "x$ac_ct_CC" = x; then
3316     CC=""
3317   else
3318     case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322 ac_tool_warned=yes ;;
3323 esac
3324     CC=$ac_ct_CC
3325   fi
3326 fi
3327
3328 fi
3329
3330
3331 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." >&5
3335 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&2;}
3337    { (exit 1); exit 1; }; }; }
3338
3339 # Provide some information about the compiler.
3340 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3341 set X $ac_compile
3342 ac_compiler=$2
3343 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371 $as_echo "$ac_try_echo") >&5
3372   (eval "$ac_compiler -V >&5") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }
3376
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 ac_clean_files_save=$ac_clean_files
3393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3394 # Try to create an executable without -o first, disregard a.out.
3395 # It will help us diagnose broken compilers, and finding out an intuition
3396 # of exeext.
3397 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3398 $as_echo_n "checking for C compiler default output file name... " >&6; }
3399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3400
3401 # The possible output files:
3402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3403
3404 ac_rmfiles=
3405 for ac_file in $ac_files
3406 do
3407   case $ac_file in
3408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410   esac
3411 done
3412 rm -f $ac_rmfiles
3413
3414 if { (ac_try="$ac_link_default"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421   (eval "$ac_link_default") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; then
3425   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3428 # so that the user can short-circuit this test for compilers unknown to
3429 # Autoconf.
3430 for ac_file in $ac_files ''
3431 do
3432   test -f "$ac_file" || continue
3433   case $ac_file in
3434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3435         ;;
3436     [ab].out )
3437         # We found the default executable, but exeext='' is most
3438         # certainly right.
3439         break;;
3440     *.* )
3441         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442         then :; else
3443            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444         fi
3445         # We set ac_cv_exeext here because the later test for it is not
3446         # safe: cross compilers may not add the suffix if given an `-o'
3447         # argument, so we may need to know it at that point already.
3448         # Even if this section looks crufty: it has the advantage of
3449         # actually working.
3450         break;;
3451     * )
3452         break;;
3453   esac
3454 done
3455 test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
3457 else
3458   ac_file=''
3459 fi
3460
3461 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3462 $as_echo "$ac_file" >&6; }
3463 if test -z "$ac_file"; then
3464   $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3470 See \`config.log' for more details." >&5
3471 $as_echo "$as_me: error: C compiler cannot create executables
3472 See \`config.log' for more details." >&2;}
3473    { (exit 77); exit 77; }; }; }
3474 fi
3475
3476 ac_exeext=$ac_cv_exeext
3477
3478 # Check that the compiler produces executables we can run.  If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3481 $as_echo_n "checking whether the C compiler works... " >&6; }
3482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3483 # If not cross compiling, check that we can run a simple program.
3484 if test "$cross_compiling" != yes; then
3485   if { ac_try='./$ac_file'
3486   { (case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492   (eval "$ac_try") 2>&5
3493   ac_status=$?
3494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; }; then
3496     cross_compiling=no
3497   else
3498     if test "$cross_compiling" = maybe; then
3499         cross_compiling=yes
3500     else
3501         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details." >&5
3506 $as_echo "$as_me: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details." >&2;}
3509    { (exit 1); exit 1; }; }; }
3510     fi
3511   fi
3512 fi
3513 { $as_echo "$as_me:$LINENO: result: yes" >&5
3514 $as_echo "yes" >&6; }
3515
3516 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3517 ac_clean_files=$ac_clean_files_save
3518 # Check that the compiler produces executables we can run.  If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3523 $as_echo "$cross_compiling" >&6; }
3524
3525 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3526 $as_echo_n "checking for suffix of executables... " >&6; }
3527 if { (ac_try="$ac_link"
3528 case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534   (eval "$ac_link") 2>&5
3535   ac_status=$?
3536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }; then
3538   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3539 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3540 # work properly (i.e., refer to `conftest.exe'), while it won't with
3541 # `rm'.
3542 for ac_file in conftest.exe conftest conftest.*; do
3543   test -f "$ac_file" || continue
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547           break;;
3548     * ) break;;
3549   esac
3550 done
3551 else
3552   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3555 See \`config.log' for more details." >&5
3556 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3557 See \`config.log' for more details." >&2;}
3558    { (exit 1); exit 1; }; }; }
3559 fi
3560
3561 rm -f conftest$ac_cv_exeext
3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3564
3565 rm -f conftest.$ac_ext
3566 EXEEXT=$ac_cv_exeext
3567 ac_exeext=$EXEEXT
3568 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3569 $as_echo_n "checking for suffix of object files... " >&6; }
3570 if test "${ac_cv_objext+set}" = set; then
3571   $as_echo_n "(cached) " >&6
3572 else
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.o conftest.obj
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596   (eval "$ac_compile") 2>&5
3597   ac_status=$?
3598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; then
3600   for ac_file in conftest.o conftest.obj conftest.*; do
3601   test -f "$ac_file" || continue;
3602   case $ac_file in
3603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3604     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3605        break;;
3606   esac
3607 done
3608 else
3609   $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3615 See \`config.log' for more details." >&5
3616 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3617 See \`config.log' for more details." >&2;}
3618    { (exit 1); exit 1; }; }; }
3619 fi
3620
3621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622 fi
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3624 $as_echo "$ac_cv_objext" >&6; }
3625 OBJEXT=$ac_cv_objext
3626 ac_objext=$OBJEXT
3627 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3630   $as_echo_n "(cached) " >&6
3631 else
3632   cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642 #ifndef __GNUC__
3643        choke me
3644 #endif
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } && {
3665          test -z "$ac_c_werror_flag" ||
3666          test ! -s conftest.err
3667        } && test -s conftest.$ac_objext; then
3668   ac_compiler_gnu=yes
3669 else
3670   $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673         ac_compiler_gnu=no
3674 fi
3675
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683   GCC=yes
3684 else
3685   GCC=
3686 fi
3687 ac_test_CFLAGS=${CFLAGS+set}
3688 ac_save_CFLAGS=$CFLAGS
3689 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3691 if test "${ac_cv_prog_cc_g+set}" = set; then
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_save_c_werror_flag=$ac_c_werror_flag
3695    ac_c_werror_flag=yes
3696    ac_cv_prog_cc_g=no
3697    CFLAGS="-g"
3698    cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721   (eval "$ac_compile") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } && {
3728          test -z "$ac_c_werror_flag" ||
3729          test ! -s conftest.err
3730        } && test -s conftest.$ac_objext; then
3731   ac_cv_prog_cc_g=yes
3732 else
3733   $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736         CFLAGS=""
3737       cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h.  */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h.  */
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759 $as_echo "$ac_try_echo") >&5
3760   (eval "$ac_compile") 2>conftest.er1
3761   ac_status=$?
3762   grep -v '^ *+' conftest.er1 >conftest.err
3763   rm -f conftest.er1
3764   cat conftest.err >&5
3765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); } && {
3767          test -z "$ac_c_werror_flag" ||
3768          test ! -s conftest.err
3769        } && test -s conftest.$ac_objext; then
3770   :
3771 else
3772   $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775         ac_c_werror_flag=$ac_save_c_werror_flag
3776          CFLAGS="-g"
3777          cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } && {
3807          test -z "$ac_c_werror_flag" ||
3808          test ! -s conftest.err
3809        } && test -s conftest.$ac_objext; then
3810   ac_cv_prog_cc_g=yes
3811 else
3812   $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825    ac_c_werror_flag=$ac_save_c_werror_flag
3826 fi
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3828 $as_echo "$ac_cv_prog_cc_g" >&6; }
3829 if test "$ac_test_CFLAGS" = set; then
3830   CFLAGS=$ac_save_CFLAGS
3831 elif test $ac_cv_prog_cc_g = yes; then
3832   if test "$GCC" = yes; then
3833     CFLAGS="-g -O2"
3834   else
3835     CFLAGS="-g"
3836   fi
3837 else
3838   if test "$GCC" = yes; then
3839     CFLAGS="-O2"
3840   else
3841     CFLAGS=
3842   fi
3843 fi
3844 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3846 if test "${ac_cv_prog_cc_c89+set}" = set; then
3847   $as_echo_n "(cached) " >&6
3848 else
3849   ac_cv_prog_cc_c89=no
3850 ac_save_CC=$CC
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857 #include <stdarg.h>
3858 #include <stdio.h>
3859 #include <sys/types.h>
3860 #include <sys/stat.h>
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3865      char **p;
3866      int i;
3867 {
3868   return p[i];
3869 }
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3871 {
3872   char *s;
3873   va_list v;
3874   va_start (v,p);
3875   s = g (p, va_arg (v,int));
3876   va_end (v);
3877   return s;
3878 }
3879
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3881    function prototypes and stuff, but not '\xHH' hex character constants.
3882    These don't provoke an error unfortunately, instead are silently treated
3883    as 'x'.  The following induces an error, until -std is added to get
3884    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3885    array size at least.  It's necessary to write '\x00'==0 to get something
3886    that's true only with -std.  */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890    inside strings and character constants.  */
3891 #define FOO(x) 'x'
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 int argc;
3899 char **argv;
3900 int
3901 main ()
3902 {
3903 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 do
3911   CC="$ac_save_CC $ac_arg"
3912   rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919 $as_echo "$ac_try_echo") >&5
3920   (eval "$ac_compile") 2>conftest.er1
3921   ac_status=$?
3922   grep -v '^ *+' conftest.er1 >conftest.err
3923   rm -f conftest.er1
3924   cat conftest.err >&5
3925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } && {
3927          test -z "$ac_c_werror_flag" ||
3928          test ! -s conftest.err
3929        } && test -s conftest.$ac_objext; then
3930   ac_cv_prog_cc_c89=$ac_arg
3931 else
3932   $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935
3936 fi
3937
3938 rm -f core conftest.err conftest.$ac_objext
3939   test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947   x)
3948     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950   xno)
3951     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953   *)
3954     CC="$CC $ac_cv_prog_cc_c89"
3955     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966 depcc="$CC"   am_compiler_list=
3967
3968 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3969 $as_echo_n "checking dependency style of $depcc... " >&6; }
3970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3971   $as_echo_n "(cached) " >&6
3972 else
3973   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3974   # We make a subdir and do the tests there.  Otherwise we can end up
3975   # making bogus files that we don't know about and never remove.  For
3976   # instance it was reported that on HP-UX the gcc test will end up
3977   # making a dummy file named `D' -- because `-MD' means `put the output
3978   # in D'.
3979   mkdir conftest.dir
3980   # Copy depcomp to subdir because otherwise we won't find it if we're
3981   # using a relative directory.
3982   cp "$am_depcomp" conftest.dir
3983   cd conftest.dir
3984   # We will build objects and dependencies in a subdirectory because
3985   # it helps to detect inapplicable dependency modes.  For instance
3986   # both Tru64's cc and ICC support -MD to output dependencies as a
3987   # side effect of compilation, but ICC will put the dependencies in
3988   # the current directory while Tru64 will put them in the object
3989   # directory.
3990   mkdir sub
3991
3992   am_cv_CC_dependencies_compiler_type=none
3993   if test "$am_compiler_list" = ""; then
3994      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995   fi
3996   for depmode in $am_compiler_list; do
3997     # Setup a source with many dependencies, because some compilers
3998     # like to wrap large dependency lists on column 80 (with \), and
3999     # we should not choose a depcomp mode which is confused by this.
4000     #
4001     # We need to recreate these files for each test, as the compiler may
4002     # overwrite some of them when testing with obscure command lines.
4003     # This happens at least with the AIX C compiler.
4004     : > sub/conftest.c
4005     for i in 1 2 3 4 5 6; do
4006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008       # Solaris 8's {/usr,}/bin/sh.
4009       touch sub/conftst$i.h
4010     done
4011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
4013     case $depmode in
4014     nosideeffect)
4015       # after this tag, mechanisms are not by side-effect, so they'll
4016       # only be used when explicitly requested
4017       if test "x$enable_dependency_tracking" = xyes; then
4018         continue
4019       else
4020         break
4021       fi
4022       ;;
4023     none) break ;;
4024     esac
4025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4026     # mode.  It turns out that the SunPro C++ compiler does not properly
4027     # handle `-M -o', and we need to detect this.
4028     if depmode=$depmode \
4029        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4030        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4031        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4032          >/dev/null 2>conftest.err &&
4033        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4035        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4037       # icc doesn't choke on unknown options, it will just issue warnings
4038       # or remarks (even with -Werror).  So we grep stderr for any message
4039       # that says an option was ignored or not supported.
4040       # When given -MP, icc 7.0 and 7.1 complain thusly:
4041       #   icc: Command line warning: ignoring option '-M'; no argument required
4042       # The diagnosis changed in icc 8.0:
4043       #   icc: Command line remark: option '-MP' not supported
4044       if (grep 'ignoring option' conftest.err ||
4045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4046         am_cv_CC_dependencies_compiler_type=$depmode
4047         break
4048       fi
4049     fi
4050   done
4051
4052   cd ..
4053   rm -rf conftest.dir
4054 else
4055   am_cv_CC_dependencies_compiler_type=none
4056 fi
4057
4058 fi
4059 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4060 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4062
4063  if
4064   test "x$enable_dependency_tracking" != xno \
4065   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4066   am__fastdepCC_TRUE=
4067   am__fastdepCC_FALSE='#'
4068 else
4069   am__fastdepCC_TRUE='#'
4070   am__fastdepCC_FALSE=
4071 fi
4072
4073
4074
4075
4076   TCPW_MSG="no"
4077
4078 # Check whether --with-tcp-wrappers was given.
4079 if test "${with_tcp_wrappers+set}" = set; then
4080   withval=$with_tcp_wrappers; with_tcpw=$withval
4081 else
4082   with_tcpw=yes
4083 fi
4084
4085         if test "x$with_tcpw" != "xno" ; then
4086             saved_LIBS="$LIBS"
4087             saved_LDFLAGS="$LDFLAGS"
4088             saved_CPPFLAGS="$CPPFLAGS"
4089             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
4090                 if test -d "${with_tcpw}/lib"; then
4091                     if test -n "${need_dash_r}"; then
4092                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
4093                     else
4094                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
4095                     fi
4096                 else
4097                     if test -n "${need_dash_r}"; then
4098                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
4099                     else
4100                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
4101                     fi
4102                 fi
4103                 if test -d "${with_tcpw}/include"; then
4104                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
4105                 else
4106                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
4107                 fi
4108             fi
4109             LIBWRAP="-lwrap"
4110             LIBS="$LIBWRAP $LIBS"
4111             { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
4112 $as_echo_n "checking for libwrap... " >&6; }
4113             cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119
4120                 #include <tcpd.h>
4121                 int deny_severity = 0, allow_severity = 0;
4122
4123 int
4124 main ()
4125 {
4126 hosts_access(0);
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext conftest$ac_exeext
4132 if { (ac_try="$ac_link"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4138 $as_echo "$ac_try_echo") >&5
4139   (eval "$ac_link") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_c_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest$ac_exeext && {
4149          test "$cross_compiling" = yes ||
4150          $as_test_x conftest$ac_exeext
4151        }; then
4152
4153                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4154 $as_echo "yes" >&6; }
4155
4156
4157 cat >>confdefs.h <<\_ACEOF
4158 #define LIBWRAP 1
4159 _ACEOF
4160
4161
4162 cat >>confdefs.h <<\_ACEOF
4163 #define HAVE_LIBWRAP 1
4164 _ACEOF
4165
4166
4167 cat >>confdefs.h <<\_ACEOF
4168 #define HAVE_TCP_WRAPPER 1
4169 _ACEOF
4170
4171                 TCPW_MSG="yes"
4172
4173 else
4174   $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177
4178                 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4179 $as_echo "$as_me: error: *** libwrap missing" >&2;}
4180    { (exit 1); exit 1; }; }
4181
4182
4183 fi
4184
4185 rm -rf conftest.dSYM
4186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4187       conftest$ac_exeext conftest.$ac_ext
4188             LIBS="$saved_LIBS"
4189         fi
4190
4191
4192
4193
4194
4195 # Arrange for large-file support
4196 # Check whether --enable-largefile was given.
4197 if test "${enable_largefile+set}" = set; then
4198   enableval=$enable_largefile;
4199 fi
4200
4201 if test "$enable_largefile" != no; then
4202
4203   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4204 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4205 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4206   $as_echo_n "(cached) " >&6
4207 else
4208   ac_cv_sys_largefile_CC=no
4209      if test "$GCC" != yes; then
4210        ac_save_CC=$CC
4211        while :; do
4212          # IRIX 6.2 and later do not support large files by default,
4213          # so use the C compiler's -n32 option if that helps.
4214          cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #include <sys/types.h>
4221  /* Check that off_t can represent 2**63 - 1 correctly.
4222     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4223     since some C++ compilers masquerading as C compilers
4224     incorrectly reject 9223372036854775807.  */
4225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4226   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4227                        && LARGE_OFF_T % 2147483647 == 1)
4228                       ? 1 : -1];
4229 int
4230 main ()
4231 {
4232
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237          rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245   (eval "$ac_compile") 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } && {
4252          test -z "$ac_c_werror_flag" ||
4253          test ! -s conftest.err
4254        } && test -s conftest.$ac_objext; then
4255   break
4256 else
4257   $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260
4261 fi
4262
4263 rm -f core conftest.err conftest.$ac_objext
4264          CC="$CC -n32"
4265          rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273   (eval "$ac_compile") 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && {
4280          test -z "$ac_c_werror_flag" ||
4281          test ! -s conftest.err
4282        } && test -s conftest.$ac_objext; then
4283   ac_cv_sys_largefile_CC=' -n32'; break
4284 else
4285   $as_echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext
4292          break
4293        done
4294        CC=$ac_save_CC
4295        rm -f conftest.$ac_ext
4296     fi
4297 fi
4298 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4299 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4300   if test "$ac_cv_sys_largefile_CC" != no; then
4301     CC=$CC$ac_cv_sys_largefile_CC
4302   fi
4303
4304   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4305 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4306 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4307   $as_echo_n "(cached) " >&6
4308 else
4309   while :; do
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 #include <sys/types.h>
4317  /* Check that off_t can represent 2**63 - 1 correctly.
4318     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4319     since some C++ compilers masquerading as C compilers
4320     incorrectly reject 9223372036854775807.  */
4321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4322   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4323                        && LARGE_OFF_T % 2147483647 == 1)
4324                       ? 1 : -1];
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && {
4348          test -z "$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        } && test -s conftest.$ac_objext; then
4351   ac_cv_sys_file_offset_bits=no; break
4352 else
4353   $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360   cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #define _FILE_OFFSET_BITS 64
4367 #include <sys/types.h>
4368  /* Check that off_t can represent 2**63 - 1 correctly.
4369     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4370     since some C++ compilers masquerading as C compilers
4371     incorrectly reject 9223372036854775807.  */
4372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4373   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4374                        && LARGE_OFF_T % 2147483647 == 1)
4375                       ? 1 : -1];
4376 int
4377 main ()
4378 {
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 rm -f conftest.$ac_objext
4385 if { (ac_try="$ac_compile"
4386 case "(($ac_try" in
4387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388   *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4391 $as_echo "$ac_try_echo") >&5
4392   (eval "$ac_compile") 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } && {
4399          test -z "$ac_c_werror_flag" ||
4400          test ! -s conftest.err
4401        } && test -s conftest.$ac_objext; then
4402   ac_cv_sys_file_offset_bits=64; break
4403 else
4404   $as_echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407
4408 fi
4409
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411   ac_cv_sys_file_offset_bits=unknown
4412   break
4413 done
4414 fi
4415 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4416 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4417 case $ac_cv_sys_file_offset_bits in #(
4418   no | unknown) ;;
4419   *)
4420 cat >>confdefs.h <<_ACEOF
4421 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4422 _ACEOF
4423 ;;
4424 esac
4425 rm -rf conftest*
4426   if test $ac_cv_sys_file_offset_bits = unknown; then
4427     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4428 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4429 if test "${ac_cv_sys_large_files+set}" = set; then
4430   $as_echo_n "(cached) " >&6
4431 else
4432   while :; do
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 #include <sys/types.h>
4440  /* Check that off_t can represent 2**63 - 1 correctly.
4441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442     since some C++ compilers masquerading as C compilers
4443     incorrectly reject 9223372036854775807.  */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446                        && LARGE_OFF_T % 2147483647 == 1)
4447                       ? 1 : -1];
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464   (eval "$ac_compile") 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } && {
4471          test -z "$ac_c_werror_flag" ||
4472          test ! -s conftest.err
4473        } && test -s conftest.$ac_objext; then
4474   ac_cv_sys_large_files=no; break
4475 else
4476   $as_echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479
4480 fi
4481
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483   cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 #define _LARGE_FILES 1
4490 #include <sys/types.h>
4491  /* Check that off_t can represent 2**63 - 1 correctly.
4492     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4493     since some C++ compilers masquerading as C compilers
4494     incorrectly reject 9223372036854775807.  */
4495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4496   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4497                        && LARGE_OFF_T % 2147483647 == 1)
4498                       ? 1 : -1];
4499 int
4500 main ()
4501 {
4502
4503   ;
4504   return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (ac_try="$ac_compile"
4509 case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4514 $as_echo "$ac_try_echo") >&5
4515   (eval "$ac_compile") 2>conftest.er1
4516   ac_status=$?
4517   grep -v '^ *+' conftest.er1 >conftest.err
4518   rm -f conftest.er1
4519   cat conftest.err >&5
4520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } && {
4522          test -z "$ac_c_werror_flag" ||
4523          test ! -s conftest.err
4524        } && test -s conftest.$ac_objext; then
4525   ac_cv_sys_large_files=1; break
4526 else
4527   $as_echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534   ac_cv_sys_large_files=unknown
4535   break
4536 done
4537 fi
4538 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4539 $as_echo "$ac_cv_sys_large_files" >&6; }
4540 case $ac_cv_sys_large_files in #(
4541   no | unknown) ;;
4542   *)
4543 cat >>confdefs.h <<_ACEOF
4544 #define _LARGE_FILES $ac_cv_sys_large_files
4545 _ACEOF
4546 ;;
4547 esac
4548 rm -rf conftest*
4549   fi
4550 fi
4551
4552
4553
4554 ac_config_headers="$ac_config_headers support/include/config.h"
4555
4556
4557 # Checks for programs.
4558 ac_ext=cpp
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563 if test -z "$CXX"; then
4564   if test -n "$CCC"; then
4565     CXX=$CCC
4566   else
4567     if test -n "$ac_tool_prefix"; then
4568   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569   do
4570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_CXX+set}" = set; then
4575   $as_echo_n "(cached) " >&6
4576 else
4577   if test -n "$CXX"; then
4578   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 CXX=$ac_cv_prog_CXX
4598 if test -n "$CXX"; then
4599   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4600 $as_echo "$CXX" >&6; }
4601 else
4602   { $as_echo "$as_me:$LINENO: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607     test -n "$CXX" && break
4608   done
4609 fi
4610 if test -z "$CXX"; then
4611   ac_ct_CXX=$CXX
4612   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4613 do
4614   # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4619   $as_echo_n "(cached) " >&6
4620 else
4621   if test -n "$ac_ct_CXX"; then
4622   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_ac_ct_CXX="$ac_prog"
4632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4642 if test -n "$ac_ct_CXX"; then
4643   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4644 $as_echo "$ac_ct_CXX" >&6; }
4645 else
4646   { $as_echo "$as_me:$LINENO: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4649
4650
4651   test -n "$ac_ct_CXX" && break
4652 done
4653
4654   if test "x$ac_ct_CXX" = x; then
4655     CXX="g++"
4656   else
4657     case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663     CXX=$ac_ct_CXX
4664   fi
4665 fi
4666
4667   fi
4668 fi
4669 # Provide some information about the compiler.
4670 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4671 set X $ac_compile
4672 ac_compiler=$2
4673 { (ac_try="$ac_compiler --version >&5"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679 $as_echo "$ac_try_echo") >&5
4680   (eval "$ac_compiler --version >&5") 2>&5
4681   ac_status=$?
4682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }
4684 { (ac_try="$ac_compiler -v >&5"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690 $as_echo "$ac_try_echo") >&5
4691   (eval "$ac_compiler -v >&5") 2>&5
4692   ac_status=$?
4693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }
4695 { (ac_try="$ac_compiler -V >&5"
4696 case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702   (eval "$ac_compiler -V >&5") 2>&5
4703   ac_status=$?
4704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }
4706
4707 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4708 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4710   $as_echo_n "(cached) " >&6
4711 else
4712   cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723        choke me
4724 #endif
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
4746          test ! -s conftest.err
4747        } && test -s conftest.$ac_objext; then
4748   ac_compiler_gnu=yes
4749 else
4750   $as_echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753         ac_compiler_gnu=no
4754 fi
4755
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4758
4759 fi
4760 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4761 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4762 if test $ac_compiler_gnu = yes; then
4763   GXX=yes
4764 else
4765   GXX=
4766 fi
4767 ac_test_CXXFLAGS=${CXXFLAGS+set}
4768 ac_save_CXXFLAGS=$CXXFLAGS
4769 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4770 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4771 if test "${ac_cv_prog_cxx_g+set}" = set; then
4772   $as_echo_n "(cached) " >&6
4773 else
4774   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4775    ac_cxx_werror_flag=yes
4776    ac_cv_prog_cxx_g=no
4777    CXXFLAGS="-g"
4778    cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h.  */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h.  */
4784
4785 int
4786 main ()
4787 {
4788
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801   (eval "$ac_compile") 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && {
4808          test -z "$ac_cxx_werror_flag" ||
4809          test ! -s conftest.err
4810        } && test -s conftest.$ac_objext; then
4811   ac_cv_prog_cxx_g=yes
4812 else
4813   $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816         CXXFLAGS=""
4817       cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823
4824 int
4825 main ()
4826 {
4827
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836   *) ac_try_echo=$ac_try;;
4837 esac
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840   (eval "$ac_compile") 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } && {
4847          test -z "$ac_cxx_werror_flag" ||
4848          test ! -s conftest.err
4849        } && test -s conftest.$ac_objext; then
4850   :
4851 else
4852   $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4856          CXXFLAGS="-g"
4857          cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (ac_try="$ac_compile"
4874 case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880   (eval "$ac_compile") 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } && {
4887          test -z "$ac_cxx_werror_flag" ||
4888          test ! -s conftest.err
4889        } && test -s conftest.$ac_objext; then
4890   ac_cv_prog_cxx_g=yes
4891 else
4892   $as_echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895
4896 fi
4897
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 fi
4900
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4906 fi
4907 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4908 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4909 if test "$ac_test_CXXFLAGS" = set; then
4910   CXXFLAGS=$ac_save_CXXFLAGS
4911 elif test $ac_cv_prog_cxx_g = yes; then
4912   if test "$GXX" = yes; then
4913     CXXFLAGS="-g -O2"
4914   else
4915     CXXFLAGS="-g"
4916   fi
4917 else
4918   if test "$GXX" = yes; then
4919     CXXFLAGS="-O2"
4920   else
4921     CXXFLAGS=
4922   fi
4923 fi
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
4930 depcc="$CXX"  am_compiler_list=
4931
4932 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4933 $as_echo_n "checking dependency style of $depcc... " >&6; }
4934 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4935   $as_echo_n "(cached) " >&6
4936 else
4937   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4938   # We make a subdir and do the tests there.  Otherwise we can end up
4939   # making bogus files that we don't know about and never remove.  For
4940   # instance it was reported that on HP-UX the gcc test will end up
4941   # making a dummy file named `D' -- because `-MD' means `put the output
4942   # in D'.
4943   mkdir conftest.dir
4944   # Copy depcomp to subdir because otherwise we won't find it if we're
4945   # using a relative directory.
4946   cp "$am_depcomp" conftest.dir
4947   cd conftest.dir
4948   # We will build objects and dependencies in a subdirectory because
4949   # it helps to detect inapplicable dependency modes.  For instance
4950   # both Tru64's cc and ICC support -MD to output dependencies as a
4951   # side effect of compilation, but ICC will put the dependencies in
4952   # the current directory while Tru64 will put them in the object
4953   # directory.
4954   mkdir sub
4955
4956   am_cv_CXX_dependencies_compiler_type=none
4957   if test "$am_compiler_list" = ""; then
4958      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4959   fi
4960   for depmode in $am_compiler_list; do
4961     # Setup a source with many dependencies, because some compilers
4962     # like to wrap large dependency lists on column 80 (with \), and
4963     # we should not choose a depcomp mode which is confused by this.
4964     #
4965     # We need to recreate these files for each test, as the compiler may
4966     # overwrite some of them when testing with obscure command lines.
4967     # This happens at least with the AIX C compiler.
4968     : > sub/conftest.c
4969     for i in 1 2 3 4 5 6; do
4970       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4971       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4972       # Solaris 8's {/usr,}/bin/sh.
4973       touch sub/conftst$i.h
4974     done
4975     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4976
4977     case $depmode in
4978     nosideeffect)
4979       # after this tag, mechanisms are not by side-effect, so they'll
4980       # only be used when explicitly requested
4981       if test "x$enable_dependency_tracking" = xyes; then
4982         continue
4983       else
4984         break
4985       fi
4986       ;;
4987     none) break ;;
4988     esac
4989     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4990     # mode.  It turns out that the SunPro C++ compiler does not properly
4991     # handle `-M -o', and we need to detect this.
4992     if depmode=$depmode \
4993        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4995        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4996          >/dev/null 2>conftest.err &&
4997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4999        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5001       # icc doesn't choke on unknown options, it will just issue warnings
5002       # or remarks (even with -Werror).  So we grep stderr for any message
5003       # that says an option was ignored or not supported.
5004       # When given -MP, icc 7.0 and 7.1 complain thusly:
5005       #   icc: Command line warning: ignoring option '-M'; no argument required
5006       # The diagnosis changed in icc 8.0:
5007       #   icc: Command line remark: option '-MP' not supported
5008       if (grep 'ignoring option' conftest.err ||
5009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5010         am_cv_CXX_dependencies_compiler_type=$depmode
5011         break
5012       fi
5013     fi
5014   done
5015
5016   cd ..
5017   rm -rf conftest.dir
5018 else
5019   am_cv_CXX_dependencies_compiler_type=none
5020 fi
5021
5022 fi
5023 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5024 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5025 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5026
5027  if
5028   test "x$enable_dependency_tracking" != xno \
5029   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5030   am__fastdepCXX_TRUE=
5031   am__fastdepCXX_FALSE='#'
5032 else
5033   am__fastdepCXX_TRUE='#'
5034   am__fastdepCXX_FALSE=
5035 fi
5036
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 if test -n "$ac_tool_prefix"; then
5044   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_CC+set}" = set; then
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -n "$CC"; then
5052   ac_cv_prog_CC="$CC" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059   for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 CC=$ac_cv_prog_CC
5072 if test -n "$CC"; then
5073   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5074 $as_echo "$CC" >&6; }
5075 else
5076   { $as_echo "$as_me:$LINENO: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 fi
5082 if test -z "$ac_cv_prog_CC"; then
5083   ac_ct_CC=$CC
5084   # Extract the first word of "gcc", so it can be a program name with args.
5085 set dummy gcc; ac_word=$2
5086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5089   $as_echo_n "(cached) " >&6
5090 else
5091   if test -n "$ac_ct_CC"; then
5092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099   for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_prog_ac_ct_CC="gcc"
5102     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5112 if test -n "$ac_ct_CC"; then
5113   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5114 $as_echo "$ac_ct_CC" >&6; }
5115 else
5116   { $as_echo "$as_me:$LINENO: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120   if test "x$ac_ct_CC" = x; then
5121     CC=""
5122   else
5123     case $cross_compiling:$ac_tool_warned in
5124 yes:)
5125 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127 ac_tool_warned=yes ;;
5128 esac
5129     CC=$ac_ct_CC
5130   fi
5131 else
5132   CC="$ac_cv_prog_CC"
5133 fi
5134
5135 if test -z "$CC"; then
5136           if test -n "$ac_tool_prefix"; then
5137     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}cc; ac_word=$2
5139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_prog_CC+set}" = set; then
5142   $as_echo_n "(cached) " >&6
5143 else
5144   if test -n "$CC"; then
5145   ac_cv_prog_CC="$CC" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154     ac_cv_prog_CC="${ac_tool_prefix}cc"
5155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 CC=$ac_cv_prog_CC
5165 if test -n "$CC"; then
5166   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5167 $as_echo "$CC" >&6; }
5168 else
5169   { $as_echo "$as_me:$LINENO: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172
5173
5174   fi
5175 fi
5176 if test -z "$CC"; then
5177   # Extract the first word of "cc", so it can be a program name with args.
5178 set dummy cc; ac_word=$2
5179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_prog_CC+set}" = set; then
5182   $as_echo_n "(cached) " >&6
5183 else
5184   if test -n "$CC"; then
5185   ac_cv_prog_CC="$CC" # Let the user override the test.
5186 else
5187   ac_prog_rejected=no
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5196        ac_prog_rejected=yes
5197        continue
5198      fi
5199     ac_cv_prog_CC="cc"
5200     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 if test $ac_prog_rejected = yes; then
5208   # We found a bogon in the path, so make sure we never use it.
5209   set dummy $ac_cv_prog_CC
5210   shift
5211   if test $# != 0; then
5212     # We chose a different compiler from the bogus one.
5213     # However, it has the same basename, so the bogon will be chosen
5214     # first if we set CC to just the basename; use the full file name.
5215     shift
5216     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5217   fi
5218 fi
5219 fi
5220 fi
5221 CC=$ac_cv_prog_CC
5222 if test -n "$CC"; then
5223   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5224 $as_echo "$CC" >&6; }
5225 else
5226   { $as_echo "$as_me:$LINENO: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$CC"; then
5233   if test -n "$ac_tool_prefix"; then
5234   for ac_prog in cl.exe
5235   do
5236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if test "${ac_cv_prog_CC+set}" = set; then
5241   $as_echo_n "(cached) " >&6
5242 else
5243   if test -n "$CC"; then
5244   ac_cv_prog_CC="$CC" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 fi
5262 fi
5263 CC=$ac_cv_prog_CC
5264 if test -n "$CC"; then
5265   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5266 $as_echo "$CC" >&6; }
5267 else
5268   { $as_echo "$as_me:$LINENO: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272
5273     test -n "$CC" && break
5274   done
5275 fi
5276 if test -z "$CC"; then
5277   ac_ct_CC=$CC
5278   for ac_prog in cl.exe
5279 do
5280   # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if test -n "$ac_ct_CC"; then
5288   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295   for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_prog_ac_ct_CC="$ac_prog"
5298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5308 if test -n "$ac_ct_CC"; then
5309   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5310 $as_echo "$ac_ct_CC" >&6; }
5311 else
5312   { $as_echo "$as_me:$LINENO: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317   test -n "$ac_ct_CC" && break
5318 done
5319
5320   if test "x$ac_ct_CC" = x; then
5321     CC=""
5322   else
5323     case $cross_compiling:$ac_tool_warned in
5324 yes:)
5325 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327 ac_tool_warned=yes ;;
5328 esac
5329     CC=$ac_ct_CC
5330   fi
5331 fi
5332
5333 fi
5334
5335
5336 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5338 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5339 See \`config.log' for more details." >&5
5340 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5341 See \`config.log' for more details." >&2;}
5342    { (exit 1); exit 1; }; }; }
5343
5344 # Provide some information about the compiler.
5345 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5346 set X $ac_compile
5347 ac_compiler=$2
5348 { (ac_try="$ac_compiler --version >&5"
5349 case "(($ac_try" in
5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351   *) ac_try_echo=$ac_try;;
5352 esac
5353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5354 $as_echo "$ac_try_echo") >&5
5355   (eval "$ac_compiler --version >&5") 2>&5
5356   ac_status=$?
5357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }
5359 { (ac_try="$ac_compiler -v >&5"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366   (eval "$ac_compiler -v >&5") 2>&5
5367   ac_status=$?
5368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }
5370 { (ac_try="$ac_compiler -V >&5"
5371 case "(($ac_try" in
5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373   *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377   (eval "$ac_compiler -V >&5") 2>&5
5378   ac_status=$?
5379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); }
5381
5382 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5385   $as_echo_n "(cached) " >&6
5386 else
5387   cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393
5394 int
5395 main ()
5396 {
5397 #ifndef __GNUC__
5398        choke me
5399 #endif
5400
5401   ;
5402   return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409   *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5412 $as_echo "$ac_try_echo") >&5
5413   (eval "$ac_compile") 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } && {
5420          test -z "$ac_c_werror_flag" ||
5421          test ! -s conftest.err
5422        } && test -s conftest.$ac_objext; then
5423   ac_compiler_gnu=yes
5424 else
5425   $as_echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428         ac_compiler_gnu=no
5429 fi
5430
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5433
5434 fi
5435 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5437 if test $ac_compiler_gnu = yes; then
5438   GCC=yes
5439 else
5440   GCC=
5441 fi
5442 ac_test_CFLAGS=${CFLAGS+set}
5443 ac_save_CFLAGS=$CFLAGS
5444 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5445 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5446 if test "${ac_cv_prog_cc_g+set}" = set; then
5447   $as_echo_n "(cached) " >&6
5448 else
5449   ac_save_c_werror_flag=$ac_c_werror_flag
5450    ac_c_werror_flag=yes
5451    ac_cv_prog_cc_g=no
5452    CFLAGS="-g"
5453    cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459
5460 int
5461 main ()
5462 {
5463
5464   ;
5465   return 0;
5466 }
5467 _ACEOF
5468 rm -f conftest.$ac_objext
5469 if { (ac_try="$ac_compile"
5470 case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475 $as_echo "$ac_try_echo") >&5
5476   (eval "$ac_compile") 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } && {
5483          test -z "$ac_c_werror_flag" ||
5484          test ! -s conftest.err
5485        } && test -s conftest.$ac_objext; then
5486   ac_cv_prog_cc_g=yes
5487 else
5488   $as_echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491         CFLAGS=""
5492       cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498
5499 int
5500 main ()
5501 {
5502
5503   ;
5504   return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511   *) ac_try_echo=$ac_try;;
5512 esac
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515   (eval "$ac_compile") 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } && {
5522          test -z "$ac_c_werror_flag" ||
5523          test ! -s conftest.err
5524        } && test -s conftest.$ac_objext; then
5525   :
5526 else
5527   $as_echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530         ac_c_werror_flag=$ac_save_c_werror_flag
5531          CFLAGS="-g"
5532          cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h.  */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h.  */
5538
5539 int
5540 main ()
5541 {
5542
5543   ;
5544   return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555   (eval "$ac_compile") 2>conftest.er1
5556   ac_status=$?
5557   grep -v '^ *+' conftest.er1 >conftest.err
5558   rm -f conftest.er1
5559   cat conftest.err >&5
5560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } && {
5562          test -z "$ac_c_werror_flag" ||
5563          test ! -s conftest.err
5564        } && test -s conftest.$ac_objext; then
5565   ac_cv_prog_cc_g=yes
5566 else
5567   $as_echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570
5571 fi
5572
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580    ac_c_werror_flag=$ac_save_c_werror_flag
5581 fi
5582 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5583 $as_echo "$ac_cv_prog_cc_g" >&6; }
5584 if test "$ac_test_CFLAGS" = set; then
5585   CFLAGS=$ac_save_CFLAGS
5586 elif test $ac_cv_prog_cc_g = yes; then
5587   if test "$GCC" = yes; then
5588     CFLAGS="-g -O2"
5589   else
5590     CFLAGS="-g"
5591   fi
5592 else
5593   if test "$GCC" = yes; then
5594     CFLAGS="-O2"
5595   else
5596     CFLAGS=
5597   fi
5598 fi
5599 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5601 if test "${ac_cv_prog_cc_c89+set}" = set; then
5602   $as_echo_n "(cached) " >&6
5603 else
5604   ac_cv_prog_cc_c89=no
5605 ac_save_CC=$CC
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612 #include <stdarg.h>
5613 #include <stdio.h>
5614 #include <sys/types.h>
5615 #include <sys/stat.h>
5616 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5617 struct buf { int x; };
5618 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5619 static char *e (p, i)
5620      char **p;
5621      int i;
5622 {
5623   return p[i];
5624 }
5625 static char *f (char * (*g) (char **, int), char **p, ...)
5626 {
5627   char *s;
5628   va_list v;
5629   va_start (v,p);
5630   s = g (p, va_arg (v,int));
5631   va_end (v);
5632   return s;
5633 }
5634
5635 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5636    function prototypes and stuff, but not '\xHH' hex character constants.
5637    These don't provoke an error unfortunately, instead are silently treated
5638    as 'x'.  The following induces an error, until -std is added to get
5639    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5640    array size at least.  It's necessary to write '\x00'==0 to get something
5641    that's true only with -std.  */
5642 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5643
5644 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5645    inside strings and character constants.  */
5646 #define FOO(x) 'x'
5647 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5648
5649 int test (int i, double x);
5650 struct s1 {int (*f) (int a);};
5651 struct s2 {int (*f) (double a);};
5652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5653 int argc;
5654 char **argv;
5655 int
5656 main ()
5657 {
5658 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5664         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5665 do
5666   CC="$ac_save_CC $ac_arg"
5667   rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5674 $as_echo "$ac_try_echo") >&5
5675   (eval "$ac_compile") 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } && {
5682          test -z "$ac_c_werror_flag" ||
5683          test ! -s conftest.err
5684        } && test -s conftest.$ac_objext; then
5685   ac_cv_prog_cc_c89=$ac_arg
5686 else
5687   $as_echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690
5691 fi
5692
5693 rm -f core conftest.err conftest.$ac_objext
5694   test "x$ac_cv_prog_cc_c89" != "xno" && break
5695 done
5696 rm -f conftest.$ac_ext
5697 CC=$ac_save_CC
5698
5699 fi
5700 # AC_CACHE_VAL
5701 case "x$ac_cv_prog_cc_c89" in
5702   x)
5703     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5704 $as_echo "none needed" >&6; } ;;
5705   xno)
5706     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5707 $as_echo "unsupported" >&6; } ;;
5708   *)
5709     CC="$CC $ac_cv_prog_cc_c89"
5710     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5712 esac
5713
5714
5715 ac_ext=c
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720
5721 depcc="$CC"   am_compiler_list=
5722
5723 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5724 $as_echo_n "checking dependency style of $depcc... " >&6; }
5725 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5729   # We make a subdir and do the tests there.  Otherwise we can end up
5730   # making bogus files that we don't know about and never remove.  For
5731   # instance it was reported that on HP-UX the gcc test will end up
5732   # making a dummy file named `D' -- because `-MD' means `put the output
5733   # in D'.
5734   mkdir conftest.dir
5735   # Copy depcomp to subdir because otherwise we won't find it if we're
5736   # using a relative directory.
5737   cp "$am_depcomp" conftest.dir
5738   cd conftest.dir
5739   # We will build objects and dependencies in a subdirectory because
5740   # it helps to detect inapplicable dependency modes.  For instance
5741   # both Tru64's cc and ICC support -MD to output dependencies as a
5742   # side effect of compilation, but ICC will put the dependencies in
5743   # the current directory while Tru64 will put them in the object
5744   # directory.
5745   mkdir sub
5746
5747   am_cv_CC_dependencies_compiler_type=none
5748   if test "$am_compiler_list" = ""; then
5749      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5750   fi
5751   for depmode in $am_compiler_list; do
5752     # Setup a source with many dependencies, because some compilers
5753     # like to wrap large dependency lists on column 80 (with \), and
5754     # we should not choose a depcomp mode which is confused by this.
5755     #
5756     # We need to recreate these files for each test, as the compiler may
5757     # overwrite some of them when testing with obscure command lines.
5758     # This happens at least with the AIX C compiler.
5759     : > sub/conftest.c
5760     for i in 1 2 3 4 5 6; do
5761       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5762       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5763       # Solaris 8's {/usr,}/bin/sh.
5764       touch sub/conftst$i.h
5765     done
5766     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5767
5768     case $depmode in
5769     nosideeffect)
5770       # after this tag, mechanisms are not by side-effect, so they'll
5771       # only be used when explicitly requested
5772       if test "x$enable_dependency_tracking" = xyes; then
5773         continue
5774       else
5775         break
5776       fi
5777       ;;
5778     none) break ;;
5779     esac
5780     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5781     # mode.  It turns out that the SunPro C++ compiler does not properly
5782     # handle `-M -o', and we need to detect this.
5783     if depmode=$depmode \
5784        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5785        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5786        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5787          >/dev/null 2>conftest.err &&
5788        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5789        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5790        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5791        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5792       # icc doesn't choke on unknown options, it will just issue warnings
5793       # or remarks (even with -Werror).  So we grep stderr for any message
5794       # that says an option was ignored or not supported.
5795       # When given -MP, icc 7.0 and 7.1 complain thusly:
5796       #   icc: Command line warning: ignoring option '-M'; no argument required
5797       # The diagnosis changed in icc 8.0:
5798       #   icc: Command line remark: option '-MP' not supported
5799       if (grep 'ignoring option' conftest.err ||
5800           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5801         am_cv_CC_dependencies_compiler_type=$depmode
5802         break
5803       fi
5804     fi
5805   done
5806
5807   cd ..
5808   rm -rf conftest.dir
5809 else
5810   am_cv_CC_dependencies_compiler_type=none
5811 fi
5812
5813 fi
5814 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5815 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5817
5818  if
5819   test "x$enable_dependency_tracking" != xno \
5820   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5821   am__fastdepCC_TRUE=
5822   am__fastdepCC_FALSE='#'
5823 else
5824   am__fastdepCC_TRUE='#'
5825   am__fastdepCC_FALSE=
5826 fi
5827
5828
5829 ac_ext=c
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5835 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5836 # On Suns, sometimes $CPP names a directory.
5837 if test -n "$CPP" && test -d "$CPP"; then
5838   CPP=
5839 fi
5840 if test -z "$CPP"; then
5841   if test "${ac_cv_prog_CPP+set}" = set; then
5842   $as_echo_n "(cached) " >&6
5843 else
5844       # Double quotes because CPP needs to be expanded
5845     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5846     do
5847       ac_preproc_ok=false
5848 for ac_c_preproc_warn_flag in '' yes
5849 do
5850   # Use a header file that comes with gcc, so configuring glibc
5851   # with a fresh cross-compiler works.
5852   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853   # <limits.h> exists even on freestanding compilers.
5854   # On the NeXT, cc -E runs the code through the compiler's parser,
5855   # not just through cpp. "Syntax error" is here to catch this case.
5856   cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h.  */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h.  */
5862 #ifdef __STDC__
5863 # include <limits.h>
5864 #else
5865 # include <assert.h>
5866 #endif
5867                      Syntax error
5868 _ACEOF
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } >/dev/null && {
5883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884          test ! -s conftest.err
5885        }; then
5886   :
5887 else
5888   $as_echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891   # Broken: fails on valid input.
5892 continue
5893 fi
5894
5895 rm -f conftest.err conftest.$ac_ext
5896
5897   # OK, works on sane cases.  Now check whether nonexistent headers
5898   # can be detected and how.
5899   cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 #include <ac_nonexistent.h>
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910   *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } >/dev/null && {
5921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5922          test ! -s conftest.err
5923        }; then
5924   # Broken: success on invalid input.
5925 continue
5926 else
5927   $as_echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930   # Passes both tests.
5931 ac_preproc_ok=:
5932 break
5933 fi
5934
5935 rm -f conftest.err conftest.$ac_ext
5936
5937 done
5938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5939 rm -f conftest.err conftest.$ac_ext
5940 if $ac_preproc_ok; then
5941   break
5942 fi
5943
5944     done
5945     ac_cv_prog_CPP=$CPP
5946
5947 fi
5948   CPP=$ac_cv_prog_CPP
5949 else
5950   ac_cv_prog_CPP=$CPP
5951 fi
5952 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5953 $as_echo "$CPP" >&6; }
5954 ac_preproc_ok=false
5955 for ac_c_preproc_warn_flag in '' yes
5956 do
5957   # Use a header file that comes with gcc, so configuring glibc
5958   # with a fresh cross-compiler works.
5959   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960   # <limits.h> exists even on freestanding compilers.
5961   # On the NeXT, cc -E runs the code through the compiler's parser,
5962   # not just through cpp. "Syntax error" is here to catch this case.
5963   cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5974                      Syntax error
5975 _ACEOF
5976 if { (ac_try="$ac_cpp conftest.$ac_ext"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982 $as_echo "$ac_try_echo") >&5
5983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } >/dev/null && {
5990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5991          test ! -s conftest.err
5992        }; then
5993   :
5994 else
5995   $as_echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998   # Broken: fails on valid input.
5999 continue
6000 fi
6001
6002 rm -f conftest.err conftest.$ac_ext
6003
6004   # OK, works on sane cases.  Now check whether nonexistent headers
6005   # can be detected and how.
6006   cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h.  */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h.  */
6012 #include <ac_nonexistent.h>
6013 _ACEOF
6014 if { (ac_try="$ac_cpp conftest.$ac_ext"
6015 case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022   ac_status=$?
6023   grep -v '^ *+' conftest.er1 >conftest.err
6024   rm -f conftest.er1
6025   cat conftest.err >&5
6026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } >/dev/null && {
6028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6029          test ! -s conftest.err
6030        }; then
6031   # Broken: success on invalid input.
6032 continue
6033 else
6034   $as_echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037   # Passes both tests.
6038 ac_preproc_ok=:
6039 break
6040 fi
6041
6042 rm -f conftest.err conftest.$ac_ext
6043
6044 done
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.err conftest.$ac_ext
6047 if $ac_preproc_ok; then
6048   :
6049 else
6050   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." >&5
6054 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055 See \`config.log' for more details." >&2;}
6056    { (exit 1); exit 1; }; }; }
6057 fi
6058
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065 # Find a good install program.  We prefer a C program (faster),
6066 # so one script is as good as another.  But avoid the broken or
6067 # incompatible versions:
6068 # SysV /etc/install, /usr/sbin/install
6069 # SunOS /usr/etc/install
6070 # IRIX /sbin/install
6071 # AIX /bin/install
6072 # AmigaOS /C/install, which installs bootblocks on floppy discs
6073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6076 # OS/2's system install, which has a completely different semantic
6077 # ./install, which can be erroneously created by make from ./install.sh.
6078 # Reject install programs that cannot install multiple files.
6079 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6080 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6081 if test -z "$INSTALL"; then
6082 if test "${ac_cv_path_install+set}" = set; then
6083   $as_echo_n "(cached) " >&6
6084 else
6085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090   # Account for people who put trailing slashes in PATH elements.
6091 case $as_dir/ in
6092   ./ | .// | /cC/* | \
6093   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6094   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6095   /usr/ucb/* ) ;;
6096   *)
6097     # OSF1 and SCO ODT 3.0 have their own names for install.
6098     # Don't use installbsd from OSF since it installs stuff as root
6099     # by default.
6100     for ac_prog in ginstall scoinst install; do
6101       for ac_exec_ext in '' $ac_executable_extensions; do
6102         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6103           if test $ac_prog = install &&
6104             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6105             # AIX install.  It has an incompatible calling convention.
6106             :
6107           elif test $ac_prog = install &&
6108             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6109             # program-specific install script used by HP pwplus--don't use.
6110             :
6111           else
6112             rm -rf conftest.one conftest.two conftest.dir
6113             echo one > conftest.one
6114             echo two > conftest.two
6115             mkdir conftest.dir
6116             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6117               test -s conftest.one && test -s conftest.two &&
6118               test -s conftest.dir/conftest.one &&
6119               test -s conftest.dir/conftest.two
6120             then
6121               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6122               break 3
6123             fi
6124           fi
6125         fi
6126       done
6127     done
6128     ;;
6129 esac
6130
6131 done
6132 IFS=$as_save_IFS
6133
6134 rm -rf conftest.one conftest.two conftest.dir
6135
6136 fi
6137   if test "${ac_cv_path_install+set}" = set; then
6138     INSTALL=$ac_cv_path_install
6139   else
6140     # As a last resort, use the slow shell script.  Don't cache a
6141     # value for INSTALL within a source directory, because that will
6142     # break other packages using the cache if that directory is
6143     # removed, or if the value is a relative name.
6144     INSTALL=$ac_install_sh
6145   fi
6146 fi
6147 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6148 $as_echo "$INSTALL" >&6; }
6149
6150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6151 # It thinks the first close brace ends the variable substitution.
6152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6153
6154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6155
6156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6157
6158 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6159 $as_echo_n "checking whether ln -s works... " >&6; }
6160 LN_S=$as_ln_s
6161 if test "$LN_S" = "ln -s"; then
6162   { $as_echo "$as_me:$LINENO: result: yes" >&5
6163 $as_echo "yes" >&6; }
6164 else
6165   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6166 $as_echo "no, using $LN_S" >&6; }
6167 fi
6168
6169 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6170 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6171 set x ${MAKE-make}
6172 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6173 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6174   $as_echo_n "(cached) " >&6
6175 else
6176   cat >conftest.make <<\_ACEOF
6177 SHELL = /bin/sh
6178 all:
6179         @echo '@@@%%%=$(MAKE)=@@@%%%'
6180 _ACEOF
6181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6182 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6183   *@@@%%%=?*=@@@%%%*)
6184     eval ac_cv_prog_make_${ac_make}_set=yes;;
6185   *)
6186     eval ac_cv_prog_make_${ac_make}_set=no;;
6187 esac
6188 rm -f conftest.make
6189 fi
6190 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6191   { $as_echo "$as_me:$LINENO: result: yes" >&5
6192 $as_echo "yes" >&6; }
6193   SET_MAKE=
6194 else
6195   { $as_echo "$as_me:$LINENO: result: no" >&5
6196 $as_echo "no" >&6; }
6197   SET_MAKE="MAKE=${MAKE-make}"
6198 fi
6199
6200 # Check whether --enable-shared was given.
6201 if test "${enable_shared+set}" = set; then
6202   enableval=$enable_shared; p=${PACKAGE-default}
6203     case $enableval in
6204     yes) enable_shared=yes ;;
6205     no) enable_shared=no ;;
6206     *)
6207       enable_shared=no
6208       # Look at the argument we got.  We use all the common list separators.
6209       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6210       for pkg in $enableval; do
6211         IFS="$lt_save_ifs"
6212         if test "X$pkg" = "X$p"; then
6213           enable_shared=yes
6214         fi
6215       done
6216       IFS="$lt_save_ifs"
6217       ;;
6218     esac
6219 else
6220   enable_shared=yes
6221 fi
6222
6223
6224 # Check whether --enable-static was given.
6225 if test "${enable_static+set}" = set; then
6226   enableval=$enable_static; p=${PACKAGE-default}
6227     case $enableval in
6228     yes) enable_static=yes ;;
6229     no) enable_static=no ;;
6230     *)
6231      enable_static=no
6232       # Look at the argument we got.  We use all the common list separators.
6233       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6234       for pkg in $enableval; do
6235         IFS="$lt_save_ifs"
6236         if test "X$pkg" = "X$p"; then
6237           enable_static=yes
6238         fi
6239       done
6240       IFS="$lt_save_ifs"
6241       ;;
6242     esac
6243 else
6244   enable_static=yes
6245 fi
6246
6247
6248 # Check whether --enable-fast-install was given.
6249 if test "${enable_fast_install+set}" = set; then
6250   enableval=$enable_fast_install; p=${PACKAGE-default}
6251     case $enableval in
6252     yes) enable_fast_install=yes ;;
6253     no) enable_fast_install=no ;;
6254     *)
6255       enable_fast_install=no
6256       # Look at the argument we got.  We use all the common list separators.
6257       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6258       for pkg in $enableval; do
6259         IFS="$lt_save_ifs"
6260         if test "X$pkg" = "X$p"; then
6261           enable_fast_install=yes
6262         fi
6263       done
6264       IFS="$lt_save_ifs"
6265       ;;
6266     esac
6267 else
6268   enable_fast_install=yes
6269 fi
6270
6271
6272 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6273 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6274 if test "${lt_cv_path_SED+set}" = set; then
6275   $as_echo_n "(cached) " >&6
6276 else
6277   # Loop through the user's path and test for sed and gsed.
6278 # Then use that list of sed's as ones to test for truncation.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for lt_ac_prog in sed gsed; do
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6287         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6288       fi
6289     done
6290   done
6291 done
6292 IFS=$as_save_IFS
6293 lt_ac_max=0
6294 lt_ac_count=0
6295 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6296 # along with /bin/sed that truncates output.
6297 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6298   test ! -f $lt_ac_sed && continue
6299   cat /dev/null > conftest.in
6300   lt_ac_count=0
6301   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6302   # Check for GNU sed and select it if it is found.
6303   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6304     lt_cv_path_SED=$lt_ac_sed
6305     break
6306   fi
6307   while true; do
6308     cat conftest.in conftest.in >conftest.tmp
6309     mv conftest.tmp conftest.in
6310     cp conftest.in conftest.nl
6311     echo >>conftest.nl
6312     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6313     cmp -s conftest.out conftest.nl || break
6314     # 10000 chars as input seems more than enough
6315     test $lt_ac_count -gt 10 && break
6316     lt_ac_count=`expr $lt_ac_count + 1`
6317     if test $lt_ac_count -gt $lt_ac_max; then
6318       lt_ac_max=$lt_ac_count
6319       lt_cv_path_SED=$lt_ac_sed
6320     fi
6321   done
6322 done
6323
6324 fi
6325
6326 SED=$lt_cv_path_SED
6327
6328 { $as_echo "$as_me:$LINENO: result: $SED" >&5
6329 $as_echo "$SED" >&6; }
6330
6331 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6333 if test "${ac_cv_path_GREP+set}" = set; then
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -z "$GREP"; then
6337   ac_path_GREP_found=false
6338   # Loop through the user's path and test for each of PROGNAME-LIST
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_prog in grep ggrep; do
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6347       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6348 # Check for GNU ac_path_GREP and select it if it is found.
6349   # Check for GNU $ac_path_GREP
6350 case `"$ac_path_GREP" --version 2>&1` in
6351 *GNU*)
6352   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6353 *)
6354   ac_count=0
6355   $as_echo_n 0123456789 >"conftest.in"
6356   while :
6357   do
6358     cat "conftest.in" "conftest.in" >"conftest.tmp"
6359     mv "conftest.tmp" "conftest.in"
6360     cp "conftest.in" "conftest.nl"
6361     $as_echo 'GREP' >> "conftest.nl"
6362     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6363     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6364     ac_count=`expr $ac_count + 1`
6365     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6366       # Best one so far, save it but keep looking for a better one
6367       ac_cv_path_GREP="$ac_path_GREP"
6368       ac_path_GREP_max=$ac_count
6369     fi
6370     # 10*(2^10) chars as input seems more than enough
6371     test $ac_count -gt 10 && break
6372   done
6373   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6374 esac
6375
6376       $ac_path_GREP_found && break 3
6377     done
6378   done
6379 done
6380 IFS=$as_save_IFS
6381   if test -z "$ac_cv_path_GREP"; then
6382     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6383 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6384    { (exit 1); exit 1; }; }
6385   fi
6386 else
6387   ac_cv_path_GREP=$GREP
6388 fi
6389
6390 fi
6391 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6392 $as_echo "$ac_cv_path_GREP" >&6; }
6393  GREP="$ac_cv_path_GREP"
6394
6395
6396 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6397 $as_echo_n "checking for egrep... " >&6; }
6398 if test "${ac_cv_path_EGREP+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6402    then ac_cv_path_EGREP="$GREP -E"
6403    else
6404      if test -z "$EGREP"; then
6405   ac_path_EGREP_found=false
6406   # Loop through the user's path and test for each of PROGNAME-LIST
6407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_prog in egrep; do
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6415       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6416 # Check for GNU ac_path_EGREP and select it if it is found.
6417   # Check for GNU $ac_path_EGREP
6418 case `"$ac_path_EGREP" --version 2>&1` in
6419 *GNU*)
6420   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6421 *)
6422   ac_count=0
6423   $as_echo_n 0123456789 >"conftest.in"
6424   while :
6425   do
6426     cat "conftest.in" "conftest.in" >"conftest.tmp"
6427     mv "conftest.tmp" "conftest.in"
6428     cp "conftest.in" "conftest.nl"
6429     $as_echo 'EGREP' >> "conftest.nl"
6430     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6431     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6432     ac_count=`expr $ac_count + 1`
6433     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6434       # Best one so far, save it but keep looking for a better one
6435       ac_cv_path_EGREP="$ac_path_EGREP"
6436       ac_path_EGREP_max=$ac_count
6437     fi
6438     # 10*(2^10) chars as input seems more than enough
6439     test $ac_count -gt 10 && break
6440   done
6441   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6442 esac
6443
6444       $ac_path_EGREP_found && break 3
6445     done
6446   done
6447 done
6448 IFS=$as_save_IFS
6449   if test -z "$ac_cv_path_EGREP"; then
6450     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6451 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6452    { (exit 1); exit 1; }; }
6453   fi
6454 else
6455   ac_cv_path_EGREP=$EGREP
6456 fi
6457
6458    fi
6459 fi
6460 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6461 $as_echo "$ac_cv_path_EGREP" >&6; }
6462  EGREP="$ac_cv_path_EGREP"
6463
6464
6465
6466 # Check whether --with-gnu-ld was given.
6467 if test "${with_gnu_ld+set}" = set; then
6468   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6469 else
6470   with_gnu_ld=no
6471 fi
6472
6473 ac_prog=ld
6474 if test "$GCC" = yes; then
6475   # Check if gcc -print-prog-name=ld gives a path.
6476   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6477 $as_echo_n "checking for ld used by $CC... " >&6; }
6478   case $host in
6479   *-*-mingw*)
6480     # gcc leaves a trailing carriage return which upsets mingw
6481     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6482   *)
6483     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6484   esac
6485   case $ac_prog in
6486     # Accept absolute paths.
6487     [\\/]* | ?:[\\/]*)
6488       re_direlt='/[^/][^/]*/\.\./'
6489       # Canonicalize the pathname of ld
6490       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6491       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6492         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6493       done
6494       test -z "$LD" && LD="$ac_prog"
6495       ;;
6496   "")
6497     # If it fails, then pretend we aren't using GCC.
6498     ac_prog=ld
6499     ;;
6500   *)
6501     # If it is relative, then search for the first ld in PATH.
6502     with_gnu_ld=unknown
6503     ;;
6504   esac
6505 elif test "$with_gnu_ld" = yes; then
6506   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6507 $as_echo_n "checking for GNU ld... " >&6; }
6508 else
6509   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6510 $as_echo_n "checking for non-GNU ld... " >&6; }
6511 fi
6512 if test "${lt_cv_path_LD+set}" = set; then
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if test -z "$LD"; then
6516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517   for ac_dir in $PATH; do
6518     IFS="$lt_save_ifs"
6519     test -z "$ac_dir" && ac_dir=.
6520     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6521       lt_cv_path_LD="$ac_dir/$ac_prog"
6522       # Check to see if the program is GNU ld.  I'd rather use --version,
6523       # but apparently some variants of GNU ld only accept -v.
6524       # Break only if it was the GNU/non-GNU ld that we prefer.
6525       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6526       *GNU* | *'with BFD'*)
6527         test "$with_gnu_ld" != no && break
6528         ;;
6529       *)
6530         test "$with_gnu_ld" != yes && break
6531         ;;
6532       esac
6533     fi
6534   done
6535   IFS="$lt_save_ifs"
6536 else
6537   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6538 fi
6539 fi
6540
6541 LD="$lt_cv_path_LD"
6542 if test -n "$LD"; then
6543   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6544 $as_echo "$LD" >&6; }
6545 else
6546   { $as_echo "$as_me:$LINENO: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6550 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6551    { (exit 1); exit 1; }; }
6552 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6554 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6555   $as_echo_n "(cached) " >&6
6556 else
6557   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6558 case `$LD -v 2>&1 </dev/null` in
6559 *GNU* | *'with BFD'*)
6560   lt_cv_prog_gnu_ld=yes
6561   ;;
6562 *)
6563   lt_cv_prog_gnu_ld=no
6564   ;;
6565 esac
6566 fi
6567 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6569 with_gnu_ld=$lt_cv_prog_gnu_ld
6570
6571
6572 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6573 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6574 if test "${lt_cv_ld_reload_flag+set}" = set; then
6575   $as_echo_n "(cached) " >&6
6576 else
6577   lt_cv_ld_reload_flag='-r'
6578 fi
6579 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6580 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6581 reload_flag=$lt_cv_ld_reload_flag
6582 case $reload_flag in
6583 "" | " "*) ;;
6584 *) reload_flag=" $reload_flag" ;;
6585 esac
6586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6587 case $host_os in
6588   darwin*)
6589     if test "$GCC" = yes; then
6590       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6591     else
6592       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6593     fi
6594     ;;
6595 esac
6596
6597 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6598 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6599 if test "${lt_cv_path_NM+set}" = set; then
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$NM"; then
6603   # Let the user override the test.
6604   lt_cv_path_NM="$NM"
6605 else
6606   lt_nm_to_check="${ac_tool_prefix}nm"
6607   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6608     lt_nm_to_check="$lt_nm_to_check nm"
6609   fi
6610   for lt_tmp_nm in $lt_nm_to_check; do
6611     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6613       IFS="$lt_save_ifs"
6614       test -z "$ac_dir" && ac_dir=.
6615       tmp_nm="$ac_dir/$lt_tmp_nm"
6616       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6617         # Check to see if the nm accepts a BSD-compat flag.
6618         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6619         #   nm: unknown option "B" ignored
6620         # Tru64's nm complains that /dev/null is an invalid object file
6621         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6622         */dev/null* | *'Invalid file or object type'*)
6623           lt_cv_path_NM="$tmp_nm -B"
6624           break
6625           ;;
6626         *)
6627           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6628           */dev/null*)
6629             lt_cv_path_NM="$tmp_nm -p"
6630             break
6631             ;;
6632           *)
6633             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6634             continue # so that we can try to find one that supports BSD flags
6635             ;;
6636           esac
6637           ;;
6638         esac
6639       fi
6640     done
6641     IFS="$lt_save_ifs"
6642   done
6643   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6644 fi
6645 fi
6646 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6647 $as_echo "$lt_cv_path_NM" >&6; }
6648 NM="$lt_cv_path_NM"
6649
6650 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6651 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6652 if test "${lt_cv_deplibs_check_method+set}" = set; then
6653   $as_echo_n "(cached) " >&6
6654 else
6655   lt_cv_file_magic_cmd='$MAGIC_CMD'
6656 lt_cv_file_magic_test_file=
6657 lt_cv_deplibs_check_method='unknown'
6658 # Need to set the preceding variable on all platforms that support
6659 # interlibrary dependencies.
6660 # 'none' -- dependencies not supported.
6661 # `unknown' -- same as none, but documents that we really don't know.
6662 # 'pass_all' -- all dependencies passed with no checks.
6663 # 'test_compile' -- check by making test program.
6664 # 'file_magic [[regex]]' -- check by looking for files in library path
6665 # which responds to the $file_magic_cmd with a given extended regex.
6666 # If you have `file' or equivalent on your system and you're not sure
6667 # whether `pass_all' will *always* work, you probably want this one.
6668
6669 case $host_os in
6670 aix[4-9]*)
6671   lt_cv_deplibs_check_method=pass_all
6672   ;;
6673
6674 beos*)
6675   lt_cv_deplibs_check_method=pass_all
6676   ;;
6677
6678 bsdi[45]*)
6679   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6680   lt_cv_file_magic_cmd='/usr/bin/file -L'
6681   lt_cv_file_magic_test_file=/shlib/libc.so
6682   ;;
6683
6684 cygwin*)
6685   # func_win32_libid is a shell function defined in ltmain.sh
6686   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6687   lt_cv_file_magic_cmd='func_win32_libid'
6688   ;;
6689
6690 mingw* | pw32*)
6691   # Base MSYS/MinGW do not provide the 'file' command needed by
6692   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6693   # unless we find 'file', for example because we are cross-compiling.
6694   if ( file / ) >/dev/null 2>&1; then
6695     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6696     lt_cv_file_magic_cmd='func_win32_libid'
6697   else
6698     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6699     lt_cv_file_magic_cmd='$OBJDUMP -f'
6700   fi
6701   ;;
6702
6703 darwin* | rhapsody*)
6704   lt_cv_deplibs_check_method=pass_all
6705   ;;
6706
6707 freebsd* | dragonfly*)
6708   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6709     case $host_cpu in
6710     i*86 )
6711       # Not sure whether the presence of OpenBSD here was a mistake.
6712       # Let's accept both of them until this is cleared up.
6713       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6714       lt_cv_file_magic_cmd=/usr/bin/file
6715       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6716       ;;
6717     esac
6718   else
6719     lt_cv_deplibs_check_method=pass_all
6720   fi
6721   ;;
6722
6723 gnu*)
6724   lt_cv_deplibs_check_method=pass_all
6725   ;;
6726
6727 hpux10.20* | hpux11*)
6728   lt_cv_file_magic_cmd=/usr/bin/file
6729   case $host_cpu in
6730   ia64*)
6731     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6732     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6733     ;;
6734   hppa*64*)
6735     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]'
6736     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6737     ;;
6738   *)
6739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6740     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6741     ;;
6742   esac
6743   ;;
6744
6745 interix[3-9]*)
6746   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6747   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6748   ;;
6749
6750 irix5* | irix6* | nonstopux*)
6751   case $LD in
6752   *-32|*"-32 ") libmagic=32-bit;;
6753   *-n32|*"-n32 ") libmagic=N32;;
6754   *-64|*"-64 ") libmagic=64-bit;;
6755   *) libmagic=never-match;;
6756   esac
6757   lt_cv_deplibs_check_method=pass_all
6758   ;;
6759
6760 # This must be Linux ELF.
6761 linux* | k*bsd*-gnu)
6762   lt_cv_deplibs_check_method=pass_all
6763   ;;
6764
6765 netbsd*)
6766   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6767     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6768   else
6769     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6770   fi
6771   ;;
6772
6773 newos6*)
6774   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6775   lt_cv_file_magic_cmd=/usr/bin/file
6776   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6777   ;;
6778
6779 nto-qnx*)
6780   lt_cv_deplibs_check_method=unknown
6781   ;;
6782
6783 openbsd*)
6784   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6786   else
6787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6788   fi
6789   ;;
6790
6791 osf3* | osf4* | osf5*)
6792   lt_cv_deplibs_check_method=pass_all
6793   ;;
6794
6795 rdos*)
6796   lt_cv_deplibs_check_method=pass_all
6797   ;;
6798
6799 solaris*)
6800   lt_cv_deplibs_check_method=pass_all
6801   ;;
6802
6803 sysv4 | sysv4.3*)
6804   case $host_vendor in
6805   motorola)
6806     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]'
6807     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6808     ;;
6809   ncr)
6810     lt_cv_deplibs_check_method=pass_all
6811     ;;
6812   sequent)
6813     lt_cv_file_magic_cmd='/bin/file'
6814     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6815     ;;
6816   sni)
6817     lt_cv_file_magic_cmd='/bin/file'
6818     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6819     lt_cv_file_magic_test_file=/lib/libc.so
6820     ;;
6821   siemens)
6822     lt_cv_deplibs_check_method=pass_all
6823     ;;
6824   pc)
6825     lt_cv_deplibs_check_method=pass_all
6826     ;;
6827   esac
6828   ;;
6829
6830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6831   lt_cv_deplibs_check_method=pass_all
6832   ;;
6833 esac
6834
6835 fi
6836 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6837 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6838 file_magic_cmd=$lt_cv_file_magic_cmd
6839 deplibs_check_method=$lt_cv_deplibs_check_method
6840 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6841
6842
6843
6844
6845 # If no C compiler was specified, use CC.
6846 LTCC=${LTCC-"$CC"}
6847
6848 # If no C compiler flags were specified, use CFLAGS.
6849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6850
6851 # Allow CC to be a program name with arguments.
6852 compiler=$CC
6853
6854 # Check whether --enable-libtool-lock was given.
6855 if test "${enable_libtool_lock+set}" = set; then
6856   enableval=$enable_libtool_lock;
6857 fi
6858
6859 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6860
6861 # Some flags need to be propagated to the compiler or linker for good
6862 # libtool support.
6863 case $host in
6864 ia64-*-hpux*)
6865   # Find out which ABI we are using.
6866   echo 'int i;' > conftest.$ac_ext
6867   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868   (eval $ac_compile) 2>&5
6869   ac_status=$?
6870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; then
6872     case `/usr/bin/file conftest.$ac_objext` in
6873     *ELF-32*)
6874       HPUX_IA64_MODE="32"
6875       ;;
6876     *ELF-64*)
6877       HPUX_IA64_MODE="64"
6878       ;;
6879     esac
6880   fi
6881   rm -rf conftest*
6882   ;;
6883 *-*-irix6*)
6884   # Find out which ABI we are using.
6885   echo '#line 6885 "configure"' > conftest.$ac_ext
6886   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; then
6891    if test "$lt_cv_prog_gnu_ld" = yes; then
6892     case `/usr/bin/file conftest.$ac_objext` in
6893     *32-bit*)
6894       LD="${LD-ld} -melf32bsmip"
6895       ;;
6896     *N32*)
6897       LD="${LD-ld} -melf32bmipn32"
6898       ;;
6899     *64-bit*)
6900       LD="${LD-ld} -melf64bmip"
6901       ;;
6902     esac
6903    else
6904     case `/usr/bin/file conftest.$ac_objext` in
6905     *32-bit*)
6906       LD="${LD-ld} -32"
6907       ;;
6908     *N32*)
6909       LD="${LD-ld} -n32"
6910       ;;
6911     *64-bit*)
6912       LD="${LD-ld} -64"
6913       ;;
6914     esac
6915    fi
6916   fi
6917   rm -rf conftest*
6918   ;;
6919
6920 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921 s390*-*linux*|sparc*-*linux*)
6922   # Find out which ABI we are using.
6923   echo 'int i;' > conftest.$ac_ext
6924   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925   (eval $ac_compile) 2>&5
6926   ac_status=$?
6927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; then
6929     case `/usr/bin/file conftest.o` in
6930     *32-bit*)
6931       case $host in
6932         x86_64-*kfreebsd*-gnu)
6933           LD="${LD-ld} -m elf_i386_fbsd"
6934           ;;
6935         x86_64-*linux*)
6936           LD="${LD-ld} -m elf_i386"
6937           ;;
6938         ppc64-*linux*|powerpc64-*linux*)
6939           LD="${LD-ld} -m elf32ppclinux"
6940           ;;
6941         s390x-*linux*)
6942           LD="${LD-ld} -m elf_s390"
6943           ;;
6944         sparc64-*linux*)
6945           LD="${LD-ld} -m elf32_sparc"
6946           ;;
6947       esac
6948       ;;
6949     *64-bit*)
6950       libsuff=64
6951       case $host in
6952         x86_64-*kfreebsd*-gnu)
6953           LD="${LD-ld} -m elf_x86_64_fbsd"
6954           ;;
6955         x86_64-*linux*)
6956           LD="${LD-ld} -m elf_x86_64"
6957           ;;
6958         ppc*-*linux*|powerpc*-*linux*)
6959           LD="${LD-ld} -m elf64ppc"
6960           ;;
6961         s390*-*linux*)
6962           LD="${LD-ld} -m elf64_s390"
6963           ;;
6964         sparc*-*linux*)
6965           LD="${LD-ld} -m elf64_sparc"
6966           ;;
6967       esac
6968       ;;
6969     esac
6970   fi
6971   rm -rf conftest*
6972   ;;
6973
6974 *-*-sco3.2v5*)
6975   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976   SAVE_CFLAGS="$CFLAGS"
6977   CFLAGS="$CFLAGS -belf"
6978   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6979 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6980 if test "${lt_cv_cc_needs_belf+set}" = set; then
6981   $as_echo_n "(cached) " >&6
6982 else
6983   ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989      cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995
6996 int
6997 main ()
6998 {
6999
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (ac_try="$ac_link"
7006 case "(($ac_try" in
7007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008   *) ac_try_echo=$ac_try;;
7009 esac
7010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7011 $as_echo "$ac_try_echo") >&5
7012   (eval "$ac_link") 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && {
7019          test -z "$ac_c_werror_flag" ||
7020          test ! -s conftest.err
7021        } && test -s conftest$ac_exeext && {
7022          test "$cross_compiling" = yes ||
7023          $as_test_x conftest$ac_exeext
7024        }; then
7025   lt_cv_cc_needs_belf=yes
7026 else
7027   $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030         lt_cv_cc_needs_belf=no
7031 fi
7032
7033 rm -rf conftest.dSYM
7034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035       conftest$ac_exeext conftest.$ac_ext
7036      ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042 fi
7043 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7044 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7045   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7046     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7047     CFLAGS="$SAVE_CFLAGS"
7048   fi
7049   ;;
7050 sparc*-*solaris*)
7051   # Find out which ABI we are using.
7052   echo 'int i;' > conftest.$ac_ext
7053   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054   (eval $ac_compile) 2>&5
7055   ac_status=$?
7056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; then
7058     case `/usr/bin/file conftest.o` in
7059     *64-bit*)
7060       case $lt_cv_prog_gnu_ld in
7061       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7062       *)
7063         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064           LD="${LD-ld} -64"
7065         fi
7066         ;;
7067       esac
7068       ;;
7069     esac
7070   fi
7071   rm -rf conftest*
7072   ;;
7073
7074
7075 esac
7076
7077 need_locks="$enable_libtool_lock"
7078
7079
7080
7081 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7082 $as_echo_n "checking for ANSI C header files... " >&6; }
7083 if test "${ac_cv_header_stdc+set}" = set; then
7084   $as_echo_n "(cached) " >&6
7085 else
7086   cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h.  */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h.  */
7092 #include <stdlib.h>
7093 #include <stdarg.h>
7094 #include <string.h>
7095 #include <float.h>
7096
7097 int
7098 main ()
7099 {
7100
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (ac_try="$ac_compile"
7107 case "(($ac_try" in
7108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109   *) ac_try_echo=$ac_try;;
7110 esac
7111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7112 $as_echo "$ac_try_echo") >&5
7113   (eval "$ac_compile") 2>conftest.er1
7114   ac_status=$?
7115   grep -v '^ *+' conftest.er1 >conftest.err
7116   rm -f conftest.er1
7117   cat conftest.err >&5
7118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); } && {
7120          test -z "$ac_c_werror_flag" ||
7121          test ! -s conftest.err
7122        } && test -s conftest.$ac_objext; then
7123   ac_cv_header_stdc=yes
7124 else
7125   $as_echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7127
7128         ac_cv_header_stdc=no
7129 fi
7130
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132
7133 if test $ac_cv_header_stdc = yes; then
7134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7135   cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141 #include <string.h>
7142
7143 _ACEOF
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145   $EGREP "memchr" >/dev/null 2>&1; then
7146   :
7147 else
7148   ac_cv_header_stdc=no
7149 fi
7150 rm -f conftest*
7151
7152 fi
7153
7154 if test $ac_cv_header_stdc = yes; then
7155   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7156   cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h.  */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h.  */
7162 #include <stdlib.h>
7163
7164 _ACEOF
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166   $EGREP "free" >/dev/null 2>&1; then
7167   :
7168 else
7169   ac_cv_header_stdc=no
7170 fi
7171 rm -f conftest*
7172
7173 fi
7174
7175 if test $ac_cv_header_stdc = yes; then
7176   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7177   if test "$cross_compiling" = yes; then
7178   :
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 #include <ctype.h>
7187 #include <stdlib.h>
7188 #if ((' ' & 0x0FF) == 0x020)
7189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191 #else
7192 # define ISLOWER(c) \
7193                    (('a' <= (c) && (c) <= 'i') \
7194                      || ('j' <= (c) && (c) <= 'r') \
7195                      || ('s' <= (c) && (c) <= 'z'))
7196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197 #endif
7198
7199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7200 int
7201 main ()
7202 {
7203   int i;
7204   for (i = 0; i < 256; i++)
7205     if (XOR (islower (i), ISLOWER (i))
7206         || toupper (i) != TOUPPER (i))
7207       return 2;
7208   return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest$ac_exeext
7212 if { (ac_try="$ac_link"
7213 case "(($ac_try" in
7214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215   *) ac_try_echo=$ac_try;;
7216 esac
7217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7218 $as_echo "$ac_try_echo") >&5
7219   (eval "$ac_link") 2>&5
7220   ac_status=$?
7221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223   { (case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228 $as_echo "$ac_try_echo") >&5
7229   (eval "$ac_try") 2>&5
7230   ac_status=$?
7231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; }; then
7233   :
7234 else
7235   $as_echo "$as_me: program exited with status $ac_status" >&5
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ( exit $ac_status )
7240 ac_cv_header_stdc=no
7241 fi
7242 rm -rf conftest.dSYM
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7244 fi
7245
7246
7247 fi
7248 fi
7249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7250 $as_echo "$ac_cv_header_stdc" >&6; }
7251 if test $ac_cv_header_stdc = yes; then
7252
7253 cat >>confdefs.h <<\_ACEOF
7254 #define STDC_HEADERS 1
7255 _ACEOF
7256
7257 fi
7258
7259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7270                   inttypes.h stdint.h unistd.h
7271 do
7272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7273 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 $as_echo_n "checking for $ac_header... " >&6; }
7275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7276   $as_echo_n "(cached) " >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 $ac_includes_default
7285
7286 #include <$ac_header>
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292   *) ac_try_echo=$ac_try;;
7293 esac
7294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7295 $as_echo "$ac_try_echo") >&5
7296   (eval "$ac_compile") 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } && {
7303          test -z "$ac_c_werror_flag" ||
7304          test ! -s conftest.err
7305        } && test -s conftest.$ac_objext; then
7306   eval "$as_ac_Header=yes"
7307 else
7308   $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311         eval "$as_ac_Header=no"
7312 fi
7313
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 ac_res=`eval 'as_val=${'$as_ac_Header'}
7317                  $as_echo "$as_val"'`
7318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7319 $as_echo "$ac_res" >&6; }
7320 as_val=`eval 'as_val=${'$as_ac_Header'}
7321                  $as_echo "$as_val"'`
7322    if test "x$as_val" = x""yes; then
7323   cat >>confdefs.h <<_ACEOF
7324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7325 _ACEOF
7326
7327 fi
7328
7329 done
7330
7331
7332
7333 for ac_header in dlfcn.h
7334 do
7335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7337   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 $as_echo_n "checking for $ac_header... " >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340   $as_echo_n "(cached) " >&6
7341 fi
7342 ac_res=`eval 'as_val=${'$as_ac_Header'}
7343                  $as_echo "$as_val"'`
7344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7345 $as_echo "$ac_res" >&6; }
7346 else
7347   # Is the header compilable?
7348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7349 $as_echo_n "checking $ac_header usability... " >&6; }
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356 $ac_includes_default
7357 #include <$ac_header>
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7361 case "(($ac_try" in
7362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363   *) ac_try_echo=$ac_try;;
7364 esac
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367   (eval "$ac_compile") 2>conftest.er1
7368   ac_status=$?
7369   grep -v '^ *+' conftest.er1 >conftest.err
7370   rm -f conftest.er1
7371   cat conftest.err >&5
7372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); } && {
7374          test -z "$ac_c_werror_flag" ||
7375          test ! -s conftest.err
7376        } && test -s conftest.$ac_objext; then
7377   ac_header_compiler=yes
7378 else
7379   $as_echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7381
7382         ac_header_compiler=no
7383 fi
7384
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7387 $as_echo "$ac_header_compiler" >&6; }
7388
7389 # Is the header present?
7390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7391 $as_echo_n "checking $ac_header presence... " >&6; }
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 #include <$ac_header>
7399 _ACEOF
7400 if { (ac_try="$ac_cpp conftest.$ac_ext"
7401 case "(($ac_try" in
7402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403   *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7408   ac_status=$?
7409   grep -v '^ *+' conftest.er1 >conftest.err
7410   rm -f conftest.er1
7411   cat conftest.err >&5
7412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } >/dev/null && {
7414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7415          test ! -s conftest.err
7416        }; then
7417   ac_header_preproc=yes
7418 else
7419   $as_echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422   ac_header_preproc=no
7423 fi
7424
7425 rm -f conftest.err conftest.$ac_ext
7426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7427 $as_echo "$ac_header_preproc" >&6; }
7428
7429 # So?  What about this header?
7430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7431   yes:no: )
7432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7436     ac_header_preproc=yes
7437     ;;
7438   no:yes:* )
7439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7442 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7446 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7451     ( cat <<\_ASBOX
7452 ## ---------------------------------------- ##
7453 ## Report this to linux-nfs@vger.kernel.org ##
7454 ## ---------------------------------------- ##
7455 _ASBOX
7456      ) | sed "s/^/$as_me: WARNING:     /" >&2
7457     ;;
7458 esac
7459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 $as_echo_n "checking for $ac_header... " >&6; }
7461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7462   $as_echo_n "(cached) " >&6
7463 else
7464   eval "$as_ac_Header=\$ac_header_preproc"
7465 fi
7466 ac_res=`eval 'as_val=${'$as_ac_Header'}
7467                  $as_echo "$as_val"'`
7468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7469 $as_echo "$ac_res" >&6; }
7470
7471 fi
7472 as_val=`eval 'as_val=${'$as_ac_Header'}
7473                  $as_echo "$as_val"'`
7474    if test "x$as_val" = x""yes; then
7475   cat >>confdefs.h <<_ACEOF
7476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477 _ACEOF
7478
7479 fi
7480
7481 done
7482
7483
7484
7485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7486     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7487     (test "X$CXX" != "Xg++"))) ; then
7488   ac_ext=cpp
7489 ac_cpp='$CXXCPP $CPPFLAGS'
7490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7493 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7494 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7495 if test -z "$CXXCPP"; then
7496   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7497   $as_echo_n "(cached) " >&6
7498 else
7499       # Double quotes because CXXCPP needs to be expanded
7500     for CXXCPP in "$CXX -E" "/lib/cpp"
7501     do
7502       ac_preproc_ok=false
7503 for ac_cxx_preproc_warn_flag in '' yes
7504 do
7505   # Use a header file that comes with gcc, so configuring glibc
7506   # with a fresh cross-compiler works.
7507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508   # <limits.h> exists even on freestanding compilers.
7509   # On the NeXT, cc -E runs the code through the compiler's parser,
7510   # not just through cpp. "Syntax error" is here to catch this case.
7511   cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522                      Syntax error
7523 _ACEOF
7524 if { (ac_try="$ac_cpp conftest.$ac_ext"
7525 case "(($ac_try" in
7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527   *) ac_try_echo=$ac_try;;
7528 esac
7529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530 $as_echo "$ac_try_echo") >&5
7531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7532   ac_status=$?
7533   grep -v '^ *+' conftest.er1 >conftest.err
7534   rm -f conftest.er1
7535   cat conftest.err >&5
7536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } >/dev/null && {
7538          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7539          test ! -s conftest.err
7540        }; then
7541   :
7542 else
7543   $as_echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546   # Broken: fails on valid input.
7547 continue
7548 fi
7549
7550 rm -f conftest.err conftest.$ac_ext
7551
7552   # OK, works on sane cases.  Now check whether nonexistent headers
7553   # can be detected and how.
7554   cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560 #include <ac_nonexistent.h>
7561 _ACEOF
7562 if { (ac_try="$ac_cpp conftest.$ac_ext"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } >/dev/null && {
7576          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7577          test ! -s conftest.err
7578        }; then
7579   # Broken: success on invalid input.
7580 continue
7581 else
7582   $as_echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585   # Passes both tests.
7586 ac_preproc_ok=:
7587 break
7588 fi
7589
7590 rm -f conftest.err conftest.$ac_ext
7591
7592 done
7593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7594 rm -f conftest.err conftest.$ac_ext
7595 if $ac_preproc_ok; then
7596   break
7597 fi
7598
7599     done
7600     ac_cv_prog_CXXCPP=$CXXCPP
7601
7602 fi
7603   CXXCPP=$ac_cv_prog_CXXCPP
7604 else
7605   ac_cv_prog_CXXCPP=$CXXCPP
7606 fi
7607 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7608 $as_echo "$CXXCPP" >&6; }
7609 ac_preproc_ok=false
7610 for ac_cxx_preproc_warn_flag in '' yes
7611 do
7612   # Use a header file that comes with gcc, so configuring glibc
7613   # with a fresh cross-compiler works.
7614   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7615   # <limits.h> exists even on freestanding compilers.
7616   # On the NeXT, cc -E runs the code through the compiler's parser,
7617   # not just through cpp. "Syntax error" is here to catch this case.
7618   cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624 #ifdef __STDC__
7625 # include <limits.h>
7626 #else
7627 # include <assert.h>
7628 #endif
7629                      Syntax error
7630 _ACEOF
7631 if { (ac_try="$ac_cpp conftest.$ac_ext"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7639   ac_status=$?
7640   grep -v '^ *+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } >/dev/null && {
7645          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7646          test ! -s conftest.err
7647        }; then
7648   :
7649 else
7650   $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653   # Broken: fails on valid input.
7654 continue
7655 fi
7656
7657 rm -f conftest.err conftest.$ac_ext
7658
7659   # OK, works on sane cases.  Now check whether nonexistent headers
7660   # can be detected and how.
7661   cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667 #include <ac_nonexistent.h>
7668 _ACEOF
7669 if { (ac_try="$ac_cpp conftest.$ac_ext"
7670 case "(($ac_try" in
7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672   *) ac_try_echo=$ac_try;;
7673 esac
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } >/dev/null && {
7683          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7684          test ! -s conftest.err
7685        }; then
7686   # Broken: success on invalid input.
7687 continue
7688 else
7689   $as_echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7691
7692   # Passes both tests.
7693 ac_preproc_ok=:
7694 break
7695 fi
7696
7697 rm -f conftest.err conftest.$ac_ext
7698
7699 done
7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7701 rm -f conftest.err conftest.$ac_ext
7702 if $ac_preproc_ok; then
7703   :
7704 else
7705   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7707 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7708 See \`config.log' for more details." >&5
7709 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7710 See \`config.log' for more details." >&2;}
7711    { (exit 1); exit 1; }; }; }
7712 fi
7713
7714 ac_ext=cpp
7715 ac_cpp='$CXXCPP $CPPFLAGS'
7716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7719
7720 fi
7721
7722
7723 ac_ext=f
7724 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7725 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7727 if test -n "$ac_tool_prefix"; then
7728   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
7729   do
7730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_F77+set}" = set; then
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$F77"; then
7738   ac_cv_prog_F77="$F77" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 F77=$ac_cv_prog_F77
7758 if test -n "$F77"; then
7759   { $as_echo "$as_me:$LINENO: result: $F77" >&5
7760 $as_echo "$F77" >&6; }
7761 else
7762   { $as_echo "$as_me:$LINENO: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767     test -n "$F77" && break
7768   done
7769 fi
7770 if test -z "$F77"; then
7771   ac_ct_F77=$F77
7772   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
7773 do
7774   # Extract the first word of "$ac_prog", so it can be a program name with args.
7775 set dummy $ac_prog; ac_word=$2
7776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$ac_ct_F77"; then
7782   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_prog_ac_ct_F77="$ac_prog"
7792     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7802 if test -n "$ac_ct_F77"; then
7803   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7804 $as_echo "$ac_ct_F77" >&6; }
7805 else
7806   { $as_echo "$as_me:$LINENO: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811   test -n "$ac_ct_F77" && break
7812 done
7813
7814   if test "x$ac_ct_F77" = x; then
7815     F77=""
7816   else
7817     case $cross_compiling:$ac_tool_warned in
7818 yes:)
7819 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7821 ac_tool_warned=yes ;;
7822 esac
7823     F77=$ac_ct_F77
7824   fi
7825 fi
7826
7827
7828 # Provide some information about the compiler.
7829 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7830 set X $ac_compile
7831 ac_compiler=$2
7832 { (ac_try="$ac_compiler --version >&5"
7833 case "(($ac_try" in
7834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835   *) ac_try_echo=$ac_try;;
7836 esac
7837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7838 $as_echo "$ac_try_echo") >&5
7839   (eval "$ac_compiler --version >&5") 2>&5
7840   ac_status=$?
7841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }
7843 { (ac_try="$ac_compiler -v >&5"
7844 case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850   (eval "$ac_compiler -v >&5") 2>&5
7851   ac_status=$?
7852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }
7854 { (ac_try="$ac_compiler -V >&5"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7860 $as_echo "$ac_try_echo") >&5
7861   (eval "$ac_compiler -V >&5") 2>&5
7862   ac_status=$?
7863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }
7865 rm -f a.out
7866
7867 # If we don't use `.F' as extension, the preprocessor is not run on the
7868 # input file.  (Note that this only needs to work for GNU compilers.)
7869 ac_save_ext=$ac_ext
7870 ac_ext=F
7871 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7872 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7873 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat >conftest.$ac_ext <<_ACEOF
7877       program main
7878 #ifndef __GNUC__
7879        choke me
7880 #endif
7881
7882       end
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892   (eval "$ac_compile") 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } && {
7899          test -z "$ac_f77_werror_flag" ||
7900          test ! -s conftest.err
7901        } && test -s conftest.$ac_objext; then
7902   ac_compiler_gnu=yes
7903 else
7904   $as_echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907         ac_compiler_gnu=no
7908 fi
7909
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7912
7913 fi
7914 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7915 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7916 ac_ext=$ac_save_ext
7917 ac_test_FFLAGS=${FFLAGS+set}
7918 ac_save_FFLAGS=$FFLAGS
7919 FFLAGS=
7920 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7921 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7922 if test "${ac_cv_prog_f77_g+set}" = set; then
7923   $as_echo_n "(cached) " >&6
7924 else
7925   FFLAGS=-g
7926 cat >conftest.$ac_ext <<_ACEOF
7927       program main
7928
7929       end
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938 $as_echo "$ac_try_echo") >&5
7939   (eval "$ac_compile") 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } && {
7946          test -z "$ac_f77_werror_flag" ||
7947          test ! -s conftest.err
7948        } && test -s conftest.$ac_objext; then
7949   ac_cv_prog_f77_g=yes
7950 else
7951   $as_echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954         ac_cv_prog_f77_g=no
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958
7959 fi
7960 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7961 $as_echo "$ac_cv_prog_f77_g" >&6; }
7962 if test "$ac_test_FFLAGS" = set; then
7963   FFLAGS=$ac_save_FFLAGS
7964 elif test $ac_cv_prog_f77_g = yes; then
7965   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7966     FFLAGS="-g -O2"
7967   else
7968     FFLAGS="-g"
7969   fi
7970 else
7971   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7972     FFLAGS="-O2"
7973   else
7974     FFLAGS=
7975   fi
7976 fi
7977
7978 if test $ac_compiler_gnu = yes; then
7979   G77=yes
7980 else
7981   G77=
7982 fi
7983 ac_ext=c
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990
7991 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7992 # find the maximum length of command line arguments
7993 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7994 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7995 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7996   $as_echo_n "(cached) " >&6
7997 else
7998     i=0
7999   teststring="ABCD"
8000
8001   case $build_os in
8002   msdosdjgpp*)
8003     # On DJGPP, this test can blow up pretty badly due to problems in libc
8004     # (any single argument exceeding 2000 bytes causes a buffer overrun
8005     # during glob expansion).  Even if it were fixed, the result of this
8006     # check would be larger than it should be.
8007     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8008     ;;
8009
8010   gnu*)
8011     # Under GNU Hurd, this test is not required because there is
8012     # no limit to the length of command line arguments.
8013     # Libtool will interpret -1 as no limit whatsoever
8014     lt_cv_sys_max_cmd_len=-1;
8015     ;;
8016
8017   cygwin* | mingw*)
8018     # On Win9x/ME, this test blows up -- it succeeds, but takes
8019     # about 5 minutes as the teststring grows exponentially.
8020     # Worse, since 9x/ME are not pre-emptively multitasking,
8021     # you end up with a "frozen" computer, even though with patience
8022     # the test eventually succeeds (with a max line length of 256k).
8023     # Instead, let's just punt: use the minimum linelength reported by
8024     # all of the supported platforms: 8192 (on NT/2K/XP).
8025     lt_cv_sys_max_cmd_len=8192;
8026     ;;
8027
8028   amigaos*)
8029     # On AmigaOS with pdksh, this test takes hours, literally.
8030     # So we just punt and use a minimum line length of 8192.
8031     lt_cv_sys_max_cmd_len=8192;
8032     ;;
8033
8034   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8035     # This has been around since 386BSD, at least.  Likely further.
8036     if test -x /sbin/sysctl; then
8037       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8038     elif test -x /usr/sbin/sysctl; then
8039       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8040     else
8041       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8042     fi
8043     # And add a safety zone
8044     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8045     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8046     ;;
8047
8048   interix*)
8049     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8050     lt_cv_sys_max_cmd_len=196608
8051     ;;
8052
8053   osf*)
8054     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8055     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8056     # nice to cause kernel panics so lets avoid the loop below.
8057     # First set a reasonable default.
8058     lt_cv_sys_max_cmd_len=16384
8059     #
8060     if test -x /sbin/sysconfig; then
8061       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8062         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8063       esac
8064     fi
8065     ;;
8066   sco3.2v5*)
8067     lt_cv_sys_max_cmd_len=102400
8068     ;;
8069   sysv5* | sco5v6* | sysv4.2uw2*)
8070     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8071     if test -n "$kargmax"; then
8072       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8073     else
8074       lt_cv_sys_max_cmd_len=32768
8075     fi
8076     ;;
8077   *)
8078     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8079     if test -n "$lt_cv_sys_max_cmd_len"; then
8080       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8081       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8082     else
8083       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8084       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8085                = "XX$teststring") >/dev/null 2>&1 &&
8086               new_result=`expr "X$teststring" : ".*" 2>&1` &&
8087               lt_cv_sys_max_cmd_len=$new_result &&
8088               test $i != 17 # 1/2 MB should be enough
8089       do
8090         i=`expr $i + 1`
8091         teststring=$teststring$teststring
8092       done
8093       teststring=
8094       # Add a significant safety factor because C++ compilers can tack on massive
8095       # amounts of additional arguments before passing them to the linker.
8096       # It appears as though 1/2 is a usable value.
8097       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8098     fi
8099     ;;
8100   esac
8101
8102 fi
8103
8104 if test -n $lt_cv_sys_max_cmd_len ; then
8105   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8107 else
8108   { $as_echo "$as_me:$LINENO: result: none" >&5
8109 $as_echo "none" >&6; }
8110 fi
8111
8112
8113
8114
8115
8116 # Check for command to grab the raw symbol name followed by C symbol from nm.
8117 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8118 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8119 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8120   $as_echo_n "(cached) " >&6
8121 else
8122
8123 # These are sane defaults that work on at least a few old systems.
8124 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8125
8126 # Character class describing NM global symbol codes.
8127 symcode='[BCDEGRST]'
8128
8129 # Regexp to match symbols that can be accessed directly from C.
8130 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8131
8132 # Transform an extracted symbol line into a proper C declaration
8133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8134
8135 # Transform an extracted symbol line into symbol name and symbol address
8136 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'"
8137
8138 # Define system-specific variables.
8139 case $host_os in
8140 aix*)
8141   symcode='[BCDT]'
8142   ;;
8143 cygwin* | mingw* | pw32*)
8144   symcode='[ABCDGISTW]'
8145   ;;
8146 hpux*) # Its linker distinguishes data from code symbols
8147   if test "$host_cpu" = ia64; then
8148     symcode='[ABCDEGRST]'
8149   fi
8150   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8151   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'"
8152   ;;
8153 linux* | k*bsd*-gnu)
8154   if test "$host_cpu" = ia64; then
8155     symcode='[ABCDGIRSTW]'
8156     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8157     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'"
8158   fi
8159   ;;
8160 irix* | nonstopux*)
8161   symcode='[BCDEGRST]'
8162   ;;
8163 osf*)
8164   symcode='[BCDEGQRST]'
8165   ;;
8166 solaris*)
8167   symcode='[BDRT]'
8168   ;;
8169 sco3.2v5*)
8170   symcode='[DT]'
8171   ;;
8172 sysv4.2uw2*)
8173   symcode='[DT]'
8174   ;;
8175 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8176   symcode='[ABDT]'
8177   ;;
8178 sysv4)
8179   symcode='[DFNSTU]'
8180   ;;
8181 esac
8182
8183 # Handle CRLF in mingw tool chain
8184 opt_cr=
8185 case $build_os in
8186 mingw*)
8187   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8188   ;;
8189 esac
8190
8191 # If we're using GNU nm, then use its standard symbol codes.
8192 case `$NM -V 2>&1` in
8193 *GNU* | *'with BFD'*)
8194   symcode='[ABCDGIRSTW]' ;;
8195 esac
8196
8197 # Try without a prefix undercore, then with it.
8198 for ac_symprfx in "" "_"; do
8199
8200   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8201   symxfrm="\\1 $ac_symprfx\\2 \\2"
8202
8203   # Write the raw and C identifiers.
8204   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8205
8206   # Check to see that the pipe works correctly.
8207   pipe_works=no
8208
8209   rm -f conftest*
8210   cat > conftest.$ac_ext <<EOF
8211 #ifdef __cplusplus
8212 extern "C" {
8213 #endif
8214 char nm_test_var;
8215 void nm_test_func(){}
8216 #ifdef __cplusplus
8217 }
8218 #endif
8219 int main(){nm_test_var='a';nm_test_func();return(0);}
8220 EOF
8221
8222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223   (eval $ac_compile) 2>&5
8224   ac_status=$?
8225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; then
8227     # Now try to grab the symbols.
8228     nlist=conftest.nm
8229     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8230   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8231   ac_status=$?
8232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); } && test -s "$nlist"; then
8234       # Try sorting and uniquifying the output.
8235       if sort "$nlist" | uniq > "$nlist"T; then
8236         mv -f "$nlist"T "$nlist"
8237       else
8238         rm -f "$nlist"T
8239       fi
8240
8241       # Make sure that we snagged all the symbols we need.
8242       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8243         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8244           cat <<EOF > conftest.$ac_ext
8245 #ifdef __cplusplus
8246 extern "C" {
8247 #endif
8248
8249 EOF
8250           # Now generate the symbol file.
8251           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8252
8253           cat <<EOF >> conftest.$ac_ext
8254 #if defined (__STDC__) && __STDC__
8255 # define lt_ptr_t void *
8256 #else
8257 # define lt_ptr_t char *
8258 # define const
8259 #endif
8260
8261 /* The mapping between symbol names and symbols. */
8262 const struct {
8263   const char *name;
8264   lt_ptr_t address;
8265 }
8266 lt_preloaded_symbols[] =
8267 {
8268 EOF
8269           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8270           cat <<\EOF >> conftest.$ac_ext
8271   {0, (lt_ptr_t) 0}
8272 };
8273
8274 #ifdef __cplusplus
8275 }
8276 #endif
8277 EOF
8278           # Now try linking the two files.
8279           mv conftest.$ac_objext conftstm.$ac_objext
8280           lt_save_LIBS="$LIBS"
8281           lt_save_CFLAGS="$CFLAGS"
8282           LIBS="conftstm.$ac_objext"
8283           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8284           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>&5
8286   ac_status=$?
8287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8289             pipe_works=yes
8290           fi
8291           LIBS="$lt_save_LIBS"
8292           CFLAGS="$lt_save_CFLAGS"
8293         else
8294           echo "cannot find nm_test_func in $nlist" >&5
8295         fi
8296       else
8297         echo "cannot find nm_test_var in $nlist" >&5
8298       fi
8299     else
8300       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8301     fi
8302   else
8303     echo "$progname: failed program was:" >&5
8304     cat conftest.$ac_ext >&5
8305   fi
8306   rm -rf conftest* conftst*
8307
8308   # Do not use the global_symbol_pipe unless it works.
8309   if test "$pipe_works" = yes; then
8310     break
8311   else
8312     lt_cv_sys_global_symbol_pipe=
8313   fi
8314 done
8315
8316 fi
8317
8318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8319   lt_cv_sys_global_symbol_to_cdecl=
8320 fi
8321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8322   { $as_echo "$as_me:$LINENO: result: failed" >&5
8323 $as_echo "failed" >&6; }
8324 else
8325   { $as_echo "$as_me:$LINENO: result: ok" >&5
8326 $as_echo "ok" >&6; }
8327 fi
8328
8329 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8330 $as_echo_n "checking for objdir... " >&6; }
8331 if test "${lt_cv_objdir+set}" = set; then
8332   $as_echo_n "(cached) " >&6
8333 else
8334   rm -f .libs 2>/dev/null
8335 mkdir .libs 2>/dev/null
8336 if test -d .libs; then
8337   lt_cv_objdir=.libs
8338 else
8339   # MS-DOS does not allow filenames that begin with a dot.
8340   lt_cv_objdir=_libs
8341 fi
8342 rmdir .libs 2>/dev/null
8343 fi
8344 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8345 $as_echo "$lt_cv_objdir" >&6; }
8346 objdir=$lt_cv_objdir
8347
8348
8349
8350
8351
8352 case $host_os in
8353 aix3*)
8354   # AIX sometimes has problems with the GCC collect2 program.  For some
8355   # reason, if we set the COLLECT_NAMES environment variable, the problems
8356   # vanish in a puff of smoke.
8357   if test "X${COLLECT_NAMES+set}" != Xset; then
8358     COLLECT_NAMES=
8359     export COLLECT_NAMES
8360   fi
8361   ;;
8362 esac
8363
8364 # Sed substitution that helps us do robust quoting.  It backslashifies
8365 # metacharacters that are still active within double-quoted strings.
8366 Xsed='sed -e 1s/^X//'
8367 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8368
8369 # Same as above, but do not quote variable references.
8370 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8371
8372 # Sed substitution to delay expansion of an escaped shell variable in a
8373 # double_quote_subst'ed string.
8374 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8375
8376 # Sed substitution to avoid accidental globbing in evaled expressions
8377 no_glob_subst='s/\*/\\\*/g'
8378
8379 # Constants:
8380 rm="rm -f"
8381
8382 # Global variables:
8383 default_ofile=libtool
8384 can_build_shared=yes
8385
8386 # All known linkers require a `.a' archive for static linking (except MSVC,
8387 # which needs '.lib').
8388 libext=a
8389 ltmain="$ac_aux_dir/ltmain.sh"
8390 ofile="$default_ofile"
8391 with_gnu_ld="$lt_cv_prog_gnu_ld"
8392
8393 if test -n "$ac_tool_prefix"; then
8394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8395 set dummy ${ac_tool_prefix}ar; ac_word=$2
8396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_AR+set}" = set; then
8399   $as_echo_n "(cached) " >&6
8400 else
8401   if test -n "$AR"; then
8402   ac_cv_prog_AR="$AR" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409   for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_prog_AR="${ac_tool_prefix}ar"
8412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 AR=$ac_cv_prog_AR
8422 if test -n "$AR"; then
8423   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8424 $as_echo "$AR" >&6; }
8425 else
8426   { $as_echo "$as_me:$LINENO: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430
8431 fi
8432 if test -z "$ac_cv_prog_AR"; then
8433   ac_ct_AR=$AR
8434   # Extract the first word of "ar", so it can be a program name with args.
8435 set dummy ar; ac_word=$2
8436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8439   $as_echo_n "(cached) " >&6
8440 else
8441   if test -n "$ac_ct_AR"; then
8442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447   IFS=$as_save_IFS
8448   test -z "$as_dir" && as_dir=.
8449   for ac_exec_ext in '' $ac_executable_extensions; do
8450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451     ac_cv_prog_ac_ct_AR="ar"
8452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453     break 2
8454   fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8462 if test -n "$ac_ct_AR"; then
8463   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8464 $as_echo "$ac_ct_AR" >&6; }
8465 else
8466   { $as_echo "$as_me:$LINENO: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470   if test "x$ac_ct_AR" = x; then
8471     AR="false"
8472   else
8473     case $cross_compiling:$ac_tool_warned in
8474 yes:)
8475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477 ac_tool_warned=yes ;;
8478 esac
8479     AR=$ac_ct_AR
8480   fi
8481 else
8482   AR="$ac_cv_prog_AR"
8483 fi
8484
8485 if test -n "$ac_tool_prefix"; then
8486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if test "${ac_cv_prog_RANLIB+set}" = set; then
8491   $as_echo_n "(cached) " >&6
8492 else
8493   if test -n "$RANLIB"; then
8494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499   IFS=$as_save_IFS
8500   test -z "$as_dir" && as_dir=.
8501   for ac_exec_ext in '' $ac_executable_extensions; do
8502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8504     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505     break 2
8506   fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 RANLIB=$ac_cv_prog_RANLIB
8514 if test -n "$RANLIB"; then
8515   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8516 $as_echo "$RANLIB" >&6; }
8517 else
8518   { $as_echo "$as_me:$LINENO: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_RANLIB"; then
8525   ac_ct_RANLIB=$RANLIB
8526   # Extract the first word of "ranlib", so it can be a program name with args.
8527 set dummy ranlib; ac_word=$2
8528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8531   $as_echo_n "(cached) " >&6
8532 else
8533   if test -n "$ac_ct_RANLIB"; then
8534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541   for ac_exec_ext in '' $ac_executable_extensions; do
8542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543     ac_cv_prog_ac_ct_RANLIB="ranlib"
8544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8554 if test -n "$ac_ct_RANLIB"; then
8555   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8556 $as_echo "$ac_ct_RANLIB" >&6; }
8557 else
8558   { $as_echo "$as_me:$LINENO: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562   if test "x$ac_ct_RANLIB" = x; then
8563     RANLIB=":"
8564   else
8565     case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8569 ac_tool_warned=yes ;;
8570 esac
8571     RANLIB=$ac_ct_RANLIB
8572   fi
8573 else
8574   RANLIB="$ac_cv_prog_RANLIB"
8575 fi
8576
8577 if test -n "$ac_tool_prefix"; then
8578   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8579 set dummy ${ac_tool_prefix}strip; ac_word=$2
8580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_STRIP+set}" = set; then
8583   $as_echo_n "(cached) " >&6
8584 else
8585   if test -n "$STRIP"; then
8586   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8590 do
8591   IFS=$as_save_IFS
8592   test -z "$as_dir" && as_dir=.
8593   for ac_exec_ext in '' $ac_executable_extensions; do
8594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8596     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8597     break 2
8598   fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi
8604 fi
8605 STRIP=$ac_cv_prog_STRIP
8606 if test -n "$STRIP"; then
8607   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8608 $as_echo "$STRIP" >&6; }
8609 else
8610   { $as_echo "$as_me:$LINENO: result: no" >&5
8611 $as_echo "no" >&6; }
8612 fi
8613
8614
8615 fi
8616 if test -z "$ac_cv_prog_STRIP"; then
8617   ac_ct_STRIP=$STRIP
8618   # Extract the first word of "strip", so it can be a program name with args.
8619 set dummy strip; ac_word=$2
8620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8623   $as_echo_n "(cached) " >&6
8624 else
8625   if test -n "$ac_ct_STRIP"; then
8626   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631   IFS=$as_save_IFS
8632   test -z "$as_dir" && as_dir=.
8633   for ac_exec_ext in '' $ac_executable_extensions; do
8634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635     ac_cv_prog_ac_ct_STRIP="strip"
8636     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8637     break 2
8638   fi
8639 done
8640 done
8641 IFS=$as_save_IFS
8642
8643 fi
8644 fi
8645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8646 if test -n "$ac_ct_STRIP"; then
8647   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8648 $as_echo "$ac_ct_STRIP" >&6; }
8649 else
8650   { $as_echo "$as_me:$LINENO: result: no" >&5
8651 $as_echo "no" >&6; }
8652 fi
8653
8654   if test "x$ac_ct_STRIP" = x; then
8655     STRIP=":"
8656   else
8657     case $cross_compiling:$ac_tool_warned in
8658 yes:)
8659 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8662 esac
8663     STRIP=$ac_ct_STRIP
8664   fi
8665 else
8666   STRIP="$ac_cv_prog_STRIP"
8667 fi
8668
8669
8670 old_CC="$CC"
8671 old_CFLAGS="$CFLAGS"
8672
8673 # Set sane defaults for various variables
8674 test -z "$AR" && AR=ar
8675 test -z "$AR_FLAGS" && AR_FLAGS=cru
8676 test -z "$AS" && AS=as
8677 test -z "$CC" && CC=cc
8678 test -z "$LTCC" && LTCC=$CC
8679 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8680 test -z "$DLLTOOL" && DLLTOOL=dlltool
8681 test -z "$LD" && LD=ld
8682 test -z "$LN_S" && LN_S="ln -s"
8683 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8684 test -z "$NM" && NM=nm
8685 test -z "$SED" && SED=sed
8686 test -z "$OBJDUMP" && OBJDUMP=objdump
8687 test -z "$RANLIB" && RANLIB=:
8688 test -z "$STRIP" && STRIP=:
8689 test -z "$ac_objext" && ac_objext=o
8690
8691 # Determine commands to create old-style static archives.
8692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8693 old_postinstall_cmds='chmod 644 $oldlib'
8694 old_postuninstall_cmds=
8695
8696 if test -n "$RANLIB"; then
8697   case $host_os in
8698   openbsd*)
8699     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8700     ;;
8701   *)
8702     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8703     ;;
8704   esac
8705   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8706 fi
8707
8708 for cc_temp in $compiler""; do
8709   case $cc_temp in
8710     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8711     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8712     \-*) ;;
8713     *) break;;
8714   esac
8715 done
8716 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8717
8718
8719 # Only perform the check for file, if the check method requires it
8720 case $deplibs_check_method in
8721 file_magic*)
8722   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8723     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8724 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8725 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8726   $as_echo_n "(cached) " >&6
8727 else
8728   case $MAGIC_CMD in
8729 [\\/*] |  ?:[\\/]*)
8730   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8731   ;;
8732 *)
8733   lt_save_MAGIC_CMD="$MAGIC_CMD"
8734   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8735   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8736   for ac_dir in $ac_dummy; do
8737     IFS="$lt_save_ifs"
8738     test -z "$ac_dir" && ac_dir=.
8739     if test -f $ac_dir/${ac_tool_prefix}file; then
8740       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8741       if test -n "$file_magic_test_file"; then
8742         case $deplibs_check_method in
8743         "file_magic "*)
8744           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8745           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8746           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8747             $EGREP "$file_magic_regex" > /dev/null; then
8748             :
8749           else
8750             cat <<EOF 1>&2
8751
8752 *** Warning: the command libtool uses to detect shared libraries,
8753 *** $file_magic_cmd, produces output that libtool cannot recognize.
8754 *** The result is that libtool may fail to recognize shared libraries
8755 *** as such.  This will affect the creation of libtool libraries that
8756 *** depend on shared libraries, but programs linked with such libtool
8757 *** libraries will work regardless of this problem.  Nevertheless, you
8758 *** may want to report the problem to your system manager and/or to
8759 *** bug-libtool@gnu.org
8760
8761 EOF
8762           fi ;;
8763         esac
8764       fi
8765       break
8766     fi
8767   done
8768   IFS="$lt_save_ifs"
8769   MAGIC_CMD="$lt_save_MAGIC_CMD"
8770   ;;
8771 esac
8772 fi
8773
8774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8775 if test -n "$MAGIC_CMD"; then
8776   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8777 $as_echo "$MAGIC_CMD" >&6; }
8778 else
8779   { $as_echo "$as_me:$LINENO: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782
8783 if test -z "$lt_cv_path_MAGIC_CMD"; then
8784   if test -n "$ac_tool_prefix"; then
8785     { $as_echo "$as_me:$LINENO: checking for file" >&5
8786 $as_echo_n "checking for file... " >&6; }
8787 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8788   $as_echo_n "(cached) " >&6
8789 else
8790   case $MAGIC_CMD in
8791 [\\/*] |  ?:[\\/]*)
8792   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8793   ;;
8794 *)
8795   lt_save_MAGIC_CMD="$MAGIC_CMD"
8796   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8797   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798   for ac_dir in $ac_dummy; do
8799     IFS="$lt_save_ifs"
8800     test -z "$ac_dir" && ac_dir=.
8801     if test -f $ac_dir/file; then
8802       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8803       if test -n "$file_magic_test_file"; then
8804         case $deplibs_check_method in
8805         "file_magic "*)
8806           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809             $EGREP "$file_magic_regex" > /dev/null; then
8810             :
8811           else
8812             cat <<EOF 1>&2
8813
8814 *** Warning: the command libtool uses to detect shared libraries,
8815 *** $file_magic_cmd, produces output that libtool cannot recognize.
8816 *** The result is that libtool may fail to recognize shared libraries
8817 *** as such.  This will affect the creation of libtool libraries that
8818 *** depend on shared libraries, but programs linked with such libtool
8819 *** libraries will work regardless of this problem.  Nevertheless, you
8820 *** may want to report the problem to your system manager and/or to
8821 *** bug-libtool@gnu.org
8822
8823 EOF
8824           fi ;;
8825         esac
8826       fi
8827       break
8828     fi
8829   done
8830   IFS="$lt_save_ifs"
8831   MAGIC_CMD="$lt_save_MAGIC_CMD"
8832   ;;
8833 esac
8834 fi
8835
8836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8837 if test -n "$MAGIC_CMD"; then
8838   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8839 $as_echo "$MAGIC_CMD" >&6; }
8840 else
8841   { $as_echo "$as_me:$LINENO: result: no" >&5
8842 $as_echo "no" >&6; }
8843 fi
8844
8845   else
8846     MAGIC_CMD=:
8847   fi
8848 fi
8849
8850   fi
8851   ;;
8852 esac
8853
8854
8855   case $host_os in
8856     rhapsody* | darwin*)
8857     if test -n "$ac_tool_prefix"; then
8858   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8859 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test -n "$DSYMUTIL"; then
8866   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871   IFS=$as_save_IFS
8872   test -z "$as_dir" && as_dir=.
8873   for ac_exec_ext in '' $ac_executable_extensions; do
8874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877     break 2
8878   fi
8879 done
8880 done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8886 if test -n "$DSYMUTIL"; then
8887   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8888 $as_echo "$DSYMUTIL" >&6; }
8889 else
8890   { $as_echo "$as_me:$LINENO: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895 fi
8896 if test -z "$ac_cv_prog_DSYMUTIL"; then
8897   ac_ct_DSYMUTIL=$DSYMUTIL
8898   # Extract the first word of "dsymutil", so it can be a program name with args.
8899 set dummy dsymutil; ac_word=$2
8900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8903   $as_echo_n "(cached) " >&6
8904 else
8905   if test -n "$ac_ct_DSYMUTIL"; then
8906   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911   IFS=$as_save_IFS
8912   test -z "$as_dir" && as_dir=.
8913   for ac_exec_ext in '' $ac_executable_extensions; do
8914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8916     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917     break 2
8918   fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8926 if test -n "$ac_ct_DSYMUTIL"; then
8927   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8928 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8929 else
8930   { $as_echo "$as_me:$LINENO: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934   if test "x$ac_ct_DSYMUTIL" = x; then
8935     DSYMUTIL=":"
8936   else
8937     case $cross_compiling:$ac_tool_warned in
8938 yes:)
8939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8941 ac_tool_warned=yes ;;
8942 esac
8943     DSYMUTIL=$ac_ct_DSYMUTIL
8944   fi
8945 else
8946   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8947 fi
8948
8949     if test -n "$ac_tool_prefix"; then
8950   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8955   $as_echo_n "(cached) " >&6
8956 else
8957   if test -n "$NMEDIT"; then
8958   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965   for ac_exec_ext in '' $ac_executable_extensions; do
8966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 NMEDIT=$ac_cv_prog_NMEDIT
8978 if test -n "$NMEDIT"; then
8979   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8980 $as_echo "$NMEDIT" >&6; }
8981 else
8982   { $as_echo "$as_me:$LINENO: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985
8986
8987 fi
8988 if test -z "$ac_cv_prog_NMEDIT"; then
8989   ac_ct_NMEDIT=$NMEDIT
8990   # Extract the first word of "nmedit", so it can be a program name with args.
8991 set dummy nmedit; ac_word=$2
8992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -n "$ac_ct_NMEDIT"; then
8998   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005   for ac_exec_ext in '' $ac_executable_extensions; do
9006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012 done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9018 if test -n "$ac_ct_NMEDIT"; then
9019   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9020 $as_echo "$ac_ct_NMEDIT" >&6; }
9021 else
9022   { $as_echo "$as_me:$LINENO: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026   if test "x$ac_ct_NMEDIT" = x; then
9027     NMEDIT=":"
9028   else
9029     case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035     NMEDIT=$ac_ct_NMEDIT
9036   fi
9037 else
9038   NMEDIT="$ac_cv_prog_NMEDIT"
9039 fi
9040
9041
9042     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9043 $as_echo_n "checking for -single_module linker flag... " >&6; }
9044 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9045   $as_echo_n "(cached) " >&6
9046 else
9047   lt_cv_apple_cc_single_mod=no
9048       if test -z "${LT_MULTI_MODULE}"; then
9049    # By default we will add the -single_module flag. You can override
9050    # by either setting the environment variable LT_MULTI_MODULE
9051    # non-empty at configure time, or by adding -multi_module to the
9052    # link flags.
9053    echo "int foo(void){return 1;}" > conftest.c
9054    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9055      -dynamiclib ${wl}-single_module conftest.c
9056    if test -f libconftest.dylib; then
9057      lt_cv_apple_cc_single_mod=yes
9058      rm -rf libconftest.dylib*
9059    fi
9060    rm conftest.c
9061       fi
9062 fi
9063 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9064 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9065     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9066 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9067 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9068   $as_echo_n "(cached) " >&6
9069 else
9070   lt_cv_ld_exported_symbols_list=no
9071       save_LDFLAGS=$LDFLAGS
9072       echo "_main" > conftest.sym
9073       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9074       cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080
9081 int
9082 main ()
9083 {
9084
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9091 case "(($ac_try" in
9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093   *) ac_try_echo=$ac_try;;
9094 esac
9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9096 $as_echo "$ac_try_echo") >&5
9097   (eval "$ac_link") 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && {
9104          test -z "$ac_c_werror_flag" ||
9105          test ! -s conftest.err
9106        } && test -s conftest$ac_exeext && {
9107          test "$cross_compiling" = yes ||
9108          $as_test_x conftest$ac_exeext
9109        }; then
9110   lt_cv_ld_exported_symbols_list=yes
9111 else
9112   $as_echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115         lt_cv_ld_exported_symbols_list=no
9116 fi
9117
9118 rm -rf conftest.dSYM
9119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9120       conftest$ac_exeext conftest.$ac_ext
9121    LDFLAGS="$save_LDFLAGS"
9122
9123 fi
9124 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9125 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9126     case $host_os in
9127     rhapsody* | darwin1.[0123])
9128       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9129     darwin1.*)
9130      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9131     darwin*)
9132       # if running on 10.5 or later, the deployment target defaults
9133       # to the OS version, if on x86, and 10.4, the deployment
9134       # target defaults to 10.4. Don't you love it?
9135       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9136    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9137      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9138    10.[012]*)
9139      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9140    10.*)
9141      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9142       esac
9143     ;;
9144   esac
9145     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9146       _lt_dar_single_mod='$single_module'
9147     fi
9148     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9149       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9150     else
9151       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9152     fi
9153     if test "$DSYMUTIL" != ":"; then
9154       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9155     else
9156       _lt_dsymutil=
9157     fi
9158     ;;
9159   esac
9160
9161
9162 enable_dlopen=no
9163 enable_win32_dll=no
9164
9165 # Check whether --enable-libtool-lock was given.
9166 if test "${enable_libtool_lock+set}" = set; then
9167   enableval=$enable_libtool_lock;
9168 fi
9169
9170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9171
9172
9173 # Check whether --with-pic was given.
9174 if test "${with_pic+set}" = set; then
9175   withval=$with_pic; pic_mode="$withval"
9176 else
9177   pic_mode=default
9178 fi
9179
9180 test -z "$pic_mode" && pic_mode=default
9181
9182 # Use C for the default configuration in the libtool script
9183 tagname=
9184 lt_save_CC="$CC"
9185 ac_ext=c
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9190
9191
9192 # Source file extension for C test sources.
9193 ac_ext=c
9194
9195 # Object file extension for compiled C test sources.
9196 objext=o
9197 objext=$objext
9198
9199 # Code to be used in simple compile tests
9200 lt_simple_compile_test_code="int some_variable = 0;"
9201
9202 # Code to be used in simple link tests
9203 lt_simple_link_test_code='int main(){return(0);}'
9204
9205
9206 # If no C compiler was specified, use CC.
9207 LTCC=${LTCC-"$CC"}
9208
9209 # If no C compiler flags were specified, use CFLAGS.
9210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9211
9212 # Allow CC to be a program name with arguments.
9213 compiler=$CC
9214
9215
9216 # save warnings/boilerplate of simple test code
9217 ac_outfile=conftest.$ac_objext
9218 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9219 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9220 _lt_compiler_boilerplate=`cat conftest.err`
9221 $rm conftest*
9222
9223 ac_outfile=conftest.$ac_objext
9224 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9225 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9226 _lt_linker_boilerplate=`cat conftest.err`
9227 $rm -r conftest*
9228
9229
9230
9231 lt_prog_compiler_no_builtin_flag=
9232
9233 if test "$GCC" = yes; then
9234   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9235
9236
9237 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9238 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9239 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9240   $as_echo_n "(cached) " >&6
9241 else
9242   lt_cv_prog_compiler_rtti_exceptions=no
9243   ac_outfile=conftest.$ac_objext
9244    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9245    lt_compiler_flag="-fno-rtti -fno-exceptions"
9246    # Insert the option either (1) after the last *FLAGS variable, or
9247    # (2) before a word containing "conftest.", or (3) at the end.
9248    # Note that $ac_compile itself does not contain backslashes and begins
9249    # with a dollar sign (not a hyphen), so the echo should work correctly.
9250    # The option is referenced via a variable to avoid confusing sed.
9251    lt_compile=`echo "$ac_compile" | $SED \
9252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254    -e 's:$: $lt_compiler_flag:'`
9255    (eval echo "\"\$as_me:9255: $lt_compile\"" >&5)
9256    (eval "$lt_compile" 2>conftest.err)
9257    ac_status=$?
9258    cat conftest.err >&5
9259    echo "$as_me:9259: \$? = $ac_status" >&5
9260    if (exit $ac_status) && test -s "$ac_outfile"; then
9261      # The compiler can only warn and ignore the option if not recognized
9262      # So say no if there are warnings other than the usual output.
9263      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9264      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9265      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9266        lt_cv_prog_compiler_rtti_exceptions=yes
9267      fi
9268    fi
9269    $rm conftest*
9270
9271 fi
9272 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9273 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9274
9275 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9276     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9277 else
9278     :
9279 fi
9280
9281 fi
9282
9283 lt_prog_compiler_wl=
9284 lt_prog_compiler_pic=
9285 lt_prog_compiler_static=
9286
9287 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9288 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9289
9290   if test "$GCC" = yes; then
9291     lt_prog_compiler_wl='-Wl,'
9292     lt_prog_compiler_static='-static'
9293
9294     case $host_os in
9295       aix*)
9296       # All AIX code is PIC.
9297       if test "$host_cpu" = ia64; then
9298         # AIX 5 now supports IA64 processor
9299         lt_prog_compiler_static='-Bstatic'
9300       fi
9301       ;;
9302
9303     amigaos*)
9304       # FIXME: we need at least 68020 code to build shared libraries, but
9305       # adding the `-m68020' flag to GCC prevents building anything better,
9306       # like `-m68040'.
9307       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9308       ;;
9309
9310     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9311       # PIC is the default for these OSes.
9312       ;;
9313
9314     mingw* | cygwin* | pw32* | os2*)
9315       # This hack is so that the source file can tell whether it is being
9316       # built for inclusion in a dll (and should export symbols for example).
9317       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9318       # (--disable-auto-import) libraries
9319       lt_prog_compiler_pic='-DDLL_EXPORT'
9320       ;;
9321
9322     darwin* | rhapsody*)
9323       # PIC is the default on this platform
9324       # Common symbols not allowed in MH_DYLIB files
9325       lt_prog_compiler_pic='-fno-common'
9326       ;;
9327
9328     interix[3-9]*)
9329       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9330       # Instead, we relocate shared libraries at runtime.
9331       ;;
9332
9333     msdosdjgpp*)
9334       # Just because we use GCC doesn't mean we suddenly get shared libraries
9335       # on systems that don't support them.
9336       lt_prog_compiler_can_build_shared=no
9337       enable_shared=no
9338       ;;
9339
9340     sysv4*MP*)
9341       if test -d /usr/nec; then
9342         lt_prog_compiler_pic=-Kconform_pic
9343       fi
9344       ;;
9345
9346     hpux*)
9347       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9348       # not for PA HP-UX.
9349       case $host_cpu in
9350       hppa*64*|ia64*)
9351         # +Z the default
9352         ;;
9353       *)
9354         lt_prog_compiler_pic='-fPIC'
9355         ;;
9356       esac
9357       ;;
9358
9359     *)
9360       lt_prog_compiler_pic='-fPIC'
9361       ;;
9362     esac
9363   else
9364     # PORTME Check for flag to pass linker flags through the system compiler.
9365     case $host_os in
9366     aix*)
9367       lt_prog_compiler_wl='-Wl,'
9368       if test "$host_cpu" = ia64; then
9369         # AIX 5 now supports IA64 processor
9370         lt_prog_compiler_static='-Bstatic'
9371       else
9372         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9373       fi
9374       ;;
9375       darwin*)
9376         # PIC is the default on this platform
9377         # Common symbols not allowed in MH_DYLIB files
9378        case $cc_basename in
9379          xlc*)
9380          lt_prog_compiler_pic='-qnocommon'
9381          lt_prog_compiler_wl='-Wl,'
9382          ;;
9383        esac
9384        ;;
9385
9386     mingw* | cygwin* | pw32* | os2*)
9387       # This hack is so that the source file can tell whether it is being
9388       # built for inclusion in a dll (and should export symbols for example).
9389       lt_prog_compiler_pic='-DDLL_EXPORT'
9390       ;;
9391
9392     hpux9* | hpux10* | hpux11*)
9393       lt_prog_compiler_wl='-Wl,'
9394       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9395       # not for PA HP-UX.
9396       case $host_cpu in
9397       hppa*64*|ia64*)
9398         # +Z the default
9399         ;;
9400       *)
9401         lt_prog_compiler_pic='+Z'
9402         ;;
9403       esac
9404       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9405       lt_prog_compiler_static='${wl}-a ${wl}archive'
9406       ;;
9407
9408     irix5* | irix6* | nonstopux*)
9409       lt_prog_compiler_wl='-Wl,'
9410       # PIC (with -KPIC) is the default.
9411       lt_prog_compiler_static='-non_shared'
9412       ;;
9413
9414     newsos6)
9415       lt_prog_compiler_pic='-KPIC'
9416       lt_prog_compiler_static='-Bstatic'
9417       ;;
9418
9419     linux* | k*bsd*-gnu)
9420       case $cc_basename in
9421       icc* | ecc*)
9422         lt_prog_compiler_wl='-Wl,'
9423         lt_prog_compiler_pic='-KPIC'
9424         lt_prog_compiler_static='-static'
9425         ;;
9426       pgcc* | pgf77* | pgf90* | pgf95*)
9427         # Portland Group compilers (*not* the Pentium gcc compiler,
9428         # which looks to be a dead project)
9429         lt_prog_compiler_wl='-Wl,'
9430         lt_prog_compiler_pic='-fpic'
9431         lt_prog_compiler_static='-Bstatic'
9432         ;;
9433       ccc*)
9434         lt_prog_compiler_wl='-Wl,'
9435         # All Alpha code is PIC.
9436         lt_prog_compiler_static='-non_shared'
9437         ;;
9438       *)
9439         case `$CC -V 2>&1 | sed 5q` in
9440         *Sun\ C*)
9441           # Sun C 5.9
9442           lt_prog_compiler_pic='-KPIC'
9443           lt_prog_compiler_static='-Bstatic'
9444           lt_prog_compiler_wl='-Wl,'
9445           ;;
9446         *Sun\ F*)
9447           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9448           lt_prog_compiler_pic='-KPIC'
9449           lt_prog_compiler_static='-Bstatic'
9450           lt_prog_compiler_wl=''
9451           ;;
9452         esac
9453         ;;
9454       esac
9455       ;;
9456
9457     osf3* | osf4* | osf5*)
9458       lt_prog_compiler_wl='-Wl,'
9459       # All OSF/1 code is PIC.
9460       lt_prog_compiler_static='-non_shared'
9461       ;;
9462
9463     rdos*)
9464       lt_prog_compiler_static='-non_shared'
9465       ;;
9466
9467     solaris*)
9468       lt_prog_compiler_pic='-KPIC'
9469       lt_prog_compiler_static='-Bstatic'
9470       case $cc_basename in
9471       f77* | f90* | f95*)
9472         lt_prog_compiler_wl='-Qoption ld ';;
9473       *)
9474         lt_prog_compiler_wl='-Wl,';;
9475       esac
9476       ;;
9477
9478     sunos4*)
9479       lt_prog_compiler_wl='-Qoption ld '
9480       lt_prog_compiler_pic='-PIC'
9481       lt_prog_compiler_static='-Bstatic'
9482       ;;
9483
9484     sysv4 | sysv4.2uw2* | sysv4.3*)
9485       lt_prog_compiler_wl='-Wl,'
9486       lt_prog_compiler_pic='-KPIC'
9487       lt_prog_compiler_static='-Bstatic'
9488       ;;
9489
9490     sysv4*MP*)
9491       if test -d /usr/nec ;then
9492         lt_prog_compiler_pic='-Kconform_pic'
9493         lt_prog_compiler_static='-Bstatic'
9494       fi
9495       ;;
9496
9497     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9498       lt_prog_compiler_wl='-Wl,'
9499       lt_prog_compiler_pic='-KPIC'
9500       lt_prog_compiler_static='-Bstatic'
9501       ;;
9502
9503     unicos*)
9504       lt_prog_compiler_wl='-Wl,'
9505       lt_prog_compiler_can_build_shared=no
9506       ;;
9507
9508     uts4*)
9509       lt_prog_compiler_pic='-pic'
9510       lt_prog_compiler_static='-Bstatic'
9511       ;;
9512
9513     *)
9514       lt_prog_compiler_can_build_shared=no
9515       ;;
9516     esac
9517   fi
9518
9519 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9520 $as_echo "$lt_prog_compiler_pic" >&6; }
9521
9522 #
9523 # Check to make sure the PIC flag actually works.
9524 #
9525 if test -n "$lt_prog_compiler_pic"; then
9526
9527 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9528 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9529 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9530   $as_echo_n "(cached) " >&6
9531 else
9532   lt_cv_prog_compiler_pic_works=no
9533   ac_outfile=conftest.$ac_objext
9534    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9535    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9536    # Insert the option either (1) after the last *FLAGS variable, or
9537    # (2) before a word containing "conftest.", or (3) at the end.
9538    # Note that $ac_compile itself does not contain backslashes and begins
9539    # with a dollar sign (not a hyphen), so the echo should work correctly.
9540    # The option is referenced via a variable to avoid confusing sed.
9541    lt_compile=`echo "$ac_compile" | $SED \
9542    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9544    -e 's:$: $lt_compiler_flag:'`
9545    (eval echo "\"\$as_me:9545: $lt_compile\"" >&5)
9546    (eval "$lt_compile" 2>conftest.err)
9547    ac_status=$?
9548    cat conftest.err >&5
9549    echo "$as_me:9549: \$? = $ac_status" >&5
9550    if (exit $ac_status) && test -s "$ac_outfile"; then
9551      # The compiler can only warn and ignore the option if not recognized
9552      # So say no if there are warnings other than the usual output.
9553      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9554      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9555      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9556        lt_cv_prog_compiler_pic_works=yes
9557      fi
9558    fi
9559    $rm conftest*
9560
9561 fi
9562 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9563 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9564
9565 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9566     case $lt_prog_compiler_pic in
9567      "" | " "*) ;;
9568      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9569      esac
9570 else
9571     lt_prog_compiler_pic=
9572      lt_prog_compiler_can_build_shared=no
9573 fi
9574
9575 fi
9576 case $host_os in
9577   # For platforms which do not support PIC, -DPIC is meaningless:
9578   *djgpp*)
9579     lt_prog_compiler_pic=
9580     ;;
9581   *)
9582     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9583     ;;
9584 esac
9585
9586 #
9587 # Check to make sure the static flag actually works.
9588 #
9589 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9590 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9591 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9592 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9593   $as_echo_n "(cached) " >&6
9594 else
9595   lt_cv_prog_compiler_static_works=no
9596    save_LDFLAGS="$LDFLAGS"
9597    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9598    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9599    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9600      # The linker can only warn and ignore the option if not recognized
9601      # So say no if there are warnings
9602      if test -s conftest.err; then
9603        # Append any errors to the config.log.
9604        cat conftest.err 1>&5
9605        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9606        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607        if diff conftest.exp conftest.er2 >/dev/null; then
9608          lt_cv_prog_compiler_static_works=yes
9609        fi
9610      else
9611        lt_cv_prog_compiler_static_works=yes
9612      fi
9613    fi
9614    $rm -r conftest*
9615    LDFLAGS="$save_LDFLAGS"
9616
9617 fi
9618 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9619 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9620
9621 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9622     :
9623 else
9624     lt_prog_compiler_static=
9625 fi
9626
9627
9628 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9631   $as_echo_n "(cached) " >&6
9632 else
9633   lt_cv_prog_compiler_c_o=no
9634    $rm -r conftest 2>/dev/null
9635    mkdir conftest
9636    cd conftest
9637    mkdir out
9638    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639
9640    lt_compiler_flag="-o out/conftest2.$ac_objext"
9641    # Insert the option either (1) after the last *FLAGS variable, or
9642    # (2) before a word containing "conftest.", or (3) at the end.
9643    # Note that $ac_compile itself does not contain backslashes and begins
9644    # with a dollar sign (not a hyphen), so the echo should work correctly.
9645    lt_compile=`echo "$ac_compile" | $SED \
9646    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9647    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9648    -e 's:$: $lt_compiler_flag:'`
9649    (eval echo "\"\$as_me:9649: $lt_compile\"" >&5)
9650    (eval "$lt_compile" 2>out/conftest.err)
9651    ac_status=$?
9652    cat out/conftest.err >&5
9653    echo "$as_me:9653: \$? = $ac_status" >&5
9654    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9655    then
9656      # The compiler can only warn and ignore the option if not recognized
9657      # So say no if there are warnings
9658      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9659      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9660      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9661        lt_cv_prog_compiler_c_o=yes
9662      fi
9663    fi
9664    chmod u+w . 2>&5
9665    $rm conftest*
9666    # SGI C++ compiler will create directory out/ii_files/ for
9667    # template instantiation
9668    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9669    $rm out/* && rmdir out
9670    cd ..
9671    rmdir conftest
9672    $rm conftest*
9673
9674 fi
9675 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9676 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9677
9678
9679 hard_links="nottested"
9680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9681   # do not overwrite the value of need_locks provided by the user
9682   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9683 $as_echo_n "checking if we can lock with hard links... " >&6; }
9684   hard_links=yes
9685   $rm conftest*
9686   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9687   touch conftest.a
9688   ln conftest.a conftest.b 2>&5 || hard_links=no
9689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9690   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9691 $as_echo "$hard_links" >&6; }
9692   if test "$hard_links" = no; then
9693     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9694 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9695     need_locks=warn
9696   fi
9697 else
9698   need_locks=no
9699 fi
9700
9701 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9702 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9703
9704   runpath_var=
9705   allow_undefined_flag=
9706   enable_shared_with_static_runtimes=no
9707   archive_cmds=
9708   archive_expsym_cmds=
9709   old_archive_From_new_cmds=
9710   old_archive_from_expsyms_cmds=
9711   export_dynamic_flag_spec=
9712   whole_archive_flag_spec=
9713   thread_safe_flag_spec=
9714   hardcode_libdir_flag_spec=
9715   hardcode_libdir_flag_spec_ld=
9716   hardcode_libdir_separator=
9717   hardcode_direct=no
9718   hardcode_minus_L=no
9719   hardcode_shlibpath_var=unsupported
9720   link_all_deplibs=unknown
9721   hardcode_automatic=no
9722   module_cmds=
9723   module_expsym_cmds=
9724   always_export_symbols=no
9725   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9726   # include_expsyms should be a list of space-separated symbols to be *always*
9727   # included in the symbol list
9728   include_expsyms=
9729   # exclude_expsyms can be an extended regexp of symbols to exclude
9730   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9731   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9732   # as well as any symbol that contains `d'.
9733   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9734   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9735   # platforms (ab)use it in PIC code, but their linkers get confused if
9736   # the symbol is explicitly referenced.  Since portable code cannot
9737   # rely on this symbol name, it's probably fine to never include it in
9738   # preloaded symbol tables.
9739   # Exclude shared library initialization/finalization symbols.
9740   extract_expsyms_cmds=
9741   # Just being paranoid about ensuring that cc_basename is set.
9742   for cc_temp in $compiler""; do
9743   case $cc_temp in
9744     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9745     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9746     \-*) ;;
9747     *) break;;
9748   esac
9749 done
9750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9751
9752   case $host_os in
9753   cygwin* | mingw* | pw32*)
9754     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9755     # When not using gcc, we currently assume that we are using
9756     # Microsoft Visual C++.
9757     if test "$GCC" != yes; then
9758       with_gnu_ld=no
9759     fi
9760     ;;
9761   interix*)
9762     # we just hope/assume this is gcc and not c89 (= MSVC++)
9763     with_gnu_ld=yes
9764     ;;
9765   openbsd*)
9766     with_gnu_ld=no
9767     ;;
9768   esac
9769
9770   ld_shlibs=yes
9771   if test "$with_gnu_ld" = yes; then
9772     # If archive_cmds runs LD, not CC, wlarc should be empty
9773     wlarc='${wl}'
9774
9775     # Set some defaults for GNU ld with shared library support. These
9776     # are reset later if shared libraries are not supported. Putting them
9777     # here allows them to be overridden if necessary.
9778     runpath_var=LD_RUN_PATH
9779     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9780     export_dynamic_flag_spec='${wl}--export-dynamic'
9781     # ancient GNU ld didn't support --whole-archive et. al.
9782     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9783         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9784       else
9785         whole_archive_flag_spec=
9786     fi
9787     supports_anon_versioning=no
9788     case `$LD -v 2>/dev/null` in
9789       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9790       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9791       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9792       *\ 2.11.*) ;; # other 2.11 versions
9793       *) supports_anon_versioning=yes ;;
9794     esac
9795
9796     # See if GNU ld supports shared libraries.
9797     case $host_os in
9798     aix[3-9]*)
9799       # On AIX/PPC, the GNU linker is very broken
9800       if test "$host_cpu" != ia64; then
9801         ld_shlibs=no
9802         cat <<EOF 1>&2
9803
9804 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9805 *** to be unable to reliably create shared libraries on AIX.
9806 *** Therefore, libtool is disabling shared libraries support.  If you
9807 *** really care for shared libraries, you may want to modify your PATH
9808 *** so that a non-GNU linker is found, and then restart.
9809
9810 EOF
9811       fi
9812       ;;
9813
9814     amigaos*)
9815       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)'
9816       hardcode_libdir_flag_spec='-L$libdir'
9817       hardcode_minus_L=yes
9818
9819       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9820       # that the semantics of dynamic libraries on AmigaOS, at least up
9821       # to version 4, is to share data among multiple programs linked
9822       # with the same dynamic library.  Since this doesn't match the
9823       # behavior of shared libraries on other platforms, we can't use
9824       # them.
9825       ld_shlibs=no
9826       ;;
9827
9828     beos*)
9829       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9830         allow_undefined_flag=unsupported
9831         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9832         # support --undefined.  This deserves some investigation.  FIXME
9833         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834       else
9835         ld_shlibs=no
9836       fi
9837       ;;
9838
9839     cygwin* | mingw* | pw32*)
9840       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9841       # as there is no search path for DLLs.
9842       hardcode_libdir_flag_spec='-L$libdir'
9843       allow_undefined_flag=unsupported
9844       always_export_symbols=no
9845       enable_shared_with_static_runtimes=yes
9846       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9847
9848       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9850         # If the export-symbols file already is a .def file (1st line
9851         # is EXPORTS), use it as is; otherwise, prepend...
9852         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9853           cp $export_symbols $output_objdir/$soname.def;
9854         else
9855           echo EXPORTS > $output_objdir/$soname.def;
9856           cat $export_symbols >> $output_objdir/$soname.def;
9857         fi~
9858         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9859       else
9860         ld_shlibs=no
9861       fi
9862       ;;
9863
9864     interix[3-9]*)
9865       hardcode_direct=no
9866       hardcode_shlibpath_var=no
9867       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9868       export_dynamic_flag_spec='${wl}-E'
9869       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9870       # Instead, shared libraries are loaded at an image base (0x10000000 by
9871       # default) and relocated if they conflict, which is a slow very memory
9872       # consuming and fragmenting process.  To avoid this, we pick a random,
9873       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9874       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9875       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9876       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'
9877       ;;
9878
9879     gnu* | linux* | k*bsd*-gnu)
9880       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9881         tmp_addflag=
9882         case $cc_basename,$host_cpu in
9883         pgcc*)                          # Portland Group C compiler
9884           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'
9885           tmp_addflag=' $pic_flag'
9886           ;;
9887         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9888           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'
9889           tmp_addflag=' $pic_flag -Mnomain' ;;
9890         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9891           tmp_addflag=' -i_dynamic' ;;
9892         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9893           tmp_addflag=' -i_dynamic -nofor_main' ;;
9894         ifc* | ifort*)                  # Intel Fortran compiler
9895           tmp_addflag=' -nofor_main' ;;
9896         esac
9897         case `$CC -V 2>&1 | sed 5q` in
9898         *Sun\ C*)                       # Sun C 5.9
9899           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'
9900           tmp_sharedflag='-G' ;;
9901         *Sun\ F*)                       # Sun Fortran 8.3
9902           tmp_sharedflag='-G' ;;
9903         *)
9904           tmp_sharedflag='-shared' ;;
9905         esac
9906         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9907
9908         if test $supports_anon_versioning = yes; then
9909           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9910   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9911   $echo "local: *; };" >> $output_objdir/$libname.ver~
9912           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9913         fi
9914       else
9915         ld_shlibs=no
9916       fi
9917       ;;
9918
9919     netbsd*)
9920       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9921         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9922         wlarc=
9923       else
9924         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9926       fi
9927       ;;
9928
9929     solaris*)
9930       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9931         ld_shlibs=no
9932         cat <<EOF 1>&2
9933
9934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9935 *** create shared libraries on Solaris systems.  Therefore, libtool
9936 *** is disabling shared libraries support.  We urge you to upgrade GNU
9937 *** binutils to release 2.9.1 or newer.  Another option is to modify
9938 *** your PATH or compiler configuration so that the native linker is
9939 *** used, and then restart.
9940
9941 EOF
9942       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9943         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9945       else
9946         ld_shlibs=no
9947       fi
9948       ;;
9949
9950     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9951       case `$LD -v 2>&1` in
9952         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9953         ld_shlibs=no
9954         cat <<_LT_EOF 1>&2
9955
9956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9957 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9958 *** is disabling shared libraries support.  We urge you to upgrade GNU
9959 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9960 *** your PATH or compiler configuration so that the native linker is
9961 *** used, and then restart.
9962
9963 _LT_EOF
9964         ;;
9965         *)
9966           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9967             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9968             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9969             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9970           else
9971             ld_shlibs=no
9972           fi
9973         ;;
9974       esac
9975       ;;
9976
9977     sunos4*)
9978       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979       wlarc=
9980       hardcode_direct=yes
9981       hardcode_shlibpath_var=no
9982       ;;
9983
9984     *)
9985       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9986         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9988       else
9989         ld_shlibs=no
9990       fi
9991       ;;
9992     esac
9993
9994     if test "$ld_shlibs" = no; then
9995       runpath_var=
9996       hardcode_libdir_flag_spec=
9997       export_dynamic_flag_spec=
9998       whole_archive_flag_spec=
9999     fi
10000   else
10001     # PORTME fill in a description of your system's linker (not GNU ld)
10002     case $host_os in
10003     aix3*)
10004       allow_undefined_flag=unsupported
10005       always_export_symbols=yes
10006       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'
10007       # Note: this linker hardcodes the directories in LIBPATH if there
10008       # are no directories specified by -L.
10009       hardcode_minus_L=yes
10010       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10011         # Neither direct hardcoding nor static linking is supported with a
10012         # broken collect2.
10013         hardcode_direct=unsupported
10014       fi
10015       ;;
10016
10017     aix[4-9]*)
10018       if test "$host_cpu" = ia64; then
10019         # On IA64, the linker does run time linking by default, so we don't
10020         # have to do anything special.
10021         aix_use_runtimelinking=no
10022         exp_sym_flag='-Bexport'
10023         no_entry_flag=""
10024       else
10025         # If we're using GNU nm, then we don't want the "-C" option.
10026         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10027         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10028           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'
10029         else
10030           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'
10031         fi
10032         aix_use_runtimelinking=no
10033
10034         # Test if we are trying to use run time linking or normal
10035         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10036         # need to do runtime linking.
10037         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10038           for ld_flag in $LDFLAGS; do
10039           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10040             aix_use_runtimelinking=yes
10041             break
10042           fi
10043           done
10044           ;;
10045         esac
10046
10047         exp_sym_flag='-bexport'
10048         no_entry_flag='-bnoentry'
10049       fi
10050
10051       # When large executables or shared objects are built, AIX ld can
10052       # have problems creating the table of contents.  If linking a library
10053       # or program results in "error TOC overflow" add -mminimal-toc to
10054       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10055       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10056
10057       archive_cmds=''
10058       hardcode_direct=yes
10059       hardcode_libdir_separator=':'
10060       link_all_deplibs=yes
10061
10062       if test "$GCC" = yes; then
10063         case $host_os in aix4.[012]|aix4.[012].*)
10064         # We only want to do this on AIX 4.2 and lower, the check
10065         # below for broken collect2 doesn't work under 4.3+
10066           collect2name=`${CC} -print-prog-name=collect2`
10067           if test -f "$collect2name" && \
10068            strings "$collect2name" | grep resolve_lib_name >/dev/null
10069           then
10070           # We have reworked collect2
10071           :
10072           else
10073           # We have old collect2
10074           hardcode_direct=unsupported
10075           # It fails to find uninstalled libraries when the uninstalled
10076           # path is not listed in the libpath.  Setting hardcode_minus_L
10077           # to unsupported forces relinking
10078           hardcode_minus_L=yes
10079           hardcode_libdir_flag_spec='-L$libdir'
10080           hardcode_libdir_separator=
10081           fi
10082           ;;
10083         esac
10084         shared_flag='-shared'
10085         if test "$aix_use_runtimelinking" = yes; then
10086           shared_flag="$shared_flag "'${wl}-G'
10087         fi
10088       else
10089         # not using gcc
10090         if test "$host_cpu" = ia64; then
10091         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10092         # chokes on -Wl,-G. The following line is correct:
10093           shared_flag='-G'
10094         else
10095           if test "$aix_use_runtimelinking" = yes; then
10096             shared_flag='${wl}-G'
10097           else
10098             shared_flag='${wl}-bM:SRE'
10099           fi
10100         fi
10101       fi
10102
10103       # It seems that -bexpall does not export symbols beginning with
10104       # underscore (_), so it is better to generate a list of symbols to export.
10105       always_export_symbols=yes
10106       if test "$aix_use_runtimelinking" = yes; then
10107         # Warning - without using the other runtime loading flags (-brtl),
10108         # -berok will link without error, but may produce a broken library.
10109         allow_undefined_flag='-berok'
10110        # Determine the default libpath from the value encoded in an empty executable.
10111        cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117
10118 int
10119 main ()
10120 {
10121
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130   *) ac_try_echo=$ac_try;;
10131 esac
10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133 $as_echo "$ac_try_echo") >&5
10134   (eval "$ac_link") 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } && {
10141          test -z "$ac_c_werror_flag" ||
10142          test ! -s conftest.err
10143        } && test -s conftest$ac_exeext && {
10144          test "$cross_compiling" = yes ||
10145          $as_test_x conftest$ac_exeext
10146        }; then
10147
10148 lt_aix_libpath_sed='
10149     /Import File Strings/,/^$/ {
10150         /^0/ {
10151             s/^0  *\(.*\)$/\1/
10152             p
10153         }
10154     }'
10155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156 # Check for a 64-bit object if we didn't find anything.
10157 if test -z "$aix_libpath"; then
10158   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10159 fi
10160 else
10161   $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164
10165 fi
10166
10167 rm -rf conftest.dSYM
10168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169       conftest$ac_exeext conftest.$ac_ext
10170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10171
10172        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10173         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"
10174        else
10175         if test "$host_cpu" = ia64; then
10176           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10177           allow_undefined_flag="-z nodefs"
10178           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"
10179         else
10180          # Determine the default libpath from the value encoded in an empty executable.
10181          cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203 $as_echo "$ac_try_echo") >&5
10204   (eval "$ac_link") 2>conftest.er1
10205   ac_status=$?
10206   grep -v '^ *+' conftest.er1 >conftest.err
10207   rm -f conftest.er1
10208   cat conftest.err >&5
10209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); } && {
10211          test -z "$ac_c_werror_flag" ||
10212          test ! -s conftest.err
10213        } && test -s conftest$ac_exeext && {
10214          test "$cross_compiling" = yes ||
10215          $as_test_x conftest$ac_exeext
10216        }; then
10217
10218 lt_aix_libpath_sed='
10219     /Import File Strings/,/^$/ {
10220         /^0/ {
10221             s/^0  *\(.*\)$/\1/
10222             p
10223         }
10224     }'
10225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10226 # Check for a 64-bit object if we didn't find anything.
10227 if test -z "$aix_libpath"; then
10228   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10229 fi
10230 else
10231   $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234
10235 fi
10236
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239       conftest$ac_exeext conftest.$ac_ext
10240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10241
10242          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10243           # Warning - without using the other run time loading flags,
10244           # -berok will link without error, but may produce a broken library.
10245           no_undefined_flag=' ${wl}-bernotok'
10246           allow_undefined_flag=' ${wl}-berok'
10247           # Exported symbols can be pulled into shared objects from archives
10248           whole_archive_flag_spec='$convenience'
10249           archive_cmds_need_lc=yes
10250           # This is similar to how AIX traditionally builds its shared libraries.
10251           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'
10252         fi
10253       fi
10254       ;;
10255
10256     amigaos*)
10257       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)'
10258       hardcode_libdir_flag_spec='-L$libdir'
10259       hardcode_minus_L=yes
10260       # see comment about different semantics on the GNU ld section
10261       ld_shlibs=no
10262       ;;
10263
10264     bsdi[45]*)
10265       export_dynamic_flag_spec=-rdynamic
10266       ;;
10267
10268     cygwin* | mingw* | pw32*)
10269       # When not using gcc, we currently assume that we are using
10270       # Microsoft Visual C++.
10271       # hardcode_libdir_flag_spec is actually meaningless, as there is
10272       # no search path for DLLs.
10273       hardcode_libdir_flag_spec=' '
10274       allow_undefined_flag=unsupported
10275       # Tell ltmain to make .lib files, not .a files.
10276       libext=lib
10277       # Tell ltmain to make .dll files, not .so files.
10278       shrext_cmds=".dll"
10279       # FIXME: Setting linknames here is a bad hack.
10280       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10281       # The linker will automatically build a .lib file if we build a DLL.
10282       old_archive_From_new_cmds='true'
10283       # FIXME: Should let the user specify the lib program.
10284       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10285       fix_srcfile_path='`cygpath -w "$srcfile"`'
10286       enable_shared_with_static_runtimes=yes
10287       ;;
10288
10289     darwin* | rhapsody*)
10290       case $host_os in
10291         rhapsody* | darwin1.[012])
10292          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10293          ;;
10294        *) # Darwin 1.3 on
10295          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10296            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10297          else
10298            case ${MACOSX_DEPLOYMENT_TARGET} in
10299              10.[012])
10300                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10301                ;;
10302              10.*)
10303                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10304                ;;
10305            esac
10306          fi
10307          ;;
10308       esac
10309       archive_cmds_need_lc=no
10310       hardcode_direct=no
10311       hardcode_automatic=yes
10312       hardcode_shlibpath_var=unsupported
10313       whole_archive_flag_spec=''
10314       link_all_deplibs=yes
10315     if test "$GCC" = yes ; then
10316         output_verbose_link_cmd='echo'
10317         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10318         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10319         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}"
10320         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}"
10321     else
10322       case $cc_basename in
10323         xlc*)
10324          output_verbose_link_cmd='echo'
10325          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10326          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10327           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10328          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}'
10329           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}'
10330           ;;
10331        *)
10332          ld_shlibs=no
10333           ;;
10334       esac
10335     fi
10336       ;;
10337
10338     dgux*)
10339       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340       hardcode_libdir_flag_spec='-L$libdir'
10341       hardcode_shlibpath_var=no
10342       ;;
10343
10344     freebsd1*)
10345       ld_shlibs=no
10346       ;;
10347
10348     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10349     # support.  Future versions do this automatically, but an explicit c++rt0.o
10350     # does not break anything, and helps significantly (at the cost of a little
10351     # extra space).
10352     freebsd2.2*)
10353       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10354       hardcode_libdir_flag_spec='-R$libdir'
10355       hardcode_direct=yes
10356       hardcode_shlibpath_var=no
10357       ;;
10358
10359     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10360     freebsd2*)
10361       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10362       hardcode_direct=yes
10363       hardcode_minus_L=yes
10364       hardcode_shlibpath_var=no
10365       ;;
10366
10367     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10368     freebsd* | dragonfly*)
10369       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10370       hardcode_libdir_flag_spec='-R$libdir'
10371       hardcode_direct=yes
10372       hardcode_shlibpath_var=no
10373       ;;
10374
10375     hpux9*)
10376       if test "$GCC" = yes; then
10377         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'
10378       else
10379         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'
10380       fi
10381       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10382       hardcode_libdir_separator=:
10383       hardcode_direct=yes
10384
10385       # hardcode_minus_L: Not really in the search PATH,
10386       # but as the default location of the library.
10387       hardcode_minus_L=yes
10388       export_dynamic_flag_spec='${wl}-E'
10389       ;;
10390
10391     hpux10*)
10392       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10393         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394       else
10395         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396       fi
10397       if test "$with_gnu_ld" = no; then
10398         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10399         hardcode_libdir_separator=:
10400
10401         hardcode_direct=yes
10402         export_dynamic_flag_spec='${wl}-E'
10403
10404         # hardcode_minus_L: Not really in the search PATH,
10405         # but as the default location of the library.
10406         hardcode_minus_L=yes
10407       fi
10408       ;;
10409
10410     hpux11*)
10411       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10412         case $host_cpu in
10413         hppa*64*)
10414           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10415           ;;
10416         ia64*)
10417           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10418           ;;
10419         *)
10420           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421           ;;
10422         esac
10423       else
10424         case $host_cpu in
10425         hppa*64*)
10426           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10427           ;;
10428         ia64*)
10429           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10430           ;;
10431         *)
10432           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10433           ;;
10434         esac
10435       fi
10436       if test "$with_gnu_ld" = no; then
10437         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10438         hardcode_libdir_separator=:
10439
10440         case $host_cpu in
10441         hppa*64*|ia64*)
10442           hardcode_libdir_flag_spec_ld='+b $libdir'
10443           hardcode_direct=no
10444           hardcode_shlibpath_var=no
10445           ;;
10446         *)
10447           hardcode_direct=yes
10448           export_dynamic_flag_spec='${wl}-E'
10449
10450           # hardcode_minus_L: Not really in the search PATH,
10451           # but as the default location of the library.
10452           hardcode_minus_L=yes
10453           ;;
10454         esac
10455       fi
10456       ;;
10457
10458     irix5* | irix6* | nonstopux*)
10459       if test "$GCC" = yes; then
10460         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'
10461       else
10462         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'
10463         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10464       fi
10465       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10466       hardcode_libdir_separator=:
10467       link_all_deplibs=yes
10468       ;;
10469
10470     netbsd*)
10471       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10472         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10473       else
10474         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10475       fi
10476       hardcode_libdir_flag_spec='-R$libdir'
10477       hardcode_direct=yes
10478       hardcode_shlibpath_var=no
10479       ;;
10480
10481     newsos6)
10482       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483       hardcode_direct=yes
10484       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10485       hardcode_libdir_separator=:
10486       hardcode_shlibpath_var=no
10487       ;;
10488
10489     openbsd*)
10490       if test -f /usr/libexec/ld.so; then
10491         hardcode_direct=yes
10492         hardcode_shlibpath_var=no
10493         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10494           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10496           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497           export_dynamic_flag_spec='${wl}-E'
10498         else
10499           case $host_os in
10500            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10501              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502              hardcode_libdir_flag_spec='-R$libdir'
10503              ;;
10504            *)
10505              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10506              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507              ;;
10508           esac
10509         fi
10510       else
10511         ld_shlibs=no
10512       fi
10513       ;;
10514
10515     os2*)
10516       hardcode_libdir_flag_spec='-L$libdir'
10517       hardcode_minus_L=yes
10518       allow_undefined_flag=unsupported
10519       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'
10520       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521       ;;
10522
10523     osf3*)
10524       if test "$GCC" = yes; then
10525         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526         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'
10527       else
10528         allow_undefined_flag=' -expect_unresolved \*'
10529         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'
10530       fi
10531       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10532       hardcode_libdir_separator=:
10533       ;;
10534
10535     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10536       if test "$GCC" = yes; then
10537         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10538         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'
10539         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540       else
10541         allow_undefined_flag=' -expect_unresolved \*'
10542         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'
10543         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10544         $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'
10545
10546         # Both c and cxx compiler support -rpath directly
10547         hardcode_libdir_flag_spec='-rpath $libdir'
10548       fi
10549       hardcode_libdir_separator=:
10550       ;;
10551
10552     solaris*)
10553       no_undefined_flag=' -z text'
10554       if test "$GCC" = yes; then
10555         wlarc='${wl}'
10556         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10557         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10558           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10559       else
10560         wlarc=''
10561         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10563         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10564       fi
10565       hardcode_libdir_flag_spec='-R$libdir'
10566       hardcode_shlibpath_var=no
10567       case $host_os in
10568       solaris2.[0-5] | solaris2.[0-5].*) ;;
10569       *)
10570         # The compiler driver will combine and reorder linker options,
10571         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10572         # but is careful enough not to reorder.
10573         # Supported since Solaris 2.6 (maybe 2.5.1?)
10574         if test "$GCC" = yes; then
10575           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10576         else
10577           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10578         fi
10579         ;;
10580       esac
10581       link_all_deplibs=yes
10582       ;;
10583
10584     sunos4*)
10585       if test "x$host_vendor" = xsequent; then
10586         # Use $CC to link under sequent, because it throws in some extra .o
10587         # files that make .init and .fini sections work.
10588         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10589       else
10590         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10591       fi
10592       hardcode_libdir_flag_spec='-L$libdir'
10593       hardcode_direct=yes
10594       hardcode_minus_L=yes
10595       hardcode_shlibpath_var=no
10596       ;;
10597
10598     sysv4)
10599       case $host_vendor in
10600         sni)
10601           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602           hardcode_direct=yes # is this really true???
10603         ;;
10604         siemens)
10605           ## LD is ld it makes a PLAMLIB
10606           ## CC just makes a GrossModule.
10607           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10608           reload_cmds='$CC -r -o $output$reload_objs'
10609           hardcode_direct=no
10610         ;;
10611         motorola)
10612           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10614         ;;
10615       esac
10616       runpath_var='LD_RUN_PATH'
10617       hardcode_shlibpath_var=no
10618       ;;
10619
10620     sysv4.3*)
10621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622       hardcode_shlibpath_var=no
10623       export_dynamic_flag_spec='-Bexport'
10624       ;;
10625
10626     sysv4*MP*)
10627       if test -d /usr/nec; then
10628         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629         hardcode_shlibpath_var=no
10630         runpath_var=LD_RUN_PATH
10631         hardcode_runpath_var=yes
10632         ld_shlibs=yes
10633       fi
10634       ;;
10635
10636     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10637       no_undefined_flag='${wl}-z,text'
10638       archive_cmds_need_lc=no
10639       hardcode_shlibpath_var=no
10640       runpath_var='LD_RUN_PATH'
10641
10642       if test "$GCC" = yes; then
10643         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645       else
10646         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648       fi
10649       ;;
10650
10651     sysv5* | sco3.2v5* | sco5v6*)
10652       # Note: We can NOT use -z defs as we might desire, because we do not
10653       # link with -lc, and that would cause any symbols used from libc to
10654       # always be unresolved, which means just about no library would
10655       # ever link correctly.  If we're not using GNU ld we use -z text
10656       # though, which does catch some bad symbols but isn't as heavy-handed
10657       # as -z defs.
10658       no_undefined_flag='${wl}-z,text'
10659       allow_undefined_flag='${wl}-z,nodefs'
10660       archive_cmds_need_lc=no
10661       hardcode_shlibpath_var=no
10662       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10663       hardcode_libdir_separator=':'
10664       link_all_deplibs=yes
10665       export_dynamic_flag_spec='${wl}-Bexport'
10666       runpath_var='LD_RUN_PATH'
10667
10668       if test "$GCC" = yes; then
10669         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10670         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10671       else
10672         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674       fi
10675       ;;
10676
10677     uts4*)
10678       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679       hardcode_libdir_flag_spec='-L$libdir'
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     *)
10684       ld_shlibs=no
10685       ;;
10686     esac
10687   fi
10688
10689 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10690 $as_echo "$ld_shlibs" >&6; }
10691 test "$ld_shlibs" = no && can_build_shared=no
10692
10693 #
10694 # Do we need to explicitly link libc?
10695 #
10696 case "x$archive_cmds_need_lc" in
10697 x|xyes)
10698   # Assume -lc should be added
10699   archive_cmds_need_lc=yes
10700
10701   if test "$enable_shared" = yes && test "$GCC" = yes; then
10702     case $archive_cmds in
10703     *'~'*)
10704       # FIXME: we may have to deal with multi-command sequences.
10705       ;;
10706     '$CC '*)
10707       # Test whether the compiler implicitly links with -lc since on some
10708       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10709       # to ld, don't add -lc before -lgcc.
10710       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10712       $rm conftest*
10713       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10714
10715       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716   (eval $ac_compile) 2>&5
10717   ac_status=$?
10718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } 2>conftest.err; then
10720         soname=conftest
10721         lib=conftest
10722         libobjs=conftest.$ac_objext
10723         deplibs=
10724         wl=$lt_prog_compiler_wl
10725         pic_flag=$lt_prog_compiler_pic
10726         compiler_flags=-v
10727         linker_flags=-v
10728         verstring=
10729         output_objdir=.
10730         libname=conftest
10731         lt_save_allow_undefined_flag=$allow_undefined_flag
10732         allow_undefined_flag=
10733         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10734   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10735   ac_status=$?
10736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }
10738         then
10739           archive_cmds_need_lc=no
10740         else
10741           archive_cmds_need_lc=yes
10742         fi
10743         allow_undefined_flag=$lt_save_allow_undefined_flag
10744       else
10745         cat conftest.err 1>&5
10746       fi
10747       $rm conftest*
10748       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10749 $as_echo "$archive_cmds_need_lc" >&6; }
10750       ;;
10751     esac
10752   fi
10753   ;;
10754 esac
10755
10756 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10758 library_names_spec=
10759 libname_spec='lib$name'
10760 soname_spec=
10761 shrext_cmds=".so"
10762 postinstall_cmds=
10763 postuninstall_cmds=
10764 finish_cmds=
10765 finish_eval=
10766 shlibpath_var=
10767 shlibpath_overrides_runpath=unknown
10768 version_type=none
10769 dynamic_linker="$host_os ld.so"
10770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10771
10772 if test "$GCC" = yes; then
10773   case $host_os in
10774     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10775     *) lt_awk_arg="/^libraries:/" ;;
10776   esac
10777   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10778   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10779     # if the path contains ";" then we assume it to be the separator
10780     # otherwise default to the standard path separator (i.e. ":") - it is
10781     # assumed that no part of a normal pathname contains ";" but that should
10782     # okay in the real world where ";" in dirpaths is itself problematic.
10783     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10784   else
10785     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10786   fi
10787   # Ok, now we have the path, separated by spaces, we can step through it
10788   # and add multilib dir if necessary.
10789   lt_tmp_lt_search_path_spec=
10790   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10791   for lt_sys_path in $lt_search_path_spec; do
10792     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10793       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10794     else
10795       test -d "$lt_sys_path" && \
10796         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10797     fi
10798   done
10799   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10800 BEGIN {RS=" "; FS="/|\n";} {
10801   lt_foo="";
10802   lt_count=0;
10803   for (lt_i = NF; lt_i > 0; lt_i--) {
10804     if ($lt_i != "" && $lt_i != ".") {
10805       if ($lt_i == "..") {
10806         lt_count++;
10807       } else {
10808         if (lt_count == 0) {
10809           lt_foo="/" $lt_i lt_foo;
10810         } else {
10811           lt_count--;
10812         }
10813       }
10814     }
10815   }
10816   if (lt_foo != "") { lt_freq[lt_foo]++; }
10817   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10818 }'`
10819   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10820 else
10821   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10822 fi
10823 need_lib_prefix=unknown
10824 hardcode_into_libs=no
10825
10826 # when you set need_version to no, make sure it does not cause -set_version
10827 # flags to be left without arguments
10828 need_version=unknown
10829
10830 case $host_os in
10831 aix3*)
10832   version_type=linux
10833   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10834   shlibpath_var=LIBPATH
10835
10836   # AIX 3 has no versioning support, so we append a major version to the name.
10837   soname_spec='${libname}${release}${shared_ext}$major'
10838   ;;
10839
10840 aix[4-9]*)
10841   version_type=linux
10842   need_lib_prefix=no
10843   need_version=no
10844   hardcode_into_libs=yes
10845   if test "$host_cpu" = ia64; then
10846     # AIX 5 supports IA64
10847     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10848     shlibpath_var=LD_LIBRARY_PATH
10849   else
10850     # With GCC up to 2.95.x, collect2 would create an import file
10851     # for dependence libraries.  The import file would start with
10852     # the line `#! .'.  This would cause the generated library to
10853     # depend on `.', always an invalid library.  This was fixed in
10854     # development snapshots of GCC prior to 3.0.
10855     case $host_os in
10856       aix4 | aix4.[01] | aix4.[01].*)
10857       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10858            echo ' yes '
10859            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10860         :
10861       else
10862         can_build_shared=no
10863       fi
10864       ;;
10865     esac
10866     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10867     # soname into executable. Probably we can add versioning support to
10868     # collect2, so additional links can be useful in future.
10869     if test "$aix_use_runtimelinking" = yes; then
10870       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10871       # instead of lib<name>.a to let people know that these are not
10872       # typical AIX shared libraries.
10873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874     else
10875       # We preserve .a as extension for shared libraries through AIX4.2
10876       # and later when we are not doing run time linking.
10877       library_names_spec='${libname}${release}.a $libname.a'
10878       soname_spec='${libname}${release}${shared_ext}$major'
10879     fi
10880     shlibpath_var=LIBPATH
10881   fi
10882   ;;
10883
10884 amigaos*)
10885   library_names_spec='$libname.ixlibrary $libname.a'
10886   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10887   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'
10888   ;;
10889
10890 beos*)
10891   library_names_spec='${libname}${shared_ext}'
10892   dynamic_linker="$host_os ld.so"
10893   shlibpath_var=LIBRARY_PATH
10894   ;;
10895
10896 bsdi[45]*)
10897   version_type=linux
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900   soname_spec='${libname}${release}${shared_ext}$major'
10901   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10904   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10905   # the default ld.so.conf also contains /usr/contrib/lib and
10906   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10907   # libtool to hard-code these into programs
10908   ;;
10909
10910 cygwin* | mingw* | pw32*)
10911   version_type=windows
10912   shrext_cmds=".dll"
10913   need_version=no
10914   need_lib_prefix=no
10915
10916   case $GCC,$host_os in
10917   yes,cygwin* | yes,mingw* | yes,pw32*)
10918     library_names_spec='$libname.dll.a'
10919     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10920     postinstall_cmds='base_file=`basename \${file}`~
10921       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10922       dldir=$destdir/`dirname \$dlpath`~
10923       test -d \$dldir || mkdir -p \$dldir~
10924       $install_prog $dir/$dlname \$dldir/$dlname~
10925       chmod a+x \$dldir/$dlname'
10926     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10927       dlpath=$dir/\$dldll~
10928        $rm \$dlpath'
10929     shlibpath_overrides_runpath=yes
10930
10931     case $host_os in
10932     cygwin*)
10933       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10934       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10935       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10936       ;;
10937     mingw*)
10938       # MinGW DLLs use traditional 'lib' prefix
10939       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10940       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10941       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10942         # It is most probably a Windows format PATH printed by
10943         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10944         # path with ; separators, and with drive letters. We can handle the
10945         # drive letters (cygwin fileutils understands them), so leave them,
10946         # especially as we might pass files found there to a mingw objdump,
10947         # which wouldn't understand a cygwinified path. Ahh.
10948         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10949       else
10950         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10951       fi
10952       ;;
10953     pw32*)
10954       # pw32 DLLs use 'pw' prefix rather than 'lib'
10955       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10956       ;;
10957     esac
10958     ;;
10959
10960   *)
10961     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10962     ;;
10963   esac
10964   dynamic_linker='Win32 ld.exe'
10965   # FIXME: first we should search . and the directory the executable is in
10966   shlibpath_var=PATH
10967   ;;
10968
10969 darwin* | rhapsody*)
10970   dynamic_linker="$host_os dyld"
10971   version_type=darwin
10972   need_lib_prefix=no
10973   need_version=no
10974   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10975   soname_spec='${libname}${release}${major}$shared_ext'
10976   shlibpath_overrides_runpath=yes
10977   shlibpath_var=DYLD_LIBRARY_PATH
10978   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10979
10980   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10981   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10982   ;;
10983
10984 dgux*)
10985   version_type=linux
10986   need_lib_prefix=no
10987   need_version=no
10988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10989   soname_spec='${libname}${release}${shared_ext}$major'
10990   shlibpath_var=LD_LIBRARY_PATH
10991   ;;
10992
10993 freebsd1*)
10994   dynamic_linker=no
10995   ;;
10996
10997 freebsd* | dragonfly*)
10998   # DragonFly does not have aout.  When/if they implement a new
10999   # versioning mechanism, adjust this.
11000   if test -x /usr/bin/objformat; then
11001     objformat=`/usr/bin/objformat`
11002   else
11003     case $host_os in
11004     freebsd[123]*) objformat=aout ;;
11005     *) objformat=elf ;;
11006     esac
11007   fi
11008   version_type=freebsd-$objformat
11009   case $version_type in
11010     freebsd-elf*)
11011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11012       need_version=no
11013       need_lib_prefix=no
11014       ;;
11015     freebsd-*)
11016       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11017       need_version=yes
11018       ;;
11019   esac
11020   shlibpath_var=LD_LIBRARY_PATH
11021   case $host_os in
11022   freebsd2*)
11023     shlibpath_overrides_runpath=yes
11024     ;;
11025   freebsd3.[01]* | freebsdelf3.[01]*)
11026     shlibpath_overrides_runpath=yes
11027     hardcode_into_libs=yes
11028     ;;
11029   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11030   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11031     shlibpath_overrides_runpath=no
11032     hardcode_into_libs=yes
11033     ;;
11034   *) # from 4.6 on, and DragonFly
11035     shlibpath_overrides_runpath=yes
11036     hardcode_into_libs=yes
11037     ;;
11038   esac
11039   ;;
11040
11041 gnu*)
11042   version_type=linux
11043   need_lib_prefix=no
11044   need_version=no
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   shlibpath_var=LD_LIBRARY_PATH
11048   hardcode_into_libs=yes
11049   ;;
11050
11051 hpux9* | hpux10* | hpux11*)
11052   # Give a soname corresponding to the major version so that dld.sl refuses to
11053   # link against other versions.
11054   version_type=sunos
11055   need_lib_prefix=no
11056   need_version=no
11057   case $host_cpu in
11058   ia64*)
11059     shrext_cmds='.so'
11060     hardcode_into_libs=yes
11061     dynamic_linker="$host_os dld.so"
11062     shlibpath_var=LD_LIBRARY_PATH
11063     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065     soname_spec='${libname}${release}${shared_ext}$major'
11066     if test "X$HPUX_IA64_MODE" = X32; then
11067       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11068     else
11069       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11070     fi
11071     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11072     ;;
11073    hppa*64*)
11074      shrext_cmds='.sl'
11075      hardcode_into_libs=yes
11076      dynamic_linker="$host_os dld.sl"
11077      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11078      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080      soname_spec='${libname}${release}${shared_ext}$major'
11081      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11082      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11083      ;;
11084    *)
11085     shrext_cmds='.sl'
11086     dynamic_linker="$host_os dld.sl"
11087     shlibpath_var=SHLIB_PATH
11088     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090     soname_spec='${libname}${release}${shared_ext}$major'
11091     ;;
11092   esac
11093   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11094   postinstall_cmds='chmod 555 $lib'
11095   ;;
11096
11097 interix[3-9]*)
11098   version_type=linux
11099   need_lib_prefix=no
11100   need_version=no
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11102   soname_spec='${libname}${release}${shared_ext}$major'
11103   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=no
11106   hardcode_into_libs=yes
11107   ;;
11108
11109 irix5* | irix6* | nonstopux*)
11110   case $host_os in
11111     nonstopux*) version_type=nonstopux ;;
11112     *)
11113         if test "$lt_cv_prog_gnu_ld" = yes; then
11114                 version_type=linux
11115         else
11116                 version_type=irix
11117         fi ;;
11118   esac
11119   need_lib_prefix=no
11120   need_version=no
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11123   case $host_os in
11124   irix5* | nonstopux*)
11125     libsuff= shlibsuff=
11126     ;;
11127   *)
11128     case $LD in # libtool.m4 will add one of these switches to LD
11129     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11130       libsuff= shlibsuff= libmagic=32-bit;;
11131     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11132       libsuff=32 shlibsuff=N32 libmagic=N32;;
11133     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11134       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11135     *) libsuff= shlibsuff= libmagic=never-match;;
11136     esac
11137     ;;
11138   esac
11139   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11140   shlibpath_overrides_runpath=no
11141   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11142   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11143   hardcode_into_libs=yes
11144   ;;
11145
11146 # No shared lib support for Linux oldld, aout, or coff.
11147 linux*oldld* | linux*aout* | linux*coff*)
11148   dynamic_linker=no
11149   ;;
11150
11151 # This must be Linux ELF.
11152 linux* | k*bsd*-gnu)
11153   version_type=linux
11154   need_lib_prefix=no
11155   need_version=no
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11159   shlibpath_var=LD_LIBRARY_PATH
11160   shlibpath_overrides_runpath=no
11161   # This implies no fast_install, which is unacceptable.
11162   # Some rework will be needed to allow for fast_install
11163   # before this can be enabled.
11164   hardcode_into_libs=yes
11165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11167
11168   # Append ld.so.conf contents to the search path
11169   if test -f /etc/ld.so.conf; then
11170     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' ' '`
11171     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11172   fi
11173
11174   # We used to test for /lib/ld.so.1 and disable shared libraries on
11175   # powerpc, because MkLinux only supported shared libraries with the
11176   # GNU dynamic linker.  Since this was broken with cross compilers,
11177   # most powerpc-linux boxes support dynamic linking these days and
11178   # people can always --disable-shared, the test was removed, and we
11179   # assume the GNU/Linux dynamic linker is in use.
11180   dynamic_linker='GNU/Linux ld.so'
11181   ;;
11182
11183 netbsd*)
11184   version_type=sunos
11185   need_lib_prefix=no
11186   need_version=no
11187   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11190     dynamic_linker='NetBSD (a.out) ld.so'
11191   else
11192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11193     soname_spec='${libname}${release}${shared_ext}$major'
11194     dynamic_linker='NetBSD ld.elf_so'
11195   fi
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=yes
11198   hardcode_into_libs=yes
11199   ;;
11200
11201 newsos6)
11202   version_type=linux
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   shlibpath_overrides_runpath=yes
11206   ;;
11207
11208 nto-qnx*)
11209   version_type=linux
11210   need_lib_prefix=no
11211   need_version=no
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   shlibpath_overrides_runpath=yes
11216   ;;
11217
11218 openbsd*)
11219   version_type=sunos
11220   sys_lib_dlsearch_path_spec="/usr/lib"
11221   need_lib_prefix=no
11222   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11223   case $host_os in
11224     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11225     *)                         need_version=no  ;;
11226   esac
11227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11229   shlibpath_var=LD_LIBRARY_PATH
11230   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11231     case $host_os in
11232       openbsd2.[89] | openbsd2.[89].*)
11233         shlibpath_overrides_runpath=no
11234         ;;
11235       *)
11236         shlibpath_overrides_runpath=yes
11237         ;;
11238       esac
11239   else
11240     shlibpath_overrides_runpath=yes
11241   fi
11242   ;;
11243
11244 os2*)
11245   libname_spec='$name'
11246   shrext_cmds=".dll"
11247   need_lib_prefix=no
11248   library_names_spec='$libname${shared_ext} $libname.a'
11249   dynamic_linker='OS/2 ld.exe'
11250   shlibpath_var=LIBPATH
11251   ;;
11252
11253 osf3* | osf4* | osf5*)
11254   version_type=osf
11255   need_lib_prefix=no
11256   need_version=no
11257   soname_spec='${libname}${release}${shared_ext}$major'
11258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259   shlibpath_var=LD_LIBRARY_PATH
11260   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11261   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11262   ;;
11263
11264 rdos*)
11265   dynamic_linker=no
11266   ;;
11267
11268 solaris*)
11269   version_type=linux
11270   need_lib_prefix=no
11271   need_version=no
11272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273   soname_spec='${libname}${release}${shared_ext}$major'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=yes
11276   hardcode_into_libs=yes
11277   # ldd complains unless libraries are executable
11278   postinstall_cmds='chmod +x $lib'
11279   ;;
11280
11281 sunos4*)
11282   version_type=sunos
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11284   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   shlibpath_overrides_runpath=yes
11287   if test "$with_gnu_ld" = yes; then
11288     need_lib_prefix=no
11289   fi
11290   need_version=yes
11291   ;;
11292
11293 sysv4 | sysv4.3*)
11294   version_type=linux
11295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296   soname_spec='${libname}${release}${shared_ext}$major'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   case $host_vendor in
11299     sni)
11300       shlibpath_overrides_runpath=no
11301       need_lib_prefix=no
11302       export_dynamic_flag_spec='${wl}-Blargedynsym'
11303       runpath_var=LD_RUN_PATH
11304       ;;
11305     siemens)
11306       need_lib_prefix=no
11307       ;;
11308     motorola)
11309       need_lib_prefix=no
11310       need_version=no
11311       shlibpath_overrides_runpath=no
11312       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11313       ;;
11314   esac
11315   ;;
11316
11317 sysv4*MP*)
11318   if test -d /usr/nec ;then
11319     version_type=linux
11320     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11321     soname_spec='$libname${shared_ext}.$major'
11322     shlibpath_var=LD_LIBRARY_PATH
11323   fi
11324   ;;
11325
11326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11327   version_type=freebsd-elf
11328   need_lib_prefix=no
11329   need_version=no
11330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11331   soname_spec='${libname}${release}${shared_ext}$major'
11332   shlibpath_var=LD_LIBRARY_PATH
11333   hardcode_into_libs=yes
11334   if test "$with_gnu_ld" = yes; then
11335     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11336     shlibpath_overrides_runpath=no
11337   else
11338     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11339     shlibpath_overrides_runpath=yes
11340     case $host_os in
11341       sco3.2v5*)
11342         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11343         ;;
11344     esac
11345   fi
11346   sys_lib_dlsearch_path_spec='/usr/lib'
11347   ;;
11348
11349 uts4*)
11350   version_type=linux
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352   soname_spec='${libname}${release}${shared_ext}$major'
11353   shlibpath_var=LD_LIBRARY_PATH
11354   ;;
11355
11356 *)
11357   dynamic_linker=no
11358   ;;
11359 esac
11360 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11361 $as_echo "$dynamic_linker" >&6; }
11362 test "$dynamic_linker" = no && can_build_shared=no
11363
11364 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11365   $as_echo_n "(cached) " >&6
11366 else
11367   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11368 fi
11369
11370 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11371 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11372   $as_echo_n "(cached) " >&6
11373 else
11374   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11375 fi
11376
11377 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11378
11379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11380 if test "$GCC" = yes; then
11381   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11382 fi
11383
11384 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11385 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11386 hardcode_action=
11387 if test -n "$hardcode_libdir_flag_spec" || \
11388    test -n "$runpath_var" || \
11389    test "X$hardcode_automatic" = "Xyes" ; then
11390
11391   # We can hardcode non-existant directories.
11392   if test "$hardcode_direct" != no &&
11393      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11394      # have to relink, otherwise we might link with an installed library
11395      # when we should be linking with a yet-to-be-installed one
11396      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11397      test "$hardcode_minus_L" != no; then
11398     # Linking always hardcodes the temporary library directory.
11399     hardcode_action=relink
11400   else
11401     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11402     hardcode_action=immediate
11403   fi
11404 else
11405   # We cannot hardcode anything, or else we can only hardcode existing
11406   # directories.
11407   hardcode_action=unsupported
11408 fi
11409 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11410 $as_echo "$hardcode_action" >&6; }
11411
11412 if test "$hardcode_action" = relink; then
11413   # Fast installation is not supported
11414   enable_fast_install=no
11415 elif test "$shlibpath_overrides_runpath" = yes ||
11416      test "$enable_shared" = no; then
11417   # Fast installation is not necessary
11418   enable_fast_install=needless
11419 fi
11420
11421 striplib=
11422 old_striplib=
11423 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11424 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11425 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11426   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11427   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11428   { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430 else
11431 # FIXME - insert some real tests, host_os isn't really good enough
11432   case $host_os in
11433    darwin*)
11434        if test -n "$STRIP" ; then
11435          striplib="$STRIP -x"
11436          old_striplib="$STRIP -S"
11437          { $as_echo "$as_me:$LINENO: result: yes" >&5
11438 $as_echo "yes" >&6; }
11439        else
11440   { $as_echo "$as_me:$LINENO: result: no" >&5
11441 $as_echo "no" >&6; }
11442 fi
11443        ;;
11444    *)
11445   { $as_echo "$as_me:$LINENO: result: no" >&5
11446 $as_echo "no" >&6; }
11447     ;;
11448   esac
11449 fi
11450
11451 if test "x$enable_dlopen" != xyes; then
11452   enable_dlopen=unknown
11453   enable_dlopen_self=unknown
11454   enable_dlopen_self_static=unknown
11455 else
11456   lt_cv_dlopen=no
11457   lt_cv_dlopen_libs=
11458
11459   case $host_os in
11460   beos*)
11461     lt_cv_dlopen="load_add_on"
11462     lt_cv_dlopen_libs=
11463     lt_cv_dlopen_self=yes
11464     ;;
11465
11466   mingw* | pw32*)
11467     lt_cv_dlopen="LoadLibrary"
11468     lt_cv_dlopen_libs=
11469    ;;
11470
11471   cygwin*)
11472     lt_cv_dlopen="dlopen"
11473     lt_cv_dlopen_libs=
11474    ;;
11475
11476   darwin*)
11477   # if libdl is installed we need to link against it
11478     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11481   $as_echo_n "(cached) " >&6
11482 else
11483   ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldl  $LIBS"
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h.  */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h.  */
11491
11492 /* Override any GCC internal prototype to avoid an error.
11493    Use char because int might match the return type of a GCC
11494    builtin and then its argument prototype would still apply.  */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char dlopen ();
11499 int
11500 main ()
11501 {
11502 return dlopen ();
11503   ;
11504   return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11514 $as_echo "$ac_try_echo") >&5
11515   (eval "$ac_link") 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } && {
11522          test -z "$ac_c_werror_flag" ||
11523          test ! -s conftest.err
11524        } && test -s conftest$ac_exeext && {
11525          test "$cross_compiling" = yes ||
11526          $as_test_x conftest$ac_exeext
11527        }; then
11528   ac_cv_lib_dl_dlopen=yes
11529 else
11530   $as_echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533         ac_cv_lib_dl_dlopen=no
11534 fi
11535
11536 rm -rf conftest.dSYM
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538       conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11543 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11544   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11545 else
11546
11547     lt_cv_dlopen="dyld"
11548     lt_cv_dlopen_libs=
11549     lt_cv_dlopen_self=yes
11550
11551 fi
11552
11553    ;;
11554
11555   *)
11556     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11557 $as_echo_n "checking for shl_load... " >&6; }
11558 if test "${ac_cv_func_shl_load+set}" = set; then
11559   $as_echo_n "(cached) " >&6
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11569 #define shl_load innocuous_shl_load
11570
11571 /* System header to define __stub macros and hopefully few prototypes,
11572     which can conflict with char shl_load (); below.
11573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11574     <limits.h> exists even on freestanding compilers.  */
11575
11576 #ifdef __STDC__
11577 # include <limits.h>
11578 #else
11579 # include <assert.h>
11580 #endif
11581
11582 #undef shl_load
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585    Use char because int might match the return type of a GCC
11586    builtin and then its argument prototype would still apply.  */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char shl_load ();
11591 /* The GNU C library defines this for functions which it implements
11592     to always fail with ENOSYS.  Some functions are actually named
11593     something starting with __ and the normal name is an alias.  */
11594 #if defined __stub_shl_load || defined __stub___shl_load
11595 choke me
11596 #endif
11597
11598 int
11599 main ()
11600 {
11601 return shl_load ();
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (ac_try="$ac_link"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614   (eval "$ac_link") 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } && {
11621          test -z "$ac_c_werror_flag" ||
11622          test ! -s conftest.err
11623        } && test -s conftest$ac_exeext && {
11624          test "$cross_compiling" = yes ||
11625          $as_test_x conftest$ac_exeext
11626        }; then
11627   ac_cv_func_shl_load=yes
11628 else
11629   $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632         ac_cv_func_shl_load=no
11633 fi
11634
11635 rm -rf conftest.dSYM
11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11637       conftest$ac_exeext conftest.$ac_ext
11638 fi
11639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11640 $as_echo "$ac_cv_func_shl_load" >&6; }
11641 if test "x$ac_cv_func_shl_load" = x""yes; then
11642   lt_cv_dlopen="shl_load"
11643 else
11644   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11645 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11647   $as_echo_n "(cached) " >&6
11648 else
11649   ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldld  $LIBS"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659    Use char because int might match the return type of a GCC
11660    builtin and then its argument prototype would still apply.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char shl_load ();
11665 int
11666 main ()
11667 {
11668 return shl_load ();
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11680 $as_echo "$ac_try_echo") >&5
11681   (eval "$ac_link") 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } && {
11688          test -z "$ac_c_werror_flag" ||
11689          test ! -s conftest.err
11690        } && test -s conftest$ac_exeext && {
11691          test "$cross_compiling" = yes ||
11692          $as_test_x conftest$ac_exeext
11693        }; then
11694   ac_cv_lib_dld_shl_load=yes
11695 else
11696   $as_echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699         ac_cv_lib_dld_shl_load=no
11700 fi
11701
11702 rm -rf conftest.dSYM
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704       conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11708 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11709 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11710   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11711 else
11712   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11713 $as_echo_n "checking for dlopen... " >&6; }
11714 if test "${ac_cv_func_dlopen+set}" = set; then
11715   $as_echo_n "(cached) " >&6
11716 else
11717   cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11725 #define dlopen innocuous_dlopen
11726
11727 /* System header to define __stub macros and hopefully few prototypes,
11728     which can conflict with char dlopen (); below.
11729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730     <limits.h> exists even on freestanding compilers.  */
11731
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737
11738 #undef dlopen
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char dlopen ();
11747 /* The GNU C library defines this for functions which it implements
11748     to always fail with ENOSYS.  Some functions are actually named
11749     something starting with __ and the normal name is an alias.  */
11750 #if defined __stub_dlopen || defined __stub___dlopen
11751 choke me
11752 #endif
11753
11754 int
11755 main ()
11756 {
11757 return dlopen ();
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11769 $as_echo "$ac_try_echo") >&5
11770   (eval "$ac_link") 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } && {
11777          test -z "$ac_c_werror_flag" ||
11778          test ! -s conftest.err
11779        } && test -s conftest$ac_exeext && {
11780          test "$cross_compiling" = yes ||
11781          $as_test_x conftest$ac_exeext
11782        }; then
11783   ac_cv_func_dlopen=yes
11784 else
11785   $as_echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788         ac_cv_func_dlopen=no
11789 fi
11790
11791 rm -rf conftest.dSYM
11792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11793       conftest$ac_exeext conftest.$ac_ext
11794 fi
11795 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11796 $as_echo "$ac_cv_func_dlopen" >&6; }
11797 if test "x$ac_cv_func_dlopen" = x""yes; then
11798   lt_cv_dlopen="dlopen"
11799 else
11800   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11801 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11802 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11803   $as_echo_n "(cached) " >&6
11804 else
11805   ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-ldl  $LIBS"
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char dlopen ();
11821 int
11822 main ()
11823 {
11824 return dlopen ();
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext conftest$ac_exeext
11830 if { (ac_try="$ac_link"
11831 case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836 $as_echo "$ac_try_echo") >&5
11837   (eval "$ac_link") 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } && {
11844          test -z "$ac_c_werror_flag" ||
11845          test ! -s conftest.err
11846        } && test -s conftest$ac_exeext && {
11847          test "$cross_compiling" = yes ||
11848          $as_test_x conftest$ac_exeext
11849        }; then
11850   ac_cv_lib_dl_dlopen=yes
11851 else
11852   $as_echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855         ac_cv_lib_dl_dlopen=no
11856 fi
11857
11858 rm -rf conftest.dSYM
11859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11860       conftest$ac_exeext conftest.$ac_ext
11861 LIBS=$ac_check_lib_save_LIBS
11862 fi
11863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11865 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11867 else
11868   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11871   $as_echo_n "(cached) " >&6
11872 else
11873   ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lsvld  $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char dlopen ();
11889 int
11890 main ()
11891 {
11892 return dlopen ();
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11904 $as_echo "$ac_try_echo") >&5
11905   (eval "$ac_link") 2>conftest.er1
11906   ac_status=$?
11907   grep -v '^ *+' conftest.er1 >conftest.err
11908   rm -f conftest.er1
11909   cat conftest.err >&5
11910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } && {
11912          test -z "$ac_c_werror_flag" ||
11913          test ! -s conftest.err
11914        } && test -s conftest$ac_exeext && {
11915          test "$cross_compiling" = yes ||
11916          $as_test_x conftest$ac_exeext
11917        }; then
11918   ac_cv_lib_svld_dlopen=yes
11919 else
11920   $as_echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923         ac_cv_lib_svld_dlopen=no
11924 fi
11925
11926 rm -rf conftest.dSYM
11927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11928       conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_check_lib_save_LIBS
11930 fi
11931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11932 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11933 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11935 else
11936   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11937 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11939   $as_echo_n "(cached) " >&6
11940 else
11941   ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-ldld  $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951    Use char because int might match the return type of a GCC
11952    builtin and then its argument prototype would still apply.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char dld_link ();
11957 int
11958 main ()
11959 {
11960 return dld_link ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11972 $as_echo "$ac_try_echo") >&5
11973   (eval "$ac_link") 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } && {
11980          test -z "$ac_c_werror_flag" ||
11981          test ! -s conftest.err
11982        } && test -s conftest$ac_exeext && {
11983          test "$cross_compiling" = yes ||
11984          $as_test_x conftest$ac_exeext
11985        }; then
11986   ac_cv_lib_dld_dld_link=yes
11987 else
11988   $as_echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991         ac_cv_lib_dld_dld_link=no
11992 fi
11993
11994 rm -rf conftest.dSYM
11995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11996       conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11998 fi
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12000 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12001 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12002   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12003 fi
12004
12005
12006 fi
12007
12008
12009 fi
12010
12011
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020     ;;
12021   esac
12022
12023   if test "x$lt_cv_dlopen" != xno; then
12024     enable_dlopen=yes
12025   else
12026     enable_dlopen=no
12027   fi
12028
12029   case $lt_cv_dlopen in
12030   dlopen)
12031     save_CPPFLAGS="$CPPFLAGS"
12032     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12033
12034     save_LDFLAGS="$LDFLAGS"
12035     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12036
12037     save_LIBS="$LIBS"
12038     LIBS="$lt_cv_dlopen_libs $LIBS"
12039
12040     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12041 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12042 if test "${lt_cv_dlopen_self+set}" = set; then
12043   $as_echo_n "(cached) " >&6
12044 else
12045           if test "$cross_compiling" = yes; then :
12046   lt_cv_dlopen_self=cross
12047 else
12048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12049   lt_status=$lt_dlunknown
12050   cat > conftest.$ac_ext <<EOF
12051 #line 12051 "configure"
12052 #include "confdefs.h"
12053
12054 #if HAVE_DLFCN_H
12055 #include <dlfcn.h>
12056 #endif
12057
12058 #include <stdio.h>
12059
12060 #ifdef RTLD_GLOBAL
12061 #  define LT_DLGLOBAL           RTLD_GLOBAL
12062 #else
12063 #  ifdef DL_GLOBAL
12064 #    define LT_DLGLOBAL         DL_GLOBAL
12065 #  else
12066 #    define LT_DLGLOBAL         0
12067 #  endif
12068 #endif
12069
12070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12071    find out it does not work in some platform. */
12072 #ifndef LT_DLLAZY_OR_NOW
12073 #  ifdef RTLD_LAZY
12074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12075 #  else
12076 #    ifdef DL_LAZY
12077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12078 #    else
12079 #      ifdef RTLD_NOW
12080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12081 #      else
12082 #        ifdef DL_NOW
12083 #          define LT_DLLAZY_OR_NOW      DL_NOW
12084 #        else
12085 #          define LT_DLLAZY_OR_NOW      0
12086 #        endif
12087 #      endif
12088 #    endif
12089 #  endif
12090 #endif
12091
12092 #ifdef __cplusplus
12093 extern "C" void exit (int);
12094 #endif
12095
12096 void fnord() { int i=42;}
12097 int main ()
12098 {
12099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12100   int status = $lt_dlunknown;
12101
12102   if (self)
12103     {
12104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12105       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12106       /* dlclose (self); */
12107     }
12108   else
12109     puts (dlerror ());
12110
12111     exit (status);
12112 }
12113 EOF
12114   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115   (eval $ac_link) 2>&5
12116   ac_status=$?
12117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12119     (./conftest; exit; ) >&5 2>/dev/null
12120     lt_status=$?
12121     case x$lt_status in
12122       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12123       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12124       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12125     esac
12126   else :
12127     # compilation failed
12128     lt_cv_dlopen_self=no
12129   fi
12130 fi
12131 rm -fr conftest*
12132
12133
12134 fi
12135 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12136 $as_echo "$lt_cv_dlopen_self" >&6; }
12137
12138     if test "x$lt_cv_dlopen_self" = xyes; then
12139       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12140       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12141 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12142 if test "${lt_cv_dlopen_self_static+set}" = set; then
12143   $as_echo_n "(cached) " >&6
12144 else
12145           if test "$cross_compiling" = yes; then :
12146   lt_cv_dlopen_self_static=cross
12147 else
12148   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12149   lt_status=$lt_dlunknown
12150   cat > conftest.$ac_ext <<EOF
12151 #line 12151 "configure"
12152 #include "confdefs.h"
12153
12154 #if HAVE_DLFCN_H
12155 #include <dlfcn.h>
12156 #endif
12157
12158 #include <stdio.h>
12159
12160 #ifdef RTLD_GLOBAL
12161 #  define LT_DLGLOBAL           RTLD_GLOBAL
12162 #else
12163 #  ifdef DL_GLOBAL
12164 #    define LT_DLGLOBAL         DL_GLOBAL
12165 #  else
12166 #    define LT_DLGLOBAL         0
12167 #  endif
12168 #endif
12169
12170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12171    find out it does not work in some platform. */
12172 #ifndef LT_DLLAZY_OR_NOW
12173 #  ifdef RTLD_LAZY
12174 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12175 #  else
12176 #    ifdef DL_LAZY
12177 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12178 #    else
12179 #      ifdef RTLD_NOW
12180 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12181 #      else
12182 #        ifdef DL_NOW
12183 #          define LT_DLLAZY_OR_NOW      DL_NOW
12184 #        else
12185 #          define LT_DLLAZY_OR_NOW      0
12186 #        endif
12187 #      endif
12188 #    endif
12189 #  endif
12190 #endif
12191
12192 #ifdef __cplusplus
12193 extern "C" void exit (int);
12194 #endif
12195
12196 void fnord() { int i=42;}
12197 int main ()
12198 {
12199   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200   int status = $lt_dlunknown;
12201
12202   if (self)
12203     {
12204       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12205       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12206       /* dlclose (self); */
12207     }
12208   else
12209     puts (dlerror ());
12210
12211     exit (status);
12212 }
12213 EOF
12214   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215   (eval $ac_link) 2>&5
12216   ac_status=$?
12217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12219     (./conftest; exit; ) >&5 2>/dev/null
12220     lt_status=$?
12221     case x$lt_status in
12222       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12223       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12224       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12225     esac
12226   else :
12227     # compilation failed
12228     lt_cv_dlopen_self_static=no
12229   fi
12230 fi
12231 rm -fr conftest*
12232
12233
12234 fi
12235 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12236 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12237     fi
12238
12239     CPPFLAGS="$save_CPPFLAGS"
12240     LDFLAGS="$save_LDFLAGS"
12241     LIBS="$save_LIBS"
12242     ;;
12243   esac
12244
12245   case $lt_cv_dlopen_self in
12246   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12247   *) enable_dlopen_self=unknown ;;
12248   esac
12249
12250   case $lt_cv_dlopen_self_static in
12251   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12252   *) enable_dlopen_self_static=unknown ;;
12253   esac
12254 fi
12255
12256
12257 # Report which library types will actually be built
12258 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12260 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12261 $as_echo "$can_build_shared" >&6; }
12262
12263 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12264 $as_echo_n "checking whether to build shared libraries... " >&6; }
12265 test "$can_build_shared" = "no" && enable_shared=no
12266
12267 # On AIX, shared libraries and static libraries use the same namespace, and
12268 # are all built from PIC.
12269 case $host_os in
12270 aix3*)
12271   test "$enable_shared" = yes && enable_static=no
12272   if test -n "$RANLIB"; then
12273     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12274     postinstall_cmds='$RANLIB $lib'
12275   fi
12276   ;;
12277
12278 aix[4-9]*)
12279   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12280     test "$enable_shared" = yes && enable_static=no
12281   fi
12282     ;;
12283 esac
12284 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12285 $as_echo "$enable_shared" >&6; }
12286
12287 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12288 $as_echo_n "checking whether to build static libraries... " >&6; }
12289 # Make sure either enable_shared or enable_static is yes.
12290 test "$enable_shared" = yes || enable_static=yes
12291 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12292 $as_echo "$enable_static" >&6; }
12293
12294 # The else clause should only fire when bootstrapping the
12295 # libtool distribution, otherwise you forgot to ship ltmain.sh
12296 # with your package, and you will get complaints that there are
12297 # no rules to generate ltmain.sh.
12298 if test -f "$ltmain"; then
12299   # See if we are running on zsh, and set the options which allow our commands through
12300   # without removal of \ escapes.
12301   if test -n "${ZSH_VERSION+set}" ; then
12302     setopt NO_GLOB_SUBST
12303   fi
12304   # Now quote all the things that may contain metacharacters while being
12305   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12306   # variables and quote the copies for generation of the libtool script.
12307   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12308     SED SHELL STRIP \
12309     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12310     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12311     deplibs_check_method reload_flag reload_cmds need_locks \
12312     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12313     lt_cv_sys_global_symbol_to_c_name_address \
12314     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12315     old_postinstall_cmds old_postuninstall_cmds \
12316     compiler \
12317     CC \
12318     LD \
12319     lt_prog_compiler_wl \
12320     lt_prog_compiler_pic \
12321     lt_prog_compiler_static \
12322     lt_prog_compiler_no_builtin_flag \
12323     export_dynamic_flag_spec \
12324     thread_safe_flag_spec \
12325     whole_archive_flag_spec \
12326     enable_shared_with_static_runtimes \
12327     old_archive_cmds \
12328     old_archive_from_new_cmds \
12329     predep_objects \
12330     postdep_objects \
12331     predeps \
12332     postdeps \
12333     compiler_lib_search_path \
12334     compiler_lib_search_dirs \
12335     archive_cmds \
12336     archive_expsym_cmds \
12337     postinstall_cmds \
12338     postuninstall_cmds \
12339     old_archive_from_expsyms_cmds \
12340     allow_undefined_flag \
12341     no_undefined_flag \
12342     export_symbols_cmds \
12343     hardcode_libdir_flag_spec \
12344     hardcode_libdir_flag_spec_ld \
12345     hardcode_libdir_separator \
12346     hardcode_automatic \
12347     module_cmds \
12348     module_expsym_cmds \
12349     lt_cv_prog_compiler_c_o \
12350     fix_srcfile_path \
12351     exclude_expsyms \
12352     include_expsyms; do
12353
12354     case $var in
12355     old_archive_cmds | \
12356     old_archive_from_new_cmds | \
12357     archive_cmds | \
12358     archive_expsym_cmds | \
12359     module_cmds | \
12360     module_expsym_cmds | \
12361     old_archive_from_expsyms_cmds | \
12362     export_symbols_cmds | \
12363     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12364     postinstall_cmds | postuninstall_cmds | \
12365     old_postinstall_cmds | old_postuninstall_cmds | \
12366     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12367       # Double-quote double-evaled strings.
12368       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12369       ;;
12370     *)
12371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12372       ;;
12373     esac
12374   done
12375
12376   case $lt_echo in
12377   *'\$0 --fallback-echo"')
12378     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12379     ;;
12380   esac
12381
12382 cfgfile="${ofile}T"
12383   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12384   $rm -f "$cfgfile"
12385   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12386 $as_echo "$as_me: creating $ofile" >&6;}
12387
12388   cat <<__EOF__ >> "$cfgfile"
12389 #! $SHELL
12390
12391 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12392 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12393 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12394 #
12395 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12396 # Free Software Foundation, Inc.
12397 #
12398 # This file is part of GNU Libtool:
12399 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12400 #
12401 # This program is free software; you can redistribute it and/or modify
12402 # it under the terms of the GNU General Public License as published by
12403 # the Free Software Foundation; either version 2 of the License, or
12404 # (at your option) any later version.
12405 #
12406 # This program is distributed in the hope that it will be useful, but
12407 # WITHOUT ANY WARRANTY; without even the implied warranty of
12408 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12409 # General Public License for more details.
12410 #
12411 # You should have received a copy of the GNU General Public License
12412 # along with this program; if not, write to the Free Software
12413 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12414 #
12415 # As a special exception to the GNU General Public License, if you
12416 # distribute this file as part of a program that contains a
12417 # configuration script generated by Autoconf, you may include it under
12418 # the same distribution terms that you use for the rest of that program.
12419
12420 # A sed program that does not truncate output.
12421 SED=$lt_SED
12422
12423 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12424 Xsed="$SED -e 1s/^X//"
12425
12426 # The HP-UX ksh and POSIX shell print the target directory to stdout
12427 # if CDPATH is set.
12428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12429
12430 # The names of the tagged configurations supported by this script.
12431 available_tags=
12432
12433 # ### BEGIN LIBTOOL CONFIG
12434
12435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12436
12437 # Shell to use when invoking shell scripts.
12438 SHELL=$lt_SHELL
12439
12440 # Whether or not to build shared libraries.
12441 build_libtool_libs=$enable_shared
12442
12443 # Whether or not to build static libraries.
12444 build_old_libs=$enable_static
12445
12446 # Whether or not to add -lc for building shared libraries.
12447 build_libtool_need_lc=$archive_cmds_need_lc
12448
12449 # Whether or not to disallow shared libs when runtime libs are static
12450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12451
12452 # Whether or not to optimize for fast installation.
12453 fast_install=$enable_fast_install
12454
12455 # The host system.
12456 host_alias=$host_alias
12457 host=$host
12458 host_os=$host_os
12459
12460 # The build system.
12461 build_alias=$build_alias
12462 build=$build
12463 build_os=$build_os
12464
12465 # An echo program that does not interpret backslashes.
12466 echo=$lt_echo
12467
12468 # The archiver.
12469 AR=$lt_AR
12470 AR_FLAGS=$lt_AR_FLAGS
12471
12472 # A C compiler.
12473 LTCC=$lt_LTCC
12474
12475 # LTCC compiler flags.
12476 LTCFLAGS=$lt_LTCFLAGS
12477
12478 # A language-specific compiler.
12479 CC=$lt_compiler
12480
12481 # Is the compiler the GNU C compiler?
12482 with_gcc=$GCC
12483
12484 # An ERE matcher.
12485 EGREP=$lt_EGREP
12486
12487 # The linker used to build libraries.
12488 LD=$lt_LD
12489
12490 # Whether we need hard or soft links.
12491 LN_S=$lt_LN_S
12492
12493 # A BSD-compatible nm program.
12494 NM=$lt_NM
12495
12496 # A symbol stripping program
12497 STRIP=$lt_STRIP
12498
12499 # Used to examine libraries when file_magic_cmd begins "file"
12500 MAGIC_CMD=$MAGIC_CMD
12501
12502 # Used on cygwin: DLL creation program.
12503 DLLTOOL="$DLLTOOL"
12504
12505 # Used on cygwin: object dumper.
12506 OBJDUMP="$OBJDUMP"
12507
12508 # Used on cygwin: assembler.
12509 AS="$AS"
12510
12511 # The name of the directory that contains temporary libtool files.
12512 objdir=$objdir
12513
12514 # How to create reloadable object files.
12515 reload_flag=$lt_reload_flag
12516 reload_cmds=$lt_reload_cmds
12517
12518 # How to pass a linker flag through the compiler.
12519 wl=$lt_lt_prog_compiler_wl
12520
12521 # Object file suffix (normally "o").
12522 objext="$ac_objext"
12523
12524 # Old archive suffix (normally "a").
12525 libext="$libext"
12526
12527 # Shared library suffix (normally ".so").
12528 shrext_cmds='$shrext_cmds'
12529
12530 # Executable file suffix (normally "").
12531 exeext="$exeext"
12532
12533 # Additional compiler flags for building library objects.
12534 pic_flag=$lt_lt_prog_compiler_pic
12535 pic_mode=$pic_mode
12536
12537 # What is the maximum length of a command?
12538 max_cmd_len=$lt_cv_sys_max_cmd_len
12539
12540 # Does compiler simultaneously support -c and -o options?
12541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12542
12543 # Must we lock files when doing compilation?
12544 need_locks=$lt_need_locks
12545
12546 # Do we need the lib prefix for modules?
12547 need_lib_prefix=$need_lib_prefix
12548
12549 # Do we need a version for libraries?
12550 need_version=$need_version
12551
12552 # Whether dlopen is supported.
12553 dlopen_support=$enable_dlopen
12554
12555 # Whether dlopen of programs is supported.
12556 dlopen_self=$enable_dlopen_self
12557
12558 # Whether dlopen of statically linked programs is supported.
12559 dlopen_self_static=$enable_dlopen_self_static
12560
12561 # Compiler flag to prevent dynamic linking.
12562 link_static_flag=$lt_lt_prog_compiler_static
12563
12564 # Compiler flag to turn off builtin functions.
12565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12566
12567 # Compiler flag to allow reflexive dlopens.
12568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12569
12570 # Compiler flag to generate shared objects directly from archives.
12571 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12572
12573 # Compiler flag to generate thread-safe objects.
12574 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12575
12576 # Library versioning type.
12577 version_type=$version_type
12578
12579 # Format of library name prefix.
12580 libname_spec=$lt_libname_spec
12581
12582 # List of archive names.  First name is the real one, the rest are links.
12583 # The last name is the one that the linker finds with -lNAME.
12584 library_names_spec=$lt_library_names_spec
12585
12586 # The coded name of the library, if different from the real name.
12587 soname_spec=$lt_soname_spec
12588
12589 # Commands used to build and install an old-style archive.
12590 RANLIB=$lt_RANLIB
12591 old_archive_cmds=$lt_old_archive_cmds
12592 old_postinstall_cmds=$lt_old_postinstall_cmds
12593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12594
12595 # Create an old-style archive from a shared archive.
12596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12597
12598 # Create a temporary old-style archive to link instead of a shared archive.
12599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12600
12601 # Commands used to build and install a shared archive.
12602 archive_cmds=$lt_archive_cmds
12603 archive_expsym_cmds=$lt_archive_expsym_cmds
12604 postinstall_cmds=$lt_postinstall_cmds
12605 postuninstall_cmds=$lt_postuninstall_cmds
12606
12607 # Commands used to build a loadable module (assumed same as above if empty)
12608 module_cmds=$lt_module_cmds
12609 module_expsym_cmds=$lt_module_expsym_cmds
12610
12611 # Commands to strip libraries.
12612 old_striplib=$lt_old_striplib
12613 striplib=$lt_striplib
12614
12615 # Dependencies to place before the objects being linked to create a
12616 # shared library.
12617 predep_objects=$lt_predep_objects
12618
12619 # Dependencies to place after the objects being linked to create a
12620 # shared library.
12621 postdep_objects=$lt_postdep_objects
12622
12623 # Dependencies to place before the objects being linked to create a
12624 # shared library.
12625 predeps=$lt_predeps
12626
12627 # Dependencies to place after the objects being linked to create a
12628 # shared library.
12629 postdeps=$lt_postdeps
12630
12631 # The directories searched by this compiler when creating a shared
12632 # library
12633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12634
12635 # The library search path used internally by the compiler when linking
12636 # a shared library.
12637 compiler_lib_search_path=$lt_compiler_lib_search_path
12638
12639 # Method to check whether dependent libraries are shared objects.
12640 deplibs_check_method=$lt_deplibs_check_method
12641
12642 # Command to use when deplibs_check_method == file_magic.
12643 file_magic_cmd=$lt_file_magic_cmd
12644
12645 # Flag that allows shared libraries with undefined symbols to be built.
12646 allow_undefined_flag=$lt_allow_undefined_flag
12647
12648 # Flag that forces no undefined symbols.
12649 no_undefined_flag=$lt_no_undefined_flag
12650
12651 # Commands used to finish a libtool library installation in a directory.
12652 finish_cmds=$lt_finish_cmds
12653
12654 # Same as above, but a single script fragment to be evaled but not shown.
12655 finish_eval=$lt_finish_eval
12656
12657 # Take the output of nm and produce a listing of raw symbols and C names.
12658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12659
12660 # Transform the output of nm in a proper C declaration
12661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12662
12663 # Transform the output of nm in a C name address pair
12664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12665
12666 # This is the shared library runtime path variable.
12667 runpath_var=$runpath_var
12668
12669 # This is the shared library path variable.
12670 shlibpath_var=$shlibpath_var
12671
12672 # Is shlibpath searched before the hard-coded library search path?
12673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12674
12675 # How to hardcode a shared library path into an executable.
12676 hardcode_action=$hardcode_action
12677
12678 # Whether we should hardcode library paths into libraries.
12679 hardcode_into_libs=$hardcode_into_libs
12680
12681 # Flag to hardcode \$libdir into a binary during linking.
12682 # This must work even if \$libdir does not exist.
12683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12684
12685 # If ld is used when linking, flag to hardcode \$libdir into
12686 # a binary during linking. This must work even if \$libdir does
12687 # not exist.
12688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12689
12690 # Whether we need a single -rpath flag with a separated argument.
12691 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12692
12693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12694 # resulting binary.
12695 hardcode_direct=$hardcode_direct
12696
12697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12698 # resulting binary.
12699 hardcode_minus_L=$hardcode_minus_L
12700
12701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12702 # the resulting binary.
12703 hardcode_shlibpath_var=$hardcode_shlibpath_var
12704
12705 # Set to yes if building a shared library automatically hardcodes DIR into the library
12706 # and all subsequent libraries and executables linked against it.
12707 hardcode_automatic=$hardcode_automatic
12708
12709 # Variables whose values should be saved in libtool wrapper scripts and
12710 # restored at relink time.
12711 variables_saved_for_relink="$variables_saved_for_relink"
12712
12713 # Whether libtool must link a program against all its dependency libraries.
12714 link_all_deplibs=$link_all_deplibs
12715
12716 # Compile-time system search path for libraries
12717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12718
12719 # Run-time system search path for libraries
12720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12721
12722 # Fix the shell variable \$srcfile for the compiler.
12723 fix_srcfile_path=$lt_fix_srcfile_path
12724
12725 # Set to yes if exported symbols are required.
12726 always_export_symbols=$always_export_symbols
12727
12728 # The commands to list exported symbols.
12729 export_symbols_cmds=$lt_export_symbols_cmds
12730
12731 # The commands to extract the exported symbol list from a shared archive.
12732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12733
12734 # Symbols that should not be listed in the preloaded symbols.
12735 exclude_expsyms=$lt_exclude_expsyms
12736
12737 # Symbols that must always be exported.
12738 include_expsyms=$lt_include_expsyms
12739
12740 # ### END LIBTOOL CONFIG
12741
12742 __EOF__
12743
12744
12745   case $host_os in
12746   aix3*)
12747     cat <<\EOF >> "$cfgfile"
12748
12749 # AIX sometimes has problems with the GCC collect2 program.  For some
12750 # reason, if we set the COLLECT_NAMES environment variable, the problems
12751 # vanish in a puff of smoke.
12752 if test "X${COLLECT_NAMES+set}" != Xset; then
12753   COLLECT_NAMES=
12754   export COLLECT_NAMES
12755 fi
12756 EOF
12757     ;;
12758   esac
12759
12760   # We use sed instead of cat because bash on DJGPP gets confused if
12761   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12762   # text mode, it properly converts lines to CR/LF.  This bash problem
12763   # is reportedly fixed, but why not run on old versions too?
12764   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12765
12766   mv -f "$cfgfile" "$ofile" || \
12767     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12768   chmod +x "$ofile"
12769
12770 else
12771   # If there is no Makefile yet, we rely on a make rule to execute
12772   # `config.status --recheck' to rerun these tests and create the
12773   # libtool script then.
12774   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12775   if test -f "$ltmain_in"; then
12776     test -f Makefile && make "$ltmain"
12777   fi
12778 fi
12779
12780
12781 ac_ext=c
12782 ac_cpp='$CPP $CPPFLAGS'
12783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786
12787 CC="$lt_save_CC"
12788
12789
12790 # Check whether --with-tags was given.
12791 if test "${with_tags+set}" = set; then
12792   withval=$with_tags; tagnames="$withval"
12793 fi
12794
12795
12796 if test -f "$ltmain" && test -n "$tagnames"; then
12797   if test ! -f "${ofile}"; then
12798     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12799 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12800   fi
12801
12802   if test -z "$LTCC"; then
12803     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12804     if test -z "$LTCC"; then
12805       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12806 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12807     else
12808       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12809 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12810     fi
12811   fi
12812   if test -z "$LTCFLAGS"; then
12813     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12814   fi
12815
12816   # Extract list of available tagged configurations in $ofile.
12817   # Note that this assumes the entire list is on one line.
12818   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12819
12820   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12821   for tagname in $tagnames; do
12822     IFS="$lt_save_ifs"
12823     # Check whether tagname contains only valid characters
12824     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12825     "") ;;
12826     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12827 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12828    { (exit 1); exit 1; }; }
12829         ;;
12830     esac
12831
12832     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12833     then
12834       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12835 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12836    { (exit 1); exit 1; }; }
12837     fi
12838
12839     # Update the list of available tags.
12840     if test -n "$tagname"; then
12841       echo appending configuration tag \"$tagname\" to $ofile
12842
12843       case $tagname in
12844       CXX)
12845         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12846             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12847             (test "X$CXX" != "Xg++"))) ; then
12848           ac_ext=cpp
12849 ac_cpp='$CXXCPP $CPPFLAGS'
12850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12853
12854
12855
12856
12857 archive_cmds_need_lc_CXX=no
12858 allow_undefined_flag_CXX=
12859 always_export_symbols_CXX=no
12860 archive_expsym_cmds_CXX=
12861 export_dynamic_flag_spec_CXX=
12862 hardcode_direct_CXX=no
12863 hardcode_libdir_flag_spec_CXX=
12864 hardcode_libdir_flag_spec_ld_CXX=
12865 hardcode_libdir_separator_CXX=
12866 hardcode_minus_L_CXX=no
12867 hardcode_shlibpath_var_CXX=unsupported
12868 hardcode_automatic_CXX=no
12869 module_cmds_CXX=
12870 module_expsym_cmds_CXX=
12871 link_all_deplibs_CXX=unknown
12872 old_archive_cmds_CXX=$old_archive_cmds
12873 no_undefined_flag_CXX=
12874 whole_archive_flag_spec_CXX=
12875 enable_shared_with_static_runtimes_CXX=no
12876
12877 # Dependencies to place before and after the object being linked:
12878 predep_objects_CXX=
12879 postdep_objects_CXX=
12880 predeps_CXX=
12881 postdeps_CXX=
12882 compiler_lib_search_path_CXX=
12883 compiler_lib_search_dirs_CXX=
12884
12885 # Source file extension for C++ test sources.
12886 ac_ext=cpp
12887
12888 # Object file extension for compiled C++ test sources.
12889 objext=o
12890 objext_CXX=$objext
12891
12892 # Code to be used in simple compile tests
12893 lt_simple_compile_test_code="int some_variable = 0;"
12894
12895 # Code to be used in simple link tests
12896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12897
12898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12899
12900 # If no C compiler was specified, use CC.
12901 LTCC=${LTCC-"$CC"}
12902
12903 # If no C compiler flags were specified, use CFLAGS.
12904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12905
12906 # Allow CC to be a program name with arguments.
12907 compiler=$CC
12908
12909
12910 # save warnings/boilerplate of simple test code
12911 ac_outfile=conftest.$ac_objext
12912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12914 _lt_compiler_boilerplate=`cat conftest.err`
12915 $rm conftest*
12916
12917 ac_outfile=conftest.$ac_objext
12918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12920 _lt_linker_boilerplate=`cat conftest.err`
12921 $rm -r conftest*
12922
12923
12924 # Allow CC to be a program name with arguments.
12925 lt_save_CC=$CC
12926 lt_save_LD=$LD
12927 lt_save_GCC=$GCC
12928 GCC=$GXX
12929 lt_save_with_gnu_ld=$with_gnu_ld
12930 lt_save_path_LD=$lt_cv_path_LD
12931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12932   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12933 else
12934   $as_unset lt_cv_prog_gnu_ld
12935 fi
12936 if test -n "${lt_cv_path_LDCXX+set}"; then
12937   lt_cv_path_LD=$lt_cv_path_LDCXX
12938 else
12939   $as_unset lt_cv_path_LD
12940 fi
12941 test -z "${LDCXX+set}" || LD=$LDCXX
12942 CC=${CXX-"c++"}
12943 compiler=$CC
12944 compiler_CXX=$CC
12945 for cc_temp in $compiler""; do
12946   case $cc_temp in
12947     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12948     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12949     \-*) ;;
12950     *) break;;
12951   esac
12952 done
12953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12954
12955
12956 # We don't want -fno-exception wen compiling C++ code, so set the
12957 # no_builtin_flag separately
12958 if test "$GXX" = yes; then
12959   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12960 else
12961   lt_prog_compiler_no_builtin_flag_CXX=
12962 fi
12963
12964 if test "$GXX" = yes; then
12965   # Set up default GNU C++ configuration
12966
12967
12968 # Check whether --with-gnu-ld was given.
12969 if test "${with_gnu_ld+set}" = set; then
12970   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12971 else
12972   with_gnu_ld=no
12973 fi
12974
12975 ac_prog=ld
12976 if test "$GCC" = yes; then
12977   # Check if gcc -print-prog-name=ld gives a path.
12978   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12979 $as_echo_n "checking for ld used by $CC... " >&6; }
12980   case $host in
12981   *-*-mingw*)
12982     # gcc leaves a trailing carriage return which upsets mingw
12983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12984   *)
12985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12986   esac
12987   case $ac_prog in
12988     # Accept absolute paths.
12989     [\\/]* | ?:[\\/]*)
12990       re_direlt='/[^/][^/]*/\.\./'
12991       # Canonicalize the pathname of ld
12992       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12993       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12994         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12995       done
12996       test -z "$LD" && LD="$ac_prog"
12997       ;;
12998   "")
12999     # If it fails, then pretend we aren't using GCC.
13000     ac_prog=ld
13001     ;;
13002   *)
13003     # If it is relative, then search for the first ld in PATH.
13004     with_gnu_ld=unknown
13005     ;;
13006   esac
13007 elif test "$with_gnu_ld" = yes; then
13008   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13009 $as_echo_n "checking for GNU ld... " >&6; }
13010 else
13011   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13012 $as_echo_n "checking for non-GNU ld... " >&6; }
13013 fi
13014 if test "${lt_cv_path_LD+set}" = set; then
13015   $as_echo_n "(cached) " >&6
13016 else
13017   if test -z "$LD"; then
13018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13019   for ac_dir in $PATH; do
13020     IFS="$lt_save_ifs"
13021     test -z "$ac_dir" && ac_dir=.
13022     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13023       lt_cv_path_LD="$ac_dir/$ac_prog"
13024       # Check to see if the program is GNU ld.  I'd rather use --version,
13025       # but apparently some variants of GNU ld only accept -v.
13026       # Break only if it was the GNU/non-GNU ld that we prefer.
13027       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13028       *GNU* | *'with BFD'*)
13029         test "$with_gnu_ld" != no && break
13030         ;;
13031       *)
13032         test "$with_gnu_ld" != yes && break
13033         ;;
13034       esac
13035     fi
13036   done
13037   IFS="$lt_save_ifs"
13038 else
13039   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13040 fi
13041 fi
13042
13043 LD="$lt_cv_path_LD"
13044 if test -n "$LD"; then
13045   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13046 $as_echo "$LD" >&6; }
13047 else
13048   { $as_echo "$as_me:$LINENO: result: no" >&5
13049 $as_echo "no" >&6; }
13050 fi
13051 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13052 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13053    { (exit 1); exit 1; }; }
13054 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13055 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13056 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13057   $as_echo_n "(cached) " >&6
13058 else
13059   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13060 case `$LD -v 2>&1 </dev/null` in
13061 *GNU* | *'with BFD'*)
13062   lt_cv_prog_gnu_ld=yes
13063   ;;
13064 *)
13065   lt_cv_prog_gnu_ld=no
13066   ;;
13067 esac
13068 fi
13069 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13070 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13071 with_gnu_ld=$lt_cv_prog_gnu_ld
13072
13073
13074
13075   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13076   # archiving commands below assume that GNU ld is being used.
13077   if test "$with_gnu_ld" = yes; then
13078     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079     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'
13080
13081     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13082     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13083
13084     # If archive_cmds runs LD, not CC, wlarc should be empty
13085     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13086     #     investigate it a little bit more. (MM)
13087     wlarc='${wl}'
13088
13089     # ancient GNU ld didn't support --whole-archive et. al.
13090     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13091         grep 'no-whole-archive' > /dev/null; then
13092       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13093     else
13094       whole_archive_flag_spec_CXX=
13095     fi
13096   else
13097     with_gnu_ld=no
13098     wlarc=
13099
13100     # A generic and very simple default shared library creation
13101     # command for GNU C++ for the case where it uses the native
13102     # linker, instead of GNU ld.  If possible, this setting should
13103     # overridden to take advantage of the native linker features on
13104     # the platform it is being used on.
13105     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13106   fi
13107
13108   # Commands to make compiler produce verbose output that lists
13109   # what "hidden" libraries, object files and flags are used when
13110   # linking a shared library.
13111   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13112
13113 else
13114   GXX=no
13115   with_gnu_ld=no
13116   wlarc=
13117 fi
13118
13119 # PORTME: fill in a description of your system's C++ link characteristics
13120 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13122 ld_shlibs_CXX=yes
13123 case $host_os in
13124   aix3*)
13125     # FIXME: insert proper C++ library support
13126     ld_shlibs_CXX=no
13127     ;;
13128   aix[4-9]*)
13129     if test "$host_cpu" = ia64; then
13130       # On IA64, the linker does run time linking by default, so we don't
13131       # have to do anything special.
13132       aix_use_runtimelinking=no
13133       exp_sym_flag='-Bexport'
13134       no_entry_flag=""
13135     else
13136       aix_use_runtimelinking=no
13137
13138       # Test if we are trying to use run time linking or normal
13139       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13140       # need to do runtime linking.
13141       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13142         for ld_flag in $LDFLAGS; do
13143           case $ld_flag in
13144           *-brtl*)
13145             aix_use_runtimelinking=yes
13146             break
13147             ;;
13148           esac
13149         done
13150         ;;
13151       esac
13152
13153       exp_sym_flag='-bexport'
13154       no_entry_flag='-bnoentry'
13155     fi
13156
13157     # When large executables or shared objects are built, AIX ld can
13158     # have problems creating the table of contents.  If linking a library
13159     # or program results in "error TOC overflow" add -mminimal-toc to
13160     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13161     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13162
13163     archive_cmds_CXX=''
13164     hardcode_direct_CXX=yes
13165     hardcode_libdir_separator_CXX=':'
13166     link_all_deplibs_CXX=yes
13167
13168     if test "$GXX" = yes; then
13169       case $host_os in aix4.[012]|aix4.[012].*)
13170       # We only want to do this on AIX 4.2 and lower, the check
13171       # below for broken collect2 doesn't work under 4.3+
13172         collect2name=`${CC} -print-prog-name=collect2`
13173         if test -f "$collect2name" && \
13174            strings "$collect2name" | grep resolve_lib_name >/dev/null
13175         then
13176           # We have reworked collect2
13177           :
13178         else
13179           # We have old collect2
13180           hardcode_direct_CXX=unsupported
13181           # It fails to find uninstalled libraries when the uninstalled
13182           # path is not listed in the libpath.  Setting hardcode_minus_L
13183           # to unsupported forces relinking
13184           hardcode_minus_L_CXX=yes
13185           hardcode_libdir_flag_spec_CXX='-L$libdir'
13186           hardcode_libdir_separator_CXX=
13187         fi
13188         ;;
13189       esac
13190       shared_flag='-shared'
13191       if test "$aix_use_runtimelinking" = yes; then
13192         shared_flag="$shared_flag "'${wl}-G'
13193       fi
13194     else
13195       # not using gcc
13196       if test "$host_cpu" = ia64; then
13197         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13198         # chokes on -Wl,-G. The following line is correct:
13199         shared_flag='-G'
13200       else
13201         if test "$aix_use_runtimelinking" = yes; then
13202           shared_flag='${wl}-G'
13203         else
13204           shared_flag='${wl}-bM:SRE'
13205         fi
13206       fi
13207     fi
13208
13209     # It seems that -bexpall does not export symbols beginning with
13210     # underscore (_), so it is better to generate a list of symbols to export.
13211     always_export_symbols_CXX=yes
13212     if test "$aix_use_runtimelinking" = yes; then
13213       # Warning - without using the other runtime loading flags (-brtl),
13214       # -berok will link without error, but may produce a broken library.
13215       allow_undefined_flag_CXX='-berok'
13216       # Determine the default libpath from the value encoded in an empty executable.
13217       cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h.  */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h.  */
13223
13224 int
13225 main ()
13226 {
13227
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240   (eval "$ac_link") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } && {
13247          test -z "$ac_cxx_werror_flag" ||
13248          test ! -s conftest.err
13249        } && test -s conftest$ac_exeext && {
13250          test "$cross_compiling" = yes ||
13251          $as_test_x conftest$ac_exeext
13252        }; then
13253
13254 lt_aix_libpath_sed='
13255     /Import File Strings/,/^$/ {
13256         /^0/ {
13257             s/^0  *\(.*\)$/\1/
13258             p
13259         }
13260     }'
13261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13262 # Check for a 64-bit object if we didn't find anything.
13263 if test -z "$aix_libpath"; then
13264   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265 fi
13266 else
13267   $as_echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270
13271 fi
13272
13273 rm -rf conftest.dSYM
13274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13275       conftest$ac_exeext conftest.$ac_ext
13276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13277
13278       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13279
13280       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"
13281      else
13282       if test "$host_cpu" = ia64; then
13283         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13284         allow_undefined_flag_CXX="-z nodefs"
13285         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"
13286       else
13287         # Determine the default libpath from the value encoded in an empty executable.
13288         cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294
13295 int
13296 main ()
13297 {
13298
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
13305 case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311   (eval "$ac_link") 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } && {
13318          test -z "$ac_cxx_werror_flag" ||
13319          test ! -s conftest.err
13320        } && test -s conftest$ac_exeext && {
13321          test "$cross_compiling" = yes ||
13322          $as_test_x conftest$ac_exeext
13323        }; then
13324
13325 lt_aix_libpath_sed='
13326     /Import File Strings/,/^$/ {
13327         /^0/ {
13328             s/^0  *\(.*\)$/\1/
13329             p
13330         }
13331     }'
13332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13333 # Check for a 64-bit object if we didn't find anything.
13334 if test -z "$aix_libpath"; then
13335   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13336 fi
13337 else
13338   $as_echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341
13342 fi
13343
13344 rm -rf conftest.dSYM
13345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13346       conftest$ac_exeext conftest.$ac_ext
13347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13348
13349         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13350         # Warning - without using the other run time loading flags,
13351         # -berok will link without error, but may produce a broken library.
13352         no_undefined_flag_CXX=' ${wl}-bernotok'
13353         allow_undefined_flag_CXX=' ${wl}-berok'
13354         # Exported symbols can be pulled into shared objects from archives
13355         whole_archive_flag_spec_CXX='$convenience'
13356         archive_cmds_need_lc_CXX=yes
13357         # This is similar to how AIX traditionally builds its shared libraries.
13358         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'
13359       fi
13360     fi
13361     ;;
13362
13363   beos*)
13364     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13365       allow_undefined_flag_CXX=unsupported
13366       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13367       # support --undefined.  This deserves some investigation.  FIXME
13368       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369     else
13370       ld_shlibs_CXX=no
13371     fi
13372     ;;
13373
13374   chorus*)
13375     case $cc_basename in
13376       *)
13377         # FIXME: insert proper C++ library support
13378         ld_shlibs_CXX=no
13379         ;;
13380     esac
13381     ;;
13382
13383   cygwin* | mingw* | pw32*)
13384     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13385     # as there is no search path for DLLs.
13386     hardcode_libdir_flag_spec_CXX='-L$libdir'
13387     allow_undefined_flag_CXX=unsupported
13388     always_export_symbols_CXX=no
13389     enable_shared_with_static_runtimes_CXX=yes
13390
13391     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13392       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'
13393       # If the export-symbols file already is a .def file (1st line
13394       # is EXPORTS), use it as is; otherwise, prepend...
13395       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13396         cp $export_symbols $output_objdir/$soname.def;
13397       else
13398         echo EXPORTS > $output_objdir/$soname.def;
13399         cat $export_symbols >> $output_objdir/$soname.def;
13400       fi~
13401       $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'
13402     else
13403       ld_shlibs_CXX=no
13404     fi
13405   ;;
13406       darwin* | rhapsody*)
13407       archive_cmds_need_lc_CXX=no
13408       hardcode_direct_CXX=no
13409       hardcode_automatic_CXX=yes
13410       hardcode_shlibpath_var_CXX=unsupported
13411       whole_archive_flag_spec_CXX=''
13412       link_all_deplibs_CXX=yes
13413       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13414       if test "$GXX" = yes ; then
13415       output_verbose_link_cmd='echo'
13416       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}"
13417       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13418       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}"
13419       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}"
13420       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13421         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}"
13422         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}"
13423       fi
13424       else
13425       case $cc_basename in
13426         xlc*)
13427          output_verbose_link_cmd='echo'
13428           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'
13429           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13430           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13431           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}'
13432           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}'
13433           ;;
13434        *)
13435          ld_shlibs_CXX=no
13436           ;;
13437       esac
13438       fi
13439         ;;
13440
13441   dgux*)
13442     case $cc_basename in
13443       ec++*)
13444         # FIXME: insert proper C++ library support
13445         ld_shlibs_CXX=no
13446         ;;
13447       ghcx*)
13448         # Green Hills C++ Compiler
13449         # FIXME: insert proper C++ library support
13450         ld_shlibs_CXX=no
13451         ;;
13452       *)
13453         # FIXME: insert proper C++ library support
13454         ld_shlibs_CXX=no
13455         ;;
13456     esac
13457     ;;
13458   freebsd[12]*)
13459     # C++ shared libraries reported to be fairly broken before switch to ELF
13460     ld_shlibs_CXX=no
13461     ;;
13462   freebsd-elf*)
13463     archive_cmds_need_lc_CXX=no
13464     ;;
13465   freebsd* | dragonfly*)
13466     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13467     # conventions
13468     ld_shlibs_CXX=yes
13469     ;;
13470   gnu*)
13471     ;;
13472   hpux9*)
13473     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13474     hardcode_libdir_separator_CXX=:
13475     export_dynamic_flag_spec_CXX='${wl}-E'
13476     hardcode_direct_CXX=yes
13477     hardcode_minus_L_CXX=yes # Not in the search PATH,
13478                                 # but as the default
13479                                 # location of the library.
13480
13481     case $cc_basename in
13482     CC*)
13483       # FIXME: insert proper C++ library support
13484       ld_shlibs_CXX=no
13485       ;;
13486     aCC*)
13487       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'
13488       # Commands to make compiler produce verbose output that lists
13489       # what "hidden" libraries, object files and flags are used when
13490       # linking a shared library.
13491       #
13492       # There doesn't appear to be a way to prevent this compiler from
13493       # explicitly linking system object files so we need to strip them
13494       # from the output so that they don't get included in the library
13495       # dependencies.
13496       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'
13497       ;;
13498     *)
13499       if test "$GXX" = yes; then
13500         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'
13501       else
13502         # FIXME: insert proper C++ library support
13503         ld_shlibs_CXX=no
13504       fi
13505       ;;
13506     esac
13507     ;;
13508   hpux10*|hpux11*)
13509     if test $with_gnu_ld = no; then
13510       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13511       hardcode_libdir_separator_CXX=:
13512
13513       case $host_cpu in
13514       hppa*64*|ia64*) ;;
13515       *)
13516         export_dynamic_flag_spec_CXX='${wl}-E'
13517         ;;
13518       esac
13519     fi
13520     case $host_cpu in
13521     hppa*64*|ia64*)
13522       hardcode_direct_CXX=no
13523       hardcode_shlibpath_var_CXX=no
13524       ;;
13525     *)
13526       hardcode_direct_CXX=yes
13527       hardcode_minus_L_CXX=yes # Not in the search PATH,
13528                                               # but as the default
13529                                               # location of the library.
13530       ;;
13531     esac
13532
13533     case $cc_basename in
13534       CC*)
13535         # FIXME: insert proper C++ library support
13536         ld_shlibs_CXX=no
13537         ;;
13538       aCC*)
13539         case $host_cpu in
13540         hppa*64*)
13541           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13542           ;;
13543         ia64*)
13544           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13545           ;;
13546         *)
13547           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13548           ;;
13549         esac
13550         # Commands to make compiler produce verbose output that lists
13551         # what "hidden" libraries, object files and flags are used when
13552         # linking a shared library.
13553         #
13554         # There doesn't appear to be a way to prevent this compiler from
13555         # explicitly linking system object files so we need to strip them
13556         # from the output so that they don't get included in the library
13557         # dependencies.
13558         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'
13559         ;;
13560       *)
13561         if test "$GXX" = yes; then
13562           if test $with_gnu_ld = no; then
13563             case $host_cpu in
13564             hppa*64*)
13565               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566               ;;
13567             ia64*)
13568               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13569               ;;
13570             *)
13571               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'
13572               ;;
13573             esac
13574           fi
13575         else
13576           # FIXME: insert proper C++ library support
13577           ld_shlibs_CXX=no
13578         fi
13579         ;;
13580     esac
13581     ;;
13582   interix[3-9]*)
13583     hardcode_direct_CXX=no
13584     hardcode_shlibpath_var_CXX=no
13585     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13586     export_dynamic_flag_spec_CXX='${wl}-E'
13587     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13588     # Instead, shared libraries are loaded at an image base (0x10000000 by
13589     # default) and relocated if they conflict, which is a slow very memory
13590     # consuming and fragmenting process.  To avoid this, we pick a random,
13591     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13592     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13593     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'
13594     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'
13595     ;;
13596   irix5* | irix6*)
13597     case $cc_basename in
13598       CC*)
13599         # SGI C++
13600         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'
13601
13602         # Archives containing C++ object files must be created using
13603         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13604         # necessary to make sure instantiated templates are included
13605         # in the archive.
13606         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13607         ;;
13608       *)
13609         if test "$GXX" = yes; then
13610           if test "$with_gnu_ld" = no; then
13611             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'
13612           else
13613             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'
13614           fi
13615         fi
13616         link_all_deplibs_CXX=yes
13617         ;;
13618     esac
13619     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13620     hardcode_libdir_separator_CXX=:
13621     ;;
13622   linux* | k*bsd*-gnu)
13623     case $cc_basename in
13624       KCC*)
13625         # Kuck and Associates, Inc. (KAI) C++ Compiler
13626
13627         # KCC will only create a shared library if the output file
13628         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13629         # to its proper name (with version) after linking.
13630         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'
13631         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'
13632         # Commands to make compiler produce verbose output that lists
13633         # what "hidden" libraries, object files and flags are used when
13634         # linking a shared library.
13635         #
13636         # There doesn't appear to be a way to prevent this compiler from
13637         # explicitly linking system object files so we need to strip them
13638         # from the output so that they don't get included in the library
13639         # dependencies.
13640         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'
13641
13642         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13643         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13644
13645         # Archives containing C++ object files must be created using
13646         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13647         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13648         ;;
13649       icpc*)
13650         # Intel C++
13651         with_gnu_ld=yes
13652         # version 8.0 and above of icpc choke on multiply defined symbols
13653         # if we add $predep_objects and $postdep_objects, however 7.1 and
13654         # earlier do not add the objects themselves.
13655         case `$CC -V 2>&1` in
13656         *"Version 7."*)
13657           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13658           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'
13659           ;;
13660         *)  # Version 8.0 or newer
13661           tmp_idyn=
13662           case $host_cpu in
13663             ia64*) tmp_idyn=' -i_dynamic';;
13664           esac
13665           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666           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'
13667           ;;
13668         esac
13669         archive_cmds_need_lc_CXX=no
13670         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13671         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13672         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13673         ;;
13674       pgCC* | pgcpp*)
13675         # Portland Group C++ compiler
13676         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13677         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'
13678
13679         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13680         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13681         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'
13682         ;;
13683       cxx*)
13684         # Compaq C++
13685         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686         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'
13687
13688         runpath_var=LD_RUN_PATH
13689         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13690         hardcode_libdir_separator_CXX=:
13691
13692         # Commands to make compiler produce verbose output that lists
13693         # what "hidden" libraries, object files and flags are used when
13694         # linking a shared library.
13695         #
13696         # There doesn't appear to be a way to prevent this compiler from
13697         # explicitly linking system object files so we need to strip them
13698         # from the output so that they don't get included in the library
13699         # dependencies.
13700         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'
13701         ;;
13702       *)
13703         case `$CC -V 2>&1 | sed 5q` in
13704         *Sun\ C*)
13705           # Sun C++ 5.9
13706           no_undefined_flag_CXX=' -zdefs'
13707           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708           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'
13709           hardcode_libdir_flag_spec_CXX='-R$libdir'
13710           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'
13711
13712           # Not sure whether something based on
13713           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13714           # would be better.
13715           output_verbose_link_cmd='echo'
13716
13717           # Archives containing C++ object files must be created using
13718           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13719           # necessary to make sure instantiated templates are included
13720           # in the archive.
13721           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13722           ;;
13723         esac
13724         ;;
13725     esac
13726     ;;
13727   lynxos*)
13728     # FIXME: insert proper C++ library support
13729     ld_shlibs_CXX=no
13730     ;;
13731   m88k*)
13732     # FIXME: insert proper C++ library support
13733     ld_shlibs_CXX=no
13734     ;;
13735   mvs*)
13736     case $cc_basename in
13737       cxx*)
13738         # FIXME: insert proper C++ library support
13739         ld_shlibs_CXX=no
13740         ;;
13741       *)
13742         # FIXME: insert proper C++ library support
13743         ld_shlibs_CXX=no
13744         ;;
13745     esac
13746     ;;
13747   netbsd*)
13748     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13749       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13750       wlarc=
13751       hardcode_libdir_flag_spec_CXX='-R$libdir'
13752       hardcode_direct_CXX=yes
13753       hardcode_shlibpath_var_CXX=no
13754     fi
13755     # Workaround some broken pre-1.5 toolchains
13756     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13757     ;;
13758   openbsd2*)
13759     # C++ shared libraries are fairly broken
13760     ld_shlibs_CXX=no
13761     ;;
13762   openbsd*)
13763     if test -f /usr/libexec/ld.so; then
13764       hardcode_direct_CXX=yes
13765       hardcode_shlibpath_var_CXX=no
13766       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13767       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13768       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13769         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13770         export_dynamic_flag_spec_CXX='${wl}-E'
13771         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13772       fi
13773       output_verbose_link_cmd='echo'
13774     else
13775       ld_shlibs_CXX=no
13776     fi
13777     ;;
13778   osf3*)
13779     case $cc_basename in
13780       KCC*)
13781         # Kuck and Associates, Inc. (KAI) C++ Compiler
13782
13783         # KCC will only create a shared library if the output file
13784         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13785         # to its proper name (with version) after linking.
13786         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'
13787
13788         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13789         hardcode_libdir_separator_CXX=:
13790
13791         # Archives containing C++ object files must be created using
13792         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13793         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13794
13795         ;;
13796       RCC*)
13797         # Rational C++ 2.4.1
13798         # FIXME: insert proper C++ library support
13799         ld_shlibs_CXX=no
13800         ;;
13801       cxx*)
13802         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13803         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'
13804
13805         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13806         hardcode_libdir_separator_CXX=:
13807
13808         # Commands to make compiler produce verbose output that lists
13809         # what "hidden" libraries, object files and flags are used when
13810         # linking a shared library.
13811         #
13812         # There doesn't appear to be a way to prevent this compiler from
13813         # explicitly linking system object files so we need to strip them
13814         # from the output so that they don't get included in the library
13815         # dependencies.
13816         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'
13817         ;;
13818       *)
13819         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13820           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13821           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'
13822
13823           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13824           hardcode_libdir_separator_CXX=:
13825
13826           # Commands to make compiler produce verbose output that lists
13827           # what "hidden" libraries, object files and flags are used when
13828           # linking a shared library.
13829           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13830
13831         else
13832           # FIXME: insert proper C++ library support
13833           ld_shlibs_CXX=no
13834         fi
13835         ;;
13836     esac
13837     ;;
13838   osf4* | osf5*)
13839     case $cc_basename in
13840       KCC*)
13841         # Kuck and Associates, Inc. (KAI) C++ Compiler
13842
13843         # KCC will only create a shared library if the output file
13844         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13845         # to its proper name (with version) after linking.
13846         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'
13847
13848         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13849         hardcode_libdir_separator_CXX=:
13850
13851         # Archives containing C++ object files must be created using
13852         # the KAI C++ compiler.
13853         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13854         ;;
13855       RCC*)
13856         # Rational C++ 2.4.1
13857         # FIXME: insert proper C++ library support
13858         ld_shlibs_CXX=no
13859         ;;
13860       cxx*)
13861         allow_undefined_flag_CXX=' -expect_unresolved \*'
13862         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'
13863         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13864           echo "-hidden">> $lib.exp~
13865           $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~
13866           $rm $lib.exp'
13867
13868         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13869         hardcode_libdir_separator_CXX=:
13870
13871         # Commands to make compiler produce verbose output that lists
13872         # what "hidden" libraries, object files and flags are used when
13873         # linking a shared library.
13874         #
13875         # There doesn't appear to be a way to prevent this compiler from
13876         # explicitly linking system object files so we need to strip them
13877         # from the output so that they don't get included in the library
13878         # dependencies.
13879         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'
13880         ;;
13881       *)
13882         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13883           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13884          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'
13885
13886           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13887           hardcode_libdir_separator_CXX=:
13888
13889           # Commands to make compiler produce verbose output that lists
13890           # what "hidden" libraries, object files and flags are used when
13891           # linking a shared library.
13892           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13893
13894         else
13895           # FIXME: insert proper C++ library support
13896           ld_shlibs_CXX=no
13897         fi
13898         ;;
13899     esac
13900     ;;
13901   psos*)
13902     # FIXME: insert proper C++ library support
13903     ld_shlibs_CXX=no
13904     ;;
13905   sunos4*)
13906     case $cc_basename in
13907       CC*)
13908         # Sun C++ 4.x
13909         # FIXME: insert proper C++ library support
13910         ld_shlibs_CXX=no
13911         ;;
13912       lcc*)
13913         # Lucid
13914         # FIXME: insert proper C++ library support
13915         ld_shlibs_CXX=no
13916         ;;
13917       *)
13918         # FIXME: insert proper C++ library support
13919         ld_shlibs_CXX=no
13920         ;;
13921     esac
13922     ;;
13923   solaris*)
13924     case $cc_basename in
13925       CC*)
13926         # Sun C++ 4.2, 5.x and Centerline C++
13927         archive_cmds_need_lc_CXX=yes
13928         no_undefined_flag_CXX=' -zdefs'
13929         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13930         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13931         $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'
13932
13933         hardcode_libdir_flag_spec_CXX='-R$libdir'
13934         hardcode_shlibpath_var_CXX=no
13935         case $host_os in
13936           solaris2.[0-5] | solaris2.[0-5].*) ;;
13937           *)
13938             # The compiler driver will combine and reorder linker options,
13939             # but understands `-z linker_flag'.
13940             # Supported since Solaris 2.6 (maybe 2.5.1?)
13941             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13942             ;;
13943         esac
13944         link_all_deplibs_CXX=yes
13945
13946         output_verbose_link_cmd='echo'
13947
13948         # Archives containing C++ object files must be created using
13949         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13950         # necessary to make sure instantiated templates are included
13951         # in the archive.
13952         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13953         ;;
13954       gcx*)
13955         # Green Hills C++ Compiler
13956         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13957
13958         # The C++ compiler must be used to create the archive.
13959         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13960         ;;
13961       *)
13962         # GNU C++ compiler with Solaris linker
13963         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13964           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13965           if $CC --version | grep -v '^2\.7' > /dev/null; then
13966             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13967             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13968                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13969
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             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13974           else
13975             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13976             # platform.
13977             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13978             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13979                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13980
13981             # Commands to make compiler produce verbose output that lists
13982             # what "hidden" libraries, object files and flags are used when
13983             # linking a shared library.
13984             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13985           fi
13986
13987           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13988           case $host_os in
13989           solaris2.[0-5] | solaris2.[0-5].*) ;;
13990           *)
13991             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13992             ;;
13993           esac
13994         fi
13995         ;;
13996     esac
13997     ;;
13998   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13999     no_undefined_flag_CXX='${wl}-z,text'
14000     archive_cmds_need_lc_CXX=no
14001     hardcode_shlibpath_var_CXX=no
14002     runpath_var='LD_RUN_PATH'
14003
14004     case $cc_basename in
14005       CC*)
14006         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14007         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008         ;;
14009       *)
14010         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14011         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14012         ;;
14013     esac
14014     ;;
14015   sysv5* | sco3.2v5* | sco5v6*)
14016     # Note: We can NOT use -z defs as we might desire, because we do not
14017     # link with -lc, and that would cause any symbols used from libc to
14018     # always be unresolved, which means just about no library would
14019     # ever link correctly.  If we're not using GNU ld we use -z text
14020     # though, which does catch some bad symbols but isn't as heavy-handed
14021     # as -z defs.
14022     # For security reasons, it is highly recommended that you always
14023     # use absolute paths for naming shared libraries, and exclude the
14024     # DT_RUNPATH tag from executables and libraries.  But doing so
14025     # requires that you compile everything twice, which is a pain.
14026     # So that behaviour is only enabled if SCOABSPATH is set to a
14027     # non-empty value in the environment.  Most likely only useful for
14028     # creating official distributions of packages.
14029     # This is a hack until libtool officially supports absolute path
14030     # names for shared libraries.
14031     no_undefined_flag_CXX='${wl}-z,text'
14032     allow_undefined_flag_CXX='${wl}-z,nodefs'
14033     archive_cmds_need_lc_CXX=no
14034     hardcode_shlibpath_var_CXX=no
14035     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14036     hardcode_libdir_separator_CXX=':'
14037     link_all_deplibs_CXX=yes
14038     export_dynamic_flag_spec_CXX='${wl}-Bexport'
14039     runpath_var='LD_RUN_PATH'
14040
14041     case $cc_basename in
14042       CC*)
14043         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14044         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14045         ;;
14046       *)
14047         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14048         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14049         ;;
14050     esac
14051     ;;
14052   tandem*)
14053     case $cc_basename in
14054       NCC*)
14055         # NonStop-UX NCC 3.20
14056         # FIXME: insert proper C++ library support
14057         ld_shlibs_CXX=no
14058         ;;
14059       *)
14060         # FIXME: insert proper C++ library support
14061         ld_shlibs_CXX=no
14062         ;;
14063     esac
14064     ;;
14065   vxworks*)
14066     # FIXME: insert proper C++ library support
14067     ld_shlibs_CXX=no
14068     ;;
14069   *)
14070     # FIXME: insert proper C++ library support
14071     ld_shlibs_CXX=no
14072     ;;
14073 esac
14074 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14075 $as_echo "$ld_shlibs_CXX" >&6; }
14076 test "$ld_shlibs_CXX" = no && can_build_shared=no
14077
14078 GCC_CXX="$GXX"
14079 LD_CXX="$LD"
14080
14081 cat > conftest.$ac_ext <<EOF
14082 class Foo
14083 {
14084 public:
14085   Foo (void) { a = 0; }
14086 private:
14087   int a;
14088 };
14089 EOF
14090
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092   (eval $ac_compile) 2>&5
14093   ac_status=$?
14094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); }; then
14096   # Parse the compiler output and extract the necessary
14097   # objects, libraries and library flags.
14098
14099   # Sentinel used to keep track of whether or not we are before
14100   # the conftest object file.
14101   pre_test_object_deps_done=no
14102
14103   # The `*' in the case matches for architectures that use `case' in
14104   # $output_verbose_cmd can trigger glob expansion during the loop
14105   # eval without this substitution.
14106   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14107
14108   for p in `eval $output_verbose_link_cmd`; do
14109     case $p in
14110
14111     -L* | -R* | -l*)
14112        # Some compilers place space between "-{L,R}" and the path.
14113        # Remove the space.
14114        if test $p = "-L" \
14115           || test $p = "-R"; then
14116          prev=$p
14117          continue
14118        else
14119          prev=
14120        fi
14121
14122        if test "$pre_test_object_deps_done" = no; then
14123          case $p in
14124          -L* | -R*)
14125            # Internal compiler library paths should come after those
14126            # provided the user.  The postdeps already come after the
14127            # user supplied libs so there is no need to process them.
14128            if test -z "$compiler_lib_search_path_CXX"; then
14129              compiler_lib_search_path_CXX="${prev}${p}"
14130            else
14131              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14132            fi
14133            ;;
14134          # The "-l" case would never come before the object being
14135          # linked, so don't bother handling this case.
14136          esac
14137        else
14138          if test -z "$postdeps_CXX"; then
14139            postdeps_CXX="${prev}${p}"
14140          else
14141            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14142          fi
14143        fi
14144        ;;
14145
14146     *.$objext)
14147        # This assumes that the test object file only shows up
14148        # once in the compiler output.
14149        if test "$p" = "conftest.$objext"; then
14150          pre_test_object_deps_done=yes
14151          continue
14152        fi
14153
14154        if test "$pre_test_object_deps_done" = no; then
14155          if test -z "$predep_objects_CXX"; then
14156            predep_objects_CXX="$p"
14157          else
14158            predep_objects_CXX="$predep_objects_CXX $p"
14159          fi
14160        else
14161          if test -z "$postdep_objects_CXX"; then
14162            postdep_objects_CXX="$p"
14163          else
14164            postdep_objects_CXX="$postdep_objects_CXX $p"
14165          fi
14166        fi
14167        ;;
14168
14169     *) ;; # Ignore the rest.
14170
14171     esac
14172   done
14173
14174   # Clean up.
14175   rm -f a.out a.exe
14176 else
14177   echo "libtool.m4: error: problem compiling CXX test program"
14178 fi
14179
14180 $rm -f confest.$objext
14181
14182 compiler_lib_search_dirs_CXX=
14183 if test -n "$compiler_lib_search_path_CXX"; then
14184   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14185 fi
14186
14187 # PORTME: override above test on systems where it is broken
14188 case $host_os in
14189 interix[3-9]*)
14190   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14191   # hack all around it, let's just trust "g++" to DTRT.
14192   predep_objects_CXX=
14193   postdep_objects_CXX=
14194   postdeps_CXX=
14195   ;;
14196
14197 linux*)
14198   case `$CC -V 2>&1 | sed 5q` in
14199   *Sun\ C*)
14200     # Sun C++ 5.9
14201     #
14202     # The more standards-conforming stlport4 library is
14203     # incompatible with the Cstd library. Avoid specifying
14204     # it if it's in CXXFLAGS. Ignore libCrun as
14205     # -library=stlport4 depends on it.
14206     case " $CXX $CXXFLAGS " in
14207     *" -library=stlport4 "*)
14208       solaris_use_stlport4=yes
14209       ;;
14210     esac
14211     if test "$solaris_use_stlport4" != yes; then
14212       postdeps_CXX='-library=Cstd -library=Crun'
14213     fi
14214     ;;
14215   esac
14216   ;;
14217
14218 solaris*)
14219   case $cc_basename in
14220   CC*)
14221     # The more standards-conforming stlport4 library is
14222     # incompatible with the Cstd library. Avoid specifying
14223     # it if it's in CXXFLAGS. Ignore libCrun as
14224     # -library=stlport4 depends on it.
14225     case " $CXX $CXXFLAGS " in
14226     *" -library=stlport4 "*)
14227       solaris_use_stlport4=yes
14228       ;;
14229     esac
14230
14231     # Adding this requires a known-good setup of shared libraries for
14232     # Sun compiler versions before 5.6, else PIC objects from an old
14233     # archive will be linked into the output, leading to subtle bugs.
14234     if test "$solaris_use_stlport4" != yes; then
14235       postdeps_CXX='-library=Cstd -library=Crun'
14236     fi
14237     ;;
14238   esac
14239   ;;
14240 esac
14241
14242 case " $postdeps_CXX " in
14243 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14244 esac
14245
14246 lt_prog_compiler_wl_CXX=
14247 lt_prog_compiler_pic_CXX=
14248 lt_prog_compiler_static_CXX=
14249
14250 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14252
14253   # C++ specific cases for pic, static, wl, etc.
14254   if test "$GXX" = yes; then
14255     lt_prog_compiler_wl_CXX='-Wl,'
14256     lt_prog_compiler_static_CXX='-static'
14257
14258     case $host_os in
14259     aix*)
14260       # All AIX code is PIC.
14261       if test "$host_cpu" = ia64; then
14262         # AIX 5 now supports IA64 processor
14263         lt_prog_compiler_static_CXX='-Bstatic'
14264       fi
14265       ;;
14266     amigaos*)
14267       # FIXME: we need at least 68020 code to build shared libraries, but
14268       # adding the `-m68020' flag to GCC prevents building anything better,
14269       # like `-m68040'.
14270       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14271       ;;
14272     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14273       # PIC is the default for these OSes.
14274       ;;
14275     mingw* | cygwin* | os2* | pw32*)
14276       # This hack is so that the source file can tell whether it is being
14277       # built for inclusion in a dll (and should export symbols for example).
14278       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14279       # (--disable-auto-import) libraries
14280       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14281       ;;
14282     darwin* | rhapsody*)
14283       # PIC is the default on this platform
14284       # Common symbols not allowed in MH_DYLIB files
14285       lt_prog_compiler_pic_CXX='-fno-common'
14286       ;;
14287     *djgpp*)
14288       # DJGPP does not support shared libraries at all
14289       lt_prog_compiler_pic_CXX=
14290       ;;
14291     interix[3-9]*)
14292       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14293       # Instead, we relocate shared libraries at runtime.
14294       ;;
14295     sysv4*MP*)
14296       if test -d /usr/nec; then
14297         lt_prog_compiler_pic_CXX=-Kconform_pic
14298       fi
14299       ;;
14300     hpux*)
14301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302       # not for PA HP-UX.
14303       case $host_cpu in
14304       hppa*64*|ia64*)
14305         ;;
14306       *)
14307         lt_prog_compiler_pic_CXX='-fPIC'
14308         ;;
14309       esac
14310       ;;
14311     *)
14312       lt_prog_compiler_pic_CXX='-fPIC'
14313       ;;
14314     esac
14315   else
14316     case $host_os in
14317       aix[4-9]*)
14318         # All AIX code is PIC.
14319         if test "$host_cpu" = ia64; then
14320           # AIX 5 now supports IA64 processor
14321           lt_prog_compiler_static_CXX='-Bstatic'
14322         else
14323           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14324         fi
14325         ;;
14326       chorus*)
14327         case $cc_basename in
14328         cxch68*)
14329           # Green Hills C++ Compiler
14330           # _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"
14331           ;;
14332         esac
14333         ;;
14334        darwin*)
14335          # PIC is the default on this platform
14336          # Common symbols not allowed in MH_DYLIB files
14337          case $cc_basename in
14338            xlc*)
14339            lt_prog_compiler_pic_CXX='-qnocommon'
14340            lt_prog_compiler_wl_CXX='-Wl,'
14341            ;;
14342          esac
14343        ;;
14344       dgux*)
14345         case $cc_basename in
14346           ec++*)
14347             lt_prog_compiler_pic_CXX='-KPIC'
14348             ;;
14349           ghcx*)
14350             # Green Hills C++ Compiler
14351             lt_prog_compiler_pic_CXX='-pic'
14352             ;;
14353           *)
14354             ;;
14355         esac
14356         ;;
14357       freebsd* | dragonfly*)
14358         # FreeBSD uses GNU C++
14359         ;;
14360       hpux9* | hpux10* | hpux11*)
14361         case $cc_basename in
14362           CC*)
14363             lt_prog_compiler_wl_CXX='-Wl,'
14364             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14365             if test "$host_cpu" != ia64; then
14366               lt_prog_compiler_pic_CXX='+Z'
14367             fi
14368             ;;
14369           aCC*)
14370             lt_prog_compiler_wl_CXX='-Wl,'
14371             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14372             case $host_cpu in
14373             hppa*64*|ia64*)
14374               # +Z the default
14375               ;;
14376             *)
14377               lt_prog_compiler_pic_CXX='+Z'
14378               ;;
14379             esac
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       interix*)
14386         # This is c89, which is MS Visual C++ (no shared libs)
14387         # Anyone wants to do a port?
14388         ;;
14389       irix5* | irix6* | nonstopux*)
14390         case $cc_basename in
14391           CC*)
14392             lt_prog_compiler_wl_CXX='-Wl,'
14393             lt_prog_compiler_static_CXX='-non_shared'
14394             # CC pic flag -KPIC is the default.
14395             ;;
14396           *)
14397             ;;
14398         esac
14399         ;;
14400       linux* | k*bsd*-gnu)
14401         case $cc_basename in
14402           KCC*)
14403             # KAI C++ Compiler
14404             lt_prog_compiler_wl_CXX='--backend -Wl,'
14405             lt_prog_compiler_pic_CXX='-fPIC'
14406             ;;
14407           icpc* | ecpc*)
14408             # Intel C++
14409             lt_prog_compiler_wl_CXX='-Wl,'
14410             lt_prog_compiler_pic_CXX='-KPIC'
14411             lt_prog_compiler_static_CXX='-static'
14412             ;;
14413           pgCC* | pgcpp*)
14414             # Portland Group C++ compiler.
14415             lt_prog_compiler_wl_CXX='-Wl,'
14416             lt_prog_compiler_pic_CXX='-fpic'
14417             lt_prog_compiler_static_CXX='-Bstatic'
14418             ;;
14419           cxx*)
14420             # Compaq C++
14421             # Make sure the PIC flag is empty.  It appears that all Alpha
14422             # Linux and Compaq Tru64 Unix objects are PIC.
14423             lt_prog_compiler_pic_CXX=
14424             lt_prog_compiler_static_CXX='-non_shared'
14425             ;;
14426           *)
14427             case `$CC -V 2>&1 | sed 5q` in
14428             *Sun\ C*)
14429               # Sun C++ 5.9
14430               lt_prog_compiler_pic_CXX='-KPIC'
14431               lt_prog_compiler_static_CXX='-Bstatic'
14432               lt_prog_compiler_wl_CXX='-Qoption ld '
14433               ;;
14434             esac
14435             ;;
14436         esac
14437         ;;
14438       lynxos*)
14439         ;;
14440       m88k*)
14441         ;;
14442       mvs*)
14443         case $cc_basename in
14444           cxx*)
14445             lt_prog_compiler_pic_CXX='-W c,exportall'
14446             ;;
14447           *)
14448             ;;
14449         esac
14450         ;;
14451       netbsd*)
14452         ;;
14453       osf3* | osf4* | osf5*)
14454         case $cc_basename in
14455           KCC*)
14456             lt_prog_compiler_wl_CXX='--backend -Wl,'
14457             ;;
14458           RCC*)
14459             # Rational C++ 2.4.1
14460             lt_prog_compiler_pic_CXX='-pic'
14461             ;;
14462           cxx*)
14463             # Digital/Compaq C++
14464             lt_prog_compiler_wl_CXX='-Wl,'
14465             # Make sure the PIC flag is empty.  It appears that all Alpha
14466             # Linux and Compaq Tru64 Unix objects are PIC.
14467             lt_prog_compiler_pic_CXX=
14468             lt_prog_compiler_static_CXX='-non_shared'
14469             ;;
14470           *)
14471             ;;
14472         esac
14473         ;;
14474       psos*)
14475         ;;
14476       solaris*)
14477         case $cc_basename in
14478           CC*)
14479             # Sun C++ 4.2, 5.x and Centerline C++
14480             lt_prog_compiler_pic_CXX='-KPIC'
14481             lt_prog_compiler_static_CXX='-Bstatic'
14482             lt_prog_compiler_wl_CXX='-Qoption ld '
14483             ;;
14484           gcx*)
14485             # Green Hills C++ Compiler
14486             lt_prog_compiler_pic_CXX='-PIC'
14487             ;;
14488           *)
14489             ;;
14490         esac
14491         ;;
14492       sunos4*)
14493         case $cc_basename in
14494           CC*)
14495             # Sun C++ 4.x
14496             lt_prog_compiler_pic_CXX='-pic'
14497             lt_prog_compiler_static_CXX='-Bstatic'
14498             ;;
14499           lcc*)
14500             # Lucid
14501             lt_prog_compiler_pic_CXX='-pic'
14502             ;;
14503           *)
14504             ;;
14505         esac
14506         ;;
14507       tandem*)
14508         case $cc_basename in
14509           NCC*)
14510             # NonStop-UX NCC 3.20
14511             lt_prog_compiler_pic_CXX='-KPIC'
14512             ;;
14513           *)
14514             ;;
14515         esac
14516         ;;
14517       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14518         case $cc_basename in
14519           CC*)
14520             lt_prog_compiler_wl_CXX='-Wl,'
14521             lt_prog_compiler_pic_CXX='-KPIC'
14522             lt_prog_compiler_static_CXX='-Bstatic'
14523             ;;
14524         esac
14525         ;;
14526       vxworks*)
14527         ;;
14528       *)
14529         lt_prog_compiler_can_build_shared_CXX=no
14530         ;;
14531     esac
14532   fi
14533
14534 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14535 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14536
14537 #
14538 # Check to make sure the PIC flag actually works.
14539 #
14540 if test -n "$lt_prog_compiler_pic_CXX"; then
14541
14542 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14543 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14544 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14545   $as_echo_n "(cached) " >&6
14546 else
14547   lt_cv_prog_compiler_pic_works_CXX=no
14548   ac_outfile=conftest.$ac_objext
14549    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14551    # Insert the option either (1) after the last *FLAGS variable, or
14552    # (2) before a word containing "conftest.", or (3) at the end.
14553    # Note that $ac_compile itself does not contain backslashes and begins
14554    # with a dollar sign (not a hyphen), so the echo should work correctly.
14555    # The option is referenced via a variable to avoid confusing sed.
14556    lt_compile=`echo "$ac_compile" | $SED \
14557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14559    -e 's:$: $lt_compiler_flag:'`
14560    (eval echo "\"\$as_me:14560: $lt_compile\"" >&5)
14561    (eval "$lt_compile" 2>conftest.err)
14562    ac_status=$?
14563    cat conftest.err >&5
14564    echo "$as_me:14564: \$? = $ac_status" >&5
14565    if (exit $ac_status) && test -s "$ac_outfile"; then
14566      # The compiler can only warn and ignore the option if not recognized
14567      # So say no if there are warnings other than the usual output.
14568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14571        lt_cv_prog_compiler_pic_works_CXX=yes
14572      fi
14573    fi
14574    $rm conftest*
14575
14576 fi
14577 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14579
14580 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14581     case $lt_prog_compiler_pic_CXX in
14582      "" | " "*) ;;
14583      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14584      esac
14585 else
14586     lt_prog_compiler_pic_CXX=
14587      lt_prog_compiler_can_build_shared_CXX=no
14588 fi
14589
14590 fi
14591 case $host_os in
14592   # For platforms which do not support PIC, -DPIC is meaningless:
14593   *djgpp*)
14594     lt_prog_compiler_pic_CXX=
14595     ;;
14596   *)
14597     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14598     ;;
14599 esac
14600
14601 #
14602 # Check to make sure the static flag actually works.
14603 #
14604 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14605 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14606 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14607 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14608   $as_echo_n "(cached) " >&6
14609 else
14610   lt_cv_prog_compiler_static_works_CXX=no
14611    save_LDFLAGS="$LDFLAGS"
14612    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14613    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14615      # The linker can only warn and ignore the option if not recognized
14616      # So say no if there are warnings
14617      if test -s conftest.err; then
14618        # Append any errors to the config.log.
14619        cat conftest.err 1>&5
14620        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14621        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14622        if diff conftest.exp conftest.er2 >/dev/null; then
14623          lt_cv_prog_compiler_static_works_CXX=yes
14624        fi
14625      else
14626        lt_cv_prog_compiler_static_works_CXX=yes
14627      fi
14628    fi
14629    $rm -r conftest*
14630    LDFLAGS="$save_LDFLAGS"
14631
14632 fi
14633 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14634 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14635
14636 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14637     :
14638 else
14639     lt_prog_compiler_static_CXX=
14640 fi
14641
14642
14643 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14644 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14645 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14646   $as_echo_n "(cached) " >&6
14647 else
14648   lt_cv_prog_compiler_c_o_CXX=no
14649    $rm -r conftest 2>/dev/null
14650    mkdir conftest
14651    cd conftest
14652    mkdir out
14653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14654
14655    lt_compiler_flag="-o out/conftest2.$ac_objext"
14656    # Insert the option either (1) after the last *FLAGS variable, or
14657    # (2) before a word containing "conftest.", or (3) at the end.
14658    # Note that $ac_compile itself does not contain backslashes and begins
14659    # with a dollar sign (not a hyphen), so the echo should work correctly.
14660    lt_compile=`echo "$ac_compile" | $SED \
14661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14663    -e 's:$: $lt_compiler_flag:'`
14664    (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
14665    (eval "$lt_compile" 2>out/conftest.err)
14666    ac_status=$?
14667    cat out/conftest.err >&5
14668    echo "$as_me:14668: \$? = $ac_status" >&5
14669    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14670    then
14671      # The compiler can only warn and ignore the option if not recognized
14672      # So say no if there are warnings
14673      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14674      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14675      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14676        lt_cv_prog_compiler_c_o_CXX=yes
14677      fi
14678    fi
14679    chmod u+w . 2>&5
14680    $rm conftest*
14681    # SGI C++ compiler will create directory out/ii_files/ for
14682    # template instantiation
14683    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14684    $rm out/* && rmdir out
14685    cd ..
14686    rmdir conftest
14687    $rm conftest*
14688
14689 fi
14690 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14691 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14692
14693
14694 hard_links="nottested"
14695 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14696   # do not overwrite the value of need_locks provided by the user
14697   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14698 $as_echo_n "checking if we can lock with hard links... " >&6; }
14699   hard_links=yes
14700   $rm conftest*
14701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14702   touch conftest.a
14703   ln conftest.a conftest.b 2>&5 || hard_links=no
14704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14706 $as_echo "$hard_links" >&6; }
14707   if test "$hard_links" = no; then
14708     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14710     need_locks=warn
14711   fi
14712 else
14713   need_locks=no
14714 fi
14715
14716 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14717 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14718
14719   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720   case $host_os in
14721   aix[4-9]*)
14722     # If we're using GNU nm, then we don't want the "-C" option.
14723     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14724     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14725       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'
14726     else
14727       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'
14728     fi
14729     ;;
14730   pw32*)
14731     export_symbols_cmds_CXX="$ltdll_cmds"
14732   ;;
14733   cygwin* | mingw*)
14734     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'
14735   ;;
14736   *)
14737     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14738   ;;
14739   esac
14740   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14741
14742 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14743 $as_echo "$ld_shlibs_CXX" >&6; }
14744 test "$ld_shlibs_CXX" = no && can_build_shared=no
14745
14746 #
14747 # Do we need to explicitly link libc?
14748 #
14749 case "x$archive_cmds_need_lc_CXX" in
14750 x|xyes)
14751   # Assume -lc should be added
14752   archive_cmds_need_lc_CXX=yes
14753
14754   if test "$enable_shared" = yes && test "$GCC" = yes; then
14755     case $archive_cmds_CXX in
14756     *'~'*)
14757       # FIXME: we may have to deal with multi-command sequences.
14758       ;;
14759     '$CC '*)
14760       # Test whether the compiler implicitly links with -lc since on some
14761       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14762       # to ld, don't add -lc before -lgcc.
14763       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14765       $rm conftest*
14766       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14767
14768       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769   (eval $ac_compile) 2>&5
14770   ac_status=$?
14771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } 2>conftest.err; then
14773         soname=conftest
14774         lib=conftest
14775         libobjs=conftest.$ac_objext
14776         deplibs=
14777         wl=$lt_prog_compiler_wl_CXX
14778         pic_flag=$lt_prog_compiler_pic_CXX
14779         compiler_flags=-v
14780         linker_flags=-v
14781         verstring=
14782         output_objdir=.
14783         libname=conftest
14784         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14785         allow_undefined_flag_CXX=
14786         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14787   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14788   ac_status=$?
14789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }
14791         then
14792           archive_cmds_need_lc_CXX=no
14793         else
14794           archive_cmds_need_lc_CXX=yes
14795         fi
14796         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14797       else
14798         cat conftest.err 1>&5
14799       fi
14800       $rm conftest*
14801       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14802 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14803       ;;
14804     esac
14805   fi
14806   ;;
14807 esac
14808
14809 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14811 library_names_spec=
14812 libname_spec='lib$name'
14813 soname_spec=
14814 shrext_cmds=".so"
14815 postinstall_cmds=
14816 postuninstall_cmds=
14817 finish_cmds=
14818 finish_eval=
14819 shlibpath_var=
14820 shlibpath_overrides_runpath=unknown
14821 version_type=none
14822 dynamic_linker="$host_os ld.so"
14823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14824
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14827
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14831
14832 case $host_os in
14833 aix3*)
14834   version_type=linux
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836   shlibpath_var=LIBPATH
14837
14838   # AIX 3 has no versioning support, so we append a major version to the name.
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   ;;
14841
14842 aix[4-9]*)
14843   version_type=linux
14844   need_lib_prefix=no
14845   need_version=no
14846   hardcode_into_libs=yes
14847   if test "$host_cpu" = ia64; then
14848     # AIX 5 supports IA64
14849     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850     shlibpath_var=LD_LIBRARY_PATH
14851   else
14852     # With GCC up to 2.95.x, collect2 would create an import file
14853     # for dependence libraries.  The import file would start with
14854     # the line `#! .'.  This would cause the generated library to
14855     # depend on `.', always an invalid library.  This was fixed in
14856     # development snapshots of GCC prior to 3.0.
14857     case $host_os in
14858       aix4 | aix4.[01] | aix4.[01].*)
14859       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14860            echo ' yes '
14861            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14862         :
14863       else
14864         can_build_shared=no
14865       fi
14866       ;;
14867     esac
14868     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869     # soname into executable. Probably we can add versioning support to
14870     # collect2, so additional links can be useful in future.
14871     if test "$aix_use_runtimelinking" = yes; then
14872       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873       # instead of lib<name>.a to let people know that these are not
14874       # typical AIX shared libraries.
14875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876     else
14877       # We preserve .a as extension for shared libraries through AIX4.2
14878       # and later when we are not doing run time linking.
14879       library_names_spec='${libname}${release}.a $libname.a'
14880       soname_spec='${libname}${release}${shared_ext}$major'
14881     fi
14882     shlibpath_var=LIBPATH
14883   fi
14884   ;;
14885
14886 amigaos*)
14887   library_names_spec='$libname.ixlibrary $libname.a'
14888   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889   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'
14890   ;;
14891
14892 beos*)
14893   library_names_spec='${libname}${shared_ext}'
14894   dynamic_linker="$host_os ld.so"
14895   shlibpath_var=LIBRARY_PATH
14896   ;;
14897
14898 bsdi[45]*)
14899   version_type=linux
14900   need_version=no
14901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904   shlibpath_var=LD_LIBRARY_PATH
14905   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907   # the default ld.so.conf also contains /usr/contrib/lib and
14908   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909   # libtool to hard-code these into programs
14910   ;;
14911
14912 cygwin* | mingw* | pw32*)
14913   version_type=windows
14914   shrext_cmds=".dll"
14915   need_version=no
14916   need_lib_prefix=no
14917
14918   case $GCC,$host_os in
14919   yes,cygwin* | yes,mingw* | yes,pw32*)
14920     library_names_spec='$libname.dll.a'
14921     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14922     postinstall_cmds='base_file=`basename \${file}`~
14923       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14924       dldir=$destdir/`dirname \$dlpath`~
14925       test -d \$dldir || mkdir -p \$dldir~
14926       $install_prog $dir/$dlname \$dldir/$dlname~
14927       chmod a+x \$dldir/$dlname'
14928     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14929       dlpath=$dir/\$dldll~
14930        $rm \$dlpath'
14931     shlibpath_overrides_runpath=yes
14932
14933     case $host_os in
14934     cygwin*)
14935       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14936       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14937       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14938       ;;
14939     mingw*)
14940       # MinGW DLLs use traditional 'lib' prefix
14941       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14942       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14943       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14944         # It is most probably a Windows format PATH printed by
14945         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14946         # path with ; separators, and with drive letters. We can handle the
14947         # drive letters (cygwin fileutils understands them), so leave them,
14948         # especially as we might pass files found there to a mingw objdump,
14949         # which wouldn't understand a cygwinified path. Ahh.
14950         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14951       else
14952         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14953       fi
14954       ;;
14955     pw32*)
14956       # pw32 DLLs use 'pw' prefix rather than 'lib'
14957       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958       ;;
14959     esac
14960     ;;
14961
14962   *)
14963     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14964     ;;
14965   esac
14966   dynamic_linker='Win32 ld.exe'
14967   # FIXME: first we should search . and the directory the executable is in
14968   shlibpath_var=PATH
14969   ;;
14970
14971 darwin* | rhapsody*)
14972   dynamic_linker="$host_os dyld"
14973   version_type=darwin
14974   need_lib_prefix=no
14975   need_version=no
14976   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14977   soname_spec='${libname}${release}${major}$shared_ext'
14978   shlibpath_overrides_runpath=yes
14979   shlibpath_var=DYLD_LIBRARY_PATH
14980   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14981
14982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14983   ;;
14984
14985 dgux*)
14986   version_type=linux
14987   need_lib_prefix=no
14988   need_version=no
14989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14990   soname_spec='${libname}${release}${shared_ext}$major'
14991   shlibpath_var=LD_LIBRARY_PATH
14992   ;;
14993
14994 freebsd1*)
14995   dynamic_linker=no
14996   ;;
14997
14998 freebsd* | dragonfly*)
14999   # DragonFly does not have aout.  When/if they implement a new
15000   # versioning mechanism, adjust this.
15001   if test -x /usr/bin/objformat; then
15002     objformat=`/usr/bin/objformat`
15003   else
15004     case $host_os in
15005     freebsd[123]*) objformat=aout ;;
15006     *) objformat=elf ;;
15007     esac
15008   fi
15009   version_type=freebsd-$objformat
15010   case $version_type in
15011     freebsd-elf*)
15012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15013       need_version=no
15014       need_lib_prefix=no
15015       ;;
15016     freebsd-*)
15017       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15018       need_version=yes
15019       ;;
15020   esac
15021   shlibpath_var=LD_LIBRARY_PATH
15022   case $host_os in
15023   freebsd2*)
15024     shlibpath_overrides_runpath=yes
15025     ;;
15026   freebsd3.[01]* | freebsdelf3.[01]*)
15027     shlibpath_overrides_runpath=yes
15028     hardcode_into_libs=yes
15029     ;;
15030   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15031   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15032     shlibpath_overrides_runpath=no
15033     hardcode_into_libs=yes
15034     ;;
15035   *) # from 4.6 on, and DragonFly
15036     shlibpath_overrides_runpath=yes
15037     hardcode_into_libs=yes
15038     ;;
15039   esac
15040   ;;
15041
15042 gnu*)
15043   version_type=linux
15044   need_lib_prefix=no
15045   need_version=no
15046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15047   soname_spec='${libname}${release}${shared_ext}$major'
15048   shlibpath_var=LD_LIBRARY_PATH
15049   hardcode_into_libs=yes
15050   ;;
15051
15052 hpux9* | hpux10* | hpux11*)
15053   # Give a soname corresponding to the major version so that dld.sl refuses to
15054   # link against other versions.
15055   version_type=sunos
15056   need_lib_prefix=no
15057   need_version=no
15058   case $host_cpu in
15059   ia64*)
15060     shrext_cmds='.so'
15061     hardcode_into_libs=yes
15062     dynamic_linker="$host_os dld.so"
15063     shlibpath_var=LD_LIBRARY_PATH
15064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066     soname_spec='${libname}${release}${shared_ext}$major'
15067     if test "X$HPUX_IA64_MODE" = X32; then
15068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15069     else
15070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15071     fi
15072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15073     ;;
15074    hppa*64*)
15075      shrext_cmds='.sl'
15076      hardcode_into_libs=yes
15077      dynamic_linker="$host_os dld.sl"
15078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081      soname_spec='${libname}${release}${shared_ext}$major'
15082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15084      ;;
15085    *)
15086     shrext_cmds='.sl'
15087     dynamic_linker="$host_os dld.sl"
15088     shlibpath_var=SHLIB_PATH
15089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091     soname_spec='${libname}${release}${shared_ext}$major'
15092     ;;
15093   esac
15094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15095   postinstall_cmds='chmod 555 $lib'
15096   ;;
15097
15098 interix[3-9]*)
15099   version_type=linux
15100   need_lib_prefix=no
15101   need_version=no
15102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15103   soname_spec='${libname}${release}${shared_ext}$major'
15104   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15105   shlibpath_var=LD_LIBRARY_PATH
15106   shlibpath_overrides_runpath=no
15107   hardcode_into_libs=yes
15108   ;;
15109
15110 irix5* | irix6* | nonstopux*)
15111   case $host_os in
15112     nonstopux*) version_type=nonstopux ;;
15113     *)
15114         if test "$lt_cv_prog_gnu_ld" = yes; then
15115                 version_type=linux
15116         else
15117                 version_type=irix
15118         fi ;;
15119   esac
15120   need_lib_prefix=no
15121   need_version=no
15122   soname_spec='${libname}${release}${shared_ext}$major'
15123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15124   case $host_os in
15125   irix5* | nonstopux*)
15126     libsuff= shlibsuff=
15127     ;;
15128   *)
15129     case $LD in # libtool.m4 will add one of these switches to LD
15130     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15131       libsuff= shlibsuff= libmagic=32-bit;;
15132     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15133       libsuff=32 shlibsuff=N32 libmagic=N32;;
15134     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15135       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15136     *) libsuff= shlibsuff= libmagic=never-match;;
15137     esac
15138     ;;
15139   esac
15140   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15141   shlibpath_overrides_runpath=no
15142   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15143   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15144   hardcode_into_libs=yes
15145   ;;
15146
15147 # No shared lib support for Linux oldld, aout, or coff.
15148 linux*oldld* | linux*aout* | linux*coff*)
15149   dynamic_linker=no
15150   ;;
15151
15152 # This must be Linux ELF.
15153 linux* | k*bsd*-gnu)
15154   version_type=linux
15155   need_lib_prefix=no
15156   need_version=no
15157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158   soname_spec='${libname}${release}${shared_ext}$major'
15159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15160   shlibpath_var=LD_LIBRARY_PATH
15161   shlibpath_overrides_runpath=no
15162   # This implies no fast_install, which is unacceptable.
15163   # Some rework will be needed to allow for fast_install
15164   # before this can be enabled.
15165   hardcode_into_libs=yes
15166   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15167   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15168
15169   # Append ld.so.conf contents to the search path
15170   if test -f /etc/ld.so.conf; then
15171     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' ' '`
15172     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15173   fi
15174
15175   # We used to test for /lib/ld.so.1 and disable shared libraries on
15176   # powerpc, because MkLinux only supported shared libraries with the
15177   # GNU dynamic linker.  Since this was broken with cross compilers,
15178   # most powerpc-linux boxes support dynamic linking these days and
15179   # people can always --disable-shared, the test was removed, and we
15180   # assume the GNU/Linux dynamic linker is in use.
15181   dynamic_linker='GNU/Linux ld.so'
15182   ;;
15183
15184 netbsd*)
15185   version_type=sunos
15186   need_lib_prefix=no
15187   need_version=no
15188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191     dynamic_linker='NetBSD (a.out) ld.so'
15192   else
15193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15194     soname_spec='${libname}${release}${shared_ext}$major'
15195     dynamic_linker='NetBSD ld.elf_so'
15196   fi
15197   shlibpath_var=LD_LIBRARY_PATH
15198   shlibpath_overrides_runpath=yes
15199   hardcode_into_libs=yes
15200   ;;
15201
15202 newsos6)
15203   version_type=linux
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   shlibpath_overrides_runpath=yes
15207   ;;
15208
15209 nto-qnx*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214   soname_spec='${libname}${release}${shared_ext}$major'
15215   shlibpath_var=LD_LIBRARY_PATH
15216   shlibpath_overrides_runpath=yes
15217   ;;
15218
15219 openbsd*)
15220   version_type=sunos
15221   sys_lib_dlsearch_path_spec="/usr/lib"
15222   need_lib_prefix=no
15223   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15224   case $host_os in
15225     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15226     *)                         need_version=no  ;;
15227   esac
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15230   shlibpath_var=LD_LIBRARY_PATH
15231   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15232     case $host_os in
15233       openbsd2.[89] | openbsd2.[89].*)
15234         shlibpath_overrides_runpath=no
15235         ;;
15236       *)
15237         shlibpath_overrides_runpath=yes
15238         ;;
15239       esac
15240   else
15241     shlibpath_overrides_runpath=yes
15242   fi
15243   ;;
15244
15245 os2*)
15246   libname_spec='$name'
15247   shrext_cmds=".dll"
15248   need_lib_prefix=no
15249   library_names_spec='$libname${shared_ext} $libname.a'
15250   dynamic_linker='OS/2 ld.exe'
15251   shlibpath_var=LIBPATH
15252   ;;
15253
15254 osf3* | osf4* | osf5*)
15255   version_type=osf
15256   need_lib_prefix=no
15257   need_version=no
15258   soname_spec='${libname}${release}${shared_ext}$major'
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260   shlibpath_var=LD_LIBRARY_PATH
15261   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15262   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15263   ;;
15264
15265 rdos*)
15266   dynamic_linker=no
15267   ;;
15268
15269 solaris*)
15270   version_type=linux
15271   need_lib_prefix=no
15272   need_version=no
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   shlibpath_var=LD_LIBRARY_PATH
15276   shlibpath_overrides_runpath=yes
15277   hardcode_into_libs=yes
15278   # ldd complains unless libraries are executable
15279   postinstall_cmds='chmod +x $lib'
15280   ;;
15281
15282 sunos4*)
15283   version_type=sunos
15284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15285   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15286   shlibpath_var=LD_LIBRARY_PATH
15287   shlibpath_overrides_runpath=yes
15288   if test "$with_gnu_ld" = yes; then
15289     need_lib_prefix=no
15290   fi
15291   need_version=yes
15292   ;;
15293
15294 sysv4 | sysv4.3*)
15295   version_type=linux
15296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297   soname_spec='${libname}${release}${shared_ext}$major'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   case $host_vendor in
15300     sni)
15301       shlibpath_overrides_runpath=no
15302       need_lib_prefix=no
15303       export_dynamic_flag_spec='${wl}-Blargedynsym'
15304       runpath_var=LD_RUN_PATH
15305       ;;
15306     siemens)
15307       need_lib_prefix=no
15308       ;;
15309     motorola)
15310       need_lib_prefix=no
15311       need_version=no
15312       shlibpath_overrides_runpath=no
15313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15314       ;;
15315   esac
15316   ;;
15317
15318 sysv4*MP*)
15319   if test -d /usr/nec ;then
15320     version_type=linux
15321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15322     soname_spec='$libname${shared_ext}.$major'
15323     shlibpath_var=LD_LIBRARY_PATH
15324   fi
15325   ;;
15326
15327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15328   version_type=freebsd-elf
15329   need_lib_prefix=no
15330   need_version=no
15331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15332   soname_spec='${libname}${release}${shared_ext}$major'
15333   shlibpath_var=LD_LIBRARY_PATH
15334   hardcode_into_libs=yes
15335   if test "$with_gnu_ld" = yes; then
15336     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15337     shlibpath_overrides_runpath=no
15338   else
15339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15340     shlibpath_overrides_runpath=yes
15341     case $host_os in
15342       sco3.2v5*)
15343         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15344         ;;
15345     esac
15346   fi
15347   sys_lib_dlsearch_path_spec='/usr/lib'
15348   ;;
15349
15350 uts4*)
15351   version_type=linux
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353   soname_spec='${libname}${release}${shared_ext}$major'
15354   shlibpath_var=LD_LIBRARY_PATH
15355   ;;
15356
15357 *)
15358   dynamic_linker=no
15359   ;;
15360 esac
15361 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15362 $as_echo "$dynamic_linker" >&6; }
15363 test "$dynamic_linker" = no && can_build_shared=no
15364
15365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15366   $as_echo_n "(cached) " >&6
15367 else
15368   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15369 fi
15370
15371 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15372 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15373   $as_echo_n "(cached) " >&6
15374 else
15375   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15376 fi
15377
15378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15379
15380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15381 if test "$GCC" = yes; then
15382   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15383 fi
15384
15385 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15387 hardcode_action_CXX=
15388 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15389    test -n "$runpath_var_CXX" || \
15390    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15391
15392   # We can hardcode non-existant directories.
15393   if test "$hardcode_direct_CXX" != no &&
15394      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15395      # have to relink, otherwise we might link with an installed library
15396      # when we should be linking with a yet-to-be-installed one
15397      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15398      test "$hardcode_minus_L_CXX" != no; then
15399     # Linking always hardcodes the temporary library directory.
15400     hardcode_action_CXX=relink
15401   else
15402     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15403     hardcode_action_CXX=immediate
15404   fi
15405 else
15406   # We cannot hardcode anything, or else we can only hardcode existing
15407   # directories.
15408   hardcode_action_CXX=unsupported
15409 fi
15410 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15411 $as_echo "$hardcode_action_CXX" >&6; }
15412
15413 if test "$hardcode_action_CXX" = relink; then
15414   # Fast installation is not supported
15415   enable_fast_install=no
15416 elif test "$shlibpath_overrides_runpath" = yes ||
15417      test "$enable_shared" = no; then
15418   # Fast installation is not necessary
15419   enable_fast_install=needless
15420 fi
15421
15422
15423 # The else clause should only fire when bootstrapping the
15424 # libtool distribution, otherwise you forgot to ship ltmain.sh
15425 # with your package, and you will get complaints that there are
15426 # no rules to generate ltmain.sh.
15427 if test -f "$ltmain"; then
15428   # See if we are running on zsh, and set the options which allow our commands through
15429   # without removal of \ escapes.
15430   if test -n "${ZSH_VERSION+set}" ; then
15431     setopt NO_GLOB_SUBST
15432   fi
15433   # Now quote all the things that may contain metacharacters while being
15434   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15435   # variables and quote the copies for generation of the libtool script.
15436   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15437     SED SHELL STRIP \
15438     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15439     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15440     deplibs_check_method reload_flag reload_cmds need_locks \
15441     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15442     lt_cv_sys_global_symbol_to_c_name_address \
15443     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15444     old_postinstall_cmds old_postuninstall_cmds \
15445     compiler_CXX \
15446     CC_CXX \
15447     LD_CXX \
15448     lt_prog_compiler_wl_CXX \
15449     lt_prog_compiler_pic_CXX \
15450     lt_prog_compiler_static_CXX \
15451     lt_prog_compiler_no_builtin_flag_CXX \
15452     export_dynamic_flag_spec_CXX \
15453     thread_safe_flag_spec_CXX \
15454     whole_archive_flag_spec_CXX \
15455     enable_shared_with_static_runtimes_CXX \
15456     old_archive_cmds_CXX \
15457     old_archive_from_new_cmds_CXX \
15458     predep_objects_CXX \
15459     postdep_objects_CXX \
15460     predeps_CXX \
15461     postdeps_CXX \
15462     compiler_lib_search_path_CXX \
15463     compiler_lib_search_dirs_CXX \
15464     archive_cmds_CXX \
15465     archive_expsym_cmds_CXX \
15466     postinstall_cmds_CXX \
15467     postuninstall_cmds_CXX \
15468     old_archive_from_expsyms_cmds_CXX \
15469     allow_undefined_flag_CXX \
15470     no_undefined_flag_CXX \
15471     export_symbols_cmds_CXX \
15472     hardcode_libdir_flag_spec_CXX \
15473     hardcode_libdir_flag_spec_ld_CXX \
15474     hardcode_libdir_separator_CXX \
15475     hardcode_automatic_CXX \
15476     module_cmds_CXX \
15477     module_expsym_cmds_CXX \
15478     lt_cv_prog_compiler_c_o_CXX \
15479     fix_srcfile_path_CXX \
15480     exclude_expsyms_CXX \
15481     include_expsyms_CXX; do
15482
15483     case $var in
15484     old_archive_cmds_CXX | \
15485     old_archive_from_new_cmds_CXX | \
15486     archive_cmds_CXX | \
15487     archive_expsym_cmds_CXX | \
15488     module_cmds_CXX | \
15489     module_expsym_cmds_CXX | \
15490     old_archive_from_expsyms_cmds_CXX | \
15491     export_symbols_cmds_CXX | \
15492     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15493     postinstall_cmds | postuninstall_cmds | \
15494     old_postinstall_cmds | old_postuninstall_cmds | \
15495     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15496       # Double-quote double-evaled strings.
15497       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15498       ;;
15499     *)
15500       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15501       ;;
15502     esac
15503   done
15504
15505   case $lt_echo in
15506   *'\$0 --fallback-echo"')
15507     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15508     ;;
15509   esac
15510
15511 cfgfile="$ofile"
15512
15513   cat <<__EOF__ >> "$cfgfile"
15514 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15515
15516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15517
15518 # Shell to use when invoking shell scripts.
15519 SHELL=$lt_SHELL
15520
15521 # Whether or not to build shared libraries.
15522 build_libtool_libs=$enable_shared
15523
15524 # Whether or not to build static libraries.
15525 build_old_libs=$enable_static
15526
15527 # Whether or not to add -lc for building shared libraries.
15528 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15529
15530 # Whether or not to disallow shared libs when runtime libs are static
15531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15532
15533 # Whether or not to optimize for fast installation.
15534 fast_install=$enable_fast_install
15535
15536 # The host system.
15537 host_alias=$host_alias
15538 host=$host
15539 host_os=$host_os
15540
15541 # The build system.
15542 build_alias=$build_alias
15543 build=$build
15544 build_os=$build_os
15545
15546 # An echo program that does not interpret backslashes.
15547 echo=$lt_echo
15548
15549 # The archiver.
15550 AR=$lt_AR
15551 AR_FLAGS=$lt_AR_FLAGS
15552
15553 # A C compiler.
15554 LTCC=$lt_LTCC
15555
15556 # LTCC compiler flags.
15557 LTCFLAGS=$lt_LTCFLAGS
15558
15559 # A language-specific compiler.
15560 CC=$lt_compiler_CXX
15561
15562 # Is the compiler the GNU C compiler?
15563 with_gcc=$GCC_CXX
15564
15565 # An ERE matcher.
15566 EGREP=$lt_EGREP
15567
15568 # The linker used to build libraries.
15569 LD=$lt_LD_CXX
15570
15571 # Whether we need hard or soft links.
15572 LN_S=$lt_LN_S
15573
15574 # A BSD-compatible nm program.
15575 NM=$lt_NM
15576
15577 # A symbol stripping program
15578 STRIP=$lt_STRIP
15579
15580 # Used to examine libraries when file_magic_cmd begins "file"
15581 MAGIC_CMD=$MAGIC_CMD
15582
15583 # Used on cygwin: DLL creation program.
15584 DLLTOOL="$DLLTOOL"
15585
15586 # Used on cygwin: object dumper.
15587 OBJDUMP="$OBJDUMP"
15588
15589 # Used on cygwin: assembler.
15590 AS="$AS"
15591
15592 # The name of the directory that contains temporary libtool files.
15593 objdir=$objdir
15594
15595 # How to create reloadable object files.
15596 reload_flag=$lt_reload_flag
15597 reload_cmds=$lt_reload_cmds
15598
15599 # How to pass a linker flag through the compiler.
15600 wl=$lt_lt_prog_compiler_wl_CXX
15601
15602 # Object file suffix (normally "o").
15603 objext="$ac_objext"
15604
15605 # Old archive suffix (normally "a").
15606 libext="$libext"
15607
15608 # Shared library suffix (normally ".so").
15609 shrext_cmds='$shrext_cmds'
15610
15611 # Executable file suffix (normally "").
15612 exeext="$exeext"
15613
15614 # Additional compiler flags for building library objects.
15615 pic_flag=$lt_lt_prog_compiler_pic_CXX
15616 pic_mode=$pic_mode
15617
15618 # What is the maximum length of a command?
15619 max_cmd_len=$lt_cv_sys_max_cmd_len
15620
15621 # Does compiler simultaneously support -c and -o options?
15622 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15623
15624 # Must we lock files when doing compilation?
15625 need_locks=$lt_need_locks
15626
15627 # Do we need the lib prefix for modules?
15628 need_lib_prefix=$need_lib_prefix
15629
15630 # Do we need a version for libraries?
15631 need_version=$need_version
15632
15633 # Whether dlopen is supported.
15634 dlopen_support=$enable_dlopen
15635
15636 # Whether dlopen of programs is supported.
15637 dlopen_self=$enable_dlopen_self
15638
15639 # Whether dlopen of statically linked programs is supported.
15640 dlopen_self_static=$enable_dlopen_self_static
15641
15642 # Compiler flag to prevent dynamic linking.
15643 link_static_flag=$lt_lt_prog_compiler_static_CXX
15644
15645 # Compiler flag to turn off builtin functions.
15646 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15647
15648 # Compiler flag to allow reflexive dlopens.
15649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15650
15651 # Compiler flag to generate shared objects directly from archives.
15652 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15653
15654 # Compiler flag to generate thread-safe objects.
15655 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15656
15657 # Library versioning type.
15658 version_type=$version_type
15659
15660 # Format of library name prefix.
15661 libname_spec=$lt_libname_spec
15662
15663 # List of archive names.  First name is the real one, the rest are links.
15664 # The last name is the one that the linker finds with -lNAME.
15665 library_names_spec=$lt_library_names_spec
15666
15667 # The coded name of the library, if different from the real name.
15668 soname_spec=$lt_soname_spec
15669
15670 # Commands used to build and install an old-style archive.
15671 RANLIB=$lt_RANLIB
15672 old_archive_cmds=$lt_old_archive_cmds_CXX
15673 old_postinstall_cmds=$lt_old_postinstall_cmds
15674 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15675
15676 # Create an old-style archive from a shared archive.
15677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15678
15679 # Create a temporary old-style archive to link instead of a shared archive.
15680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15681
15682 # Commands used to build and install a shared archive.
15683 archive_cmds=$lt_archive_cmds_CXX
15684 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15685 postinstall_cmds=$lt_postinstall_cmds
15686 postuninstall_cmds=$lt_postuninstall_cmds
15687
15688 # Commands used to build a loadable module (assumed same as above if empty)
15689 module_cmds=$lt_module_cmds_CXX
15690 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15691
15692 # Commands to strip libraries.
15693 old_striplib=$lt_old_striplib
15694 striplib=$lt_striplib
15695
15696 # Dependencies to place before the objects being linked to create a
15697 # shared library.
15698 predep_objects=$lt_predep_objects_CXX
15699
15700 # Dependencies to place after the objects being linked to create a
15701 # shared library.
15702 postdep_objects=$lt_postdep_objects_CXX
15703
15704 # Dependencies to place before the objects being linked to create a
15705 # shared library.
15706 predeps=$lt_predeps_CXX
15707
15708 # Dependencies to place after the objects being linked to create a
15709 # shared library.
15710 postdeps=$lt_postdeps_CXX
15711
15712 # The directories searched by this compiler when creating a shared
15713 # library
15714 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15715
15716 # The library search path used internally by the compiler when linking
15717 # a shared library.
15718 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15719
15720 # Method to check whether dependent libraries are shared objects.
15721 deplibs_check_method=$lt_deplibs_check_method
15722
15723 # Command to use when deplibs_check_method == file_magic.
15724 file_magic_cmd=$lt_file_magic_cmd
15725
15726 # Flag that allows shared libraries with undefined symbols to be built.
15727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15728
15729 # Flag that forces no undefined symbols.
15730 no_undefined_flag=$lt_no_undefined_flag_CXX
15731
15732 # Commands used to finish a libtool library installation in a directory.
15733 finish_cmds=$lt_finish_cmds
15734
15735 # Same as above, but a single script fragment to be evaled but not shown.
15736 finish_eval=$lt_finish_eval
15737
15738 # Take the output of nm and produce a listing of raw symbols and C names.
15739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15740
15741 # Transform the output of nm in a proper C declaration
15742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15743
15744 # Transform the output of nm in a C name address pair
15745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15746
15747 # This is the shared library runtime path variable.
15748 runpath_var=$runpath_var
15749
15750 # This is the shared library path variable.
15751 shlibpath_var=$shlibpath_var
15752
15753 # Is shlibpath searched before the hard-coded library search path?
15754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15755
15756 # How to hardcode a shared library path into an executable.
15757 hardcode_action=$hardcode_action_CXX
15758
15759 # Whether we should hardcode library paths into libraries.
15760 hardcode_into_libs=$hardcode_into_libs
15761
15762 # Flag to hardcode \$libdir into a binary during linking.
15763 # This must work even if \$libdir does not exist.
15764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15765
15766 # If ld is used when linking, flag to hardcode \$libdir into
15767 # a binary during linking. This must work even if \$libdir does
15768 # not exist.
15769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15770
15771 # Whether we need a single -rpath flag with a separated argument.
15772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15773
15774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15775 # resulting binary.
15776 hardcode_direct=$hardcode_direct_CXX
15777
15778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15779 # resulting binary.
15780 hardcode_minus_L=$hardcode_minus_L_CXX
15781
15782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15783 # the resulting binary.
15784 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15785
15786 # Set to yes if building a shared library automatically hardcodes DIR into the library
15787 # and all subsequent libraries and executables linked against it.
15788 hardcode_automatic=$hardcode_automatic_CXX
15789
15790 # Variables whose values should be saved in libtool wrapper scripts and
15791 # restored at relink time.
15792 variables_saved_for_relink="$variables_saved_for_relink"
15793
15794 # Whether libtool must link a program against all its dependency libraries.
15795 link_all_deplibs=$link_all_deplibs_CXX
15796
15797 # Compile-time system search path for libraries
15798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15799
15800 # Run-time system search path for libraries
15801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15802
15803 # Fix the shell variable \$srcfile for the compiler.
15804 fix_srcfile_path=$lt_fix_srcfile_path
15805
15806 # Set to yes if exported symbols are required.
15807 always_export_symbols=$always_export_symbols_CXX
15808
15809 # The commands to list exported symbols.
15810 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15811
15812 # The commands to extract the exported symbol list from a shared archive.
15813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15814
15815 # Symbols that should not be listed in the preloaded symbols.
15816 exclude_expsyms=$lt_exclude_expsyms_CXX
15817
15818 # Symbols that must always be exported.
15819 include_expsyms=$lt_include_expsyms_CXX
15820
15821 # ### END LIBTOOL TAG CONFIG: $tagname
15822
15823 __EOF__
15824
15825
15826 else
15827   # If there is no Makefile yet, we rely on a make rule to execute
15828   # `config.status --recheck' to rerun these tests and create the
15829   # libtool script then.
15830   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15831   if test -f "$ltmain_in"; then
15832     test -f Makefile && make "$ltmain"
15833   fi
15834 fi
15835
15836
15837 ac_ext=c
15838 ac_cpp='$CPP $CPPFLAGS'
15839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15842
15843 CC=$lt_save_CC
15844 LDCXX=$LD
15845 LD=$lt_save_LD
15846 GCC=$lt_save_GCC
15847 with_gnu_ldcxx=$with_gnu_ld
15848 with_gnu_ld=$lt_save_with_gnu_ld
15849 lt_cv_path_LDCXX=$lt_cv_path_LD
15850 lt_cv_path_LD=$lt_save_path_LD
15851 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15852 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15853
15854         else
15855           tagname=""
15856         fi
15857         ;;
15858
15859       F77)
15860         if test -n "$F77" && test "X$F77" != "Xno"; then
15861
15862 ac_ext=f
15863 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15864 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15865 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15866
15867
15868 archive_cmds_need_lc_F77=no
15869 allow_undefined_flag_F77=
15870 always_export_symbols_F77=no
15871 archive_expsym_cmds_F77=
15872 export_dynamic_flag_spec_F77=
15873 hardcode_direct_F77=no
15874 hardcode_libdir_flag_spec_F77=
15875 hardcode_libdir_flag_spec_ld_F77=
15876 hardcode_libdir_separator_F77=
15877 hardcode_minus_L_F77=no
15878 hardcode_automatic_F77=no
15879 module_cmds_F77=
15880 module_expsym_cmds_F77=
15881 link_all_deplibs_F77=unknown
15882 old_archive_cmds_F77=$old_archive_cmds
15883 no_undefined_flag_F77=
15884 whole_archive_flag_spec_F77=
15885 enable_shared_with_static_runtimes_F77=no
15886
15887 # Source file extension for f77 test sources.
15888 ac_ext=f
15889
15890 # Object file extension for compiled f77 test sources.
15891 objext=o
15892 objext_F77=$objext
15893
15894 # Code to be used in simple compile tests
15895 lt_simple_compile_test_code="\
15896       subroutine t
15897       return
15898       end
15899 "
15900
15901 # Code to be used in simple link tests
15902 lt_simple_link_test_code="\
15903       program t
15904       end
15905 "
15906
15907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15908
15909 # If no C compiler was specified, use CC.
15910 LTCC=${LTCC-"$CC"}
15911
15912 # If no C compiler flags were specified, use CFLAGS.
15913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15914
15915 # Allow CC to be a program name with arguments.
15916 compiler=$CC
15917
15918
15919 # save warnings/boilerplate of simple test code
15920 ac_outfile=conftest.$ac_objext
15921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15923 _lt_compiler_boilerplate=`cat conftest.err`
15924 $rm conftest*
15925
15926 ac_outfile=conftest.$ac_objext
15927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15929 _lt_linker_boilerplate=`cat conftest.err`
15930 $rm -r conftest*
15931
15932
15933 # Allow CC to be a program name with arguments.
15934 lt_save_CC="$CC"
15935 CC=${F77-"f77"}
15936 compiler=$CC
15937 compiler_F77=$CC
15938 for cc_temp in $compiler""; do
15939   case $cc_temp in
15940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15942     \-*) ;;
15943     *) break;;
15944   esac
15945 done
15946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15947
15948
15949 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15950 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15951 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15952 $as_echo "$can_build_shared" >&6; }
15953
15954 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15955 $as_echo_n "checking whether to build shared libraries... " >&6; }
15956 test "$can_build_shared" = "no" && enable_shared=no
15957
15958 # On AIX, shared libraries and static libraries use the same namespace, and
15959 # are all built from PIC.
15960 case $host_os in
15961 aix3*)
15962   test "$enable_shared" = yes && enable_static=no
15963   if test -n "$RANLIB"; then
15964     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15965     postinstall_cmds='$RANLIB $lib'
15966   fi
15967   ;;
15968 aix[4-9]*)
15969   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15970     test "$enable_shared" = yes && enable_static=no
15971   fi
15972   ;;
15973 esac
15974 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15975 $as_echo "$enable_shared" >&6; }
15976
15977 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15978 $as_echo_n "checking whether to build static libraries... " >&6; }
15979 # Make sure either enable_shared or enable_static is yes.
15980 test "$enable_shared" = yes || enable_static=yes
15981 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15982 $as_echo "$enable_static" >&6; }
15983
15984 GCC_F77="$G77"
15985 LD_F77="$LD"
15986
15987 lt_prog_compiler_wl_F77=
15988 lt_prog_compiler_pic_F77=
15989 lt_prog_compiler_static_F77=
15990
15991 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15993
15994   if test "$GCC" = yes; then
15995     lt_prog_compiler_wl_F77='-Wl,'
15996     lt_prog_compiler_static_F77='-static'
15997
15998     case $host_os in
15999       aix*)
16000       # All AIX code is PIC.
16001       if test "$host_cpu" = ia64; then
16002         # AIX 5 now supports IA64 processor
16003         lt_prog_compiler_static_F77='-Bstatic'
16004       fi
16005       ;;
16006
16007     amigaos*)
16008       # FIXME: we need at least 68020 code to build shared libraries, but
16009       # adding the `-m68020' flag to GCC prevents building anything better,
16010       # like `-m68040'.
16011       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16012       ;;
16013
16014     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16015       # PIC is the default for these OSes.
16016       ;;
16017
16018     mingw* | cygwin* | pw32* | os2*)
16019       # This hack is so that the source file can tell whether it is being
16020       # built for inclusion in a dll (and should export symbols for example).
16021       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16022       # (--disable-auto-import) libraries
16023       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16024       ;;
16025
16026     darwin* | rhapsody*)
16027       # PIC is the default on this platform
16028       # Common symbols not allowed in MH_DYLIB files
16029       lt_prog_compiler_pic_F77='-fno-common'
16030       ;;
16031
16032     interix[3-9]*)
16033       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16034       # Instead, we relocate shared libraries at runtime.
16035       ;;
16036
16037     msdosdjgpp*)
16038       # Just because we use GCC doesn't mean we suddenly get shared libraries
16039       # on systems that don't support them.
16040       lt_prog_compiler_can_build_shared_F77=no
16041       enable_shared=no
16042       ;;
16043
16044     sysv4*MP*)
16045       if test -d /usr/nec; then
16046         lt_prog_compiler_pic_F77=-Kconform_pic
16047       fi
16048       ;;
16049
16050     hpux*)
16051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16052       # not for PA HP-UX.
16053       case $host_cpu in
16054       hppa*64*|ia64*)
16055         # +Z the default
16056         ;;
16057       *)
16058         lt_prog_compiler_pic_F77='-fPIC'
16059         ;;
16060       esac
16061       ;;
16062
16063     *)
16064       lt_prog_compiler_pic_F77='-fPIC'
16065       ;;
16066     esac
16067   else
16068     # PORTME Check for flag to pass linker flags through the system compiler.
16069     case $host_os in
16070     aix*)
16071       lt_prog_compiler_wl_F77='-Wl,'
16072       if test "$host_cpu" = ia64; then
16073         # AIX 5 now supports IA64 processor
16074         lt_prog_compiler_static_F77='-Bstatic'
16075       else
16076         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16077       fi
16078       ;;
16079       darwin*)
16080         # PIC is the default on this platform
16081         # Common symbols not allowed in MH_DYLIB files
16082        case $cc_basename in
16083          xlc*)
16084          lt_prog_compiler_pic_F77='-qnocommon'
16085          lt_prog_compiler_wl_F77='-Wl,'
16086          ;;
16087        esac
16088        ;;
16089
16090     mingw* | cygwin* | pw32* | os2*)
16091       # This hack is so that the source file can tell whether it is being
16092       # built for inclusion in a dll (and should export symbols for example).
16093       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16094       ;;
16095
16096     hpux9* | hpux10* | hpux11*)
16097       lt_prog_compiler_wl_F77='-Wl,'
16098       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16099       # not for PA HP-UX.
16100       case $host_cpu in
16101       hppa*64*|ia64*)
16102         # +Z the default
16103         ;;
16104       *)
16105         lt_prog_compiler_pic_F77='+Z'
16106         ;;
16107       esac
16108       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16109       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16110       ;;
16111
16112     irix5* | irix6* | nonstopux*)
16113       lt_prog_compiler_wl_F77='-Wl,'
16114       # PIC (with -KPIC) is the default.
16115       lt_prog_compiler_static_F77='-non_shared'
16116       ;;
16117
16118     newsos6)
16119       lt_prog_compiler_pic_F77='-KPIC'
16120       lt_prog_compiler_static_F77='-Bstatic'
16121       ;;
16122
16123     linux* | k*bsd*-gnu)
16124       case $cc_basename in
16125       icc* | ecc*)
16126         lt_prog_compiler_wl_F77='-Wl,'
16127         lt_prog_compiler_pic_F77='-KPIC'
16128         lt_prog_compiler_static_F77='-static'
16129         ;;
16130       pgcc* | pgf77* | pgf90* | pgf95*)
16131         # Portland Group compilers (*not* the Pentium gcc compiler,
16132         # which looks to be a dead project)
16133         lt_prog_compiler_wl_F77='-Wl,'
16134         lt_prog_compiler_pic_F77='-fpic'
16135         lt_prog_compiler_static_F77='-Bstatic'
16136         ;;
16137       ccc*)
16138         lt_prog_compiler_wl_F77='-Wl,'
16139         # All Alpha code is PIC.
16140         lt_prog_compiler_static_F77='-non_shared'
16141         ;;
16142       *)
16143         case `$CC -V 2>&1 | sed 5q` in
16144         *Sun\ C*)
16145           # Sun C 5.9
16146           lt_prog_compiler_pic_F77='-KPIC'
16147           lt_prog_compiler_static_F77='-Bstatic'
16148           lt_prog_compiler_wl_F77='-Wl,'
16149           ;;
16150         *Sun\ F*)
16151           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16152           lt_prog_compiler_pic_F77='-KPIC'
16153           lt_prog_compiler_static_F77='-Bstatic'
16154           lt_prog_compiler_wl_F77=''
16155           ;;
16156         esac
16157         ;;
16158       esac
16159       ;;
16160
16161     osf3* | osf4* | osf5*)
16162       lt_prog_compiler_wl_F77='-Wl,'
16163       # All OSF/1 code is PIC.
16164       lt_prog_compiler_static_F77='-non_shared'
16165       ;;
16166
16167     rdos*)
16168       lt_prog_compiler_static_F77='-non_shared'
16169       ;;
16170
16171     solaris*)
16172       lt_prog_compiler_pic_F77='-KPIC'
16173       lt_prog_compiler_static_F77='-Bstatic'
16174       case $cc_basename in
16175       f77* | f90* | f95*)
16176         lt_prog_compiler_wl_F77='-Qoption ld ';;
16177       *)
16178         lt_prog_compiler_wl_F77='-Wl,';;
16179       esac
16180       ;;
16181
16182     sunos4*)
16183       lt_prog_compiler_wl_F77='-Qoption ld '
16184       lt_prog_compiler_pic_F77='-PIC'
16185       lt_prog_compiler_static_F77='-Bstatic'
16186       ;;
16187
16188     sysv4 | sysv4.2uw2* | sysv4.3*)
16189       lt_prog_compiler_wl_F77='-Wl,'
16190       lt_prog_compiler_pic_F77='-KPIC'
16191       lt_prog_compiler_static_F77='-Bstatic'
16192       ;;
16193
16194     sysv4*MP*)
16195       if test -d /usr/nec ;then
16196         lt_prog_compiler_pic_F77='-Kconform_pic'
16197         lt_prog_compiler_static_F77='-Bstatic'
16198       fi
16199       ;;
16200
16201     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16202       lt_prog_compiler_wl_F77='-Wl,'
16203       lt_prog_compiler_pic_F77='-KPIC'
16204       lt_prog_compiler_static_F77='-Bstatic'
16205       ;;
16206
16207     unicos*)
16208       lt_prog_compiler_wl_F77='-Wl,'
16209       lt_prog_compiler_can_build_shared_F77=no
16210       ;;
16211
16212     uts4*)
16213       lt_prog_compiler_pic_F77='-pic'
16214       lt_prog_compiler_static_F77='-Bstatic'
16215       ;;
16216
16217     *)
16218       lt_prog_compiler_can_build_shared_F77=no
16219       ;;
16220     esac
16221   fi
16222
16223 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16224 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
16225
16226 #
16227 # Check to make sure the PIC flag actually works.
16228 #
16229 if test -n "$lt_prog_compiler_pic_F77"; then
16230
16231 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16232 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16233 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16234   $as_echo_n "(cached) " >&6
16235 else
16236   lt_cv_prog_compiler_pic_works_F77=no
16237   ac_outfile=conftest.$ac_objext
16238    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16239    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16240    # Insert the option either (1) after the last *FLAGS variable, or
16241    # (2) before a word containing "conftest.", or (3) at the end.
16242    # Note that $ac_compile itself does not contain backslashes and begins
16243    # with a dollar sign (not a hyphen), so the echo should work correctly.
16244    # The option is referenced via a variable to avoid confusing sed.
16245    lt_compile=`echo "$ac_compile" | $SED \
16246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16248    -e 's:$: $lt_compiler_flag:'`
16249    (eval echo "\"\$as_me:16249: $lt_compile\"" >&5)
16250    (eval "$lt_compile" 2>conftest.err)
16251    ac_status=$?
16252    cat conftest.err >&5
16253    echo "$as_me:16253: \$? = $ac_status" >&5
16254    if (exit $ac_status) && test -s "$ac_outfile"; then
16255      # The compiler can only warn and ignore the option if not recognized
16256      # So say no if there are warnings other than the usual output.
16257      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16260        lt_cv_prog_compiler_pic_works_F77=yes
16261      fi
16262    fi
16263    $rm conftest*
16264
16265 fi
16266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16267 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16268
16269 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16270     case $lt_prog_compiler_pic_F77 in
16271      "" | " "*) ;;
16272      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16273      esac
16274 else
16275     lt_prog_compiler_pic_F77=
16276      lt_prog_compiler_can_build_shared_F77=no
16277 fi
16278
16279 fi
16280 case $host_os in
16281   # For platforms which do not support PIC, -DPIC is meaningless:
16282   *djgpp*)
16283     lt_prog_compiler_pic_F77=
16284     ;;
16285   *)
16286     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16287     ;;
16288 esac
16289
16290 #
16291 # Check to make sure the static flag actually works.
16292 #
16293 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16294 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16295 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16296 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16297   $as_echo_n "(cached) " >&6
16298 else
16299   lt_cv_prog_compiler_static_works_F77=no
16300    save_LDFLAGS="$LDFLAGS"
16301    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16302    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16303    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16304      # The linker can only warn and ignore the option if not recognized
16305      # So say no if there are warnings
16306      if test -s conftest.err; then
16307        # Append any errors to the config.log.
16308        cat conftest.err 1>&5
16309        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16310        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16311        if diff conftest.exp conftest.er2 >/dev/null; then
16312          lt_cv_prog_compiler_static_works_F77=yes
16313        fi
16314      else
16315        lt_cv_prog_compiler_static_works_F77=yes
16316      fi
16317    fi
16318    $rm -r conftest*
16319    LDFLAGS="$save_LDFLAGS"
16320
16321 fi
16322 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16323 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16324
16325 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16326     :
16327 else
16328     lt_prog_compiler_static_F77=
16329 fi
16330
16331
16332 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16334 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16335   $as_echo_n "(cached) " >&6
16336 else
16337   lt_cv_prog_compiler_c_o_F77=no
16338    $rm -r conftest 2>/dev/null
16339    mkdir conftest
16340    cd conftest
16341    mkdir out
16342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16343
16344    lt_compiler_flag="-o out/conftest2.$ac_objext"
16345    # Insert the option either (1) after the last *FLAGS variable, or
16346    # (2) before a word containing "conftest.", or (3) at the end.
16347    # Note that $ac_compile itself does not contain backslashes and begins
16348    # with a dollar sign (not a hyphen), so the echo should work correctly.
16349    lt_compile=`echo "$ac_compile" | $SED \
16350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16352    -e 's:$: $lt_compiler_flag:'`
16353    (eval echo "\"\$as_me:16353: $lt_compile\"" >&5)
16354    (eval "$lt_compile" 2>out/conftest.err)
16355    ac_status=$?
16356    cat out/conftest.err >&5
16357    echo "$as_me:16357: \$? = $ac_status" >&5
16358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16359    then
16360      # The compiler can only warn and ignore the option if not recognized
16361      # So say no if there are warnings
16362      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16363      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16364      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16365        lt_cv_prog_compiler_c_o_F77=yes
16366      fi
16367    fi
16368    chmod u+w . 2>&5
16369    $rm conftest*
16370    # SGI C++ compiler will create directory out/ii_files/ for
16371    # template instantiation
16372    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16373    $rm out/* && rmdir out
16374    cd ..
16375    rmdir conftest
16376    $rm conftest*
16377
16378 fi
16379 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16380 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16381
16382
16383 hard_links="nottested"
16384 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16385   # do not overwrite the value of need_locks provided by the user
16386   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16387 $as_echo_n "checking if we can lock with hard links... " >&6; }
16388   hard_links=yes
16389   $rm conftest*
16390   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16391   touch conftest.a
16392   ln conftest.a conftest.b 2>&5 || hard_links=no
16393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16394   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16395 $as_echo "$hard_links" >&6; }
16396   if test "$hard_links" = no; then
16397     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16398 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16399     need_locks=warn
16400   fi
16401 else
16402   need_locks=no
16403 fi
16404
16405 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16406 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16407
16408   runpath_var=
16409   allow_undefined_flag_F77=
16410   enable_shared_with_static_runtimes_F77=no
16411   archive_cmds_F77=
16412   archive_expsym_cmds_F77=
16413   old_archive_From_new_cmds_F77=
16414   old_archive_from_expsyms_cmds_F77=
16415   export_dynamic_flag_spec_F77=
16416   whole_archive_flag_spec_F77=
16417   thread_safe_flag_spec_F77=
16418   hardcode_libdir_flag_spec_F77=
16419   hardcode_libdir_flag_spec_ld_F77=
16420   hardcode_libdir_separator_F77=
16421   hardcode_direct_F77=no
16422   hardcode_minus_L_F77=no
16423   hardcode_shlibpath_var_F77=unsupported
16424   link_all_deplibs_F77=unknown
16425   hardcode_automatic_F77=no
16426   module_cmds_F77=
16427   module_expsym_cmds_F77=
16428   always_export_symbols_F77=no
16429   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16430   # include_expsyms should be a list of space-separated symbols to be *always*
16431   # included in the symbol list
16432   include_expsyms_F77=
16433   # exclude_expsyms can be an extended regexp of symbols to exclude
16434   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16435   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16436   # as well as any symbol that contains `d'.
16437   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16438   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16439   # platforms (ab)use it in PIC code, but their linkers get confused if
16440   # the symbol is explicitly referenced.  Since portable code cannot
16441   # rely on this symbol name, it's probably fine to never include it in
16442   # preloaded symbol tables.
16443   # Exclude shared library initialization/finalization symbols.
16444   extract_expsyms_cmds=
16445   # Just being paranoid about ensuring that cc_basename is set.
16446   for cc_temp in $compiler""; do
16447   case $cc_temp in
16448     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16449     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16450     \-*) ;;
16451     *) break;;
16452   esac
16453 done
16454 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16455
16456   case $host_os in
16457   cygwin* | mingw* | pw32*)
16458     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16459     # When not using gcc, we currently assume that we are using
16460     # Microsoft Visual C++.
16461     if test "$GCC" != yes; then
16462       with_gnu_ld=no
16463     fi
16464     ;;
16465   interix*)
16466     # we just hope/assume this is gcc and not c89 (= MSVC++)
16467     with_gnu_ld=yes
16468     ;;
16469   openbsd*)
16470     with_gnu_ld=no
16471     ;;
16472   esac
16473
16474   ld_shlibs_F77=yes
16475   if test "$with_gnu_ld" = yes; then
16476     # If archive_cmds runs LD, not CC, wlarc should be empty
16477     wlarc='${wl}'
16478
16479     # Set some defaults for GNU ld with shared library support. These
16480     # are reset later if shared libraries are not supported. Putting them
16481     # here allows them to be overridden if necessary.
16482     runpath_var=LD_RUN_PATH
16483     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16484     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16485     # ancient GNU ld didn't support --whole-archive et. al.
16486     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16487         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16488       else
16489         whole_archive_flag_spec_F77=
16490     fi
16491     supports_anon_versioning=no
16492     case `$LD -v 2>/dev/null` in
16493       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16494       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16495       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16496       *\ 2.11.*) ;; # other 2.11 versions
16497       *) supports_anon_versioning=yes ;;
16498     esac
16499
16500     # See if GNU ld supports shared libraries.
16501     case $host_os in
16502     aix[3-9]*)
16503       # On AIX/PPC, the GNU linker is very broken
16504       if test "$host_cpu" != ia64; then
16505         ld_shlibs_F77=no
16506         cat <<EOF 1>&2
16507
16508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16509 *** to be unable to reliably create shared libraries on AIX.
16510 *** Therefore, libtool is disabling shared libraries support.  If you
16511 *** really care for shared libraries, you may want to modify your PATH
16512 *** so that a non-GNU linker is found, and then restart.
16513
16514 EOF
16515       fi
16516       ;;
16517
16518     amigaos*)
16519       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)'
16520       hardcode_libdir_flag_spec_F77='-L$libdir'
16521       hardcode_minus_L_F77=yes
16522
16523       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16524       # that the semantics of dynamic libraries on AmigaOS, at least up
16525       # to version 4, is to share data among multiple programs linked
16526       # with the same dynamic library.  Since this doesn't match the
16527       # behavior of shared libraries on other platforms, we can't use
16528       # them.
16529       ld_shlibs_F77=no
16530       ;;
16531
16532     beos*)
16533       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16534         allow_undefined_flag_F77=unsupported
16535         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16536         # support --undefined.  This deserves some investigation.  FIXME
16537         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16538       else
16539         ld_shlibs_F77=no
16540       fi
16541       ;;
16542
16543     cygwin* | mingw* | pw32*)
16544       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16545       # as there is no search path for DLLs.
16546       hardcode_libdir_flag_spec_F77='-L$libdir'
16547       allow_undefined_flag_F77=unsupported
16548       always_export_symbols_F77=no
16549       enable_shared_with_static_runtimes_F77=yes
16550       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16551
16552       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16553         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16554         # If the export-symbols file already is a .def file (1st line
16555         # is EXPORTS), use it as is; otherwise, prepend...
16556         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16557           cp $export_symbols $output_objdir/$soname.def;
16558         else
16559           echo EXPORTS > $output_objdir/$soname.def;
16560           cat $export_symbols >> $output_objdir/$soname.def;
16561         fi~
16562         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16563       else
16564         ld_shlibs_F77=no
16565       fi
16566       ;;
16567
16568     interix[3-9]*)
16569       hardcode_direct_F77=no
16570       hardcode_shlibpath_var_F77=no
16571       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16572       export_dynamic_flag_spec_F77='${wl}-E'
16573       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16574       # Instead, shared libraries are loaded at an image base (0x10000000 by
16575       # default) and relocated if they conflict, which is a slow very memory
16576       # consuming and fragmenting process.  To avoid this, we pick a random,
16577       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16578       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16579       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'
16580       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'
16581       ;;
16582
16583     gnu* | linux* | k*bsd*-gnu)
16584       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16585         tmp_addflag=
16586         case $cc_basename,$host_cpu in
16587         pgcc*)                          # Portland Group C compiler
16588           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'
16589           tmp_addflag=' $pic_flag'
16590           ;;
16591         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16592           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'
16593           tmp_addflag=' $pic_flag -Mnomain' ;;
16594         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16595           tmp_addflag=' -i_dynamic' ;;
16596         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16597           tmp_addflag=' -i_dynamic -nofor_main' ;;
16598         ifc* | ifort*)                  # Intel Fortran compiler
16599           tmp_addflag=' -nofor_main' ;;
16600         esac
16601         case `$CC -V 2>&1 | sed 5q` in
16602         *Sun\ C*)                       # Sun C 5.9
16603           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'
16604           tmp_sharedflag='-G' ;;
16605         *Sun\ F*)                       # Sun Fortran 8.3
16606           tmp_sharedflag='-G' ;;
16607         *)
16608           tmp_sharedflag='-shared' ;;
16609         esac
16610         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16611
16612         if test $supports_anon_versioning = yes; then
16613           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16614   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16615   $echo "local: *; };" >> $output_objdir/$libname.ver~
16616           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16617         fi
16618       else
16619         ld_shlibs_F77=no
16620       fi
16621       ;;
16622
16623     netbsd*)
16624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16625         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16626         wlarc=
16627       else
16628         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16630       fi
16631       ;;
16632
16633     solaris*)
16634       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16635         ld_shlibs_F77=no
16636         cat <<EOF 1>&2
16637
16638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16639 *** create shared libraries on Solaris systems.  Therefore, libtool
16640 *** is disabling shared libraries support.  We urge you to upgrade GNU
16641 *** binutils to release 2.9.1 or newer.  Another option is to modify
16642 *** your PATH or compiler configuration so that the native linker is
16643 *** used, and then restart.
16644
16645 EOF
16646       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16647         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16648         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16649       else
16650         ld_shlibs_F77=no
16651       fi
16652       ;;
16653
16654     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16655       case `$LD -v 2>&1` in
16656         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16657         ld_shlibs_F77=no
16658         cat <<_LT_EOF 1>&2
16659
16660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16661 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16662 *** is disabling shared libraries support.  We urge you to upgrade GNU
16663 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16664 *** your PATH or compiler configuration so that the native linker is
16665 *** used, and then restart.
16666
16667 _LT_EOF
16668         ;;
16669         *)
16670           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16671             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16672             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16673             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16674           else
16675             ld_shlibs_F77=no
16676           fi
16677         ;;
16678       esac
16679       ;;
16680
16681     sunos4*)
16682       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16683       wlarc=
16684       hardcode_direct_F77=yes
16685       hardcode_shlibpath_var_F77=no
16686       ;;
16687
16688     *)
16689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16692       else
16693         ld_shlibs_F77=no
16694       fi
16695       ;;
16696     esac
16697
16698     if test "$ld_shlibs_F77" = no; then
16699       runpath_var=
16700       hardcode_libdir_flag_spec_F77=
16701       export_dynamic_flag_spec_F77=
16702       whole_archive_flag_spec_F77=
16703     fi
16704   else
16705     # PORTME fill in a description of your system's linker (not GNU ld)
16706     case $host_os in
16707     aix3*)
16708       allow_undefined_flag_F77=unsupported
16709       always_export_symbols_F77=yes
16710       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'
16711       # Note: this linker hardcodes the directories in LIBPATH if there
16712       # are no directories specified by -L.
16713       hardcode_minus_L_F77=yes
16714       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16715         # Neither direct hardcoding nor static linking is supported with a
16716         # broken collect2.
16717         hardcode_direct_F77=unsupported
16718       fi
16719       ;;
16720
16721     aix[4-9]*)
16722       if test "$host_cpu" = ia64; then
16723         # On IA64, the linker does run time linking by default, so we don't
16724         # have to do anything special.
16725         aix_use_runtimelinking=no
16726         exp_sym_flag='-Bexport'
16727         no_entry_flag=""
16728       else
16729         # If we're using GNU nm, then we don't want the "-C" option.
16730         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16731         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16732           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'
16733         else
16734           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'
16735         fi
16736         aix_use_runtimelinking=no
16737
16738         # Test if we are trying to use run time linking or normal
16739         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16740         # need to do runtime linking.
16741         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16742           for ld_flag in $LDFLAGS; do
16743           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16744             aix_use_runtimelinking=yes
16745             break
16746           fi
16747           done
16748           ;;
16749         esac
16750
16751         exp_sym_flag='-bexport'
16752         no_entry_flag='-bnoentry'
16753       fi
16754
16755       # When large executables or shared objects are built, AIX ld can
16756       # have problems creating the table of contents.  If linking a library
16757       # or program results in "error TOC overflow" add -mminimal-toc to
16758       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16759       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16760
16761       archive_cmds_F77=''
16762       hardcode_direct_F77=yes
16763       hardcode_libdir_separator_F77=':'
16764       link_all_deplibs_F77=yes
16765
16766       if test "$GCC" = yes; then
16767         case $host_os in aix4.[012]|aix4.[012].*)
16768         # We only want to do this on AIX 4.2 and lower, the check
16769         # below for broken collect2 doesn't work under 4.3+
16770           collect2name=`${CC} -print-prog-name=collect2`
16771           if test -f "$collect2name" && \
16772            strings "$collect2name" | grep resolve_lib_name >/dev/null
16773           then
16774           # We have reworked collect2
16775           :
16776           else
16777           # We have old collect2
16778           hardcode_direct_F77=unsupported
16779           # It fails to find uninstalled libraries when the uninstalled
16780           # path is not listed in the libpath.  Setting hardcode_minus_L
16781           # to unsupported forces relinking
16782           hardcode_minus_L_F77=yes
16783           hardcode_libdir_flag_spec_F77='-L$libdir'
16784           hardcode_libdir_separator_F77=
16785           fi
16786           ;;
16787         esac
16788         shared_flag='-shared'
16789         if test "$aix_use_runtimelinking" = yes; then
16790           shared_flag="$shared_flag "'${wl}-G'
16791         fi
16792       else
16793         # not using gcc
16794         if test "$host_cpu" = ia64; then
16795         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16796         # chokes on -Wl,-G. The following line is correct:
16797           shared_flag='-G'
16798         else
16799           if test "$aix_use_runtimelinking" = yes; then
16800             shared_flag='${wl}-G'
16801           else
16802             shared_flag='${wl}-bM:SRE'
16803           fi
16804         fi
16805       fi
16806
16807       # It seems that -bexpall does not export symbols beginning with
16808       # underscore (_), so it is better to generate a list of symbols to export.
16809       always_export_symbols_F77=yes
16810       if test "$aix_use_runtimelinking" = yes; then
16811         # Warning - without using the other runtime loading flags (-brtl),
16812         # -berok will link without error, but may produce a broken library.
16813         allow_undefined_flag_F77='-berok'
16814        # Determine the default libpath from the value encoded in an empty executable.
16815        cat >conftest.$ac_ext <<_ACEOF
16816       program main
16817
16818       end
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (ac_try="$ac_link"
16822 case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16827 $as_echo "$ac_try_echo") >&5
16828   (eval "$ac_link") 2>conftest.er1
16829   ac_status=$?
16830   grep -v '^ *+' conftest.er1 >conftest.err
16831   rm -f conftest.er1
16832   cat conftest.err >&5
16833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } && {
16835          test -z "$ac_f77_werror_flag" ||
16836          test ! -s conftest.err
16837        } && test -s conftest$ac_exeext && {
16838          test "$cross_compiling" = yes ||
16839          $as_test_x conftest$ac_exeext
16840        }; then
16841
16842 lt_aix_libpath_sed='
16843     /Import File Strings/,/^$/ {
16844         /^0/ {
16845             s/^0  *\(.*\)$/\1/
16846             p
16847         }
16848     }'
16849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16850 # Check for a 64-bit object if we didn't find anything.
16851 if test -z "$aix_libpath"; then
16852   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16853 fi
16854 else
16855   $as_echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858
16859 fi
16860
16861 rm -rf conftest.dSYM
16862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16863       conftest$ac_exeext conftest.$ac_ext
16864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16865
16866        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16867         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"
16868        else
16869         if test "$host_cpu" = ia64; then
16870           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16871           allow_undefined_flag_F77="-z nodefs"
16872           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"
16873         else
16874          # Determine the default libpath from the value encoded in an empty executable.
16875          cat >conftest.$ac_ext <<_ACEOF
16876       program main
16877
16878       end
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16887 $as_echo "$ac_try_echo") >&5
16888   (eval "$ac_link") 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } && {
16895          test -z "$ac_f77_werror_flag" ||
16896          test ! -s conftest.err
16897        } && test -s conftest$ac_exeext && {
16898          test "$cross_compiling" = yes ||
16899          $as_test_x conftest$ac_exeext
16900        }; then
16901
16902 lt_aix_libpath_sed='
16903     /Import File Strings/,/^$/ {
16904         /^0/ {
16905             s/^0  *\(.*\)$/\1/
16906             p
16907         }
16908     }'
16909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16910 # Check for a 64-bit object if we didn't find anything.
16911 if test -z "$aix_libpath"; then
16912   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16913 fi
16914 else
16915   $as_echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918
16919 fi
16920
16921 rm -rf conftest.dSYM
16922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16923       conftest$ac_exeext conftest.$ac_ext
16924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16925
16926          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16927           # Warning - without using the other run time loading flags,
16928           # -berok will link without error, but may produce a broken library.
16929           no_undefined_flag_F77=' ${wl}-bernotok'
16930           allow_undefined_flag_F77=' ${wl}-berok'
16931           # Exported symbols can be pulled into shared objects from archives
16932           whole_archive_flag_spec_F77='$convenience'
16933           archive_cmds_need_lc_F77=yes
16934           # This is similar to how AIX traditionally builds its shared libraries.
16935           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'
16936         fi
16937       fi
16938       ;;
16939
16940     amigaos*)
16941       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)'
16942       hardcode_libdir_flag_spec_F77='-L$libdir'
16943       hardcode_minus_L_F77=yes
16944       # see comment about different semantics on the GNU ld section
16945       ld_shlibs_F77=no
16946       ;;
16947
16948     bsdi[45]*)
16949       export_dynamic_flag_spec_F77=-rdynamic
16950       ;;
16951
16952     cygwin* | mingw* | pw32*)
16953       # When not using gcc, we currently assume that we are using
16954       # Microsoft Visual C++.
16955       # hardcode_libdir_flag_spec is actually meaningless, as there is
16956       # no search path for DLLs.
16957       hardcode_libdir_flag_spec_F77=' '
16958       allow_undefined_flag_F77=unsupported
16959       # Tell ltmain to make .lib files, not .a files.
16960       libext=lib
16961       # Tell ltmain to make .dll files, not .so files.
16962       shrext_cmds=".dll"
16963       # FIXME: Setting linknames here is a bad hack.
16964       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16965       # The linker will automatically build a .lib file if we build a DLL.
16966       old_archive_From_new_cmds_F77='true'
16967       # FIXME: Should let the user specify the lib program.
16968       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16969       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16970       enable_shared_with_static_runtimes_F77=yes
16971       ;;
16972
16973     darwin* | rhapsody*)
16974       case $host_os in
16975         rhapsody* | darwin1.[012])
16976          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16977          ;;
16978        *) # Darwin 1.3 on
16979          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16980            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16981          else
16982            case ${MACOSX_DEPLOYMENT_TARGET} in
16983              10.[012])
16984                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16985                ;;
16986              10.*)
16987                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16988                ;;
16989            esac
16990          fi
16991          ;;
16992       esac
16993       archive_cmds_need_lc_F77=no
16994       hardcode_direct_F77=no
16995       hardcode_automatic_F77=yes
16996       hardcode_shlibpath_var_F77=unsupported
16997       whole_archive_flag_spec_F77=''
16998       link_all_deplibs_F77=yes
16999     if test "$GCC" = yes ; then
17000         output_verbose_link_cmd='echo'
17001         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}"
17002         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17003         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}"
17004         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}"
17005     else
17006       case $cc_basename in
17007         xlc*)
17008          output_verbose_link_cmd='echo'
17009          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17010          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17011           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17012          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}'
17013           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}'
17014           ;;
17015        *)
17016          ld_shlibs_F77=no
17017           ;;
17018       esac
17019     fi
17020       ;;
17021
17022     dgux*)
17023       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024       hardcode_libdir_flag_spec_F77='-L$libdir'
17025       hardcode_shlibpath_var_F77=no
17026       ;;
17027
17028     freebsd1*)
17029       ld_shlibs_F77=no
17030       ;;
17031
17032     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17033     # support.  Future versions do this automatically, but an explicit c++rt0.o
17034     # does not break anything, and helps significantly (at the cost of a little
17035     # extra space).
17036     freebsd2.2*)
17037       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17038       hardcode_libdir_flag_spec_F77='-R$libdir'
17039       hardcode_direct_F77=yes
17040       hardcode_shlibpath_var_F77=no
17041       ;;
17042
17043     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17044     freebsd2*)
17045       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17046       hardcode_direct_F77=yes
17047       hardcode_minus_L_F77=yes
17048       hardcode_shlibpath_var_F77=no
17049       ;;
17050
17051     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17052     freebsd* | dragonfly*)
17053       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17054       hardcode_libdir_flag_spec_F77='-R$libdir'
17055       hardcode_direct_F77=yes
17056       hardcode_shlibpath_var_F77=no
17057       ;;
17058
17059     hpux9*)
17060       if test "$GCC" = yes; then
17061         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'
17062       else
17063         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'
17064       fi
17065       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17066       hardcode_libdir_separator_F77=:
17067       hardcode_direct_F77=yes
17068
17069       # hardcode_minus_L: Not really in the search PATH,
17070       # but as the default location of the library.
17071       hardcode_minus_L_F77=yes
17072       export_dynamic_flag_spec_F77='${wl}-E'
17073       ;;
17074
17075     hpux10*)
17076       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17077         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17078       else
17079         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17080       fi
17081       if test "$with_gnu_ld" = no; then
17082         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17083         hardcode_libdir_separator_F77=:
17084
17085         hardcode_direct_F77=yes
17086         export_dynamic_flag_spec_F77='${wl}-E'
17087
17088         # hardcode_minus_L: Not really in the search PATH,
17089         # but as the default location of the library.
17090         hardcode_minus_L_F77=yes
17091       fi
17092       ;;
17093
17094     hpux11*)
17095       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17096         case $host_cpu in
17097         hppa*64*)
17098           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17099           ;;
17100         ia64*)
17101           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17102           ;;
17103         *)
17104           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17105           ;;
17106         esac
17107       else
17108         case $host_cpu in
17109         hppa*64*)
17110           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17111           ;;
17112         ia64*)
17113           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17114           ;;
17115         *)
17116           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17117           ;;
17118         esac
17119       fi
17120       if test "$with_gnu_ld" = no; then
17121         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17122         hardcode_libdir_separator_F77=:
17123
17124         case $host_cpu in
17125         hppa*64*|ia64*)
17126           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17127           hardcode_direct_F77=no
17128           hardcode_shlibpath_var_F77=no
17129           ;;
17130         *)
17131           hardcode_direct_F77=yes
17132           export_dynamic_flag_spec_F77='${wl}-E'
17133
17134           # hardcode_minus_L: Not really in the search PATH,
17135           # but as the default location of the library.
17136           hardcode_minus_L_F77=yes
17137           ;;
17138         esac
17139       fi
17140       ;;
17141
17142     irix5* | irix6* | nonstopux*)
17143       if test "$GCC" = yes; then
17144         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'
17145       else
17146         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'
17147         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17148       fi
17149       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17150       hardcode_libdir_separator_F77=:
17151       link_all_deplibs_F77=yes
17152       ;;
17153
17154     netbsd*)
17155       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17157       else
17158         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17159       fi
17160       hardcode_libdir_flag_spec_F77='-R$libdir'
17161       hardcode_direct_F77=yes
17162       hardcode_shlibpath_var_F77=no
17163       ;;
17164
17165     newsos6)
17166       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167       hardcode_direct_F77=yes
17168       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17169       hardcode_libdir_separator_F77=:
17170       hardcode_shlibpath_var_F77=no
17171       ;;
17172
17173     openbsd*)
17174       if test -f /usr/libexec/ld.so; then
17175         hardcode_direct_F77=yes
17176         hardcode_shlibpath_var_F77=no
17177         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17179           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17180           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17181           export_dynamic_flag_spec_F77='${wl}-E'
17182         else
17183           case $host_os in
17184            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17185              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17186              hardcode_libdir_flag_spec_F77='-R$libdir'
17187              ;;
17188            *)
17189              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17190              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17191              ;;
17192           esac
17193         fi
17194       else
17195         ld_shlibs_F77=no
17196       fi
17197       ;;
17198
17199     os2*)
17200       hardcode_libdir_flag_spec_F77='-L$libdir'
17201       hardcode_minus_L_F77=yes
17202       allow_undefined_flag_F77=unsupported
17203       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'
17204       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17205       ;;
17206
17207     osf3*)
17208       if test "$GCC" = yes; then
17209         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17210         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'
17211       else
17212         allow_undefined_flag_F77=' -expect_unresolved \*'
17213         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'
17214       fi
17215       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17216       hardcode_libdir_separator_F77=:
17217       ;;
17218
17219     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17220       if test "$GCC" = yes; then
17221         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17222         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'
17223         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17224       else
17225         allow_undefined_flag_F77=' -expect_unresolved \*'
17226         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'
17227         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~
17228         $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'
17229
17230         # Both c and cxx compiler support -rpath directly
17231         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17232       fi
17233       hardcode_libdir_separator_F77=:
17234       ;;
17235
17236     solaris*)
17237       no_undefined_flag_F77=' -z text'
17238       if test "$GCC" = yes; then
17239         wlarc='${wl}'
17240         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17241         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17242           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17243       else
17244         wlarc=''
17245         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17247         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17248       fi
17249       hardcode_libdir_flag_spec_F77='-R$libdir'
17250       hardcode_shlibpath_var_F77=no
17251       case $host_os in
17252       solaris2.[0-5] | solaris2.[0-5].*) ;;
17253       *)
17254         # The compiler driver will combine and reorder linker options,
17255         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17256         # but is careful enough not to reorder.
17257         # Supported since Solaris 2.6 (maybe 2.5.1?)
17258         if test "$GCC" = yes; then
17259           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17260         else
17261           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17262         fi
17263         ;;
17264       esac
17265       link_all_deplibs_F77=yes
17266       ;;
17267
17268     sunos4*)
17269       if test "x$host_vendor" = xsequent; then
17270         # Use $CC to link under sequent, because it throws in some extra .o
17271         # files that make .init and .fini sections work.
17272         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17273       else
17274         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17275       fi
17276       hardcode_libdir_flag_spec_F77='-L$libdir'
17277       hardcode_direct_F77=yes
17278       hardcode_minus_L_F77=yes
17279       hardcode_shlibpath_var_F77=no
17280       ;;
17281
17282     sysv4)
17283       case $host_vendor in
17284         sni)
17285           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17286           hardcode_direct_F77=yes # is this really true???
17287         ;;
17288         siemens)
17289           ## LD is ld it makes a PLAMLIB
17290           ## CC just makes a GrossModule.
17291           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17292           reload_cmds_F77='$CC -r -o $output$reload_objs'
17293           hardcode_direct_F77=no
17294         ;;
17295         motorola)
17296           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17297           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17298         ;;
17299       esac
17300       runpath_var='LD_RUN_PATH'
17301       hardcode_shlibpath_var_F77=no
17302       ;;
17303
17304     sysv4.3*)
17305       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17306       hardcode_shlibpath_var_F77=no
17307       export_dynamic_flag_spec_F77='-Bexport'
17308       ;;
17309
17310     sysv4*MP*)
17311       if test -d /usr/nec; then
17312         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17313         hardcode_shlibpath_var_F77=no
17314         runpath_var=LD_RUN_PATH
17315         hardcode_runpath_var=yes
17316         ld_shlibs_F77=yes
17317       fi
17318       ;;
17319
17320     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17321       no_undefined_flag_F77='${wl}-z,text'
17322       archive_cmds_need_lc_F77=no
17323       hardcode_shlibpath_var_F77=no
17324       runpath_var='LD_RUN_PATH'
17325
17326       if test "$GCC" = yes; then
17327         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17329       else
17330         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17332       fi
17333       ;;
17334
17335     sysv5* | sco3.2v5* | sco5v6*)
17336       # Note: We can NOT use -z defs as we might desire, because we do not
17337       # link with -lc, and that would cause any symbols used from libc to
17338       # always be unresolved, which means just about no library would
17339       # ever link correctly.  If we're not using GNU ld we use -z text
17340       # though, which does catch some bad symbols but isn't as heavy-handed
17341       # as -z defs.
17342       no_undefined_flag_F77='${wl}-z,text'
17343       allow_undefined_flag_F77='${wl}-z,nodefs'
17344       archive_cmds_need_lc_F77=no
17345       hardcode_shlibpath_var_F77=no
17346       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17347       hardcode_libdir_separator_F77=':'
17348       link_all_deplibs_F77=yes
17349       export_dynamic_flag_spec_F77='${wl}-Bexport'
17350       runpath_var='LD_RUN_PATH'
17351
17352       if test "$GCC" = yes; then
17353         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17354         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17355       else
17356         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17358       fi
17359       ;;
17360
17361     uts4*)
17362       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17363       hardcode_libdir_flag_spec_F77='-L$libdir'
17364       hardcode_shlibpath_var_F77=no
17365       ;;
17366
17367     *)
17368       ld_shlibs_F77=no
17369       ;;
17370     esac
17371   fi
17372
17373 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17374 $as_echo "$ld_shlibs_F77" >&6; }
17375 test "$ld_shlibs_F77" = no && can_build_shared=no
17376
17377 #
17378 # Do we need to explicitly link libc?
17379 #
17380 case "x$archive_cmds_need_lc_F77" in
17381 x|xyes)
17382   # Assume -lc should be added
17383   archive_cmds_need_lc_F77=yes
17384
17385   if test "$enable_shared" = yes && test "$GCC" = yes; then
17386     case $archive_cmds_F77 in
17387     *'~'*)
17388       # FIXME: we may have to deal with multi-command sequences.
17389       ;;
17390     '$CC '*)
17391       # Test whether the compiler implicitly links with -lc since on some
17392       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17393       # to ld, don't add -lc before -lgcc.
17394       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17395 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17396       $rm conftest*
17397       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17398
17399       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400   (eval $ac_compile) 2>&5
17401   ac_status=$?
17402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } 2>conftest.err; then
17404         soname=conftest
17405         lib=conftest
17406         libobjs=conftest.$ac_objext
17407         deplibs=
17408         wl=$lt_prog_compiler_wl_F77
17409         pic_flag=$lt_prog_compiler_pic_F77
17410         compiler_flags=-v
17411         linker_flags=-v
17412         verstring=
17413         output_objdir=.
17414         libname=conftest
17415         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17416         allow_undefined_flag_F77=
17417         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17418   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17419   ac_status=$?
17420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }
17422         then
17423           archive_cmds_need_lc_F77=no
17424         else
17425           archive_cmds_need_lc_F77=yes
17426         fi
17427         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17428       else
17429         cat conftest.err 1>&5
17430       fi
17431       $rm conftest*
17432       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17433 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17434       ;;
17435     esac
17436   fi
17437   ;;
17438 esac
17439
17440 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17442 library_names_spec=
17443 libname_spec='lib$name'
17444 soname_spec=
17445 shrext_cmds=".so"
17446 postinstall_cmds=
17447 postuninstall_cmds=
17448 finish_cmds=
17449 finish_eval=
17450 shlibpath_var=
17451 shlibpath_overrides_runpath=unknown
17452 version_type=none
17453 dynamic_linker="$host_os ld.so"
17454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17455
17456 need_lib_prefix=unknown
17457 hardcode_into_libs=no
17458
17459 # when you set need_version to no, make sure it does not cause -set_version
17460 # flags to be left without arguments
17461 need_version=unknown
17462
17463 case $host_os in
17464 aix3*)
17465   version_type=linux
17466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17467   shlibpath_var=LIBPATH
17468
17469   # AIX 3 has no versioning support, so we append a major version to the name.
17470   soname_spec='${libname}${release}${shared_ext}$major'
17471   ;;
17472
17473 aix[4-9]*)
17474   version_type=linux
17475   need_lib_prefix=no
17476   need_version=no
17477   hardcode_into_libs=yes
17478   if test "$host_cpu" = ia64; then
17479     # AIX 5 supports IA64
17480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17481     shlibpath_var=LD_LIBRARY_PATH
17482   else
17483     # With GCC up to 2.95.x, collect2 would create an import file
17484     # for dependence libraries.  The import file would start with
17485     # the line `#! .'.  This would cause the generated library to
17486     # depend on `.', always an invalid library.  This was fixed in
17487     # development snapshots of GCC prior to 3.0.
17488     case $host_os in
17489       aix4 | aix4.[01] | aix4.[01].*)
17490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17491            echo ' yes '
17492            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17493         :
17494       else
17495         can_build_shared=no
17496       fi
17497       ;;
17498     esac
17499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17500     # soname into executable. Probably we can add versioning support to
17501     # collect2, so additional links can be useful in future.
17502     if test "$aix_use_runtimelinking" = yes; then
17503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17504       # instead of lib<name>.a to let people know that these are not
17505       # typical AIX shared libraries.
17506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507     else
17508       # We preserve .a as extension for shared libraries through AIX4.2
17509       # and later when we are not doing run time linking.
17510       library_names_spec='${libname}${release}.a $libname.a'
17511       soname_spec='${libname}${release}${shared_ext}$major'
17512     fi
17513     shlibpath_var=LIBPATH
17514   fi
17515   ;;
17516
17517 amigaos*)
17518   library_names_spec='$libname.ixlibrary $libname.a'
17519   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17520   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'
17521   ;;
17522
17523 beos*)
17524   library_names_spec='${libname}${shared_ext}'
17525   dynamic_linker="$host_os ld.so"
17526   shlibpath_var=LIBRARY_PATH
17527   ;;
17528
17529 bsdi[45]*)
17530   version_type=linux
17531   need_version=no
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533   soname_spec='${libname}${release}${shared_ext}$major'
17534   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17537   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17538   # the default ld.so.conf also contains /usr/contrib/lib and
17539   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17540   # libtool to hard-code these into programs
17541   ;;
17542
17543 cygwin* | mingw* | pw32*)
17544   version_type=windows
17545   shrext_cmds=".dll"
17546   need_version=no
17547   need_lib_prefix=no
17548
17549   case $GCC,$host_os in
17550   yes,cygwin* | yes,mingw* | yes,pw32*)
17551     library_names_spec='$libname.dll.a'
17552     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17553     postinstall_cmds='base_file=`basename \${file}`~
17554       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17555       dldir=$destdir/`dirname \$dlpath`~
17556       test -d \$dldir || mkdir -p \$dldir~
17557       $install_prog $dir/$dlname \$dldir/$dlname~
17558       chmod a+x \$dldir/$dlname'
17559     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17560       dlpath=$dir/\$dldll~
17561        $rm \$dlpath'
17562     shlibpath_overrides_runpath=yes
17563
17564     case $host_os in
17565     cygwin*)
17566       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17567       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17568       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17569       ;;
17570     mingw*)
17571       # MinGW DLLs use traditional 'lib' prefix
17572       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17573       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17574       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17575         # It is most probably a Windows format PATH printed by
17576         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17577         # path with ; separators, and with drive letters. We can handle the
17578         # drive letters (cygwin fileutils understands them), so leave them,
17579         # especially as we might pass files found there to a mingw objdump,
17580         # which wouldn't understand a cygwinified path. Ahh.
17581         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17582       else
17583         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17584       fi
17585       ;;
17586     pw32*)
17587       # pw32 DLLs use 'pw' prefix rather than 'lib'
17588       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17589       ;;
17590     esac
17591     ;;
17592
17593   *)
17594     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17595     ;;
17596   esac
17597   dynamic_linker='Win32 ld.exe'
17598   # FIXME: first we should search . and the directory the executable is in
17599   shlibpath_var=PATH
17600   ;;
17601
17602 darwin* | rhapsody*)
17603   dynamic_linker="$host_os dyld"
17604   version_type=darwin
17605   need_lib_prefix=no
17606   need_version=no
17607   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17608   soname_spec='${libname}${release}${major}$shared_ext'
17609   shlibpath_overrides_runpath=yes
17610   shlibpath_var=DYLD_LIBRARY_PATH
17611   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17612
17613   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17614   ;;
17615
17616 dgux*)
17617   version_type=linux
17618   need_lib_prefix=no
17619   need_version=no
17620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17621   soname_spec='${libname}${release}${shared_ext}$major'
17622   shlibpath_var=LD_LIBRARY_PATH
17623   ;;
17624
17625 freebsd1*)
17626   dynamic_linker=no
17627   ;;
17628
17629 freebsd* | dragonfly*)
17630   # DragonFly does not have aout.  When/if they implement a new
17631   # versioning mechanism, adjust this.
17632   if test -x /usr/bin/objformat; then
17633     objformat=`/usr/bin/objformat`
17634   else
17635     case $host_os in
17636     freebsd[123]*) objformat=aout ;;
17637     *) objformat=elf ;;
17638     esac
17639   fi
17640   version_type=freebsd-$objformat
17641   case $version_type in
17642     freebsd-elf*)
17643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17644       need_version=no
17645       need_lib_prefix=no
17646       ;;
17647     freebsd-*)
17648       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17649       need_version=yes
17650       ;;
17651   esac
17652   shlibpath_var=LD_LIBRARY_PATH
17653   case $host_os in
17654   freebsd2*)
17655     shlibpath_overrides_runpath=yes
17656     ;;
17657   freebsd3.[01]* | freebsdelf3.[01]*)
17658     shlibpath_overrides_runpath=yes
17659     hardcode_into_libs=yes
17660     ;;
17661   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17662   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17663     shlibpath_overrides_runpath=no
17664     hardcode_into_libs=yes
17665     ;;
17666   *) # from 4.6 on, and DragonFly
17667     shlibpath_overrides_runpath=yes
17668     hardcode_into_libs=yes
17669     ;;
17670   esac
17671   ;;
17672
17673 gnu*)
17674   version_type=linux
17675   need_lib_prefix=no
17676   need_version=no
17677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17678   soname_spec='${libname}${release}${shared_ext}$major'
17679   shlibpath_var=LD_LIBRARY_PATH
17680   hardcode_into_libs=yes
17681   ;;
17682
17683 hpux9* | hpux10* | hpux11*)
17684   # Give a soname corresponding to the major version so that dld.sl refuses to
17685   # link against other versions.
17686   version_type=sunos
17687   need_lib_prefix=no
17688   need_version=no
17689   case $host_cpu in
17690   ia64*)
17691     shrext_cmds='.so'
17692     hardcode_into_libs=yes
17693     dynamic_linker="$host_os dld.so"
17694     shlibpath_var=LD_LIBRARY_PATH
17695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697     soname_spec='${libname}${release}${shared_ext}$major'
17698     if test "X$HPUX_IA64_MODE" = X32; then
17699       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17700     else
17701       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17702     fi
17703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17704     ;;
17705    hppa*64*)
17706      shrext_cmds='.sl'
17707      hardcode_into_libs=yes
17708      dynamic_linker="$host_os dld.sl"
17709      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17710      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17711      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712      soname_spec='${libname}${release}${shared_ext}$major'
17713      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17714      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17715      ;;
17716    *)
17717     shrext_cmds='.sl'
17718     dynamic_linker="$host_os dld.sl"
17719     shlibpath_var=SHLIB_PATH
17720     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722     soname_spec='${libname}${release}${shared_ext}$major'
17723     ;;
17724   esac
17725   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17726   postinstall_cmds='chmod 555 $lib'
17727   ;;
17728
17729 interix[3-9]*)
17730   version_type=linux
17731   need_lib_prefix=no
17732   need_version=no
17733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17734   soname_spec='${libname}${release}${shared_ext}$major'
17735   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17736   shlibpath_var=LD_LIBRARY_PATH
17737   shlibpath_overrides_runpath=no
17738   hardcode_into_libs=yes
17739   ;;
17740
17741 irix5* | irix6* | nonstopux*)
17742   case $host_os in
17743     nonstopux*) version_type=nonstopux ;;
17744     *)
17745         if test "$lt_cv_prog_gnu_ld" = yes; then
17746                 version_type=linux
17747         else
17748                 version_type=irix
17749         fi ;;
17750   esac
17751   need_lib_prefix=no
17752   need_version=no
17753   soname_spec='${libname}${release}${shared_ext}$major'
17754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17755   case $host_os in
17756   irix5* | nonstopux*)
17757     libsuff= shlibsuff=
17758     ;;
17759   *)
17760     case $LD in # libtool.m4 will add one of these switches to LD
17761     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17762       libsuff= shlibsuff= libmagic=32-bit;;
17763     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17764       libsuff=32 shlibsuff=N32 libmagic=N32;;
17765     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17766       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17767     *) libsuff= shlibsuff= libmagic=never-match;;
17768     esac
17769     ;;
17770   esac
17771   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17772   shlibpath_overrides_runpath=no
17773   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17774   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17775   hardcode_into_libs=yes
17776   ;;
17777
17778 # No shared lib support for Linux oldld, aout, or coff.
17779 linux*oldld* | linux*aout* | linux*coff*)
17780   dynamic_linker=no
17781   ;;
17782
17783 # This must be Linux ELF.
17784 linux* | k*bsd*-gnu)
17785   version_type=linux
17786   need_lib_prefix=no
17787   need_version=no
17788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789   soname_spec='${libname}${release}${shared_ext}$major'
17790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17791   shlibpath_var=LD_LIBRARY_PATH
17792   shlibpath_overrides_runpath=no
17793   # This implies no fast_install, which is unacceptable.
17794   # Some rework will be needed to allow for fast_install
17795   # before this can be enabled.
17796   hardcode_into_libs=yes
17797   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17798   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17799
17800   # Append ld.so.conf contents to the search path
17801   if test -f /etc/ld.so.conf; then
17802     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' ' '`
17803     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17804   fi
17805
17806   # We used to test for /lib/ld.so.1 and disable shared libraries on
17807   # powerpc, because MkLinux only supported shared libraries with the
17808   # GNU dynamic linker.  Since this was broken with cross compilers,
17809   # most powerpc-linux boxes support dynamic linking these days and
17810   # people can always --disable-shared, the test was removed, and we
17811   # assume the GNU/Linux dynamic linker is in use.
17812   dynamic_linker='GNU/Linux ld.so'
17813   ;;
17814
17815 netbsd*)
17816   version_type=sunos
17817   need_lib_prefix=no
17818   need_version=no
17819   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17821     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17822     dynamic_linker='NetBSD (a.out) ld.so'
17823   else
17824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17825     soname_spec='${libname}${release}${shared_ext}$major'
17826     dynamic_linker='NetBSD ld.elf_so'
17827   fi
17828   shlibpath_var=LD_LIBRARY_PATH
17829   shlibpath_overrides_runpath=yes
17830   hardcode_into_libs=yes
17831   ;;
17832
17833 newsos6)
17834   version_type=linux
17835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17836   shlibpath_var=LD_LIBRARY_PATH
17837   shlibpath_overrides_runpath=yes
17838   ;;
17839
17840 nto-qnx*)
17841   version_type=linux
17842   need_lib_prefix=no
17843   need_version=no
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845   soname_spec='${libname}${release}${shared_ext}$major'
17846   shlibpath_var=LD_LIBRARY_PATH
17847   shlibpath_overrides_runpath=yes
17848   ;;
17849
17850 openbsd*)
17851   version_type=sunos
17852   sys_lib_dlsearch_path_spec="/usr/lib"
17853   need_lib_prefix=no
17854   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17855   case $host_os in
17856     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17857     *)                         need_version=no  ;;
17858   esac
17859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17860   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17861   shlibpath_var=LD_LIBRARY_PATH
17862   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17863     case $host_os in
17864       openbsd2.[89] | openbsd2.[89].*)
17865         shlibpath_overrides_runpath=no
17866         ;;
17867       *)
17868         shlibpath_overrides_runpath=yes
17869         ;;
17870       esac
17871   else
17872     shlibpath_overrides_runpath=yes
17873   fi
17874   ;;
17875
17876 os2*)
17877   libname_spec='$name'
17878   shrext_cmds=".dll"
17879   need_lib_prefix=no
17880   library_names_spec='$libname${shared_ext} $libname.a'
17881   dynamic_linker='OS/2 ld.exe'
17882   shlibpath_var=LIBPATH
17883   ;;
17884
17885 osf3* | osf4* | osf5*)
17886   version_type=osf
17887   need_lib_prefix=no
17888   need_version=no
17889   soname_spec='${libname}${release}${shared_ext}$major'
17890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891   shlibpath_var=LD_LIBRARY_PATH
17892   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17893   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17894   ;;
17895
17896 rdos*)
17897   dynamic_linker=no
17898   ;;
17899
17900 solaris*)
17901   version_type=linux
17902   need_lib_prefix=no
17903   need_version=no
17904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   shlibpath_var=LD_LIBRARY_PATH
17907   shlibpath_overrides_runpath=yes
17908   hardcode_into_libs=yes
17909   # ldd complains unless libraries are executable
17910   postinstall_cmds='chmod +x $lib'
17911   ;;
17912
17913 sunos4*)
17914   version_type=sunos
17915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17916   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17917   shlibpath_var=LD_LIBRARY_PATH
17918   shlibpath_overrides_runpath=yes
17919   if test "$with_gnu_ld" = yes; then
17920     need_lib_prefix=no
17921   fi
17922   need_version=yes
17923   ;;
17924
17925 sysv4 | sysv4.3*)
17926   version_type=linux
17927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928   soname_spec='${libname}${release}${shared_ext}$major'
17929   shlibpath_var=LD_LIBRARY_PATH
17930   case $host_vendor in
17931     sni)
17932       shlibpath_overrides_runpath=no
17933       need_lib_prefix=no
17934       export_dynamic_flag_spec='${wl}-Blargedynsym'
17935       runpath_var=LD_RUN_PATH
17936       ;;
17937     siemens)
17938       need_lib_prefix=no
17939       ;;
17940     motorola)
17941       need_lib_prefix=no
17942       need_version=no
17943       shlibpath_overrides_runpath=no
17944       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17945       ;;
17946   esac
17947   ;;
17948
17949 sysv4*MP*)
17950   if test -d /usr/nec ;then
17951     version_type=linux
17952     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17953     soname_spec='$libname${shared_ext}.$major'
17954     shlibpath_var=LD_LIBRARY_PATH
17955   fi
17956   ;;
17957
17958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17959   version_type=freebsd-elf
17960   need_lib_prefix=no
17961   need_version=no
17962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17963   soname_spec='${libname}${release}${shared_ext}$major'
17964   shlibpath_var=LD_LIBRARY_PATH
17965   hardcode_into_libs=yes
17966   if test "$with_gnu_ld" = yes; then
17967     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17968     shlibpath_overrides_runpath=no
17969   else
17970     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17971     shlibpath_overrides_runpath=yes
17972     case $host_os in
17973       sco3.2v5*)
17974         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17975         ;;
17976     esac
17977   fi
17978   sys_lib_dlsearch_path_spec='/usr/lib'
17979   ;;
17980
17981 uts4*)
17982   version_type=linux
17983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984   soname_spec='${libname}${release}${shared_ext}$major'
17985   shlibpath_var=LD_LIBRARY_PATH
17986   ;;
17987
17988 *)
17989   dynamic_linker=no
17990   ;;
17991 esac
17992 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17993 $as_echo "$dynamic_linker" >&6; }
17994 test "$dynamic_linker" = no && can_build_shared=no
17995
17996 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17997   $as_echo_n "(cached) " >&6
17998 else
17999   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18000 fi
18001
18002 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18003 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18004   $as_echo_n "(cached) " >&6
18005 else
18006   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18007 fi
18008
18009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18010
18011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18012 if test "$GCC" = yes; then
18013   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18014 fi
18015
18016 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18017 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18018 hardcode_action_F77=
18019 if test -n "$hardcode_libdir_flag_spec_F77" || \
18020    test -n "$runpath_var_F77" || \
18021    test "X$hardcode_automatic_F77" = "Xyes" ; then
18022
18023   # We can hardcode non-existant directories.
18024   if test "$hardcode_direct_F77" != no &&
18025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18026      # have to relink, otherwise we might link with an installed library
18027      # when we should be linking with a yet-to-be-installed one
18028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18029      test "$hardcode_minus_L_F77" != no; then
18030     # Linking always hardcodes the temporary library directory.
18031     hardcode_action_F77=relink
18032   else
18033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18034     hardcode_action_F77=immediate
18035   fi
18036 else
18037   # We cannot hardcode anything, or else we can only hardcode existing
18038   # directories.
18039   hardcode_action_F77=unsupported
18040 fi
18041 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18042 $as_echo "$hardcode_action_F77" >&6; }
18043
18044 if test "$hardcode_action_F77" = relink; then
18045   # Fast installation is not supported
18046   enable_fast_install=no
18047 elif test "$shlibpath_overrides_runpath" = yes ||
18048      test "$enable_shared" = no; then
18049   # Fast installation is not necessary
18050   enable_fast_install=needless
18051 fi
18052
18053
18054 # The else clause should only fire when bootstrapping the
18055 # libtool distribution, otherwise you forgot to ship ltmain.sh
18056 # with your package, and you will get complaints that there are
18057 # no rules to generate ltmain.sh.
18058 if test -f "$ltmain"; then
18059   # See if we are running on zsh, and set the options which allow our commands through
18060   # without removal of \ escapes.
18061   if test -n "${ZSH_VERSION+set}" ; then
18062     setopt NO_GLOB_SUBST
18063   fi
18064   # Now quote all the things that may contain metacharacters while being
18065   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18066   # variables and quote the copies for generation of the libtool script.
18067   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18068     SED SHELL STRIP \
18069     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18070     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18071     deplibs_check_method reload_flag reload_cmds need_locks \
18072     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18073     lt_cv_sys_global_symbol_to_c_name_address \
18074     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18075     old_postinstall_cmds old_postuninstall_cmds \
18076     compiler_F77 \
18077     CC_F77 \
18078     LD_F77 \
18079     lt_prog_compiler_wl_F77 \
18080     lt_prog_compiler_pic_F77 \
18081     lt_prog_compiler_static_F77 \
18082     lt_prog_compiler_no_builtin_flag_F77 \
18083     export_dynamic_flag_spec_F77 \
18084     thread_safe_flag_spec_F77 \
18085     whole_archive_flag_spec_F77 \
18086     enable_shared_with_static_runtimes_F77 \
18087     old_archive_cmds_F77 \
18088     old_archive_from_new_cmds_F77 \
18089     predep_objects_F77 \
18090     postdep_objects_F77 \
18091     predeps_F77 \
18092     postdeps_F77 \
18093     compiler_lib_search_path_F77 \
18094     compiler_lib_search_dirs_F77 \
18095     archive_cmds_F77 \
18096     archive_expsym_cmds_F77 \
18097     postinstall_cmds_F77 \
18098     postuninstall_cmds_F77 \
18099     old_archive_from_expsyms_cmds_F77 \
18100     allow_undefined_flag_F77 \
18101     no_undefined_flag_F77 \
18102     export_symbols_cmds_F77 \
18103     hardcode_libdir_flag_spec_F77 \
18104     hardcode_libdir_flag_spec_ld_F77 \
18105     hardcode_libdir_separator_F77 \
18106     hardcode_automatic_F77 \
18107     module_cmds_F77 \
18108     module_expsym_cmds_F77 \
18109     lt_cv_prog_compiler_c_o_F77 \
18110     fix_srcfile_path_F77 \
18111     exclude_expsyms_F77 \
18112     include_expsyms_F77; do
18113
18114     case $var in
18115     old_archive_cmds_F77 | \
18116     old_archive_from_new_cmds_F77 | \
18117     archive_cmds_F77 | \
18118     archive_expsym_cmds_F77 | \
18119     module_cmds_F77 | \
18120     module_expsym_cmds_F77 | \
18121     old_archive_from_expsyms_cmds_F77 | \
18122     export_symbols_cmds_F77 | \
18123     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18124     postinstall_cmds | postuninstall_cmds | \
18125     old_postinstall_cmds | old_postuninstall_cmds | \
18126     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18127       # Double-quote double-evaled strings.
18128       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18129       ;;
18130     *)
18131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18132       ;;
18133     esac
18134   done
18135
18136   case $lt_echo in
18137   *'\$0 --fallback-echo"')
18138     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18139     ;;
18140   esac
18141
18142 cfgfile="$ofile"
18143
18144   cat <<__EOF__ >> "$cfgfile"
18145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18146
18147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18148
18149 # Shell to use when invoking shell scripts.
18150 SHELL=$lt_SHELL
18151
18152 # Whether or not to build shared libraries.
18153 build_libtool_libs=$enable_shared
18154
18155 # Whether or not to build static libraries.
18156 build_old_libs=$enable_static
18157
18158 # Whether or not to add -lc for building shared libraries.
18159 build_libtool_need_lc=$archive_cmds_need_lc_F77
18160
18161 # Whether or not to disallow shared libs when runtime libs are static
18162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18163
18164 # Whether or not to optimize for fast installation.
18165 fast_install=$enable_fast_install
18166
18167 # The host system.
18168 host_alias=$host_alias
18169 host=$host
18170 host_os=$host_os
18171
18172 # The build system.
18173 build_alias=$build_alias
18174 build=$build
18175 build_os=$build_os
18176
18177 # An echo program that does not interpret backslashes.
18178 echo=$lt_echo
18179
18180 # The archiver.
18181 AR=$lt_AR
18182 AR_FLAGS=$lt_AR_FLAGS
18183
18184 # A C compiler.
18185 LTCC=$lt_LTCC
18186
18187 # LTCC compiler flags.
18188 LTCFLAGS=$lt_LTCFLAGS
18189
18190 # A language-specific compiler.
18191 CC=$lt_compiler_F77
18192
18193 # Is the compiler the GNU C compiler?
18194 with_gcc=$GCC_F77
18195
18196 # An ERE matcher.
18197 EGREP=$lt_EGREP
18198
18199 # The linker used to build libraries.
18200 LD=$lt_LD_F77
18201
18202 # Whether we need hard or soft links.
18203 LN_S=$lt_LN_S
18204
18205 # A BSD-compatible nm program.
18206 NM=$lt_NM
18207
18208 # A symbol stripping program
18209 STRIP=$lt_STRIP
18210
18211 # Used to examine libraries when file_magic_cmd begins "file"
18212 MAGIC_CMD=$MAGIC_CMD
18213
18214 # Used on cygwin: DLL creation program.
18215 DLLTOOL="$DLLTOOL"
18216
18217 # Used on cygwin: object dumper.
18218 OBJDUMP="$OBJDUMP"
18219
18220 # Used on cygwin: assembler.
18221 AS="$AS"
18222
18223 # The name of the directory that contains temporary libtool files.
18224 objdir=$objdir
18225
18226 # How to create reloadable object files.
18227 reload_flag=$lt_reload_flag
18228 reload_cmds=$lt_reload_cmds
18229
18230 # How to pass a linker flag through the compiler.
18231 wl=$lt_lt_prog_compiler_wl_F77
18232
18233 # Object file suffix (normally "o").
18234 objext="$ac_objext"
18235
18236 # Old archive suffix (normally "a").
18237 libext="$libext"
18238
18239 # Shared library suffix (normally ".so").
18240 shrext_cmds='$shrext_cmds'
18241
18242 # Executable file suffix (normally "").
18243 exeext="$exeext"
18244
18245 # Additional compiler flags for building library objects.
18246 pic_flag=$lt_lt_prog_compiler_pic_F77
18247 pic_mode=$pic_mode
18248
18249 # What is the maximum length of a command?
18250 max_cmd_len=$lt_cv_sys_max_cmd_len
18251
18252 # Does compiler simultaneously support -c and -o options?
18253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18254
18255 # Must we lock files when doing compilation?
18256 need_locks=$lt_need_locks
18257
18258 # Do we need the lib prefix for modules?
18259 need_lib_prefix=$need_lib_prefix
18260
18261 # Do we need a version for libraries?
18262 need_version=$need_version
18263
18264 # Whether dlopen is supported.
18265 dlopen_support=$enable_dlopen
18266
18267 # Whether dlopen of programs is supported.
18268 dlopen_self=$enable_dlopen_self
18269
18270 # Whether dlopen of statically linked programs is supported.
18271 dlopen_self_static=$enable_dlopen_self_static
18272
18273 # Compiler flag to prevent dynamic linking.
18274 link_static_flag=$lt_lt_prog_compiler_static_F77
18275
18276 # Compiler flag to turn off builtin functions.
18277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18278
18279 # Compiler flag to allow reflexive dlopens.
18280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18281
18282 # Compiler flag to generate shared objects directly from archives.
18283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18284
18285 # Compiler flag to generate thread-safe objects.
18286 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18287
18288 # Library versioning type.
18289 version_type=$version_type
18290
18291 # Format of library name prefix.
18292 libname_spec=$lt_libname_spec
18293
18294 # List of archive names.  First name is the real one, the rest are links.
18295 # The last name is the one that the linker finds with -lNAME.
18296 library_names_spec=$lt_library_names_spec
18297
18298 # The coded name of the library, if different from the real name.
18299 soname_spec=$lt_soname_spec
18300
18301 # Commands used to build and install an old-style archive.
18302 RANLIB=$lt_RANLIB
18303 old_archive_cmds=$lt_old_archive_cmds_F77
18304 old_postinstall_cmds=$lt_old_postinstall_cmds
18305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18306
18307 # Create an old-style archive from a shared archive.
18308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18309
18310 # Create a temporary old-style archive to link instead of a shared archive.
18311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18312
18313 # Commands used to build and install a shared archive.
18314 archive_cmds=$lt_archive_cmds_F77
18315 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18316 postinstall_cmds=$lt_postinstall_cmds
18317 postuninstall_cmds=$lt_postuninstall_cmds
18318
18319 # Commands used to build a loadable module (assumed same as above if empty)
18320 module_cmds=$lt_module_cmds_F77
18321 module_expsym_cmds=$lt_module_expsym_cmds_F77
18322
18323 # Commands to strip libraries.
18324 old_striplib=$lt_old_striplib
18325 striplib=$lt_striplib
18326
18327 # Dependencies to place before the objects being linked to create a
18328 # shared library.
18329 predep_objects=$lt_predep_objects_F77
18330
18331 # Dependencies to place after the objects being linked to create a
18332 # shared library.
18333 postdep_objects=$lt_postdep_objects_F77
18334
18335 # Dependencies to place before the objects being linked to create a
18336 # shared library.
18337 predeps=$lt_predeps_F77
18338
18339 # Dependencies to place after the objects being linked to create a
18340 # shared library.
18341 postdeps=$lt_postdeps_F77
18342
18343 # The directories searched by this compiler when creating a shared
18344 # library
18345 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18346
18347 # The library search path used internally by the compiler when linking
18348 # a shared library.
18349 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18350
18351 # Method to check whether dependent libraries are shared objects.
18352 deplibs_check_method=$lt_deplibs_check_method
18353
18354 # Command to use when deplibs_check_method == file_magic.
18355 file_magic_cmd=$lt_file_magic_cmd
18356
18357 # Flag that allows shared libraries with undefined symbols to be built.
18358 allow_undefined_flag=$lt_allow_undefined_flag_F77
18359
18360 # Flag that forces no undefined symbols.
18361 no_undefined_flag=$lt_no_undefined_flag_F77
18362
18363 # Commands used to finish a libtool library installation in a directory.
18364 finish_cmds=$lt_finish_cmds
18365
18366 # Same as above, but a single script fragment to be evaled but not shown.
18367 finish_eval=$lt_finish_eval
18368
18369 # Take the output of nm and produce a listing of raw symbols and C names.
18370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18371
18372 # Transform the output of nm in a proper C declaration
18373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18374
18375 # Transform the output of nm in a C name address pair
18376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18377
18378 # This is the shared library runtime path variable.
18379 runpath_var=$runpath_var
18380
18381 # This is the shared library path variable.
18382 shlibpath_var=$shlibpath_var
18383
18384 # Is shlibpath searched before the hard-coded library search path?
18385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18386
18387 # How to hardcode a shared library path into an executable.
18388 hardcode_action=$hardcode_action_F77
18389
18390 # Whether we should hardcode library paths into libraries.
18391 hardcode_into_libs=$hardcode_into_libs
18392
18393 # Flag to hardcode \$libdir into a binary during linking.
18394 # This must work even if \$libdir does not exist.
18395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18396
18397 # If ld is used when linking, flag to hardcode \$libdir into
18398 # a binary during linking. This must work even if \$libdir does
18399 # not exist.
18400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18401
18402 # Whether we need a single -rpath flag with a separated argument.
18403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18404
18405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18406 # resulting binary.
18407 hardcode_direct=$hardcode_direct_F77
18408
18409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18410 # resulting binary.
18411 hardcode_minus_L=$hardcode_minus_L_F77
18412
18413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18414 # the resulting binary.
18415 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18416
18417 # Set to yes if building a shared library automatically hardcodes DIR into the library
18418 # and all subsequent libraries and executables linked against it.
18419 hardcode_automatic=$hardcode_automatic_F77
18420
18421 # Variables whose values should be saved in libtool wrapper scripts and
18422 # restored at relink time.
18423 variables_saved_for_relink="$variables_saved_for_relink"
18424
18425 # Whether libtool must link a program against all its dependency libraries.
18426 link_all_deplibs=$link_all_deplibs_F77
18427
18428 # Compile-time system search path for libraries
18429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18430
18431 # Run-time system search path for libraries
18432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18433
18434 # Fix the shell variable \$srcfile for the compiler.
18435 fix_srcfile_path=$lt_fix_srcfile_path
18436
18437 # Set to yes if exported symbols are required.
18438 always_export_symbols=$always_export_symbols_F77
18439
18440 # The commands to list exported symbols.
18441 export_symbols_cmds=$lt_export_symbols_cmds_F77
18442
18443 # The commands to extract the exported symbol list from a shared archive.
18444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18445
18446 # Symbols that should not be listed in the preloaded symbols.
18447 exclude_expsyms=$lt_exclude_expsyms_F77
18448
18449 # Symbols that must always be exported.
18450 include_expsyms=$lt_include_expsyms_F77
18451
18452 # ### END LIBTOOL TAG CONFIG: $tagname
18453
18454 __EOF__
18455
18456
18457 else
18458   # If there is no Makefile yet, we rely on a make rule to execute
18459   # `config.status --recheck' to rerun these tests and create the
18460   # libtool script then.
18461   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18462   if test -f "$ltmain_in"; then
18463     test -f Makefile && make "$ltmain"
18464   fi
18465 fi
18466
18467
18468 ac_ext=c
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473
18474 CC="$lt_save_CC"
18475
18476         else
18477           tagname=""
18478         fi
18479         ;;
18480
18481       GCJ)
18482         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18483
18484
18485 # Source file extension for Java test sources.
18486 ac_ext=java
18487
18488 # Object file extension for compiled Java test sources.
18489 objext=o
18490 objext_GCJ=$objext
18491
18492 # Code to be used in simple compile tests
18493 lt_simple_compile_test_code="class foo {}"
18494
18495 # Code to be used in simple link tests
18496 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18497
18498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18499
18500 # If no C compiler was specified, use CC.
18501 LTCC=${LTCC-"$CC"}
18502
18503 # If no C compiler flags were specified, use CFLAGS.
18504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18505
18506 # Allow CC to be a program name with arguments.
18507 compiler=$CC
18508
18509
18510 # save warnings/boilerplate of simple test code
18511 ac_outfile=conftest.$ac_objext
18512 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18513 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18514 _lt_compiler_boilerplate=`cat conftest.err`
18515 $rm conftest*
18516
18517 ac_outfile=conftest.$ac_objext
18518 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18519 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18520 _lt_linker_boilerplate=`cat conftest.err`
18521 $rm -r conftest*
18522
18523
18524 # Allow CC to be a program name with arguments.
18525 lt_save_CC="$CC"
18526 CC=${GCJ-"gcj"}
18527 compiler=$CC
18528 compiler_GCJ=$CC
18529 for cc_temp in $compiler""; do
18530   case $cc_temp in
18531     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18532     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18533     \-*) ;;
18534     *) break;;
18535   esac
18536 done
18537 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18538
18539
18540 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18541 archive_cmds_need_lc_GCJ=no
18542
18543 old_archive_cmds_GCJ=$old_archive_cmds
18544
18545
18546 lt_prog_compiler_no_builtin_flag_GCJ=
18547
18548 if test "$GCC" = yes; then
18549   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18550
18551
18552 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18553 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18554 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18555   $as_echo_n "(cached) " >&6
18556 else
18557   lt_cv_prog_compiler_rtti_exceptions=no
18558   ac_outfile=conftest.$ac_objext
18559    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18560    lt_compiler_flag="-fno-rtti -fno-exceptions"
18561    # Insert the option either (1) after the last *FLAGS variable, or
18562    # (2) before a word containing "conftest.", or (3) at the end.
18563    # Note that $ac_compile itself does not contain backslashes and begins
18564    # with a dollar sign (not a hyphen), so the echo should work correctly.
18565    # The option is referenced via a variable to avoid confusing sed.
18566    lt_compile=`echo "$ac_compile" | $SED \
18567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18569    -e 's:$: $lt_compiler_flag:'`
18570    (eval echo "\"\$as_me:18570: $lt_compile\"" >&5)
18571    (eval "$lt_compile" 2>conftest.err)
18572    ac_status=$?
18573    cat conftest.err >&5
18574    echo "$as_me:18574: \$? = $ac_status" >&5
18575    if (exit $ac_status) && test -s "$ac_outfile"; then
18576      # The compiler can only warn and ignore the option if not recognized
18577      # So say no if there are warnings other than the usual output.
18578      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18579      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18580      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18581        lt_cv_prog_compiler_rtti_exceptions=yes
18582      fi
18583    fi
18584    $rm conftest*
18585
18586 fi
18587 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18588 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18589
18590 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18591     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18592 else
18593     :
18594 fi
18595
18596 fi
18597
18598 lt_prog_compiler_wl_GCJ=
18599 lt_prog_compiler_pic_GCJ=
18600 lt_prog_compiler_static_GCJ=
18601
18602 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18603 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18604
18605   if test "$GCC" = yes; then
18606     lt_prog_compiler_wl_GCJ='-Wl,'
18607     lt_prog_compiler_static_GCJ='-static'
18608
18609     case $host_os in
18610       aix*)
18611       # All AIX code is PIC.
18612       if test "$host_cpu" = ia64; then
18613         # AIX 5 now supports IA64 processor
18614         lt_prog_compiler_static_GCJ='-Bstatic'
18615       fi
18616       ;;
18617
18618     amigaos*)
18619       # FIXME: we need at least 68020 code to build shared libraries, but
18620       # adding the `-m68020' flag to GCC prevents building anything better,
18621       # like `-m68040'.
18622       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18623       ;;
18624
18625     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18626       # PIC is the default for these OSes.
18627       ;;
18628
18629     mingw* | cygwin* | pw32* | os2*)
18630       # This hack is so that the source file can tell whether it is being
18631       # built for inclusion in a dll (and should export symbols for example).
18632       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18633       # (--disable-auto-import) libraries
18634
18635       ;;
18636
18637     darwin* | rhapsody*)
18638       # PIC is the default on this platform
18639       # Common symbols not allowed in MH_DYLIB files
18640       lt_prog_compiler_pic_GCJ='-fno-common'
18641       ;;
18642
18643     interix[3-9]*)
18644       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18645       # Instead, we relocate shared libraries at runtime.
18646       ;;
18647
18648     msdosdjgpp*)
18649       # Just because we use GCC doesn't mean we suddenly get shared libraries
18650       # on systems that don't support them.
18651       lt_prog_compiler_can_build_shared_GCJ=no
18652       enable_shared=no
18653       ;;
18654
18655     sysv4*MP*)
18656       if test -d /usr/nec; then
18657         lt_prog_compiler_pic_GCJ=-Kconform_pic
18658       fi
18659       ;;
18660
18661     hpux*)
18662       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18663       # not for PA HP-UX.
18664       case $host_cpu in
18665       hppa*64*|ia64*)
18666         # +Z the default
18667         ;;
18668       *)
18669         lt_prog_compiler_pic_GCJ='-fPIC'
18670         ;;
18671       esac
18672       ;;
18673
18674     *)
18675       lt_prog_compiler_pic_GCJ='-fPIC'
18676       ;;
18677     esac
18678   else
18679     # PORTME Check for flag to pass linker flags through the system compiler.
18680     case $host_os in
18681     aix*)
18682       lt_prog_compiler_wl_GCJ='-Wl,'
18683       if test "$host_cpu" = ia64; then
18684         # AIX 5 now supports IA64 processor
18685         lt_prog_compiler_static_GCJ='-Bstatic'
18686       else
18687         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18688       fi
18689       ;;
18690       darwin*)
18691         # PIC is the default on this platform
18692         # Common symbols not allowed in MH_DYLIB files
18693        case $cc_basename in
18694          xlc*)
18695          lt_prog_compiler_pic_GCJ='-qnocommon'
18696          lt_prog_compiler_wl_GCJ='-Wl,'
18697          ;;
18698        esac
18699        ;;
18700
18701     mingw* | cygwin* | pw32* | os2*)
18702       # This hack is so that the source file can tell whether it is being
18703       # built for inclusion in a dll (and should export symbols for example).
18704
18705       ;;
18706
18707     hpux9* | hpux10* | hpux11*)
18708       lt_prog_compiler_wl_GCJ='-Wl,'
18709       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18710       # not for PA HP-UX.
18711       case $host_cpu in
18712       hppa*64*|ia64*)
18713         # +Z the default
18714         ;;
18715       *)
18716         lt_prog_compiler_pic_GCJ='+Z'
18717         ;;
18718       esac
18719       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18720       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18721       ;;
18722
18723     irix5* | irix6* | nonstopux*)
18724       lt_prog_compiler_wl_GCJ='-Wl,'
18725       # PIC (with -KPIC) is the default.
18726       lt_prog_compiler_static_GCJ='-non_shared'
18727       ;;
18728
18729     newsos6)
18730       lt_prog_compiler_pic_GCJ='-KPIC'
18731       lt_prog_compiler_static_GCJ='-Bstatic'
18732       ;;
18733
18734     linux* | k*bsd*-gnu)
18735       case $cc_basename in
18736       icc* | ecc*)
18737         lt_prog_compiler_wl_GCJ='-Wl,'
18738         lt_prog_compiler_pic_GCJ='-KPIC'
18739         lt_prog_compiler_static_GCJ='-static'
18740         ;;
18741       pgcc* | pgf77* | pgf90* | pgf95*)
18742         # Portland Group compilers (*not* the Pentium gcc compiler,
18743         # which looks to be a dead project)
18744         lt_prog_compiler_wl_GCJ='-Wl,'
18745         lt_prog_compiler_pic_GCJ='-fpic'
18746         lt_prog_compiler_static_GCJ='-Bstatic'
18747         ;;
18748       ccc*)
18749         lt_prog_compiler_wl_GCJ='-Wl,'
18750         # All Alpha code is PIC.
18751         lt_prog_compiler_static_GCJ='-non_shared'
18752         ;;
18753       *)
18754         case `$CC -V 2>&1 | sed 5q` in
18755         *Sun\ C*)
18756           # Sun C 5.9
18757           lt_prog_compiler_pic_GCJ='-KPIC'
18758           lt_prog_compiler_static_GCJ='-Bstatic'
18759           lt_prog_compiler_wl_GCJ='-Wl,'
18760           ;;
18761         *Sun\ F*)
18762           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18763           lt_prog_compiler_pic_GCJ='-KPIC'
18764           lt_prog_compiler_static_GCJ='-Bstatic'
18765           lt_prog_compiler_wl_GCJ=''
18766           ;;
18767         esac
18768         ;;
18769       esac
18770       ;;
18771
18772     osf3* | osf4* | osf5*)
18773       lt_prog_compiler_wl_GCJ='-Wl,'
18774       # All OSF/1 code is PIC.
18775       lt_prog_compiler_static_GCJ='-non_shared'
18776       ;;
18777
18778     rdos*)
18779       lt_prog_compiler_static_GCJ='-non_shared'
18780       ;;
18781
18782     solaris*)
18783       lt_prog_compiler_pic_GCJ='-KPIC'
18784       lt_prog_compiler_static_GCJ='-Bstatic'
18785       case $cc_basename in
18786       f77* | f90* | f95*)
18787         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18788       *)
18789         lt_prog_compiler_wl_GCJ='-Wl,';;
18790       esac
18791       ;;
18792
18793     sunos4*)
18794       lt_prog_compiler_wl_GCJ='-Qoption ld '
18795       lt_prog_compiler_pic_GCJ='-PIC'
18796       lt_prog_compiler_static_GCJ='-Bstatic'
18797       ;;
18798
18799     sysv4 | sysv4.2uw2* | sysv4.3*)
18800       lt_prog_compiler_wl_GCJ='-Wl,'
18801       lt_prog_compiler_pic_GCJ='-KPIC'
18802       lt_prog_compiler_static_GCJ='-Bstatic'
18803       ;;
18804
18805     sysv4*MP*)
18806       if test -d /usr/nec ;then
18807         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18808         lt_prog_compiler_static_GCJ='-Bstatic'
18809       fi
18810       ;;
18811
18812     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18813       lt_prog_compiler_wl_GCJ='-Wl,'
18814       lt_prog_compiler_pic_GCJ='-KPIC'
18815       lt_prog_compiler_static_GCJ='-Bstatic'
18816       ;;
18817
18818     unicos*)
18819       lt_prog_compiler_wl_GCJ='-Wl,'
18820       lt_prog_compiler_can_build_shared_GCJ=no
18821       ;;
18822
18823     uts4*)
18824       lt_prog_compiler_pic_GCJ='-pic'
18825       lt_prog_compiler_static_GCJ='-Bstatic'
18826       ;;
18827
18828     *)
18829       lt_prog_compiler_can_build_shared_GCJ=no
18830       ;;
18831     esac
18832   fi
18833
18834 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18835 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18836
18837 #
18838 # Check to make sure the PIC flag actually works.
18839 #
18840 if test -n "$lt_prog_compiler_pic_GCJ"; then
18841
18842 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18843 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18844 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18845   $as_echo_n "(cached) " >&6
18846 else
18847   lt_cv_prog_compiler_pic_works_GCJ=no
18848   ac_outfile=conftest.$ac_objext
18849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18850    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18851    # Insert the option either (1) after the last *FLAGS variable, or
18852    # (2) before a word containing "conftest.", or (3) at the end.
18853    # Note that $ac_compile itself does not contain backslashes and begins
18854    # with a dollar sign (not a hyphen), so the echo should work correctly.
18855    # The option is referenced via a variable to avoid confusing sed.
18856    lt_compile=`echo "$ac_compile" | $SED \
18857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18859    -e 's:$: $lt_compiler_flag:'`
18860    (eval echo "\"\$as_me:18860: $lt_compile\"" >&5)
18861    (eval "$lt_compile" 2>conftest.err)
18862    ac_status=$?
18863    cat conftest.err >&5
18864    echo "$as_me:18864: \$? = $ac_status" >&5
18865    if (exit $ac_status) && test -s "$ac_outfile"; then
18866      # The compiler can only warn and ignore the option if not recognized
18867      # So say no if there are warnings other than the usual output.
18868      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18869      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18870      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18871        lt_cv_prog_compiler_pic_works_GCJ=yes
18872      fi
18873    fi
18874    $rm conftest*
18875
18876 fi
18877 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18878 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18879
18880 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18881     case $lt_prog_compiler_pic_GCJ in
18882      "" | " "*) ;;
18883      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18884      esac
18885 else
18886     lt_prog_compiler_pic_GCJ=
18887      lt_prog_compiler_can_build_shared_GCJ=no
18888 fi
18889
18890 fi
18891 case $host_os in
18892   # For platforms which do not support PIC, -DPIC is meaningless:
18893   *djgpp*)
18894     lt_prog_compiler_pic_GCJ=
18895     ;;
18896   *)
18897     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18898     ;;
18899 esac
18900
18901 #
18902 # Check to make sure the static flag actually works.
18903 #
18904 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18905 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18906 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18907 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18908   $as_echo_n "(cached) " >&6
18909 else
18910   lt_cv_prog_compiler_static_works_GCJ=no
18911    save_LDFLAGS="$LDFLAGS"
18912    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18913    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18914    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18915      # The linker can only warn and ignore the option if not recognized
18916      # So say no if there are warnings
18917      if test -s conftest.err; then
18918        # Append any errors to the config.log.
18919        cat conftest.err 1>&5
18920        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18921        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18922        if diff conftest.exp conftest.er2 >/dev/null; then
18923          lt_cv_prog_compiler_static_works_GCJ=yes
18924        fi
18925      else
18926        lt_cv_prog_compiler_static_works_GCJ=yes
18927      fi
18928    fi
18929    $rm -r conftest*
18930    LDFLAGS="$save_LDFLAGS"
18931
18932 fi
18933 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18934 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18935
18936 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18937     :
18938 else
18939     lt_prog_compiler_static_GCJ=
18940 fi
18941
18942
18943 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18945 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18946   $as_echo_n "(cached) " >&6
18947 else
18948   lt_cv_prog_compiler_c_o_GCJ=no
18949    $rm -r conftest 2>/dev/null
18950    mkdir conftest
18951    cd conftest
18952    mkdir out
18953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18954
18955    lt_compiler_flag="-o out/conftest2.$ac_objext"
18956    # Insert the option either (1) after the last *FLAGS variable, or
18957    # (2) before a word containing "conftest.", or (3) at the end.
18958    # Note that $ac_compile itself does not contain backslashes and begins
18959    # with a dollar sign (not a hyphen), so the echo should work correctly.
18960    lt_compile=`echo "$ac_compile" | $SED \
18961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18963    -e 's:$: $lt_compiler_flag:'`
18964    (eval echo "\"\$as_me:18964: $lt_compile\"" >&5)
18965    (eval "$lt_compile" 2>out/conftest.err)
18966    ac_status=$?
18967    cat out/conftest.err >&5
18968    echo "$as_me:18968: \$? = $ac_status" >&5
18969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18970    then
18971      # The compiler can only warn and ignore the option if not recognized
18972      # So say no if there are warnings
18973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18976        lt_cv_prog_compiler_c_o_GCJ=yes
18977      fi
18978    fi
18979    chmod u+w . 2>&5
18980    $rm conftest*
18981    # SGI C++ compiler will create directory out/ii_files/ for
18982    # template instantiation
18983    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18984    $rm out/* && rmdir out
18985    cd ..
18986    rmdir conftest
18987    $rm conftest*
18988
18989 fi
18990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18991 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18992
18993
18994 hard_links="nottested"
18995 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18996   # do not overwrite the value of need_locks provided by the user
18997   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18998 $as_echo_n "checking if we can lock with hard links... " >&6; }
18999   hard_links=yes
19000   $rm conftest*
19001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002   touch conftest.a
19003   ln conftest.a conftest.b 2>&5 || hard_links=no
19004   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19005   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19006 $as_echo "$hard_links" >&6; }
19007   if test "$hard_links" = no; then
19008     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19009 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19010     need_locks=warn
19011   fi
19012 else
19013   need_locks=no
19014 fi
19015
19016 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19017 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19018
19019   runpath_var=
19020   allow_undefined_flag_GCJ=
19021   enable_shared_with_static_runtimes_GCJ=no
19022   archive_cmds_GCJ=
19023   archive_expsym_cmds_GCJ=
19024   old_archive_From_new_cmds_GCJ=
19025   old_archive_from_expsyms_cmds_GCJ=
19026   export_dynamic_flag_spec_GCJ=
19027   whole_archive_flag_spec_GCJ=
19028   thread_safe_flag_spec_GCJ=
19029   hardcode_libdir_flag_spec_GCJ=
19030   hardcode_libdir_flag_spec_ld_GCJ=
19031   hardcode_libdir_separator_GCJ=
19032   hardcode_direct_GCJ=no
19033   hardcode_minus_L_GCJ=no
19034   hardcode_shlibpath_var_GCJ=unsupported
19035   link_all_deplibs_GCJ=unknown
19036   hardcode_automatic_GCJ=no
19037   module_cmds_GCJ=
19038   module_expsym_cmds_GCJ=
19039   always_export_symbols_GCJ=no
19040   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19041   # include_expsyms should be a list of space-separated symbols to be *always*
19042   # included in the symbol list
19043   include_expsyms_GCJ=
19044   # exclude_expsyms can be an extended regexp of symbols to exclude
19045   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19046   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19047   # as well as any symbol that contains `d'.
19048   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19049   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19050   # platforms (ab)use it in PIC code, but their linkers get confused if
19051   # the symbol is explicitly referenced.  Since portable code cannot
19052   # rely on this symbol name, it's probably fine to never include it in
19053   # preloaded symbol tables.
19054   # Exclude shared library initialization/finalization symbols.
19055   extract_expsyms_cmds=
19056   # Just being paranoid about ensuring that cc_basename is set.
19057   for cc_temp in $compiler""; do
19058   case $cc_temp in
19059     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19060     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19061     \-*) ;;
19062     *) break;;
19063   esac
19064 done
19065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19066
19067   case $host_os in
19068   cygwin* | mingw* | pw32*)
19069     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19070     # When not using gcc, we currently assume that we are using
19071     # Microsoft Visual C++.
19072     if test "$GCC" != yes; then
19073       with_gnu_ld=no
19074     fi
19075     ;;
19076   interix*)
19077     # we just hope/assume this is gcc and not c89 (= MSVC++)
19078     with_gnu_ld=yes
19079     ;;
19080   openbsd*)
19081     with_gnu_ld=no
19082     ;;
19083   esac
19084
19085   ld_shlibs_GCJ=yes
19086   if test "$with_gnu_ld" = yes; then
19087     # If archive_cmds runs LD, not CC, wlarc should be empty
19088     wlarc='${wl}'
19089
19090     # Set some defaults for GNU ld with shared library support. These
19091     # are reset later if shared libraries are not supported. Putting them
19092     # here allows them to be overridden if necessary.
19093     runpath_var=LD_RUN_PATH
19094     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19095     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19096     # ancient GNU ld didn't support --whole-archive et. al.
19097     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19098         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19099       else
19100         whole_archive_flag_spec_GCJ=
19101     fi
19102     supports_anon_versioning=no
19103     case `$LD -v 2>/dev/null` in
19104       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19105       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19106       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19107       *\ 2.11.*) ;; # other 2.11 versions
19108       *) supports_anon_versioning=yes ;;
19109     esac
19110
19111     # See if GNU ld supports shared libraries.
19112     case $host_os in
19113     aix[3-9]*)
19114       # On AIX/PPC, the GNU linker is very broken
19115       if test "$host_cpu" != ia64; then
19116         ld_shlibs_GCJ=no
19117         cat <<EOF 1>&2
19118
19119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19120 *** to be unable to reliably create shared libraries on AIX.
19121 *** Therefore, libtool is disabling shared libraries support.  If you
19122 *** really care for shared libraries, you may want to modify your PATH
19123 *** so that a non-GNU linker is found, and then restart.
19124
19125 EOF
19126       fi
19127       ;;
19128
19129     amigaos*)
19130       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)'
19131       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19132       hardcode_minus_L_GCJ=yes
19133
19134       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19135       # that the semantics of dynamic libraries on AmigaOS, at least up
19136       # to version 4, is to share data among multiple programs linked
19137       # with the same dynamic library.  Since this doesn't match the
19138       # behavior of shared libraries on other platforms, we can't use
19139       # them.
19140       ld_shlibs_GCJ=no
19141       ;;
19142
19143     beos*)
19144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19145         allow_undefined_flag_GCJ=unsupported
19146         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19147         # support --undefined.  This deserves some investigation.  FIXME
19148         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149       else
19150         ld_shlibs_GCJ=no
19151       fi
19152       ;;
19153
19154     cygwin* | mingw* | pw32*)
19155       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19156       # as there is no search path for DLLs.
19157       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19158       allow_undefined_flag_GCJ=unsupported
19159       always_export_symbols_GCJ=no
19160       enable_shared_with_static_runtimes_GCJ=yes
19161       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19162
19163       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19164         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19165         # If the export-symbols file already is a .def file (1st line
19166         # is EXPORTS), use it as is; otherwise, prepend...
19167         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19168           cp $export_symbols $output_objdir/$soname.def;
19169         else
19170           echo EXPORTS > $output_objdir/$soname.def;
19171           cat $export_symbols >> $output_objdir/$soname.def;
19172         fi~
19173         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19174       else
19175         ld_shlibs_GCJ=no
19176       fi
19177       ;;
19178
19179     interix[3-9]*)
19180       hardcode_direct_GCJ=no
19181       hardcode_shlibpath_var_GCJ=no
19182       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19183       export_dynamic_flag_spec_GCJ='${wl}-E'
19184       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19185       # Instead, shared libraries are loaded at an image base (0x10000000 by
19186       # default) and relocated if they conflict, which is a slow very memory
19187       # consuming and fragmenting process.  To avoid this, we pick a random,
19188       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19189       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19190       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'
19191       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'
19192       ;;
19193
19194     gnu* | linux* | k*bsd*-gnu)
19195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19196         tmp_addflag=
19197         case $cc_basename,$host_cpu in
19198         pgcc*)                          # Portland Group C compiler
19199           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'
19200           tmp_addflag=' $pic_flag'
19201           ;;
19202         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19203           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'
19204           tmp_addflag=' $pic_flag -Mnomain' ;;
19205         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19206           tmp_addflag=' -i_dynamic' ;;
19207         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19208           tmp_addflag=' -i_dynamic -nofor_main' ;;
19209         ifc* | ifort*)                  # Intel Fortran compiler
19210           tmp_addflag=' -nofor_main' ;;
19211         esac
19212         case `$CC -V 2>&1 | sed 5q` in
19213         *Sun\ C*)                       # Sun C 5.9
19214           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'
19215           tmp_sharedflag='-G' ;;
19216         *Sun\ F*)                       # Sun Fortran 8.3
19217           tmp_sharedflag='-G' ;;
19218         *)
19219           tmp_sharedflag='-shared' ;;
19220         esac
19221         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222
19223         if test $supports_anon_versioning = yes; then
19224           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19226   $echo "local: *; };" >> $output_objdir/$libname.ver~
19227           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19228         fi
19229       else
19230         ld_shlibs_GCJ=no
19231       fi
19232       ;;
19233
19234     netbsd*)
19235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19236         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19237         wlarc=
19238       else
19239         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19240         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19241       fi
19242       ;;
19243
19244     solaris*)
19245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19246         ld_shlibs_GCJ=no
19247         cat <<EOF 1>&2
19248
19249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19250 *** create shared libraries on Solaris systems.  Therefore, libtool
19251 *** is disabling shared libraries support.  We urge you to upgrade GNU
19252 *** binutils to release 2.9.1 or newer.  Another option is to modify
19253 *** your PATH or compiler configuration so that the native linker is
19254 *** used, and then restart.
19255
19256 EOF
19257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19258         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19260       else
19261         ld_shlibs_GCJ=no
19262       fi
19263       ;;
19264
19265     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19266       case `$LD -v 2>&1` in
19267         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19268         ld_shlibs_GCJ=no
19269         cat <<_LT_EOF 1>&2
19270
19271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19272 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19273 *** is disabling shared libraries support.  We urge you to upgrade GNU
19274 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19275 *** your PATH or compiler configuration so that the native linker is
19276 *** used, and then restart.
19277
19278 _LT_EOF
19279         ;;
19280         *)
19281           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19282             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19283             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19284             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19285           else
19286             ld_shlibs_GCJ=no
19287           fi
19288         ;;
19289       esac
19290       ;;
19291
19292     sunos4*)
19293       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19294       wlarc=
19295       hardcode_direct_GCJ=yes
19296       hardcode_shlibpath_var_GCJ=no
19297       ;;
19298
19299     *)
19300       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19301         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19302         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19303       else
19304         ld_shlibs_GCJ=no
19305       fi
19306       ;;
19307     esac
19308
19309     if test "$ld_shlibs_GCJ" = no; then
19310       runpath_var=
19311       hardcode_libdir_flag_spec_GCJ=
19312       export_dynamic_flag_spec_GCJ=
19313       whole_archive_flag_spec_GCJ=
19314     fi
19315   else
19316     # PORTME fill in a description of your system's linker (not GNU ld)
19317     case $host_os in
19318     aix3*)
19319       allow_undefined_flag_GCJ=unsupported
19320       always_export_symbols_GCJ=yes
19321       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'
19322       # Note: this linker hardcodes the directories in LIBPATH if there
19323       # are no directories specified by -L.
19324       hardcode_minus_L_GCJ=yes
19325       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19326         # Neither direct hardcoding nor static linking is supported with a
19327         # broken collect2.
19328         hardcode_direct_GCJ=unsupported
19329       fi
19330       ;;
19331
19332     aix[4-9]*)
19333       if test "$host_cpu" = ia64; then
19334         # On IA64, the linker does run time linking by default, so we don't
19335         # have to do anything special.
19336         aix_use_runtimelinking=no
19337         exp_sym_flag='-Bexport'
19338         no_entry_flag=""
19339       else
19340         # If we're using GNU nm, then we don't want the "-C" option.
19341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19342         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19343           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'
19344         else
19345           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'
19346         fi
19347         aix_use_runtimelinking=no
19348
19349         # Test if we are trying to use run time linking or normal
19350         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19351         # need to do runtime linking.
19352         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19353           for ld_flag in $LDFLAGS; do
19354           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19355             aix_use_runtimelinking=yes
19356             break
19357           fi
19358           done
19359           ;;
19360         esac
19361
19362         exp_sym_flag='-bexport'
19363         no_entry_flag='-bnoentry'
19364       fi
19365
19366       # When large executables or shared objects are built, AIX ld can
19367       # have problems creating the table of contents.  If linking a library
19368       # or program results in "error TOC overflow" add -mminimal-toc to
19369       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19370       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19371
19372       archive_cmds_GCJ=''
19373       hardcode_direct_GCJ=yes
19374       hardcode_libdir_separator_GCJ=':'
19375       link_all_deplibs_GCJ=yes
19376
19377       if test "$GCC" = yes; then
19378         case $host_os in aix4.[012]|aix4.[012].*)
19379         # We only want to do this on AIX 4.2 and lower, the check
19380         # below for broken collect2 doesn't work under 4.3+
19381           collect2name=`${CC} -print-prog-name=collect2`
19382           if test -f "$collect2name" && \
19383            strings "$collect2name" | grep resolve_lib_name >/dev/null
19384           then
19385           # We have reworked collect2
19386           :
19387           else
19388           # We have old collect2
19389           hardcode_direct_GCJ=unsupported
19390           # It fails to find uninstalled libraries when the uninstalled
19391           # path is not listed in the libpath.  Setting hardcode_minus_L
19392           # to unsupported forces relinking
19393           hardcode_minus_L_GCJ=yes
19394           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19395           hardcode_libdir_separator_GCJ=
19396           fi
19397           ;;
19398         esac
19399         shared_flag='-shared'
19400         if test "$aix_use_runtimelinking" = yes; then
19401           shared_flag="$shared_flag "'${wl}-G'
19402         fi
19403       else
19404         # not using gcc
19405         if test "$host_cpu" = ia64; then
19406         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19407         # chokes on -Wl,-G. The following line is correct:
19408           shared_flag='-G'
19409         else
19410           if test "$aix_use_runtimelinking" = yes; then
19411             shared_flag='${wl}-G'
19412           else
19413             shared_flag='${wl}-bM:SRE'
19414           fi
19415         fi
19416       fi
19417
19418       # It seems that -bexpall does not export symbols beginning with
19419       # underscore (_), so it is better to generate a list of symbols to export.
19420       always_export_symbols_GCJ=yes
19421       if test "$aix_use_runtimelinking" = yes; then
19422         # Warning - without using the other runtime loading flags (-brtl),
19423         # -berok will link without error, but may produce a broken library.
19424         allow_undefined_flag_GCJ='-berok'
19425        # Determine the default libpath from the value encoded in an empty executable.
19426        cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 int
19434 main ()
19435 {
19436
19437   ;
19438   return 0;
19439 }
19440 _ACEOF
19441 rm -f conftest.$ac_objext conftest$ac_exeext
19442 if { (ac_try="$ac_link"
19443 case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19448 $as_echo "$ac_try_echo") >&5
19449   (eval "$ac_link") 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } && {
19456          test -z "$ac_c_werror_flag" ||
19457          test ! -s conftest.err
19458        } && test -s conftest$ac_exeext && {
19459          test "$cross_compiling" = yes ||
19460          $as_test_x conftest$ac_exeext
19461        }; then
19462
19463 lt_aix_libpath_sed='
19464     /Import File Strings/,/^$/ {
19465         /^0/ {
19466             s/^0  *\(.*\)$/\1/
19467             p
19468         }
19469     }'
19470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19471 # Check for a 64-bit object if we didn't find anything.
19472 if test -z "$aix_libpath"; then
19473   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19474 fi
19475 else
19476   $as_echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479
19480 fi
19481
19482 rm -rf conftest.dSYM
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484       conftest$ac_exeext conftest.$ac_ext
19485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19486
19487        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19488         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"
19489        else
19490         if test "$host_cpu" = ia64; then
19491           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19492           allow_undefined_flag_GCJ="-z nodefs"
19493           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"
19494         else
19495          # Determine the default libpath from the value encoded in an empty executable.
19496          cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502
19503 int
19504 main ()
19505 {
19506
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519   (eval "$ac_link") 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } && {
19526          test -z "$ac_c_werror_flag" ||
19527          test ! -s conftest.err
19528        } && test -s conftest$ac_exeext && {
19529          test "$cross_compiling" = yes ||
19530          $as_test_x conftest$ac_exeext
19531        }; then
19532
19533 lt_aix_libpath_sed='
19534     /Import File Strings/,/^$/ {
19535         /^0/ {
19536             s/^0  *\(.*\)$/\1/
19537             p
19538         }
19539     }'
19540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19541 # Check for a 64-bit object if we didn't find anything.
19542 if test -z "$aix_libpath"; then
19543   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19544 fi
19545 else
19546   $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549
19550 fi
19551
19552 rm -rf conftest.dSYM
19553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19554       conftest$ac_exeext conftest.$ac_ext
19555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19556
19557          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19558           # Warning - without using the other run time loading flags,
19559           # -berok will link without error, but may produce a broken library.
19560           no_undefined_flag_GCJ=' ${wl}-bernotok'
19561           allow_undefined_flag_GCJ=' ${wl}-berok'
19562           # Exported symbols can be pulled into shared objects from archives
19563           whole_archive_flag_spec_GCJ='$convenience'
19564           archive_cmds_need_lc_GCJ=yes
19565           # This is similar to how AIX traditionally builds its shared libraries.
19566           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'
19567         fi
19568       fi
19569       ;;
19570
19571     amigaos*)
19572       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)'
19573       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19574       hardcode_minus_L_GCJ=yes
19575       # see comment about different semantics on the GNU ld section
19576       ld_shlibs_GCJ=no
19577       ;;
19578
19579     bsdi[45]*)
19580       export_dynamic_flag_spec_GCJ=-rdynamic
19581       ;;
19582
19583     cygwin* | mingw* | pw32*)
19584       # When not using gcc, we currently assume that we are using
19585       # Microsoft Visual C++.
19586       # hardcode_libdir_flag_spec is actually meaningless, as there is
19587       # no search path for DLLs.
19588       hardcode_libdir_flag_spec_GCJ=' '
19589       allow_undefined_flag_GCJ=unsupported
19590       # Tell ltmain to make .lib files, not .a files.
19591       libext=lib
19592       # Tell ltmain to make .dll files, not .so files.
19593       shrext_cmds=".dll"
19594       # FIXME: Setting linknames here is a bad hack.
19595       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19596       # The linker will automatically build a .lib file if we build a DLL.
19597       old_archive_From_new_cmds_GCJ='true'
19598       # FIXME: Should let the user specify the lib program.
19599       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19600       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19601       enable_shared_with_static_runtimes_GCJ=yes
19602       ;;
19603
19604     darwin* | rhapsody*)
19605       case $host_os in
19606         rhapsody* | darwin1.[012])
19607          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19608          ;;
19609        *) # Darwin 1.3 on
19610          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19611            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19612          else
19613            case ${MACOSX_DEPLOYMENT_TARGET} in
19614              10.[012])
19615                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19616                ;;
19617              10.*)
19618                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19619                ;;
19620            esac
19621          fi
19622          ;;
19623       esac
19624       archive_cmds_need_lc_GCJ=no
19625       hardcode_direct_GCJ=no
19626       hardcode_automatic_GCJ=yes
19627       hardcode_shlibpath_var_GCJ=unsupported
19628       whole_archive_flag_spec_GCJ=''
19629       link_all_deplibs_GCJ=yes
19630     if test "$GCC" = yes ; then
19631         output_verbose_link_cmd='echo'
19632         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}"
19633         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19634         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}"
19635         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}"
19636     else
19637       case $cc_basename in
19638         xlc*)
19639          output_verbose_link_cmd='echo'
19640          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19641          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19642           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19643          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}'
19644           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}'
19645           ;;
19646        *)
19647          ld_shlibs_GCJ=no
19648           ;;
19649       esac
19650     fi
19651       ;;
19652
19653     dgux*)
19654       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19655       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19656       hardcode_shlibpath_var_GCJ=no
19657       ;;
19658
19659     freebsd1*)
19660       ld_shlibs_GCJ=no
19661       ;;
19662
19663     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19664     # support.  Future versions do this automatically, but an explicit c++rt0.o
19665     # does not break anything, and helps significantly (at the cost of a little
19666     # extra space).
19667     freebsd2.2*)
19668       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19669       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19670       hardcode_direct_GCJ=yes
19671       hardcode_shlibpath_var_GCJ=no
19672       ;;
19673
19674     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19675     freebsd2*)
19676       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19677       hardcode_direct_GCJ=yes
19678       hardcode_minus_L_GCJ=yes
19679       hardcode_shlibpath_var_GCJ=no
19680       ;;
19681
19682     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19683     freebsd* | dragonfly*)
19684       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19685       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19686       hardcode_direct_GCJ=yes
19687       hardcode_shlibpath_var_GCJ=no
19688       ;;
19689
19690     hpux9*)
19691       if test "$GCC" = yes; then
19692         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'
19693       else
19694         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'
19695       fi
19696       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19697       hardcode_libdir_separator_GCJ=:
19698       hardcode_direct_GCJ=yes
19699
19700       # hardcode_minus_L: Not really in the search PATH,
19701       # but as the default location of the library.
19702       hardcode_minus_L_GCJ=yes
19703       export_dynamic_flag_spec_GCJ='${wl}-E'
19704       ;;
19705
19706     hpux10*)
19707       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19708         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19709       else
19710         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19711       fi
19712       if test "$with_gnu_ld" = no; then
19713         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19714         hardcode_libdir_separator_GCJ=:
19715
19716         hardcode_direct_GCJ=yes
19717         export_dynamic_flag_spec_GCJ='${wl}-E'
19718
19719         # hardcode_minus_L: Not really in the search PATH,
19720         # but as the default location of the library.
19721         hardcode_minus_L_GCJ=yes
19722       fi
19723       ;;
19724
19725     hpux11*)
19726       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19727         case $host_cpu in
19728         hppa*64*)
19729           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19730           ;;
19731         ia64*)
19732           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19733           ;;
19734         *)
19735           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19736           ;;
19737         esac
19738       else
19739         case $host_cpu in
19740         hppa*64*)
19741           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19742           ;;
19743         ia64*)
19744           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19745           ;;
19746         *)
19747           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19748           ;;
19749         esac
19750       fi
19751       if test "$with_gnu_ld" = no; then
19752         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19753         hardcode_libdir_separator_GCJ=:
19754
19755         case $host_cpu in
19756         hppa*64*|ia64*)
19757           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19758           hardcode_direct_GCJ=no
19759           hardcode_shlibpath_var_GCJ=no
19760           ;;
19761         *)
19762           hardcode_direct_GCJ=yes
19763           export_dynamic_flag_spec_GCJ='${wl}-E'
19764
19765           # hardcode_minus_L: Not really in the search PATH,
19766           # but as the default location of the library.
19767           hardcode_minus_L_GCJ=yes
19768           ;;
19769         esac
19770       fi
19771       ;;
19772
19773     irix5* | irix6* | nonstopux*)
19774       if test "$GCC" = yes; then
19775         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'
19776       else
19777         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'
19778         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19779       fi
19780       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19781       hardcode_libdir_separator_GCJ=:
19782       link_all_deplibs_GCJ=yes
19783       ;;
19784
19785     netbsd*)
19786       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19787         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19788       else
19789         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19790       fi
19791       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19792       hardcode_direct_GCJ=yes
19793       hardcode_shlibpath_var_GCJ=no
19794       ;;
19795
19796     newsos6)
19797       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19798       hardcode_direct_GCJ=yes
19799       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19800       hardcode_libdir_separator_GCJ=:
19801       hardcode_shlibpath_var_GCJ=no
19802       ;;
19803
19804     openbsd*)
19805       if test -f /usr/libexec/ld.so; then
19806         hardcode_direct_GCJ=yes
19807         hardcode_shlibpath_var_GCJ=no
19808         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19809           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19810           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19811           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19812           export_dynamic_flag_spec_GCJ='${wl}-E'
19813         else
19814           case $host_os in
19815            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19816              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19817              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19818              ;;
19819            *)
19820              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19821              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19822              ;;
19823           esac
19824         fi
19825       else
19826         ld_shlibs_GCJ=no
19827       fi
19828       ;;
19829
19830     os2*)
19831       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19832       hardcode_minus_L_GCJ=yes
19833       allow_undefined_flag_GCJ=unsupported
19834       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'
19835       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19836       ;;
19837
19838     osf3*)
19839       if test "$GCC" = yes; then
19840         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19841         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'
19842       else
19843         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19844         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'
19845       fi
19846       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19847       hardcode_libdir_separator_GCJ=:
19848       ;;
19849
19850     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19851       if test "$GCC" = yes; then
19852         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19853         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'
19854         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19855       else
19856         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19857         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'
19858         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~
19859         $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'
19860
19861         # Both c and cxx compiler support -rpath directly
19862         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19863       fi
19864       hardcode_libdir_separator_GCJ=:
19865       ;;
19866
19867     solaris*)
19868       no_undefined_flag_GCJ=' -z text'
19869       if test "$GCC" = yes; then
19870         wlarc='${wl}'
19871         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19872         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19873           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19874       else
19875         wlarc=''
19876         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19877         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19878         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19879       fi
19880       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19881       hardcode_shlibpath_var_GCJ=no
19882       case $host_os in
19883       solaris2.[0-5] | solaris2.[0-5].*) ;;
19884       *)
19885         # The compiler driver will combine and reorder linker options,
19886         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19887         # but is careful enough not to reorder.
19888         # Supported since Solaris 2.6 (maybe 2.5.1?)
19889         if test "$GCC" = yes; then
19890           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19891         else
19892           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19893         fi
19894         ;;
19895       esac
19896       link_all_deplibs_GCJ=yes
19897       ;;
19898
19899     sunos4*)
19900       if test "x$host_vendor" = xsequent; then
19901         # Use $CC to link under sequent, because it throws in some extra .o
19902         # files that make .init and .fini sections work.
19903         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19904       else
19905         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19906       fi
19907       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19908       hardcode_direct_GCJ=yes
19909       hardcode_minus_L_GCJ=yes
19910       hardcode_shlibpath_var_GCJ=no
19911       ;;
19912
19913     sysv4)
19914       case $host_vendor in
19915         sni)
19916           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19917           hardcode_direct_GCJ=yes # is this really true???
19918         ;;
19919         siemens)
19920           ## LD is ld it makes a PLAMLIB
19921           ## CC just makes a GrossModule.
19922           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19923           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19924           hardcode_direct_GCJ=no
19925         ;;
19926         motorola)
19927           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19928           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19929         ;;
19930       esac
19931       runpath_var='LD_RUN_PATH'
19932       hardcode_shlibpath_var_GCJ=no
19933       ;;
19934
19935     sysv4.3*)
19936       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19937       hardcode_shlibpath_var_GCJ=no
19938       export_dynamic_flag_spec_GCJ='-Bexport'
19939       ;;
19940
19941     sysv4*MP*)
19942       if test -d /usr/nec; then
19943         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19944         hardcode_shlibpath_var_GCJ=no
19945         runpath_var=LD_RUN_PATH
19946         hardcode_runpath_var=yes
19947         ld_shlibs_GCJ=yes
19948       fi
19949       ;;
19950
19951     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19952       no_undefined_flag_GCJ='${wl}-z,text'
19953       archive_cmds_need_lc_GCJ=no
19954       hardcode_shlibpath_var_GCJ=no
19955       runpath_var='LD_RUN_PATH'
19956
19957       if test "$GCC" = yes; then
19958         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19959         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19960       else
19961         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19962         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19963       fi
19964       ;;
19965
19966     sysv5* | sco3.2v5* | sco5v6*)
19967       # Note: We can NOT use -z defs as we might desire, because we do not
19968       # link with -lc, and that would cause any symbols used from libc to
19969       # always be unresolved, which means just about no library would
19970       # ever link correctly.  If we're not using GNU ld we use -z text
19971       # though, which does catch some bad symbols but isn't as heavy-handed
19972       # as -z defs.
19973       no_undefined_flag_GCJ='${wl}-z,text'
19974       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19975       archive_cmds_need_lc_GCJ=no
19976       hardcode_shlibpath_var_GCJ=no
19977       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19978       hardcode_libdir_separator_GCJ=':'
19979       link_all_deplibs_GCJ=yes
19980       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19981       runpath_var='LD_RUN_PATH'
19982
19983       if test "$GCC" = yes; then
19984         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19985         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19986       else
19987         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19988         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19989       fi
19990       ;;
19991
19992     uts4*)
19993       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19995       hardcode_shlibpath_var_GCJ=no
19996       ;;
19997
19998     *)
19999       ld_shlibs_GCJ=no
20000       ;;
20001     esac
20002   fi
20003
20004 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20005 $as_echo "$ld_shlibs_GCJ" >&6; }
20006 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20007
20008 #
20009 # Do we need to explicitly link libc?
20010 #
20011 case "x$archive_cmds_need_lc_GCJ" in
20012 x|xyes)
20013   # Assume -lc should be added
20014   archive_cmds_need_lc_GCJ=yes
20015
20016   if test "$enable_shared" = yes && test "$GCC" = yes; then
20017     case $archive_cmds_GCJ in
20018     *'~'*)
20019       # FIXME: we may have to deal with multi-command sequences.
20020       ;;
20021     '$CC '*)
20022       # Test whether the compiler implicitly links with -lc since on some
20023       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20024       # to ld, don't add -lc before -lgcc.
20025       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20026 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20027       $rm conftest*
20028       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20029
20030       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031   (eval $ac_compile) 2>&5
20032   ac_status=$?
20033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } 2>conftest.err; then
20035         soname=conftest
20036         lib=conftest
20037         libobjs=conftest.$ac_objext
20038         deplibs=
20039         wl=$lt_prog_compiler_wl_GCJ
20040         pic_flag=$lt_prog_compiler_pic_GCJ
20041         compiler_flags=-v
20042         linker_flags=-v
20043         verstring=
20044         output_objdir=.
20045         libname=conftest
20046         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20047         allow_undefined_flag_GCJ=
20048         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20049   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20050   ac_status=$?
20051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }
20053         then
20054           archive_cmds_need_lc_GCJ=no
20055         else
20056           archive_cmds_need_lc_GCJ=yes
20057         fi
20058         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20059       else
20060         cat conftest.err 1>&5
20061       fi
20062       $rm conftest*
20063       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20064 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20065       ;;
20066     esac
20067   fi
20068   ;;
20069 esac
20070
20071 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20072 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20073 library_names_spec=
20074 libname_spec='lib$name'
20075 soname_spec=
20076 shrext_cmds=".so"
20077 postinstall_cmds=
20078 postuninstall_cmds=
20079 finish_cmds=
20080 finish_eval=
20081 shlibpath_var=
20082 shlibpath_overrides_runpath=unknown
20083 version_type=none
20084 dynamic_linker="$host_os ld.so"
20085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20086
20087 need_lib_prefix=unknown
20088 hardcode_into_libs=no
20089
20090 # when you set need_version to no, make sure it does not cause -set_version
20091 # flags to be left without arguments
20092 need_version=unknown
20093
20094 case $host_os in
20095 aix3*)
20096   version_type=linux
20097   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098   shlibpath_var=LIBPATH
20099
20100   # AIX 3 has no versioning support, so we append a major version to the name.
20101   soname_spec='${libname}${release}${shared_ext}$major'
20102   ;;
20103
20104 aix[4-9]*)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   hardcode_into_libs=yes
20109   if test "$host_cpu" = ia64; then
20110     # AIX 5 supports IA64
20111     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112     shlibpath_var=LD_LIBRARY_PATH
20113   else
20114     # With GCC up to 2.95.x, collect2 would create an import file
20115     # for dependence libraries.  The import file would start with
20116     # the line `#! .'.  This would cause the generated library to
20117     # depend on `.', always an invalid library.  This was fixed in
20118     # development snapshots of GCC prior to 3.0.
20119     case $host_os in
20120       aix4 | aix4.[01] | aix4.[01].*)
20121       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122            echo ' yes '
20123            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20124         :
20125       else
20126         can_build_shared=no
20127       fi
20128       ;;
20129     esac
20130     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131     # soname into executable. Probably we can add versioning support to
20132     # collect2, so additional links can be useful in future.
20133     if test "$aix_use_runtimelinking" = yes; then
20134       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135       # instead of lib<name>.a to let people know that these are not
20136       # typical AIX shared libraries.
20137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138     else
20139       # We preserve .a as extension for shared libraries through AIX4.2
20140       # and later when we are not doing run time linking.
20141       library_names_spec='${libname}${release}.a $libname.a'
20142       soname_spec='${libname}${release}${shared_ext}$major'
20143     fi
20144     shlibpath_var=LIBPATH
20145   fi
20146   ;;
20147
20148 amigaos*)
20149   library_names_spec='$libname.ixlibrary $libname.a'
20150   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20151   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'
20152   ;;
20153
20154 beos*)
20155   library_names_spec='${libname}${shared_ext}'
20156   dynamic_linker="$host_os ld.so"
20157   shlibpath_var=LIBRARY_PATH
20158   ;;
20159
20160 bsdi[45]*)
20161   version_type=linux
20162   need_version=no
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164   soname_spec='${libname}${release}${shared_ext}$major'
20165   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166   shlibpath_var=LD_LIBRARY_PATH
20167   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169   # the default ld.so.conf also contains /usr/contrib/lib and
20170   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171   # libtool to hard-code these into programs
20172   ;;
20173
20174 cygwin* | mingw* | pw32*)
20175   version_type=windows
20176   shrext_cmds=".dll"
20177   need_version=no
20178   need_lib_prefix=no
20179
20180   case $GCC,$host_os in
20181   yes,cygwin* | yes,mingw* | yes,pw32*)
20182     library_names_spec='$libname.dll.a'
20183     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20184     postinstall_cmds='base_file=`basename \${file}`~
20185       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186       dldir=$destdir/`dirname \$dlpath`~
20187       test -d \$dldir || mkdir -p \$dldir~
20188       $install_prog $dir/$dlname \$dldir/$dlname~
20189       chmod a+x \$dldir/$dlname'
20190     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20191       dlpath=$dir/\$dldll~
20192        $rm \$dlpath'
20193     shlibpath_overrides_runpath=yes
20194
20195     case $host_os in
20196     cygwin*)
20197       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20198       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20199       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20200       ;;
20201     mingw*)
20202       # MinGW DLLs use traditional 'lib' prefix
20203       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20204       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20205       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20206         # It is most probably a Windows format PATH printed by
20207         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20208         # path with ; separators, and with drive letters. We can handle the
20209         # drive letters (cygwin fileutils understands them), so leave them,
20210         # especially as we might pass files found there to a mingw objdump,
20211         # which wouldn't understand a cygwinified path. Ahh.
20212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20213       else
20214         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20215       fi
20216       ;;
20217     pw32*)
20218       # pw32 DLLs use 'pw' prefix rather than 'lib'
20219       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20220       ;;
20221     esac
20222     ;;
20223
20224   *)
20225     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20226     ;;
20227   esac
20228   dynamic_linker='Win32 ld.exe'
20229   # FIXME: first we should search . and the directory the executable is in
20230   shlibpath_var=PATH
20231   ;;
20232
20233 darwin* | rhapsody*)
20234   dynamic_linker="$host_os dyld"
20235   version_type=darwin
20236   need_lib_prefix=no
20237   need_version=no
20238   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20239   soname_spec='${libname}${release}${major}$shared_ext'
20240   shlibpath_overrides_runpath=yes
20241   shlibpath_var=DYLD_LIBRARY_PATH
20242   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20243
20244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20245   ;;
20246
20247 dgux*)
20248   version_type=linux
20249   need_lib_prefix=no
20250   need_version=no
20251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20252   soname_spec='${libname}${release}${shared_ext}$major'
20253   shlibpath_var=LD_LIBRARY_PATH
20254   ;;
20255
20256 freebsd1*)
20257   dynamic_linker=no
20258   ;;
20259
20260 freebsd* | dragonfly*)
20261   # DragonFly does not have aout.  When/if they implement a new
20262   # versioning mechanism, adjust this.
20263   if test -x /usr/bin/objformat; then
20264     objformat=`/usr/bin/objformat`
20265   else
20266     case $host_os in
20267     freebsd[123]*) objformat=aout ;;
20268     *) objformat=elf ;;
20269     esac
20270   fi
20271   version_type=freebsd-$objformat
20272   case $version_type in
20273     freebsd-elf*)
20274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20275       need_version=no
20276       need_lib_prefix=no
20277       ;;
20278     freebsd-*)
20279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20280       need_version=yes
20281       ;;
20282   esac
20283   shlibpath_var=LD_LIBRARY_PATH
20284   case $host_os in
20285   freebsd2*)
20286     shlibpath_overrides_runpath=yes
20287     ;;
20288   freebsd3.[01]* | freebsdelf3.[01]*)
20289     shlibpath_overrides_runpath=yes
20290     hardcode_into_libs=yes
20291     ;;
20292   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20293   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20294     shlibpath_overrides_runpath=no
20295     hardcode_into_libs=yes
20296     ;;
20297   *) # from 4.6 on, and DragonFly
20298     shlibpath_overrides_runpath=yes
20299     hardcode_into_libs=yes
20300     ;;
20301   esac
20302   ;;
20303
20304 gnu*)
20305   version_type=linux
20306   need_lib_prefix=no
20307   need_version=no
20308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20309   soname_spec='${libname}${release}${shared_ext}$major'
20310   shlibpath_var=LD_LIBRARY_PATH
20311   hardcode_into_libs=yes
20312   ;;
20313
20314 hpux9* | hpux10* | hpux11*)
20315   # Give a soname corresponding to the major version so that dld.sl refuses to
20316   # link against other versions.
20317   version_type=sunos
20318   need_lib_prefix=no
20319   need_version=no
20320   case $host_cpu in
20321   ia64*)
20322     shrext_cmds='.so'
20323     hardcode_into_libs=yes
20324     dynamic_linker="$host_os dld.so"
20325     shlibpath_var=LD_LIBRARY_PATH
20326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328     soname_spec='${libname}${release}${shared_ext}$major'
20329     if test "X$HPUX_IA64_MODE" = X32; then
20330       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20331     else
20332       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20333     fi
20334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20335     ;;
20336    hppa*64*)
20337      shrext_cmds='.sl'
20338      hardcode_into_libs=yes
20339      dynamic_linker="$host_os dld.sl"
20340      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20341      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343      soname_spec='${libname}${release}${shared_ext}$major'
20344      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20345      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20346      ;;
20347    *)
20348     shrext_cmds='.sl'
20349     dynamic_linker="$host_os dld.sl"
20350     shlibpath_var=SHLIB_PATH
20351     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353     soname_spec='${libname}${release}${shared_ext}$major'
20354     ;;
20355   esac
20356   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20357   postinstall_cmds='chmod 555 $lib'
20358   ;;
20359
20360 interix[3-9]*)
20361   version_type=linux
20362   need_lib_prefix=no
20363   need_version=no
20364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20365   soname_spec='${libname}${release}${shared_ext}$major'
20366   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   shlibpath_overrides_runpath=no
20369   hardcode_into_libs=yes
20370   ;;
20371
20372 irix5* | irix6* | nonstopux*)
20373   case $host_os in
20374     nonstopux*) version_type=nonstopux ;;
20375     *)
20376         if test "$lt_cv_prog_gnu_ld" = yes; then
20377                 version_type=linux
20378         else
20379                 version_type=irix
20380         fi ;;
20381   esac
20382   need_lib_prefix=no
20383   need_version=no
20384   soname_spec='${libname}${release}${shared_ext}$major'
20385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20386   case $host_os in
20387   irix5* | nonstopux*)
20388     libsuff= shlibsuff=
20389     ;;
20390   *)
20391     case $LD in # libtool.m4 will add one of these switches to LD
20392     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20393       libsuff= shlibsuff= libmagic=32-bit;;
20394     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20395       libsuff=32 shlibsuff=N32 libmagic=N32;;
20396     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20397       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20398     *) libsuff= shlibsuff= libmagic=never-match;;
20399     esac
20400     ;;
20401   esac
20402   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20403   shlibpath_overrides_runpath=no
20404   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20405   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20406   hardcode_into_libs=yes
20407   ;;
20408
20409 # No shared lib support for Linux oldld, aout, or coff.
20410 linux*oldld* | linux*aout* | linux*coff*)
20411   dynamic_linker=no
20412   ;;
20413
20414 # This must be Linux ELF.
20415 linux* | k*bsd*-gnu)
20416   version_type=linux
20417   need_lib_prefix=no
20418   need_version=no
20419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420   soname_spec='${libname}${release}${shared_ext}$major'
20421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20422   shlibpath_var=LD_LIBRARY_PATH
20423   shlibpath_overrides_runpath=no
20424   # This implies no fast_install, which is unacceptable.
20425   # Some rework will be needed to allow for fast_install
20426   # before this can be enabled.
20427   hardcode_into_libs=yes
20428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20430
20431   # Append ld.so.conf contents to the search path
20432   if test -f /etc/ld.so.conf; then
20433     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' ' '`
20434     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20435   fi
20436
20437   # We used to test for /lib/ld.so.1 and disable shared libraries on
20438   # powerpc, because MkLinux only supported shared libraries with the
20439   # GNU dynamic linker.  Since this was broken with cross compilers,
20440   # most powerpc-linux boxes support dynamic linking these days and
20441   # people can always --disable-shared, the test was removed, and we
20442   # assume the GNU/Linux dynamic linker is in use.
20443   dynamic_linker='GNU/Linux ld.so'
20444   ;;
20445
20446 netbsd*)
20447   version_type=sunos
20448   need_lib_prefix=no
20449   need_version=no
20450   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453     dynamic_linker='NetBSD (a.out) ld.so'
20454   else
20455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20456     soname_spec='${libname}${release}${shared_ext}$major'
20457     dynamic_linker='NetBSD ld.elf_so'
20458   fi
20459   shlibpath_var=LD_LIBRARY_PATH
20460   shlibpath_overrides_runpath=yes
20461   hardcode_into_libs=yes
20462   ;;
20463
20464 newsos6)
20465   version_type=linux
20466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467   shlibpath_var=LD_LIBRARY_PATH
20468   shlibpath_overrides_runpath=yes
20469   ;;
20470
20471 nto-qnx*)
20472   version_type=linux
20473   need_lib_prefix=no
20474   need_version=no
20475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476   soname_spec='${libname}${release}${shared_ext}$major'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   ;;
20480
20481 openbsd*)
20482   version_type=sunos
20483   sys_lib_dlsearch_path_spec="/usr/lib"
20484   need_lib_prefix=no
20485   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20486   case $host_os in
20487     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20488     *)                         need_version=no  ;;
20489   esac
20490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20491   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20492   shlibpath_var=LD_LIBRARY_PATH
20493   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20494     case $host_os in
20495       openbsd2.[89] | openbsd2.[89].*)
20496         shlibpath_overrides_runpath=no
20497         ;;
20498       *)
20499         shlibpath_overrides_runpath=yes
20500         ;;
20501       esac
20502   else
20503     shlibpath_overrides_runpath=yes
20504   fi
20505   ;;
20506
20507 os2*)
20508   libname_spec='$name'
20509   shrext_cmds=".dll"
20510   need_lib_prefix=no
20511   library_names_spec='$libname${shared_ext} $libname.a'
20512   dynamic_linker='OS/2 ld.exe'
20513   shlibpath_var=LIBPATH
20514   ;;
20515
20516 osf3* | osf4* | osf5*)
20517   version_type=osf
20518   need_lib_prefix=no
20519   need_version=no
20520   soname_spec='${libname}${release}${shared_ext}$major'
20521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522   shlibpath_var=LD_LIBRARY_PATH
20523   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20524   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20525   ;;
20526
20527 rdos*)
20528   dynamic_linker=no
20529   ;;
20530
20531 solaris*)
20532   version_type=linux
20533   need_lib_prefix=no
20534   need_version=no
20535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536   soname_spec='${libname}${release}${shared_ext}$major'
20537   shlibpath_var=LD_LIBRARY_PATH
20538   shlibpath_overrides_runpath=yes
20539   hardcode_into_libs=yes
20540   # ldd complains unless libraries are executable
20541   postinstall_cmds='chmod +x $lib'
20542   ;;
20543
20544 sunos4*)
20545   version_type=sunos
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20547   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20548   shlibpath_var=LD_LIBRARY_PATH
20549   shlibpath_overrides_runpath=yes
20550   if test "$with_gnu_ld" = yes; then
20551     need_lib_prefix=no
20552   fi
20553   need_version=yes
20554   ;;
20555
20556 sysv4 | sysv4.3*)
20557   version_type=linux
20558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559   soname_spec='${libname}${release}${shared_ext}$major'
20560   shlibpath_var=LD_LIBRARY_PATH
20561   case $host_vendor in
20562     sni)
20563       shlibpath_overrides_runpath=no
20564       need_lib_prefix=no
20565       export_dynamic_flag_spec='${wl}-Blargedynsym'
20566       runpath_var=LD_RUN_PATH
20567       ;;
20568     siemens)
20569       need_lib_prefix=no
20570       ;;
20571     motorola)
20572       need_lib_prefix=no
20573       need_version=no
20574       shlibpath_overrides_runpath=no
20575       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20576       ;;
20577   esac
20578   ;;
20579
20580 sysv4*MP*)
20581   if test -d /usr/nec ;then
20582     version_type=linux
20583     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20584     soname_spec='$libname${shared_ext}.$major'
20585     shlibpath_var=LD_LIBRARY_PATH
20586   fi
20587   ;;
20588
20589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20590   version_type=freebsd-elf
20591   need_lib_prefix=no
20592   need_version=no
20593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20594   soname_spec='${libname}${release}${shared_ext}$major'
20595   shlibpath_var=LD_LIBRARY_PATH
20596   hardcode_into_libs=yes
20597   if test "$with_gnu_ld" = yes; then
20598     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20599     shlibpath_overrides_runpath=no
20600   else
20601     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20602     shlibpath_overrides_runpath=yes
20603     case $host_os in
20604       sco3.2v5*)
20605         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20606         ;;
20607     esac
20608   fi
20609   sys_lib_dlsearch_path_spec='/usr/lib'
20610   ;;
20611
20612 uts4*)
20613   version_type=linux
20614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615   soname_spec='${libname}${release}${shared_ext}$major'
20616   shlibpath_var=LD_LIBRARY_PATH
20617   ;;
20618
20619 *)
20620   dynamic_linker=no
20621   ;;
20622 esac
20623 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20624 $as_echo "$dynamic_linker" >&6; }
20625 test "$dynamic_linker" = no && can_build_shared=no
20626
20627 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20628   $as_echo_n "(cached) " >&6
20629 else
20630   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20631 fi
20632
20633 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20634 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20635   $as_echo_n "(cached) " >&6
20636 else
20637   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20638 fi
20639
20640 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20641
20642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20643 if test "$GCC" = yes; then
20644   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20645 fi
20646
20647 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20649 hardcode_action_GCJ=
20650 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20651    test -n "$runpath_var_GCJ" || \
20652    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20653
20654   # We can hardcode non-existant directories.
20655   if test "$hardcode_direct_GCJ" != no &&
20656      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20657      # have to relink, otherwise we might link with an installed library
20658      # when we should be linking with a yet-to-be-installed one
20659      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20660      test "$hardcode_minus_L_GCJ" != no; then
20661     # Linking always hardcodes the temporary library directory.
20662     hardcode_action_GCJ=relink
20663   else
20664     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20665     hardcode_action_GCJ=immediate
20666   fi
20667 else
20668   # We cannot hardcode anything, or else we can only hardcode existing
20669   # directories.
20670   hardcode_action_GCJ=unsupported
20671 fi
20672 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20673 $as_echo "$hardcode_action_GCJ" >&6; }
20674
20675 if test "$hardcode_action_GCJ" = relink; then
20676   # Fast installation is not supported
20677   enable_fast_install=no
20678 elif test "$shlibpath_overrides_runpath" = yes ||
20679      test "$enable_shared" = no; then
20680   # Fast installation is not necessary
20681   enable_fast_install=needless
20682 fi
20683
20684
20685 # The else clause should only fire when bootstrapping the
20686 # libtool distribution, otherwise you forgot to ship ltmain.sh
20687 # with your package, and you will get complaints that there are
20688 # no rules to generate ltmain.sh.
20689 if test -f "$ltmain"; then
20690   # See if we are running on zsh, and set the options which allow our commands through
20691   # without removal of \ escapes.
20692   if test -n "${ZSH_VERSION+set}" ; then
20693     setopt NO_GLOB_SUBST
20694   fi
20695   # Now quote all the things that may contain metacharacters while being
20696   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20697   # variables and quote the copies for generation of the libtool script.
20698   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20699     SED SHELL STRIP \
20700     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20701     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20702     deplibs_check_method reload_flag reload_cmds need_locks \
20703     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20704     lt_cv_sys_global_symbol_to_c_name_address \
20705     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20706     old_postinstall_cmds old_postuninstall_cmds \
20707     compiler_GCJ \
20708     CC_GCJ \
20709     LD_GCJ \
20710     lt_prog_compiler_wl_GCJ \
20711     lt_prog_compiler_pic_GCJ \
20712     lt_prog_compiler_static_GCJ \
20713     lt_prog_compiler_no_builtin_flag_GCJ \
20714     export_dynamic_flag_spec_GCJ \
20715     thread_safe_flag_spec_GCJ \
20716     whole_archive_flag_spec_GCJ \
20717     enable_shared_with_static_runtimes_GCJ \
20718     old_archive_cmds_GCJ \
20719     old_archive_from_new_cmds_GCJ \
20720     predep_objects_GCJ \
20721     postdep_objects_GCJ \
20722     predeps_GCJ \
20723     postdeps_GCJ \
20724     compiler_lib_search_path_GCJ \
20725     compiler_lib_search_dirs_GCJ \
20726     archive_cmds_GCJ \
20727     archive_expsym_cmds_GCJ \
20728     postinstall_cmds_GCJ \
20729     postuninstall_cmds_GCJ \
20730     old_archive_from_expsyms_cmds_GCJ \
20731     allow_undefined_flag_GCJ \
20732     no_undefined_flag_GCJ \
20733     export_symbols_cmds_GCJ \
20734     hardcode_libdir_flag_spec_GCJ \
20735     hardcode_libdir_flag_spec_ld_GCJ \
20736     hardcode_libdir_separator_GCJ \
20737     hardcode_automatic_GCJ \
20738     module_cmds_GCJ \
20739     module_expsym_cmds_GCJ \
20740     lt_cv_prog_compiler_c_o_GCJ \
20741     fix_srcfile_path_GCJ \
20742     exclude_expsyms_GCJ \
20743     include_expsyms_GCJ; do
20744
20745     case $var in
20746     old_archive_cmds_GCJ | \
20747     old_archive_from_new_cmds_GCJ | \
20748     archive_cmds_GCJ | \
20749     archive_expsym_cmds_GCJ | \
20750     module_cmds_GCJ | \
20751     module_expsym_cmds_GCJ | \
20752     old_archive_from_expsyms_cmds_GCJ | \
20753     export_symbols_cmds_GCJ | \
20754     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20755     postinstall_cmds | postuninstall_cmds | \
20756     old_postinstall_cmds | old_postuninstall_cmds | \
20757     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20758       # Double-quote double-evaled strings.
20759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20760       ;;
20761     *)
20762       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20763       ;;
20764     esac
20765   done
20766
20767   case $lt_echo in
20768   *'\$0 --fallback-echo"')
20769     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20770     ;;
20771   esac
20772
20773 cfgfile="$ofile"
20774
20775   cat <<__EOF__ >> "$cfgfile"
20776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20777
20778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20779
20780 # Shell to use when invoking shell scripts.
20781 SHELL=$lt_SHELL
20782
20783 # Whether or not to build shared libraries.
20784 build_libtool_libs=$enable_shared
20785
20786 # Whether or not to build static libraries.
20787 build_old_libs=$enable_static
20788
20789 # Whether or not to add -lc for building shared libraries.
20790 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20791
20792 # Whether or not to disallow shared libs when runtime libs are static
20793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20794
20795 # Whether or not to optimize for fast installation.
20796 fast_install=$enable_fast_install
20797
20798 # The host system.
20799 host_alias=$host_alias
20800 host=$host
20801 host_os=$host_os
20802
20803 # The build system.
20804 build_alias=$build_alias
20805 build=$build
20806 build_os=$build_os
20807
20808 # An echo program that does not interpret backslashes.
20809 echo=$lt_echo
20810
20811 # The archiver.
20812 AR=$lt_AR
20813 AR_FLAGS=$lt_AR_FLAGS
20814
20815 # A C compiler.
20816 LTCC=$lt_LTCC
20817
20818 # LTCC compiler flags.
20819 LTCFLAGS=$lt_LTCFLAGS
20820
20821 # A language-specific compiler.
20822 CC=$lt_compiler_GCJ
20823
20824 # Is the compiler the GNU C compiler?
20825 with_gcc=$GCC_GCJ
20826
20827 # An ERE matcher.
20828 EGREP=$lt_EGREP
20829
20830 # The linker used to build libraries.
20831 LD=$lt_LD_GCJ
20832
20833 # Whether we need hard or soft links.
20834 LN_S=$lt_LN_S
20835
20836 # A BSD-compatible nm program.
20837 NM=$lt_NM
20838
20839 # A symbol stripping program
20840 STRIP=$lt_STRIP
20841
20842 # Used to examine libraries when file_magic_cmd begins "file"
20843 MAGIC_CMD=$MAGIC_CMD
20844
20845 # Used on cygwin: DLL creation program.
20846 DLLTOOL="$DLLTOOL"
20847
20848 # Used on cygwin: object dumper.
20849 OBJDUMP="$OBJDUMP"
20850
20851 # Used on cygwin: assembler.
20852 AS="$AS"
20853
20854 # The name of the directory that contains temporary libtool files.
20855 objdir=$objdir
20856
20857 # How to create reloadable object files.
20858 reload_flag=$lt_reload_flag
20859 reload_cmds=$lt_reload_cmds
20860
20861 # How to pass a linker flag through the compiler.
20862 wl=$lt_lt_prog_compiler_wl_GCJ
20863
20864 # Object file suffix (normally "o").
20865 objext="$ac_objext"
20866
20867 # Old archive suffix (normally "a").
20868 libext="$libext"
20869
20870 # Shared library suffix (normally ".so").
20871 shrext_cmds='$shrext_cmds'
20872
20873 # Executable file suffix (normally "").
20874 exeext="$exeext"
20875
20876 # Additional compiler flags for building library objects.
20877 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20878 pic_mode=$pic_mode
20879
20880 # What is the maximum length of a command?
20881 max_cmd_len=$lt_cv_sys_max_cmd_len
20882
20883 # Does compiler simultaneously support -c and -o options?
20884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20885
20886 # Must we lock files when doing compilation?
20887 need_locks=$lt_need_locks
20888
20889 # Do we need the lib prefix for modules?
20890 need_lib_prefix=$need_lib_prefix
20891
20892 # Do we need a version for libraries?
20893 need_version=$need_version
20894
20895 # Whether dlopen is supported.
20896 dlopen_support=$enable_dlopen
20897
20898 # Whether dlopen of programs is supported.
20899 dlopen_self=$enable_dlopen_self
20900
20901 # Whether dlopen of statically linked programs is supported.
20902 dlopen_self_static=$enable_dlopen_self_static
20903
20904 # Compiler flag to prevent dynamic linking.
20905 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20906
20907 # Compiler flag to turn off builtin functions.
20908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20909
20910 # Compiler flag to allow reflexive dlopens.
20911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20912
20913 # Compiler flag to generate shared objects directly from archives.
20914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20915
20916 # Compiler flag to generate thread-safe objects.
20917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20918
20919 # Library versioning type.
20920 version_type=$version_type
20921
20922 # Format of library name prefix.
20923 libname_spec=$lt_libname_spec
20924
20925 # List of archive names.  First name is the real one, the rest are links.
20926 # The last name is the one that the linker finds with -lNAME.
20927 library_names_spec=$lt_library_names_spec
20928
20929 # The coded name of the library, if different from the real name.
20930 soname_spec=$lt_soname_spec
20931
20932 # Commands used to build and install an old-style archive.
20933 RANLIB=$lt_RANLIB
20934 old_archive_cmds=$lt_old_archive_cmds_GCJ
20935 old_postinstall_cmds=$lt_old_postinstall_cmds
20936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20937
20938 # Create an old-style archive from a shared archive.
20939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20940
20941 # Create a temporary old-style archive to link instead of a shared archive.
20942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20943
20944 # Commands used to build and install a shared archive.
20945 archive_cmds=$lt_archive_cmds_GCJ
20946 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20947 postinstall_cmds=$lt_postinstall_cmds
20948 postuninstall_cmds=$lt_postuninstall_cmds
20949
20950 # Commands used to build a loadable module (assumed same as above if empty)
20951 module_cmds=$lt_module_cmds_GCJ
20952 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20953
20954 # Commands to strip libraries.
20955 old_striplib=$lt_old_striplib
20956 striplib=$lt_striplib
20957
20958 # Dependencies to place before the objects being linked to create a
20959 # shared library.
20960 predep_objects=$lt_predep_objects_GCJ
20961
20962 # Dependencies to place after the objects being linked to create a
20963 # shared library.
20964 postdep_objects=$lt_postdep_objects_GCJ
20965
20966 # Dependencies to place before the objects being linked to create a
20967 # shared library.
20968 predeps=$lt_predeps_GCJ
20969
20970 # Dependencies to place after the objects being linked to create a
20971 # shared library.
20972 postdeps=$lt_postdeps_GCJ
20973
20974 # The directories searched by this compiler when creating a shared
20975 # library
20976 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20977
20978 # The library search path used internally by the compiler when linking
20979 # a shared library.
20980 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20981
20982 # Method to check whether dependent libraries are shared objects.
20983 deplibs_check_method=$lt_deplibs_check_method
20984
20985 # Command to use when deplibs_check_method == file_magic.
20986 file_magic_cmd=$lt_file_magic_cmd
20987
20988 # Flag that allows shared libraries with undefined symbols to be built.
20989 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20990
20991 # Flag that forces no undefined symbols.
20992 no_undefined_flag=$lt_no_undefined_flag_GCJ
20993
20994 # Commands used to finish a libtool library installation in a directory.
20995 finish_cmds=$lt_finish_cmds
20996
20997 # Same as above, but a single script fragment to be evaled but not shown.
20998 finish_eval=$lt_finish_eval
20999
21000 # Take the output of nm and produce a listing of raw symbols and C names.
21001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21002
21003 # Transform the output of nm in a proper C declaration
21004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21005
21006 # Transform the output of nm in a C name address pair
21007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21008
21009 # This is the shared library runtime path variable.
21010 runpath_var=$runpath_var
21011
21012 # This is the shared library path variable.
21013 shlibpath_var=$shlibpath_var
21014
21015 # Is shlibpath searched before the hard-coded library search path?
21016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21017
21018 # How to hardcode a shared library path into an executable.
21019 hardcode_action=$hardcode_action_GCJ
21020
21021 # Whether we should hardcode library paths into libraries.
21022 hardcode_into_libs=$hardcode_into_libs
21023
21024 # Flag to hardcode \$libdir into a binary during linking.
21025 # This must work even if \$libdir does not exist.
21026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21027
21028 # If ld is used when linking, flag to hardcode \$libdir into
21029 # a binary during linking. This must work even if \$libdir does
21030 # not exist.
21031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21032
21033 # Whether we need a single -rpath flag with a separated argument.
21034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21035
21036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21037 # resulting binary.
21038 hardcode_direct=$hardcode_direct_GCJ
21039
21040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21041 # resulting binary.
21042 hardcode_minus_L=$hardcode_minus_L_GCJ
21043
21044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21045 # the resulting binary.
21046 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21047
21048 # Set to yes if building a shared library automatically hardcodes DIR into the library
21049 # and all subsequent libraries and executables linked against it.
21050 hardcode_automatic=$hardcode_automatic_GCJ
21051
21052 # Variables whose values should be saved in libtool wrapper scripts and
21053 # restored at relink time.
21054 variables_saved_for_relink="$variables_saved_for_relink"
21055
21056 # Whether libtool must link a program against all its dependency libraries.
21057 link_all_deplibs=$link_all_deplibs_GCJ
21058
21059 # Compile-time system search path for libraries
21060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21061
21062 # Run-time system search path for libraries
21063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21064
21065 # Fix the shell variable \$srcfile for the compiler.
21066 fix_srcfile_path=$lt_fix_srcfile_path
21067
21068 # Set to yes if exported symbols are required.
21069 always_export_symbols=$always_export_symbols_GCJ
21070
21071 # The commands to list exported symbols.
21072 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21073
21074 # The commands to extract the exported symbol list from a shared archive.
21075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21076
21077 # Symbols that should not be listed in the preloaded symbols.
21078 exclude_expsyms=$lt_exclude_expsyms_GCJ
21079
21080 # Symbols that must always be exported.
21081 include_expsyms=$lt_include_expsyms_GCJ
21082
21083 # ### END LIBTOOL TAG CONFIG: $tagname
21084
21085 __EOF__
21086
21087
21088 else
21089   # If there is no Makefile yet, we rely on a make rule to execute
21090   # `config.status --recheck' to rerun these tests and create the
21091   # libtool script then.
21092   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21093   if test -f "$ltmain_in"; then
21094     test -f Makefile && make "$ltmain"
21095   fi
21096 fi
21097
21098
21099 ac_ext=c
21100 ac_cpp='$CPP $CPPFLAGS'
21101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104
21105 CC="$lt_save_CC"
21106
21107         else
21108           tagname=""
21109         fi
21110         ;;
21111
21112       RC)
21113
21114
21115 # Source file extension for RC test sources.
21116 ac_ext=rc
21117
21118 # Object file extension for compiled RC test sources.
21119 objext=o
21120 objext_RC=$objext
21121
21122 # Code to be used in simple compile tests
21123 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21124
21125 # Code to be used in simple link tests
21126 lt_simple_link_test_code="$lt_simple_compile_test_code"
21127
21128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21129
21130 # If no C compiler was specified, use CC.
21131 LTCC=${LTCC-"$CC"}
21132
21133 # If no C compiler flags were specified, use CFLAGS.
21134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21135
21136 # Allow CC to be a program name with arguments.
21137 compiler=$CC
21138
21139
21140 # save warnings/boilerplate of simple test code
21141 ac_outfile=conftest.$ac_objext
21142 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21144 _lt_compiler_boilerplate=`cat conftest.err`
21145 $rm conftest*
21146
21147 ac_outfile=conftest.$ac_objext
21148 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21150 _lt_linker_boilerplate=`cat conftest.err`
21151 $rm -r conftest*
21152
21153
21154 # Allow CC to be a program name with arguments.
21155 lt_save_CC="$CC"
21156 CC=${RC-"windres"}
21157 compiler=$CC
21158 compiler_RC=$CC
21159 for cc_temp in $compiler""; do
21160   case $cc_temp in
21161     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21162     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21163     \-*) ;;
21164     *) break;;
21165   esac
21166 done
21167 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21168
21169 lt_cv_prog_compiler_c_o_RC=yes
21170
21171 # The else clause should only fire when bootstrapping the
21172 # libtool distribution, otherwise you forgot to ship ltmain.sh
21173 # with your package, and you will get complaints that there are
21174 # no rules to generate ltmain.sh.
21175 if test -f "$ltmain"; then
21176   # See if we are running on zsh, and set the options which allow our commands through
21177   # without removal of \ escapes.
21178   if test -n "${ZSH_VERSION+set}" ; then
21179     setopt NO_GLOB_SUBST
21180   fi
21181   # Now quote all the things that may contain metacharacters while being
21182   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21183   # variables and quote the copies for generation of the libtool script.
21184   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21185     SED SHELL STRIP \
21186     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21187     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21188     deplibs_check_method reload_flag reload_cmds need_locks \
21189     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21190     lt_cv_sys_global_symbol_to_c_name_address \
21191     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21192     old_postinstall_cmds old_postuninstall_cmds \
21193     compiler_RC \
21194     CC_RC \
21195     LD_RC \
21196     lt_prog_compiler_wl_RC \
21197     lt_prog_compiler_pic_RC \
21198     lt_prog_compiler_static_RC \
21199     lt_prog_compiler_no_builtin_flag_RC \
21200     export_dynamic_flag_spec_RC \
21201     thread_safe_flag_spec_RC \
21202     whole_archive_flag_spec_RC \
21203     enable_shared_with_static_runtimes_RC \
21204     old_archive_cmds_RC \
21205     old_archive_from_new_cmds_RC \
21206     predep_objects_RC \
21207     postdep_objects_RC \
21208     predeps_RC \
21209     postdeps_RC \
21210     compiler_lib_search_path_RC \
21211     compiler_lib_search_dirs_RC \
21212     archive_cmds_RC \
21213     archive_expsym_cmds_RC \
21214     postinstall_cmds_RC \
21215     postuninstall_cmds_RC \
21216     old_archive_from_expsyms_cmds_RC \
21217     allow_undefined_flag_RC \
21218     no_undefined_flag_RC \
21219     export_symbols_cmds_RC \
21220     hardcode_libdir_flag_spec_RC \
21221     hardcode_libdir_flag_spec_ld_RC \
21222     hardcode_libdir_separator_RC \
21223     hardcode_automatic_RC \
21224     module_cmds_RC \
21225     module_expsym_cmds_RC \
21226     lt_cv_prog_compiler_c_o_RC \
21227     fix_srcfile_path_RC \
21228     exclude_expsyms_RC \
21229     include_expsyms_RC; do
21230
21231     case $var in
21232     old_archive_cmds_RC | \
21233     old_archive_from_new_cmds_RC | \
21234     archive_cmds_RC | \
21235     archive_expsym_cmds_RC | \
21236     module_cmds_RC | \
21237     module_expsym_cmds_RC | \
21238     old_archive_from_expsyms_cmds_RC | \
21239     export_symbols_cmds_RC | \
21240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21241     postinstall_cmds | postuninstall_cmds | \
21242     old_postinstall_cmds | old_postuninstall_cmds | \
21243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21244       # Double-quote double-evaled strings.
21245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21246       ;;
21247     *)
21248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21249       ;;
21250     esac
21251   done
21252
21253   case $lt_echo in
21254   *'\$0 --fallback-echo"')
21255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21256     ;;
21257   esac
21258
21259 cfgfile="$ofile"
21260
21261   cat <<__EOF__ >> "$cfgfile"
21262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21263
21264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21265
21266 # Shell to use when invoking shell scripts.
21267 SHELL=$lt_SHELL
21268
21269 # Whether or not to build shared libraries.
21270 build_libtool_libs=$enable_shared
21271
21272 # Whether or not to build static libraries.
21273 build_old_libs=$enable_static
21274
21275 # Whether or not to add -lc for building shared libraries.
21276 build_libtool_need_lc=$archive_cmds_need_lc_RC
21277
21278 # Whether or not to disallow shared libs when runtime libs are static
21279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21280
21281 # Whether or not to optimize for fast installation.
21282 fast_install=$enable_fast_install
21283
21284 # The host system.
21285 host_alias=$host_alias
21286 host=$host
21287 host_os=$host_os
21288
21289 # The build system.
21290 build_alias=$build_alias
21291 build=$build
21292 build_os=$build_os
21293
21294 # An echo program that does not interpret backslashes.
21295 echo=$lt_echo
21296
21297 # The archiver.
21298 AR=$lt_AR
21299 AR_FLAGS=$lt_AR_FLAGS
21300
21301 # A C compiler.
21302 LTCC=$lt_LTCC
21303
21304 # LTCC compiler flags.
21305 LTCFLAGS=$lt_LTCFLAGS
21306
21307 # A language-specific compiler.
21308 CC=$lt_compiler_RC
21309
21310 # Is the compiler the GNU C compiler?
21311 with_gcc=$GCC_RC
21312
21313 # An ERE matcher.
21314 EGREP=$lt_EGREP
21315
21316 # The linker used to build libraries.
21317 LD=$lt_LD_RC
21318
21319 # Whether we need hard or soft links.
21320 LN_S=$lt_LN_S
21321
21322 # A BSD-compatible nm program.
21323 NM=$lt_NM
21324
21325 # A symbol stripping program
21326 STRIP=$lt_STRIP
21327
21328 # Used to examine libraries when file_magic_cmd begins "file"
21329 MAGIC_CMD=$MAGIC_CMD
21330
21331 # Used on cygwin: DLL creation program.
21332 DLLTOOL="$DLLTOOL"
21333
21334 # Used on cygwin: object dumper.
21335 OBJDUMP="$OBJDUMP"
21336
21337 # Used on cygwin: assembler.
21338 AS="$AS"
21339
21340 # The name of the directory that contains temporary libtool files.
21341 objdir=$objdir
21342
21343 # How to create reloadable object files.
21344 reload_flag=$lt_reload_flag
21345 reload_cmds=$lt_reload_cmds
21346
21347 # How to pass a linker flag through the compiler.
21348 wl=$lt_lt_prog_compiler_wl_RC
21349
21350 # Object file suffix (normally "o").
21351 objext="$ac_objext"
21352
21353 # Old archive suffix (normally "a").
21354 libext="$libext"
21355
21356 # Shared library suffix (normally ".so").
21357 shrext_cmds='$shrext_cmds'
21358
21359 # Executable file suffix (normally "").
21360 exeext="$exeext"
21361
21362 # Additional compiler flags for building library objects.
21363 pic_flag=$lt_lt_prog_compiler_pic_RC
21364 pic_mode=$pic_mode
21365
21366 # What is the maximum length of a command?
21367 max_cmd_len=$lt_cv_sys_max_cmd_len
21368
21369 # Does compiler simultaneously support -c and -o options?
21370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21371
21372 # Must we lock files when doing compilation?
21373 need_locks=$lt_need_locks
21374
21375 # Do we need the lib prefix for modules?
21376 need_lib_prefix=$need_lib_prefix
21377
21378 # Do we need a version for libraries?
21379 need_version=$need_version
21380
21381 # Whether dlopen is supported.
21382 dlopen_support=$enable_dlopen
21383
21384 # Whether dlopen of programs is supported.
21385 dlopen_self=$enable_dlopen_self
21386
21387 # Whether dlopen of statically linked programs is supported.
21388 dlopen_self_static=$enable_dlopen_self_static
21389
21390 # Compiler flag to prevent dynamic linking.
21391 link_static_flag=$lt_lt_prog_compiler_static_RC
21392
21393 # Compiler flag to turn off builtin functions.
21394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21395
21396 # Compiler flag to allow reflexive dlopens.
21397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21398
21399 # Compiler flag to generate shared objects directly from archives.
21400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21401
21402 # Compiler flag to generate thread-safe objects.
21403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21404
21405 # Library versioning type.
21406 version_type=$version_type
21407
21408 # Format of library name prefix.
21409 libname_spec=$lt_libname_spec
21410
21411 # List of archive names.  First name is the real one, the rest are links.
21412 # The last name is the one that the linker finds with -lNAME.
21413 library_names_spec=$lt_library_names_spec
21414
21415 # The coded name of the library, if different from the real name.
21416 soname_spec=$lt_soname_spec
21417
21418 # Commands used to build and install an old-style archive.
21419 RANLIB=$lt_RANLIB
21420 old_archive_cmds=$lt_old_archive_cmds_RC
21421 old_postinstall_cmds=$lt_old_postinstall_cmds
21422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21423
21424 # Create an old-style archive from a shared archive.
21425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21426
21427 # Create a temporary old-style archive to link instead of a shared archive.
21428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21429
21430 # Commands used to build and install a shared archive.
21431 archive_cmds=$lt_archive_cmds_RC
21432 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21433 postinstall_cmds=$lt_postinstall_cmds
21434 postuninstall_cmds=$lt_postuninstall_cmds
21435
21436 # Commands used to build a loadable module (assumed same as above if empty)
21437 module_cmds=$lt_module_cmds_RC
21438 module_expsym_cmds=$lt_module_expsym_cmds_RC
21439
21440 # Commands to strip libraries.
21441 old_striplib=$lt_old_striplib
21442 striplib=$lt_striplib
21443
21444 # Dependencies to place before the objects being linked to create a
21445 # shared library.
21446 predep_objects=$lt_predep_objects_RC
21447
21448 # Dependencies to place after the objects being linked to create a
21449 # shared library.
21450 postdep_objects=$lt_postdep_objects_RC
21451
21452 # Dependencies to place before the objects being linked to create a
21453 # shared library.
21454 predeps=$lt_predeps_RC
21455
21456 # Dependencies to place after the objects being linked to create a
21457 # shared library.
21458 postdeps=$lt_postdeps_RC
21459
21460 # The directories searched by this compiler when creating a shared
21461 # library
21462 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21463
21464 # The library search path used internally by the compiler when linking
21465 # a shared library.
21466 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21467
21468 # Method to check whether dependent libraries are shared objects.
21469 deplibs_check_method=$lt_deplibs_check_method
21470
21471 # Command to use when deplibs_check_method == file_magic.
21472 file_magic_cmd=$lt_file_magic_cmd
21473
21474 # Flag that allows shared libraries with undefined symbols to be built.
21475 allow_undefined_flag=$lt_allow_undefined_flag_RC
21476
21477 # Flag that forces no undefined symbols.
21478 no_undefined_flag=$lt_no_undefined_flag_RC
21479
21480 # Commands used to finish a libtool library installation in a directory.
21481 finish_cmds=$lt_finish_cmds
21482
21483 # Same as above, but a single script fragment to be evaled but not shown.
21484 finish_eval=$lt_finish_eval
21485
21486 # Take the output of nm and produce a listing of raw symbols and C names.
21487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21488
21489 # Transform the output of nm in a proper C declaration
21490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21491
21492 # Transform the output of nm in a C name address pair
21493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21494
21495 # This is the shared library runtime path variable.
21496 runpath_var=$runpath_var
21497
21498 # This is the shared library path variable.
21499 shlibpath_var=$shlibpath_var
21500
21501 # Is shlibpath searched before the hard-coded library search path?
21502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21503
21504 # How to hardcode a shared library path into an executable.
21505 hardcode_action=$hardcode_action_RC
21506
21507 # Whether we should hardcode library paths into libraries.
21508 hardcode_into_libs=$hardcode_into_libs
21509
21510 # Flag to hardcode \$libdir into a binary during linking.
21511 # This must work even if \$libdir does not exist.
21512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21513
21514 # If ld is used when linking, flag to hardcode \$libdir into
21515 # a binary during linking. This must work even if \$libdir does
21516 # not exist.
21517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21518
21519 # Whether we need a single -rpath flag with a separated argument.
21520 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21521
21522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21523 # resulting binary.
21524 hardcode_direct=$hardcode_direct_RC
21525
21526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21527 # resulting binary.
21528 hardcode_minus_L=$hardcode_minus_L_RC
21529
21530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21531 # the resulting binary.
21532 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21533
21534 # Set to yes if building a shared library automatically hardcodes DIR into the library
21535 # and all subsequent libraries and executables linked against it.
21536 hardcode_automatic=$hardcode_automatic_RC
21537
21538 # Variables whose values should be saved in libtool wrapper scripts and
21539 # restored at relink time.
21540 variables_saved_for_relink="$variables_saved_for_relink"
21541
21542 # Whether libtool must link a program against all its dependency libraries.
21543 link_all_deplibs=$link_all_deplibs_RC
21544
21545 # Compile-time system search path for libraries
21546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21547
21548 # Run-time system search path for libraries
21549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21550
21551 # Fix the shell variable \$srcfile for the compiler.
21552 fix_srcfile_path=$lt_fix_srcfile_path
21553
21554 # Set to yes if exported symbols are required.
21555 always_export_symbols=$always_export_symbols_RC
21556
21557 # The commands to list exported symbols.
21558 export_symbols_cmds=$lt_export_symbols_cmds_RC
21559
21560 # The commands to extract the exported symbol list from a shared archive.
21561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21562
21563 # Symbols that should not be listed in the preloaded symbols.
21564 exclude_expsyms=$lt_exclude_expsyms_RC
21565
21566 # Symbols that must always be exported.
21567 include_expsyms=$lt_include_expsyms_RC
21568
21569 # ### END LIBTOOL TAG CONFIG: $tagname
21570
21571 __EOF__
21572
21573
21574 else
21575   # If there is no Makefile yet, we rely on a make rule to execute
21576   # `config.status --recheck' to rerun these tests and create the
21577   # libtool script then.
21578   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21579   if test -f "$ltmain_in"; then
21580     test -f Makefile && make "$ltmain"
21581   fi
21582 fi
21583
21584
21585 ac_ext=c
21586 ac_cpp='$CPP $CPPFLAGS'
21587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21590
21591 CC="$lt_save_CC"
21592
21593         ;;
21594
21595       *)
21596         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21597 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21598    { (exit 1); exit 1; }; }
21599         ;;
21600       esac
21601
21602       # Append the new tag name to the list of available tags.
21603       if test -n "$tagname" ; then
21604       available_tags="$available_tags $tagname"
21605     fi
21606     fi
21607   done
21608   IFS="$lt_save_ifs"
21609
21610   # Now substitute the updated list of available tags.
21611   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21612     mv "${ofile}T" "$ofile"
21613     chmod +x "$ofile"
21614   else
21615     rm -f "${ofile}T"
21616     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21617 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21618    { (exit 1); exit 1; }; }
21619   fi
21620 fi
21621
21622
21623
21624 # This can be used to rebuild libtool when needed
21625 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21626
21627 # Always use our own libtool.
21628 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21629
21630 # Prevent multiple expansion
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651 if test "x$CC" != xcc; then
21652   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21653 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
21654 else
21655   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21656 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
21657 fi
21658 set dummy $CC; ac_cc=`$as_echo "$2" |
21659                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21660 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21661   $as_echo_n "(cached) " >&6
21662 else
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669
21670 int
21671 main ()
21672 {
21673
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 # Make sure it works both with $CC and with simple cc.
21679 # We do the test twice because some compilers refuse to overwrite an
21680 # existing .o file with -o, though they will create one.
21681 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21682 rm -f conftest2.*
21683 if { (case "(($ac_try" in
21684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685   *) ac_try_echo=$ac_try;;
21686 esac
21687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21688 $as_echo "$ac_try_echo") >&5
21689   (eval "$ac_try") 2>&5
21690   ac_status=$?
21691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } &&
21693    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21698 $as_echo "$ac_try_echo") >&5
21699   (eval "$ac_try") 2>&5
21700   ac_status=$?
21701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); };
21703 then
21704   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21705   if test "x$CC" != xcc; then
21706     # Test first that cc exists at all.
21707     if { ac_try='cc -c conftest.$ac_ext >&5'
21708   { (case "(($ac_try" in
21709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710   *) ac_try_echo=$ac_try;;
21711 esac
21712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21713 $as_echo "$ac_try_echo") >&5
21714   (eval "$ac_try") 2>&5
21715   ac_status=$?
21716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; }; then
21718       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21719       rm -f conftest2.*
21720       if { (case "(($ac_try" in
21721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722   *) ac_try_echo=$ac_try;;
21723 esac
21724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21725 $as_echo "$ac_try_echo") >&5
21726   (eval "$ac_try") 2>&5
21727   ac_status=$?
21728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } &&
21730          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21735 $as_echo "$ac_try_echo") >&5
21736   (eval "$ac_try") 2>&5
21737   ac_status=$?
21738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); };
21740       then
21741         # cc works too.
21742         :
21743       else
21744         # cc exists but doesn't like -o.
21745         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21746       fi
21747     fi
21748   fi
21749 else
21750   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21751 fi
21752 rm -f core conftest*
21753
21754 fi
21755 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21756   { $as_echo "$as_me:$LINENO: result: yes" >&5
21757 $as_echo "yes" >&6; }
21758 else
21759   { $as_echo "$as_me:$LINENO: result: no" >&5
21760 $as_echo "no" >&6; }
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define NO_MINUS_C_MINUS_O 1
21764 _ACEOF
21765
21766 fi
21767
21768 # FIXME: we rely on the cache variable name because
21769 # there is no other way.
21770 set dummy $CC
21771 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21772 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21773    # Losing compiler, so override with the script.
21774    # FIXME: It is wrong to rewrite CC.
21775    # But if we don't then we get into trouble of one sort or another.
21776    # A longer-term fix would be to have automake use am__CC in this case,
21777    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21778    CC="$am_aux_dir/compile $CC"
21779 fi
21780
21781
21782
21783 if test "x$cross_compiling" = "xno"; then
21784         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21785 else
21786         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21787 fi
21788
21789
21790
21791 if test -n "$ac_tool_prefix"; then
21792   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21793 set dummy ${ac_tool_prefix}ar; ac_word=$2
21794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21795 $as_echo_n "checking for $ac_word... " >&6; }
21796 if test "${ac_cv_prog_AR+set}" = set; then
21797   $as_echo_n "(cached) " >&6
21798 else
21799   if test -n "$AR"; then
21800   ac_cv_prog_AR="$AR" # Let the user override the test.
21801 else
21802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21803 for as_dir in $PATH
21804 do
21805   IFS=$as_save_IFS
21806   test -z "$as_dir" && as_dir=.
21807   for ac_exec_ext in '' $ac_executable_extensions; do
21808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21809     ac_cv_prog_AR="${ac_tool_prefix}ar"
21810     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21811     break 2
21812   fi
21813 done
21814 done
21815 IFS=$as_save_IFS
21816
21817 fi
21818 fi
21819 AR=$ac_cv_prog_AR
21820 if test -n "$AR"; then
21821   { $as_echo "$as_me:$LINENO: result: $AR" >&5
21822 $as_echo "$AR" >&6; }
21823 else
21824   { $as_echo "$as_me:$LINENO: result: no" >&5
21825 $as_echo "no" >&6; }
21826 fi
21827
21828
21829 fi
21830 if test -z "$ac_cv_prog_AR"; then
21831   ac_ct_AR=$AR
21832   # Extract the first word of "ar", so it can be a program name with args.
21833 set dummy ar; ac_word=$2
21834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21837   $as_echo_n "(cached) " >&6
21838 else
21839   if test -n "$ac_ct_AR"; then
21840   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21841 else
21842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21843 for as_dir in $PATH
21844 do
21845   IFS=$as_save_IFS
21846   test -z "$as_dir" && as_dir=.
21847   for ac_exec_ext in '' $ac_executable_extensions; do
21848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21849     ac_cv_prog_ac_ct_AR="ar"
21850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21851     break 2
21852   fi
21853 done
21854 done
21855 IFS=$as_save_IFS
21856
21857 fi
21858 fi
21859 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21860 if test -n "$ac_ct_AR"; then
21861   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21862 $as_echo "$ac_ct_AR" >&6; }
21863 else
21864   { $as_echo "$as_me:$LINENO: result: no" >&5
21865 $as_echo "no" >&6; }
21866 fi
21867
21868   if test "x$ac_ct_AR" = x; then
21869     AR=""
21870   else
21871     case $cross_compiling:$ac_tool_warned in
21872 yes:)
21873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21875 ac_tool_warned=yes ;;
21876 esac
21877     AR=$ac_ct_AR
21878   fi
21879 else
21880   AR="$ac_cv_prog_AR"
21881 fi
21882
21883 if test -n "$ac_tool_prefix"; then
21884   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21885 set dummy ${ac_tool_prefix}ld; ac_word=$2
21886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21887 $as_echo_n "checking for $ac_word... " >&6; }
21888 if test "${ac_cv_prog_LD+set}" = set; then
21889   $as_echo_n "(cached) " >&6
21890 else
21891   if test -n "$LD"; then
21892   ac_cv_prog_LD="$LD" # Let the user override the test.
21893 else
21894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895 for as_dir in $PATH
21896 do
21897   IFS=$as_save_IFS
21898   test -z "$as_dir" && as_dir=.
21899   for ac_exec_ext in '' $ac_executable_extensions; do
21900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21901     ac_cv_prog_LD="${ac_tool_prefix}ld"
21902     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21903     break 2
21904   fi
21905 done
21906 done
21907 IFS=$as_save_IFS
21908
21909 fi
21910 fi
21911 LD=$ac_cv_prog_LD
21912 if test -n "$LD"; then
21913   { $as_echo "$as_me:$LINENO: result: $LD" >&5
21914 $as_echo "$LD" >&6; }
21915 else
21916   { $as_echo "$as_me:$LINENO: result: no" >&5
21917 $as_echo "no" >&6; }
21918 fi
21919
21920
21921 fi
21922 if test -z "$ac_cv_prog_LD"; then
21923   ac_ct_LD=$LD
21924   # Extract the first word of "ld", so it can be a program name with args.
21925 set dummy ld; ac_word=$2
21926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21927 $as_echo_n "checking for $ac_word... " >&6; }
21928 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21929   $as_echo_n "(cached) " >&6
21930 else
21931   if test -n "$ac_ct_LD"; then
21932   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21933 else
21934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21935 for as_dir in $PATH
21936 do
21937   IFS=$as_save_IFS
21938   test -z "$as_dir" && as_dir=.
21939   for ac_exec_ext in '' $ac_executable_extensions; do
21940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21941     ac_cv_prog_ac_ct_LD="ld"
21942     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21943     break 2
21944   fi
21945 done
21946 done
21947 IFS=$as_save_IFS
21948
21949 fi
21950 fi
21951 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21952 if test -n "$ac_ct_LD"; then
21953   { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21954 $as_echo "$ac_ct_LD" >&6; }
21955 else
21956   { $as_echo "$as_me:$LINENO: result: no" >&5
21957 $as_echo "no" >&6; }
21958 fi
21959
21960   if test "x$ac_ct_LD" = x; then
21961     LD=""
21962   else
21963     case $cross_compiling:$ac_tool_warned in
21964 yes:)
21965 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21967 ac_tool_warned=yes ;;
21968 esac
21969     LD=$ac_ct_LD
21970   fi
21971 else
21972   LD="$ac_cv_prog_LD"
21973 fi
21974
21975
21976 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21977 $as_echo_n "checking for ANSI C header files... " >&6; }
21978 if test "${ac_cv_header_stdc+set}" = set; then
21979   $as_echo_n "(cached) " >&6
21980 else
21981   cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h.  */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h.  */
21987 #include <stdlib.h>
21988 #include <stdarg.h>
21989 #include <string.h>
21990 #include <float.h>
21991
21992 int
21993 main ()
21994 {
21995
21996   ;
21997   return 0;
21998 }
21999 _ACEOF
22000 rm -f conftest.$ac_objext
22001 if { (ac_try="$ac_compile"
22002 case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22007 $as_echo "$ac_try_echo") >&5
22008   (eval "$ac_compile") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } && {
22015          test -z "$ac_c_werror_flag" ||
22016          test ! -s conftest.err
22017        } && test -s conftest.$ac_objext; then
22018   ac_cv_header_stdc=yes
22019 else
22020   $as_echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023         ac_cv_header_stdc=no
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027
22028 if test $ac_cv_header_stdc = yes; then
22029   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22030   cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 #include <string.h>
22037
22038 _ACEOF
22039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22040   $EGREP "memchr" >/dev/null 2>&1; then
22041   :
22042 else
22043   ac_cv_header_stdc=no
22044 fi
22045 rm -f conftest*
22046
22047 fi
22048
22049 if test $ac_cv_header_stdc = yes; then
22050   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22051   cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 #include <stdlib.h>
22058
22059 _ACEOF
22060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22061   $EGREP "free" >/dev/null 2>&1; then
22062   :
22063 else
22064   ac_cv_header_stdc=no
22065 fi
22066 rm -f conftest*
22067
22068 fi
22069
22070 if test $ac_cv_header_stdc = yes; then
22071   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22072   if test "$cross_compiling" = yes; then
22073   :
22074 else
22075   cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 #include <ctype.h>
22082 #include <stdlib.h>
22083 #if ((' ' & 0x0FF) == 0x020)
22084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22086 #else
22087 # define ISLOWER(c) \
22088                    (('a' <= (c) && (c) <= 'i') \
22089                      || ('j' <= (c) && (c) <= 'r') \
22090                      || ('s' <= (c) && (c) <= 'z'))
22091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22092 #endif
22093
22094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22095 int
22096 main ()
22097 {
22098   int i;
22099   for (i = 0; i < 256; i++)
22100     if (XOR (islower (i), ISLOWER (i))
22101         || toupper (i) != TOUPPER (i))
22102       return 2;
22103   return 0;
22104 }
22105 _ACEOF
22106 rm -f conftest$ac_exeext
22107 if { (ac_try="$ac_link"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113 $as_echo "$ac_try_echo") >&5
22114   (eval "$ac_link") 2>&5
22115   ac_status=$?
22116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118   { (case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123 $as_echo "$ac_try_echo") >&5
22124   (eval "$ac_try") 2>&5
22125   ac_status=$?
22126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128   :
22129 else
22130   $as_echo "$as_me: program exited with status $ac_status" >&5
22131 $as_echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 ( exit $ac_status )
22135 ac_cv_header_stdc=no
22136 fi
22137 rm -rf conftest.dSYM
22138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22139 fi
22140
22141
22142 fi
22143 fi
22144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22145 $as_echo "$ac_cv_header_stdc" >&6; }
22146 if test $ac_cv_header_stdc = yes; then
22147
22148 cat >>confdefs.h <<\_ACEOF
22149 #define STDC_HEADERS 1
22150 _ACEOF
22151
22152 fi
22153
22154
22155   { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
22156 $as_echo_n "checking for GNU libc2... " >&6; }
22157   if test "${knfsd_cv_glibc2+set}" = set; then
22158   $as_echo_n "(cached) " >&6
22159 else
22160   cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166
22167       #include <features.h>
22168       #if !defined(__GLIBC__)
22169       # error Nope
22170       #endif
22171
22172 _ACEOF
22173 if { (ac_try="$ac_cpp conftest.$ac_ext"
22174 case "(($ac_try" in
22175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176   *) ac_try_echo=$ac_try;;
22177 esac
22178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22179 $as_echo "$ac_try_echo") >&5
22180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } >/dev/null && {
22187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22188          test ! -s conftest.err
22189        }; then
22190   knfsd_cv_glibc2=yes
22191 else
22192   $as_echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195   knfsd_cv_glibc2=no
22196 fi
22197
22198 rm -f conftest.err conftest.$ac_ext
22199 fi
22200
22201   { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
22202 $as_echo "$knfsd_cv_glibc2" >&6; }
22203   if test $knfsd_cv_glibc2 = yes; then
22204     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
22205     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
22206   fi
22207
22208
22209   { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
22210 $as_echo_n "checking for BSD signal semantics... " >&6; }
22211   if test "${knfsd_cv_bsd_signals+set}" = set; then
22212   $as_echo_n "(cached) " >&6
22213 else
22214   if test "$cross_compiling" = yes; then
22215
22216       case "$host_os" in
22217         *linux*) knfsd_cv_bsd_signals=no;;
22218         *bsd*)   knfsd_cv_bsd_signals=yes;;
22219         *)       { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
22220 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
22221    { (exit 1); exit 1; }; };;
22222       esac
22223
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231
22232         #include <signal.h>
22233         #include <unistd.h>
22234         #include <sys/wait.h>
22235
22236         static int counter = 0;
22237         static RETSIGTYPE handler(int num) { counter++; }
22238
22239         int main()
22240         {
22241                 int     s;
22242                 if ((s = fork()) < 0) return 1;
22243                 if (s != 0) {
22244                         if (wait(&s) < 0) return 1;
22245                         return WIFSIGNALED(s)? 1 : 0;
22246                 }
22247
22248                 signal(SIGHUP, handler);
22249                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
22250                 return (counter == 2)? 0 : 1;
22251         }
22252
22253 _ACEOF
22254 rm -f conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22261 $as_echo "$ac_try_echo") >&5
22262   (eval "$ac_link") 2>&5
22263   ac_status=$?
22264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22266   { (case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22271 $as_echo "$ac_try_echo") >&5
22272   (eval "$ac_try") 2>&5
22273   ac_status=$?
22274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; }; then
22276   knfsd_cv_bsd_signals=yes
22277 else
22278   $as_echo "$as_me: program exited with status $ac_status" >&5
22279 $as_echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 ( exit $ac_status )
22283 knfsd_cv_bsd_signals=no
22284 fi
22285 rm -rf conftest.dSYM
22286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22287 fi
22288
22289
22290 fi
22291      { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
22292 $as_echo "$knfsd_cv_bsd_signals" >&6; }
22293     test $knfsd_cv_bsd_signals = yes &&
22294 cat >>confdefs.h <<\_ACEOF
22295 #define HAVE_BSD_SIGNALS 1
22296 _ACEOF
22297
22298
22299
22300 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
22301 $as_echo_n "checking for gethostbyname... " >&6; }
22302 if test "${ac_cv_func_gethostbyname+set}" = set; then
22303   $as_echo_n "(cached) " >&6
22304 else
22305   cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h.  */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h.  */
22311 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22313 #define gethostbyname innocuous_gethostbyname
22314
22315 /* System header to define __stub macros and hopefully few prototypes,
22316     which can conflict with char gethostbyname (); below.
22317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22318     <limits.h> exists even on freestanding compilers.  */
22319
22320 #ifdef __STDC__
22321 # include <limits.h>
22322 #else
22323 # include <assert.h>
22324 #endif
22325
22326 #undef gethostbyname
22327
22328 /* Override any GCC internal prototype to avoid an error.
22329    Use char because int might match the return type of a GCC
22330    builtin and then its argument prototype would still apply.  */
22331 #ifdef __cplusplus
22332 extern "C"
22333 #endif
22334 char gethostbyname ();
22335 /* The GNU C library defines this for functions which it implements
22336     to always fail with ENOSYS.  Some functions are actually named
22337     something starting with __ and the normal name is an alias.  */
22338 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22339 choke me
22340 #endif
22341
22342 int
22343 main ()
22344 {
22345 return gethostbyname ();
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22357 $as_echo "$ac_try_echo") >&5
22358   (eval "$ac_link") 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } && {
22365          test -z "$ac_c_werror_flag" ||
22366          test ! -s conftest.err
22367        } && test -s conftest$ac_exeext && {
22368          test "$cross_compiling" = yes ||
22369          $as_test_x conftest$ac_exeext
22370        }; then
22371   ac_cv_func_gethostbyname=yes
22372 else
22373   $as_echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376         ac_cv_func_gethostbyname=no
22377 fi
22378
22379 rm -rf conftest.dSYM
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381       conftest$ac_exeext conftest.$ac_ext
22382 fi
22383 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22384 $as_echo "$ac_cv_func_gethostbyname" >&6; }
22385 if test "x$ac_cv_func_gethostbyname" = x""yes; then
22386   :
22387 else
22388   { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22389 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22390 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22391   $as_echo_n "(cached) " >&6
22392 else
22393   ac_check_lib_save_LIBS=$LIBS
22394 LIBS="-lnsl  $LIBS"
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401
22402 /* Override any GCC internal prototype to avoid an error.
22403    Use char because int might match the return type of a GCC
22404    builtin and then its argument prototype would still apply.  */
22405 #ifdef __cplusplus
22406 extern "C"
22407 #endif
22408 char gethostbyname ();
22409 int
22410 main ()
22411 {
22412 return gethostbyname ();
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 rm -f conftest.$ac_objext conftest$ac_exeext
22418 if { (ac_try="$ac_link"
22419 case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22424 $as_echo "$ac_try_echo") >&5
22425   (eval "$ac_link") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } && {
22432          test -z "$ac_c_werror_flag" ||
22433          test ! -s conftest.err
22434        } && test -s conftest$ac_exeext && {
22435          test "$cross_compiling" = yes ||
22436          $as_test_x conftest$ac_exeext
22437        }; then
22438   ac_cv_lib_nsl_gethostbyname=yes
22439 else
22440   $as_echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443         ac_cv_lib_nsl_gethostbyname=no
22444 fi
22445
22446 rm -rf conftest.dSYM
22447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22448       conftest$ac_exeext conftest.$ac_ext
22449 LIBS=$ac_check_lib_save_LIBS
22450 fi
22451 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22452 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22453 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22454   LIBNSL="-lnsl"
22455 fi
22456
22457 fi
22458
22459
22460
22461 { $as_echo "$as_me:$LINENO: checking for connect" >&5
22462 $as_echo_n "checking for connect... " >&6; }
22463 if test "${ac_cv_func_connect+set}" = set; then
22464   $as_echo_n "(cached) " >&6
22465 else
22466   cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h.  */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h.  */
22472 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22474 #define connect innocuous_connect
22475
22476 /* System header to define __stub macros and hopefully few prototypes,
22477     which can conflict with char connect (); below.
22478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22479     <limits.h> exists even on freestanding compilers.  */
22480
22481 #ifdef __STDC__
22482 # include <limits.h>
22483 #else
22484 # include <assert.h>
22485 #endif
22486
22487 #undef connect
22488
22489 /* Override any GCC internal prototype to avoid an error.
22490    Use char because int might match the return type of a GCC
22491    builtin and then its argument prototype would still apply.  */
22492 #ifdef __cplusplus
22493 extern "C"
22494 #endif
22495 char connect ();
22496 /* The GNU C library defines this for functions which it implements
22497     to always fail with ENOSYS.  Some functions are actually named
22498     something starting with __ and the normal name is an alias.  */
22499 #if defined __stub_connect || defined __stub___connect
22500 choke me
22501 #endif
22502
22503 int
22504 main ()
22505 {
22506 return connect ();
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (ac_try="$ac_link"
22513 case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22518 $as_echo "$ac_try_echo") >&5
22519   (eval "$ac_link") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && {
22526          test -z "$ac_c_werror_flag" ||
22527          test ! -s conftest.err
22528        } && test -s conftest$ac_exeext && {
22529          test "$cross_compiling" = yes ||
22530          $as_test_x conftest$ac_exeext
22531        }; then
22532   ac_cv_func_connect=yes
22533 else
22534   $as_echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537         ac_cv_func_connect=no
22538 fi
22539
22540 rm -rf conftest.dSYM
22541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22542       conftest$ac_exeext conftest.$ac_ext
22543 fi
22544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22545 $as_echo "$ac_cv_func_connect" >&6; }
22546 if test "x$ac_cv_func_connect" = x""yes; then
22547   :
22548 else
22549   { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22550 $as_echo_n "checking for connect in -lsocket... " >&6; }
22551 if test "${ac_cv_lib_socket_connect+set}" = set; then
22552   $as_echo_n "(cached) " >&6
22553 else
22554   ac_check_lib_save_LIBS=$LIBS
22555 LIBS="-lsocket $LIBNSL $LIBS"
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562
22563 /* Override any GCC internal prototype to avoid an error.
22564    Use char because int might match the return type of a GCC
22565    builtin and then its argument prototype would still apply.  */
22566 #ifdef __cplusplus
22567 extern "C"
22568 #endif
22569 char connect ();
22570 int
22571 main ()
22572 {
22573 return connect ();
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext conftest$ac_exeext
22579 if { (ac_try="$ac_link"
22580 case "(($ac_try" in
22581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582   *) ac_try_echo=$ac_try;;
22583 esac
22584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22585 $as_echo "$ac_try_echo") >&5
22586   (eval "$ac_link") 2>conftest.er1
22587   ac_status=$?
22588   grep -v '^ *+' conftest.er1 >conftest.err
22589   rm -f conftest.er1
22590   cat conftest.err >&5
22591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); } && {
22593          test -z "$ac_c_werror_flag" ||
22594          test ! -s conftest.err
22595        } && test -s conftest$ac_exeext && {
22596          test "$cross_compiling" = yes ||
22597          $as_test_x conftest$ac_exeext
22598        }; then
22599   ac_cv_lib_socket_connect=yes
22600 else
22601   $as_echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604         ac_cv_lib_socket_connect=no
22605 fi
22606
22607 rm -rf conftest.dSYM
22608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22609       conftest$ac_exeext conftest.$ac_ext
22610 LIBS=$ac_check_lib_save_LIBS
22611 fi
22612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22613 $as_echo "$ac_cv_lib_socket_connect" >&6; }
22614 if test "x$ac_cv_lib_socket_connect" = x""yes; then
22615   LIBSOCKET="-lsocket"
22616 else
22617   { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22618 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
22619    { (exit 1); exit 1; }; }
22620 fi
22621
22622 fi
22623
22624
22625 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
22626 $as_echo_n "checking for getaddrinfo... " >&6; }
22627 if test "${ac_cv_func_getaddrinfo+set}" = set; then
22628   $as_echo_n "(cached) " >&6
22629 else
22630   cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
22637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22638 #define getaddrinfo innocuous_getaddrinfo
22639
22640 /* System header to define __stub macros and hopefully few prototypes,
22641     which can conflict with char getaddrinfo (); below.
22642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22643     <limits.h> exists even on freestanding compilers.  */
22644
22645 #ifdef __STDC__
22646 # include <limits.h>
22647 #else
22648 # include <assert.h>
22649 #endif
22650
22651 #undef getaddrinfo
22652
22653 /* Override any GCC internal prototype to avoid an error.
22654    Use char because int might match the return type of a GCC
22655    builtin and then its argument prototype would still apply.  */
22656 #ifdef __cplusplus
22657 extern "C"
22658 #endif
22659 char getaddrinfo ();
22660 /* The GNU C library defines this for functions which it implements
22661     to always fail with ENOSYS.  Some functions are actually named
22662     something starting with __ and the normal name is an alias.  */
22663 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22664 choke me
22665 #endif
22666
22667 int
22668 main ()
22669 {
22670 return getaddrinfo ();
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext conftest$ac_exeext
22676 if { (ac_try="$ac_link"
22677 case "(($ac_try" in
22678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679   *) ac_try_echo=$ac_try;;
22680 esac
22681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22682 $as_echo "$ac_try_echo") >&5
22683   (eval "$ac_link") 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && {
22690          test -z "$ac_c_werror_flag" ||
22691          test ! -s conftest.err
22692        } && test -s conftest$ac_exeext && {
22693          test "$cross_compiling" = yes ||
22694          $as_test_x conftest$ac_exeext
22695        }; then
22696   ac_cv_func_getaddrinfo=yes
22697 else
22698   $as_echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22700
22701         ac_cv_func_getaddrinfo=no
22702 fi
22703
22704 rm -rf conftest.dSYM
22705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22706       conftest$ac_exeext conftest.$ac_ext
22707 fi
22708 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22709 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
22710
22711
22712 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
22713 $as_echo_n "checking for getrpcbynumber... " >&6; }
22714 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
22715   $as_echo_n "(cached) " >&6
22716 else
22717   cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
22724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22725 #define getrpcbynumber innocuous_getrpcbynumber
22726
22727 /* System header to define __stub macros and hopefully few prototypes,
22728     which can conflict with char getrpcbynumber (); below.
22729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22730     <limits.h> exists even on freestanding compilers.  */
22731
22732 #ifdef __STDC__
22733 # include <limits.h>
22734 #else
22735 # include <assert.h>
22736 #endif
22737
22738 #undef getrpcbynumber
22739
22740 /* Override any GCC internal prototype to avoid an error.
22741    Use char because int might match the return type of a GCC
22742    builtin and then its argument prototype would still apply.  */
22743 #ifdef __cplusplus
22744 extern "C"
22745 #endif
22746 char getrpcbynumber ();
22747 /* The GNU C library defines this for functions which it implements
22748     to always fail with ENOSYS.  Some functions are actually named
22749     something starting with __ and the normal name is an alias.  */
22750 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
22751 choke me
22752 #endif
22753
22754 int
22755 main ()
22756 {
22757 return getrpcbynumber ();
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 rm -f conftest.$ac_objext conftest$ac_exeext
22763 if { (ac_try="$ac_link"
22764 case "(($ac_try" in
22765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766   *) ac_try_echo=$ac_try;;
22767 esac
22768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22769 $as_echo "$ac_try_echo") >&5
22770   (eval "$ac_link") 2>conftest.er1
22771   ac_status=$?
22772   grep -v '^ *+' conftest.er1 >conftest.err
22773   rm -f conftest.er1
22774   cat conftest.err >&5
22775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } && {
22777          test -z "$ac_c_werror_flag" ||
22778          test ! -s conftest.err
22779        } && test -s conftest$ac_exeext && {
22780          test "$cross_compiling" = yes ||
22781          $as_test_x conftest$ac_exeext
22782        }; then
22783   ac_cv_func_getrpcbynumber=yes
22784 else
22785   $as_echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788         ac_cv_func_getrpcbynumber=no
22789 fi
22790
22791 rm -rf conftest.dSYM
22792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22793       conftest$ac_exeext conftest.$ac_ext
22794 fi
22795 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
22796 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
22797
22798
22799 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
22800 $as_echo_n "checking for getservbyname... " >&6; }
22801 if test "${ac_cv_func_getservbyname+set}" = set; then
22802   $as_echo_n "(cached) " >&6
22803 else
22804   cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
22811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22812 #define getservbyname innocuous_getservbyname
22813
22814 /* System header to define __stub macros and hopefully few prototypes,
22815     which can conflict with char getservbyname (); below.
22816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22817     <limits.h> exists even on freestanding compilers.  */
22818
22819 #ifdef __STDC__
22820 # include <limits.h>
22821 #else
22822 # include <assert.h>
22823 #endif
22824
22825 #undef getservbyname
22826
22827 /* Override any GCC internal prototype to avoid an error.
22828    Use char because int might match the return type of a GCC
22829    builtin and then its argument prototype would still apply.  */
22830 #ifdef __cplusplus
22831 extern "C"
22832 #endif
22833 char getservbyname ();
22834 /* The GNU C library defines this for functions which it implements
22835     to always fail with ENOSYS.  Some functions are actually named
22836     something starting with __ and the normal name is an alias.  */
22837 #if defined __stub_getservbyname || defined __stub___getservbyname
22838 choke me
22839 #endif
22840
22841 int
22842 main ()
22843 {
22844 return getservbyname ();
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext conftest$ac_exeext
22850 if { (ac_try="$ac_link"
22851 case "(($ac_try" in
22852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853   *) ac_try_echo=$ac_try;;
22854 esac
22855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22856 $as_echo "$ac_try_echo") >&5
22857   (eval "$ac_link") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest$ac_exeext && {
22867          test "$cross_compiling" = yes ||
22868          $as_test_x conftest$ac_exeext
22869        }; then
22870   ac_cv_func_getservbyname=yes
22871 else
22872   $as_echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875         ac_cv_func_getservbyname=no
22876 fi
22877
22878 rm -rf conftest.dSYM
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880       conftest$ac_exeext conftest.$ac_ext
22881 fi
22882 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
22883 $as_echo "$ac_cv_func_getservbyname" >&6; }
22884
22885
22886 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22887 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22888 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22889   $as_echo_n "(cached) " >&6
22890 else
22891   ac_check_lib_save_LIBS=$LIBS
22892 LIBS="-lcrypt  $LIBS"
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899
22900 /* Override any GCC internal prototype to avoid an error.
22901    Use char because int might match the return type of a GCC
22902    builtin and then its argument prototype would still apply.  */
22903 #ifdef __cplusplus
22904 extern "C"
22905 #endif
22906 char crypt ();
22907 int
22908 main ()
22909 {
22910 return crypt ();
22911   ;
22912   return 0;
22913 }
22914 _ACEOF
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919   *) ac_try_echo=$ac_try;;
22920 esac
22921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923   (eval "$ac_link") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest$ac_exeext && {
22933          test "$cross_compiling" = yes ||
22934          $as_test_x conftest$ac_exeext
22935        }; then
22936   ac_cv_lib_crypt_crypt=yes
22937 else
22938   $as_echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         ac_cv_lib_crypt_crypt=no
22942 fi
22943
22944 rm -rf conftest.dSYM
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946       conftest$ac_exeext conftest.$ac_ext
22947 LIBS=$ac_check_lib_save_LIBS
22948 fi
22949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22950 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22951 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
22952   LIBCRYPT="-lcrypt"
22953 fi
22954
22955 if test "$enable_nfsv4" = yes; then
22956     { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22957 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
22958 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22959   $as_echo_n "(cached) " >&6
22960 else
22961   ac_check_lib_save_LIBS=$LIBS
22962 LIBS="-levent  $LIBS"
22963 cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969
22970 /* Override any GCC internal prototype to avoid an error.
22971    Use char because int might match the return type of a GCC
22972    builtin and then its argument prototype would still apply.  */
22973 #ifdef __cplusplus
22974 extern "C"
22975 #endif
22976 char event_dispatch ();
22977 int
22978 main ()
22979 {
22980 return event_dispatch ();
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22992 $as_echo "$ac_try_echo") >&5
22993   (eval "$ac_link") 2>conftest.er1
22994   ac_status=$?
22995   grep -v '^ *+' conftest.er1 >conftest.err
22996   rm -f conftest.er1
22997   cat conftest.err >&5
22998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999   (exit $ac_status); } && {
23000          test -z "$ac_c_werror_flag" ||
23001          test ! -s conftest.err
23002        } && test -s conftest$ac_exeext && {
23003          test "$cross_compiling" = yes ||
23004          $as_test_x conftest$ac_exeext
23005        }; then
23006   ac_cv_lib_event_event_dispatch=yes
23007 else
23008   $as_echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011         ac_cv_lib_event_event_dispatch=no
23012 fi
23013
23014 rm -rf conftest.dSYM
23015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23016       conftest$ac_exeext conftest.$ac_ext
23017 LIBS=$ac_check_lib_save_LIBS
23018 fi
23019 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
23020 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
23021 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
23022   libevent=1
23023 else
23024   { { $as_echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
23025 $as_echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
23026    { (exit 1); exit 1; }; }
23027 fi
23028
23029     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
23030 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
23031 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
23032   $as_echo_n "(cached) " >&6
23033 else
23034   ac_check_lib_save_LIBS=$LIBS
23035 LIBS="-lnfsidmap  $LIBS"
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042
23043 /* Override any GCC internal prototype to avoid an error.
23044    Use char because int might match the return type of a GCC
23045    builtin and then its argument prototype would still apply.  */
23046 #ifdef __cplusplus
23047 extern "C"
23048 #endif
23049 char nfs4_init_name_mapping ();
23050 int
23051 main ()
23052 {
23053 return nfs4_init_name_mapping ();
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062   *) ac_try_echo=$ac_try;;
23063 esac
23064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23065 $as_echo "$ac_try_echo") >&5
23066   (eval "$ac_link") 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } && {
23073          test -z "$ac_c_werror_flag" ||
23074          test ! -s conftest.err
23075        } && test -s conftest$ac_exeext && {
23076          test "$cross_compiling" = yes ||
23077          $as_test_x conftest$ac_exeext
23078        }; then
23079   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
23080 else
23081   $as_echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23083
23084         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
23085 fi
23086
23087 rm -rf conftest.dSYM
23088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23089       conftest$ac_exeext conftest.$ac_ext
23090 LIBS=$ac_check_lib_save_LIBS
23091 fi
23092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
23093 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
23094 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
23095   libnfsidmap=1
23096 else
23097   { { $as_echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
23098 $as_echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
23099    { (exit 1); exit 1; }; }
23100 fi
23101
23102
23103 for ac_header in event.h
23104 do
23105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23107   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23108 $as_echo_n "checking for $ac_header... " >&6; }
23109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23110   $as_echo_n "(cached) " >&6
23111 fi
23112 ac_res=`eval 'as_val=${'$as_ac_Header'}
23113                  $as_echo "$as_val"'`
23114                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23115 $as_echo "$ac_res" >&6; }
23116 else
23117   # Is the header compilable?
23118 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23119 $as_echo_n "checking $ac_header usability... " >&6; }
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 $ac_includes_default
23127 #include <$ac_header>
23128 _ACEOF
23129 rm -f conftest.$ac_objext
23130 if { (ac_try="$ac_compile"
23131 case "(($ac_try" in
23132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133   *) ac_try_echo=$ac_try;;
23134 esac
23135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23136 $as_echo "$ac_try_echo") >&5
23137   (eval "$ac_compile") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest.$ac_objext; then
23147   ac_header_compiler=yes
23148 else
23149   $as_echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152         ac_header_compiler=no
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23157 $as_echo "$ac_header_compiler" >&6; }
23158
23159 # Is the header present?
23160 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23161 $as_echo_n "checking $ac_header presence... " >&6; }
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h.  */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h.  */
23168 #include <$ac_header>
23169 _ACEOF
23170 if { (ac_try="$ac_cpp conftest.$ac_ext"
23171 case "(($ac_try" in
23172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173   *) ac_try_echo=$ac_try;;
23174 esac
23175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23176 $as_echo "$ac_try_echo") >&5
23177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23178   ac_status=$?
23179   grep -v '^ *+' conftest.er1 >conftest.err
23180   rm -f conftest.er1
23181   cat conftest.err >&5
23182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } >/dev/null && {
23184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23185          test ! -s conftest.err
23186        }; then
23187   ac_header_preproc=yes
23188 else
23189   $as_echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192   ac_header_preproc=no
23193 fi
23194
23195 rm -f conftest.err conftest.$ac_ext
23196 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23197 $as_echo "$ac_header_preproc" >&6; }
23198
23199 # So?  What about this header?
23200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23201   yes:no: )
23202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23203 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23206     ac_header_preproc=yes
23207     ;;
23208   no:yes:* )
23209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23210 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23212 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23214 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23216 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23220 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23221     ( cat <<\_ASBOX
23222 ## ---------------------------------------- ##
23223 ## Report this to linux-nfs@vger.kernel.org ##
23224 ## ---------------------------------------- ##
23225 _ASBOX
23226      ) | sed "s/^/$as_me: WARNING:     /" >&2
23227     ;;
23228 esac
23229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23230 $as_echo_n "checking for $ac_header... " >&6; }
23231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23232   $as_echo_n "(cached) " >&6
23233 else
23234   eval "$as_ac_Header=\$ac_header_preproc"
23235 fi
23236 ac_res=`eval 'as_val=${'$as_ac_Header'}
23237                  $as_echo "$as_val"'`
23238                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23239 $as_echo "$ac_res" >&6; }
23240
23241 fi
23242 as_val=`eval 'as_val=${'$as_ac_Header'}
23243                  $as_echo "$as_val"'`
23244    if test "x$as_val" = x""yes; then
23245   cat >>confdefs.h <<_ACEOF
23246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23247 _ACEOF
23248
23249 else
23250   { { $as_echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
23251 $as_echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
23252    { (exit 1); exit 1; }; }
23253 fi
23254
23255 done
23256
23257
23258 for ac_header in nfsidmap.h
23259 do
23260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23262   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23263 $as_echo_n "checking for $ac_header... " >&6; }
23264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23265   $as_echo_n "(cached) " >&6
23266 fi
23267 ac_res=`eval 'as_val=${'$as_ac_Header'}
23268                  $as_echo "$as_val"'`
23269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23270 $as_echo "$ac_res" >&6; }
23271 else
23272   # Is the header compilable?
23273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23274 $as_echo_n "checking $ac_header usability... " >&6; }
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281 $ac_includes_default
23282 #include <$ac_header>
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (ac_try="$ac_compile"
23286 case "(($ac_try" in
23287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288   *) ac_try_echo=$ac_try;;
23289 esac
23290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292   (eval "$ac_compile") 2>conftest.er1
23293   ac_status=$?
23294   grep -v '^ *+' conftest.er1 >conftest.err
23295   rm -f conftest.er1
23296   cat conftest.err >&5
23297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); } && {
23299          test -z "$ac_c_werror_flag" ||
23300          test ! -s conftest.err
23301        } && test -s conftest.$ac_objext; then
23302   ac_header_compiler=yes
23303 else
23304   $as_echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307         ac_header_compiler=no
23308 fi
23309
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23312 $as_echo "$ac_header_compiler" >&6; }
23313
23314 # Is the header present?
23315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23316 $as_echo_n "checking $ac_header presence... " >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 #include <$ac_header>
23324 _ACEOF
23325 if { (ac_try="$ac_cpp conftest.$ac_ext"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23331 $as_echo "$ac_try_echo") >&5
23332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } >/dev/null && {
23339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23340          test ! -s conftest.err
23341        }; then
23342   ac_header_preproc=yes
23343 else
23344   $as_echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347   ac_header_preproc=no
23348 fi
23349
23350 rm -f conftest.err conftest.$ac_ext
23351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23352 $as_echo "$ac_header_preproc" >&6; }
23353
23354 # So?  What about this header?
23355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23356   yes:no: )
23357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23361     ac_header_preproc=yes
23362     ;;
23363   no:yes:* )
23364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23367 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23371 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23376     ( cat <<\_ASBOX
23377 ## ---------------------------------------- ##
23378 ## Report this to linux-nfs@vger.kernel.org ##
23379 ## ---------------------------------------- ##
23380 _ASBOX
23381      ) | sed "s/^/$as_me: WARNING:     /" >&2
23382     ;;
23383 esac
23384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23385 $as_echo_n "checking for $ac_header... " >&6; }
23386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23387   $as_echo_n "(cached) " >&6
23388 else
23389   eval "$as_ac_Header=\$ac_header_preproc"
23390 fi
23391 ac_res=`eval 'as_val=${'$as_ac_Header'}
23392                  $as_echo "$as_val"'`
23393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23394 $as_echo "$ac_res" >&6; }
23395
23396 fi
23397 as_val=`eval 'as_val=${'$as_ac_Header'}
23398                  $as_echo "$as_val"'`
23399    if test "x$as_val" = x""yes; then
23400   cat >>confdefs.h <<_ACEOF
23401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23402 _ACEOF
23403
23404 else
23405   { { $as_echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
23406 $as_echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
23407    { (exit 1); exit 1; }; }
23408 fi
23409
23410 done
23411
23412             if test "$enable_gss" = yes; then
23413
23414
23415 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23416         if test -n "$ac_tool_prefix"; then
23417   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23418 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23420 $as_echo_n "checking for $ac_word... " >&6; }
23421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23422   $as_echo_n "(cached) " >&6
23423 else
23424   case $PKG_CONFIG in
23425   [\\/]* | ?:[\\/]*)
23426   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23427   ;;
23428   *)
23429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23430 for as_dir in $PATH
23431 do
23432   IFS=$as_save_IFS
23433   test -z "$as_dir" && as_dir=.
23434   for ac_exec_ext in '' $ac_executable_extensions; do
23435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23436     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23437     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23438     break 2
23439   fi
23440 done
23441 done
23442 IFS=$as_save_IFS
23443
23444   ;;
23445 esac
23446 fi
23447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23448 if test -n "$PKG_CONFIG"; then
23449   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23450 $as_echo "$PKG_CONFIG" >&6; }
23451 else
23452   { $as_echo "$as_me:$LINENO: result: no" >&5
23453 $as_echo "no" >&6; }
23454 fi
23455
23456
23457 fi
23458 if test -z "$ac_cv_path_PKG_CONFIG"; then
23459   ac_pt_PKG_CONFIG=$PKG_CONFIG
23460   # Extract the first word of "pkg-config", so it can be a program name with args.
23461 set dummy pkg-config; ac_word=$2
23462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23463 $as_echo_n "checking for $ac_word... " >&6; }
23464 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23465   $as_echo_n "(cached) " >&6
23466 else
23467   case $ac_pt_PKG_CONFIG in
23468   [\\/]* | ?:[\\/]*)
23469   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23470   ;;
23471   *)
23472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23473 for as_dir in $PATH
23474 do
23475   IFS=$as_save_IFS
23476   test -z "$as_dir" && as_dir=.
23477   for ac_exec_ext in '' $ac_executable_extensions; do
23478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23479     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23480     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23481     break 2
23482   fi
23483 done
23484 done
23485 IFS=$as_save_IFS
23486
23487   ;;
23488 esac
23489 fi
23490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23491 if test -n "$ac_pt_PKG_CONFIG"; then
23492   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23493 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23494 else
23495   { $as_echo "$as_me:$LINENO: result: no" >&5
23496 $as_echo "no" >&6; }
23497 fi
23498
23499   if test "x$ac_pt_PKG_CONFIG" = x; then
23500     PKG_CONFIG=""
23501   else
23502     case $cross_compiling:$ac_tool_warned in
23503 yes:)
23504 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23506 ac_tool_warned=yes ;;
23507 esac
23508     PKG_CONFIG=$ac_pt_PKG_CONFIG
23509   fi
23510 else
23511   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23512 fi
23513
23514 fi
23515 if test -n "$PKG_CONFIG"; then
23516         _pkg_min_version=0.9.0
23517         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23518 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23519         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23520                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23521 $as_echo "yes" >&6; }
23522         else
23523                 { $as_echo "$as_me:$LINENO: result: no" >&5
23524 $as_echo "no" >&6; }
23525                 PKG_CONFIG=""
23526         fi
23527
23528 fi
23529
23530 pkg_failed=no
23531 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
23532 $as_echo_n "checking for RPCSECGSS... " >&6; }
23533
23534 if test -n "$RPCSECGSS_CFLAGS"; then
23535     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
23536  elif test -n "$PKG_CONFIG"; then
23537     if test -n "$PKG_CONFIG" && \
23538     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
23539   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
23540   ac_status=$?
23541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); }; then
23543   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
23544 else
23545   pkg_failed=yes
23546 fi
23547  else
23548     pkg_failed=untried
23549 fi
23550 if test -n "$RPCSECGSS_LIBS"; then
23551     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
23552  elif test -n "$PKG_CONFIG"; then
23553     if test -n "$PKG_CONFIG" && \
23554     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
23555   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
23556   ac_status=$?
23557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }; then
23559   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
23560 else
23561   pkg_failed=yes
23562 fi
23563  else
23564     pkg_failed=untried
23565 fi
23566
23567
23568
23569 if test $pkg_failed = yes; then
23570
23571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23572         _pkg_short_errors_supported=yes
23573 else
23574         _pkg_short_errors_supported=no
23575 fi
23576         if test $_pkg_short_errors_supported = yes; then
23577                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
23578         else
23579                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
23580         fi
23581         # Put the nasty error message in config.log where it belongs
23582         echo "$RPCSECGSS_PKG_ERRORS" >&5
23583
23584         { $as_echo "$as_me:$LINENO: result: no" >&5
23585 $as_echo "no" >&6; }
23586                 { { $as_echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
23587 $as_echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
23588    { (exit 1); exit 1; }; }
23589
23590
23591 elif test $pkg_failed = untried; then
23592         { { $as_echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
23593 $as_echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
23594    { (exit 1); exit 1; }; }
23595
23596
23597 else
23598         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
23599         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
23600         { $as_echo "$as_me:$LINENO: result: yes" >&5
23601 $as_echo "yes" >&6; }
23602         :
23603 fi
23604
23605 pkg_failed=no
23606 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
23607 $as_echo_n "checking for GSSGLUE... " >&6; }
23608
23609 if test -n "$GSSGLUE_CFLAGS"; then
23610     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
23611  elif test -n "$PKG_CONFIG"; then
23612     if test -n "$PKG_CONFIG" && \
23613     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
23614   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
23615   ac_status=$?
23616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); }; then
23618   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
23619 else
23620   pkg_failed=yes
23621 fi
23622  else
23623     pkg_failed=untried
23624 fi
23625 if test -n "$GSSGLUE_LIBS"; then
23626     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
23627  elif test -n "$PKG_CONFIG"; then
23628     if test -n "$PKG_CONFIG" && \
23629     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
23630   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
23631   ac_status=$?
23632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; then
23634   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
23635 else
23636   pkg_failed=yes
23637 fi
23638  else
23639     pkg_failed=untried
23640 fi
23641
23642
23643
23644 if test $pkg_failed = yes; then
23645
23646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23647         _pkg_short_errors_supported=yes
23648 else
23649         _pkg_short_errors_supported=no
23650 fi
23651         if test $_pkg_short_errors_supported = yes; then
23652                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
23653         else
23654                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
23655         fi
23656         # Put the nasty error message in config.log where it belongs
23657         echo "$GSSGLUE_PKG_ERRORS" >&5
23658
23659         { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
23660
23661 $GSSGLUE_PKG_ERRORS
23662
23663 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23664 installed software in a non-standard prefix.
23665
23666 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
23667 and GSSGLUE_LIBS to avoid the need to call pkg-config.
23668 See the pkg-config man page for more details.
23669 " >&5
23670 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
23671
23672 $GSSGLUE_PKG_ERRORS
23673
23674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23675 installed software in a non-standard prefix.
23676
23677 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
23678 and GSSGLUE_LIBS to avoid the need to call pkg-config.
23679 See the pkg-config man page for more details.
23680 " >&2;}
23681    { (exit 1); exit 1; }; }
23682 elif test $pkg_failed = untried; then
23683         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23685 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23686 is in your PATH or set the PKG_CONFIG environment variable to the full
23687 path to pkg-config.
23688
23689 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
23690 and GSSGLUE_LIBS to avoid the need to call pkg-config.
23691 See the pkg-config man page for more details.
23692
23693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23694 See \`config.log' for more details." >&5
23695 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23696 is in your PATH or set the PKG_CONFIG environment variable to the full
23697 path to pkg-config.
23698
23699 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
23700 and GSSGLUE_LIBS to avoid the need to call pkg-config.
23701 See the pkg-config man page for more details.
23702
23703 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23704 See \`config.log' for more details." >&2;}
23705    { (exit 1); exit 1; }; }; }
23706 else
23707         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
23708         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
23709         { $as_echo "$as_me:$LINENO: result: yes" >&5
23710 $as_echo "yes" >&6; }
23711         :
23712 fi
23713     fi
23714
23715 fi
23716 if test "$knfsd_cv_glibc2" = no; then
23717     { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
23718 $as_echo_n "checking for daemon in -lbsd... " >&6; }
23719 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
23720   $as_echo_n "(cached) " >&6
23721 else
23722   ac_check_lib_save_LIBS=$LIBS
23723 LIBS="-lbsd  $LIBS"
23724 cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h.  */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h.  */
23730
23731 /* Override any GCC internal prototype to avoid an error.
23732    Use char because int might match the return type of a GCC
23733    builtin and then its argument prototype would still apply.  */
23734 #ifdef __cplusplus
23735 extern "C"
23736 #endif
23737 char daemon ();
23738 int
23739 main ()
23740 {
23741 return daemon ();
23742   ;
23743   return 0;
23744 }
23745 _ACEOF
23746 rm -f conftest.$ac_objext conftest$ac_exeext
23747 if { (ac_try="$ac_link"
23748 case "(($ac_try" in
23749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750   *) ac_try_echo=$ac_try;;
23751 esac
23752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23753 $as_echo "$ac_try_echo") >&5
23754   (eval "$ac_link") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest$ac_exeext && {
23764          test "$cross_compiling" = yes ||
23765          $as_test_x conftest$ac_exeext
23766        }; then
23767   ac_cv_lib_bsd_daemon=yes
23768 else
23769   $as_echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772         ac_cv_lib_bsd_daemon=no
23773 fi
23774
23775 rm -rf conftest.dSYM
23776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23777       conftest$ac_exeext conftest.$ac_ext
23778 LIBS=$ac_check_lib_save_LIBS
23779 fi
23780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
23781 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
23782 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
23783   LIBBSD="-lbsd"
23784 fi
23785
23786 fi
23787
23788 if test "$choose_blkid" != no; then
23789    { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
23790 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
23791 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
23792   $as_echo_n "(cached) " >&6
23793 else
23794   ac_check_lib_save_LIBS=$LIBS
23795 LIBS="-lblkid  $LIBS"
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802
23803 /* Override any GCC internal prototype to avoid an error.
23804    Use char because int might match the return type of a GCC
23805    builtin and then its argument prototype would still apply.  */
23806 #ifdef __cplusplus
23807 extern "C"
23808 #endif
23809 char blkid_get_library_version ();
23810 int
23811 main ()
23812 {
23813 return blkid_get_library_version ();
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822   *) ac_try_echo=$ac_try;;
23823 esac
23824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826   (eval "$ac_link") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest$ac_exeext && {
23836          test "$cross_compiling" = yes ||
23837          $as_test_x conftest$ac_exeext
23838        }; then
23839   ac_cv_lib_blkid_blkid_get_library_version=yes
23840 else
23841   $as_echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844         ac_cv_lib_blkid_blkid_get_library_version=no
23845 fi
23846
23847 rm -rf conftest.dSYM
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849       conftest$ac_exeext conftest.$ac_ext
23850 LIBS=$ac_check_lib_save_LIBS
23851 fi
23852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
23853 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
23854 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
23855   LIBBLKID="-lblkid"
23856 else
23857   { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
23858 $as_echo "$as_me: error: libblkid needed" >&2;}
23859    { (exit 1); exit 1; }; }
23860 fi
23861
23862    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23863   { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23864 $as_echo_n "checking for blkid/blkid.h... " >&6; }
23865 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23866   $as_echo_n "(cached) " >&6
23867 fi
23868 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23869 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
23870 else
23871   # Is the header compilable?
23872 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
23873 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 $ac_includes_default
23881 #include <blkid/blkid.h>
23882 _ACEOF
23883 rm -f conftest.$ac_objext
23884 if { (ac_try="$ac_compile"
23885 case "(($ac_try" in
23886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887   *) ac_try_echo=$ac_try;;
23888 esac
23889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23890 $as_echo "$ac_try_echo") >&5
23891   (eval "$ac_compile") 2>conftest.er1
23892   ac_status=$?
23893   grep -v '^ *+' conftest.er1 >conftest.err
23894   rm -f conftest.er1
23895   cat conftest.err >&5
23896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } && {
23898          test -z "$ac_c_werror_flag" ||
23899          test ! -s conftest.err
23900        } && test -s conftest.$ac_objext; then
23901   ac_header_compiler=yes
23902 else
23903   $as_echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23905
23906         ac_header_compiler=no
23907 fi
23908
23909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23911 $as_echo "$ac_header_compiler" >&6; }
23912
23913 # Is the header present?
23914 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23915 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
23916 cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 #include <blkid/blkid.h>
23923 _ACEOF
23924 if { (ac_try="$ac_cpp conftest.$ac_ext"
23925 case "(($ac_try" in
23926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927   *) ac_try_echo=$ac_try;;
23928 esac
23929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23930 $as_echo "$ac_try_echo") >&5
23931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23932   ac_status=$?
23933   grep -v '^ *+' conftest.er1 >conftest.err
23934   rm -f conftest.er1
23935   cat conftest.err >&5
23936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); } >/dev/null && {
23938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23939          test ! -s conftest.err
23940        }; then
23941   ac_header_preproc=yes
23942 else
23943   $as_echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946   ac_header_preproc=no
23947 fi
23948
23949 rm -f conftest.err conftest.$ac_ext
23950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23951 $as_echo "$ac_header_preproc" >&6; }
23952
23953 # So?  What about this header?
23954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23955   yes:no: )
23956     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23957 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23958     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23959 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23960     ac_header_preproc=yes
23961     ;;
23962   no:yes:* )
23963     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23964 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23965     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23966 $as_echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23967     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23968 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23969     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23970 $as_echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23971     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23972 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23973     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23974 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23975     ( cat <<\_ASBOX
23976 ## ---------------------------------------- ##
23977 ## Report this to linux-nfs@vger.kernel.org ##
23978 ## ---------------------------------------- ##
23979 _ASBOX
23980      ) | sed "s/^/$as_me: WARNING:     /" >&2
23981     ;;
23982 esac
23983 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23984 $as_echo_n "checking for blkid/blkid.h... " >&6; }
23985 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23986   $as_echo_n "(cached) " >&6
23987 else
23988   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23989 fi
23990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23991 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
23992
23993 fi
23994 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
23995   :
23996 else
23997   { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23998 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23999    { (exit 1); exit 1; }; }
24000 fi
24001
24002
24003
24004   { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
24005 $as_echo_n "checking for suitable libblkid version... " >&6; }
24006   if test "${libblkid_cv_is_recent+set}" = set; then
24007   $as_echo_n "(cached) " >&6
24008 else
24009
24010     saved_LIBS="$LIBS"
24011     LIBS=-lblkid
24012     if test "$cross_compiling" = yes; then
24013   libblkid_cv_is_recent=unknown
24014 else
24015   cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021
24022         #include <blkid/blkid.h>
24023         int main()
24024         {
24025                 int vers = blkid_get_library_version(0, 0);
24026                 return vers >= 140 ? 0 : 1;
24027         }
24028
24029 _ACEOF
24030 rm -f conftest$ac_exeext
24031 if { (ac_try="$ac_link"
24032 case "(($ac_try" in
24033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034   *) ac_try_echo=$ac_try;;
24035 esac
24036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24037 $as_echo "$ac_try_echo") >&5
24038   (eval "$ac_link") 2>&5
24039   ac_status=$?
24040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24042   { (case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24047 $as_echo "$ac_try_echo") >&5
24048   (eval "$ac_try") 2>&5
24049   ac_status=$?
24050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051   (exit $ac_status); }; }; then
24052   libblkid_cv_is_recent=yes
24053 else
24054   $as_echo "$as_me: program exited with status $ac_status" >&5
24055 $as_echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 ( exit $ac_status )
24059 libblkid_cv_is_recent=no
24060 fi
24061 rm -rf conftest.dSYM
24062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24063 fi
24064
24065
24066     LIBS="$saved_LIBS"
24067 fi
24068
24069   { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
24070 $as_echo "$libblkid_cv_is_recent" >&6; }
24071
24072    if test $choose_blkid = yes; then
24073       use_blkid=1
24074       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
24075 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
24076    else
24077       if test $libblkid_cv_is_recent = yes
24078       then use_blkid=1
24079       else use_blkid=0
24080            { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
24081 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
24082       fi
24083     fi
24084
24085 cat >>confdefs.h <<_ACEOF
24086 #define USE_BLKID $use_blkid
24087 _ACEOF
24088
24089 fi
24090
24091
24092
24093
24094
24095 if test "$enable_gss" = yes; then
24096
24097 for ac_header in nfsidmap.h
24098 do
24099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24101   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24102 $as_echo_n "checking for $ac_header... " >&6; }
24103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24104   $as_echo_n "(cached) " >&6
24105 fi
24106 ac_res=`eval 'as_val=${'$as_ac_Header'}
24107                  $as_echo "$as_val"'`
24108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24109 $as_echo "$ac_res" >&6; }
24110 else
24111   # Is the header compilable?
24112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24113 $as_echo_n "checking $ac_header usability... " >&6; }
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h.  */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h.  */
24120 $ac_includes_default
24121 #include <$ac_header>
24122 _ACEOF
24123 rm -f conftest.$ac_objext
24124 if { (ac_try="$ac_compile"
24125 case "(($ac_try" in
24126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127   *) ac_try_echo=$ac_try;;
24128 esac
24129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24130 $as_echo "$ac_try_echo") >&5
24131   (eval "$ac_compile") 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } && {
24138          test -z "$ac_c_werror_flag" ||
24139          test ! -s conftest.err
24140        } && test -s conftest.$ac_objext; then
24141   ac_header_compiler=yes
24142 else
24143   $as_echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146         ac_header_compiler=no
24147 fi
24148
24149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24151 $as_echo "$ac_header_compiler" >&6; }
24152
24153 # Is the header present?
24154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24155 $as_echo_n "checking $ac_header presence... " >&6; }
24156 cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h.  */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h.  */
24162 #include <$ac_header>
24163 _ACEOF
24164 if { (ac_try="$ac_cpp conftest.$ac_ext"
24165 case "(($ac_try" in
24166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167   *) ac_try_echo=$ac_try;;
24168 esac
24169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24170 $as_echo "$ac_try_echo") >&5
24171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } >/dev/null && {
24178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        }; then
24181   ac_header_preproc=yes
24182 else
24183   $as_echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186   ac_header_preproc=no
24187 fi
24188
24189 rm -f conftest.err conftest.$ac_ext
24190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24191 $as_echo "$ac_header_preproc" >&6; }
24192
24193 # So?  What about this header?
24194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24195   yes:no: )
24196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24200     ac_header_preproc=yes
24201     ;;
24202   no:yes:* )
24203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24206 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24210 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24215     ( cat <<\_ASBOX
24216 ## ---------------------------------------- ##
24217 ## Report this to linux-nfs@vger.kernel.org ##
24218 ## ---------------------------------------- ##
24219 _ASBOX
24220      ) | sed "s/^/$as_me: WARNING:     /" >&2
24221     ;;
24222 esac
24223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24224 $as_echo_n "checking for $ac_header... " >&6; }
24225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24226   $as_echo_n "(cached) " >&6
24227 else
24228   eval "$as_ac_Header=\$ac_header_preproc"
24229 fi
24230 ac_res=`eval 'as_val=${'$as_ac_Header'}
24231                  $as_echo "$as_val"'`
24232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24233 $as_echo "$ac_res" >&6; }
24234
24235 fi
24236 as_val=`eval 'as_val=${'$as_ac_Header'}
24237                  $as_echo "$as_val"'`
24238    if test "x$as_val" = x""yes; then
24239   cat >>confdefs.h <<_ACEOF
24240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24241 _ACEOF
24242
24243 else
24244   { { $as_echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
24245 $as_echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
24246    { (exit 1); exit 1; }; }
24247 fi
24248
24249 done
24250
24251
24252 for ac_header in spkm3.h
24253 do
24254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24257 $as_echo_n "checking for $ac_header... " >&6; }
24258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24259   $as_echo_n "(cached) " >&6
24260 fi
24261 ac_res=`eval 'as_val=${'$as_ac_Header'}
24262                  $as_echo "$as_val"'`
24263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24264 $as_echo "$ac_res" >&6; }
24265 else
24266   # Is the header compilable?
24267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24268 $as_echo_n "checking $ac_header usability... " >&6; }
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275 $ac_includes_default
24276 #include <$ac_header>
24277 _ACEOF
24278 rm -f conftest.$ac_objext
24279 if { (ac_try="$ac_compile"
24280 case "(($ac_try" in
24281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282   *) ac_try_echo=$ac_try;;
24283 esac
24284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24285 $as_echo "$ac_try_echo") >&5
24286   (eval "$ac_compile") 2>conftest.er1
24287   ac_status=$?
24288   grep -v '^ *+' conftest.er1 >conftest.err
24289   rm -f conftest.er1
24290   cat conftest.err >&5
24291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292   (exit $ac_status); } && {
24293          test -z "$ac_c_werror_flag" ||
24294          test ! -s conftest.err
24295        } && test -s conftest.$ac_objext; then
24296   ac_header_compiler=yes
24297 else
24298   $as_echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300
24301         ac_header_compiler=no
24302 fi
24303
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24306 $as_echo "$ac_header_compiler" >&6; }
24307
24308 # Is the header present?
24309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24310 $as_echo_n "checking $ac_header presence... " >&6; }
24311 cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h.  */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h.  */
24317 #include <$ac_header>
24318 _ACEOF
24319 if { (ac_try="$ac_cpp conftest.$ac_ext"
24320 case "(($ac_try" in
24321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322   *) ac_try_echo=$ac_try;;
24323 esac
24324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24325 $as_echo "$ac_try_echo") >&5
24326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } >/dev/null && {
24333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24334          test ! -s conftest.err
24335        }; then
24336   ac_header_preproc=yes
24337 else
24338   $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341   ac_header_preproc=no
24342 fi
24343
24344 rm -f conftest.err conftest.$ac_ext
24345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24346 $as_echo "$ac_header_preproc" >&6; }
24347
24348 # So?  What about this header?
24349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24350   yes:no: )
24351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24355     ac_header_preproc=yes
24356     ;;
24357   no:yes:* )
24358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24361 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24365 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24370     ( cat <<\_ASBOX
24371 ## ---------------------------------------- ##
24372 ## Report this to linux-nfs@vger.kernel.org ##
24373 ## ---------------------------------------- ##
24374 _ASBOX
24375      ) | sed "s/^/$as_me: WARNING:     /" >&2
24376     ;;
24377 esac
24378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24379 $as_echo_n "checking for $ac_header... " >&6; }
24380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24381   $as_echo_n "(cached) " >&6
24382 else
24383   eval "$as_ac_Header=\$ac_header_preproc"
24384 fi
24385 ac_res=`eval 'as_val=${'$as_ac_Header'}
24386                  $as_echo "$as_val"'`
24387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24388 $as_echo "$ac_res" >&6; }
24389
24390 fi
24391 as_val=`eval 'as_val=${'$as_ac_Header'}
24392                  $as_echo "$as_val"'`
24393    if test "x$as_val" = x""yes; then
24394   cat >>confdefs.h <<_ACEOF
24395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24396 _ACEOF
24397
24398 else
24399   { $as_echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
24400 $as_echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
24401 fi
24402
24403 done
24404
24405     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
24406 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
24407 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
24408   $as_echo_n "(cached) " >&6
24409 else
24410   ac_check_lib_save_LIBS=$LIBS
24411 LIBS="-lnfsidmap  $LIBS"
24412 cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h.  */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h.  */
24418
24419 /* Override any GCC internal prototype to avoid an error.
24420    Use char because int might match the return type of a GCC
24421    builtin and then its argument prototype would still apply.  */
24422 #ifdef __cplusplus
24423 extern "C"
24424 #endif
24425 char nfs4_set_debug ();
24426 int
24427 main ()
24428 {
24429 return nfs4_set_debug ();
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext conftest$ac_exeext
24435 if { (ac_try="$ac_link"
24436 case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24441 $as_echo "$ac_try_echo") >&5
24442   (eval "$ac_link") 2>conftest.er1
24443   ac_status=$?
24444   grep -v '^ *+' conftest.er1 >conftest.err
24445   rm -f conftest.er1
24446   cat conftest.err >&5
24447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } && {
24449          test -z "$ac_c_werror_flag" ||
24450          test ! -s conftest.err
24451        } && test -s conftest$ac_exeext && {
24452          test "$cross_compiling" = yes ||
24453          $as_test_x conftest$ac_exeext
24454        }; then
24455   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
24456 else
24457   $as_echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460         ac_cv_lib_nfsidmap_nfs4_set_debug=no
24461 fi
24462
24463 rm -rf conftest.dSYM
24464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24465       conftest$ac_exeext conftest.$ac_ext
24466 LIBS=$ac_check_lib_save_LIBS
24467 fi
24468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
24469 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
24470 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
24471
24472 cat >>confdefs.h <<\_ACEOF
24473 #define HAVE_NFS4_SET_DEBUG 1
24474 _ACEOF
24475
24476 fi
24477
24478
24479
24480   { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
24481 $as_echo_n "checking for Kerberos v5... " >&6; }
24482
24483 # Check whether --with-krb5 was given.
24484 if test "${with_krb5+set}" = set; then
24485   withval=$with_krb5;  case "$withval" in
24486     yes|no)
24487        krb5_with=""
24488        ;;
24489     *)
24490        krb5_with="$withval"
24491        ;;
24492     esac
24493
24494 fi
24495
24496
24497   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
24498              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
24499             K5CONFIG=""
24500     if test -f $dir/bin/krb5-config; then
24501       K5CONFIG=$dir/bin/krb5-config
24502     elif test -f "/usr/kerberos/bin/krb5-config"; then
24503       K5CONFIG="/usr/kerberos/bin/krb5-config"
24504     elif test -f "/usr/lib/mit/bin/krb5-config"; then
24505       K5CONFIG="/usr/lib/mit/bin/krb5-config"
24506     fi
24507     if test "$K5CONFIG" != ""; then
24508       KRBCFLAGS=`$K5CONFIG --cflags`
24509       KRBLIBS=`$K5CONFIG --libs gssapi`
24510       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
24511
24512 cat >>confdefs.h <<_ACEOF
24513 #define KRB5_VERSION $K5VERS
24514 _ACEOF
24515
24516       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
24517                 \( -f $dir/lib/libgssapi_krb5.a -o \
24518                    -f $dir/lib64/libgssapi_krb5.a -o \
24519                    -f $dir/lib64/libgssapi_krb5.so -o \
24520                    -f $dir/lib/libgssapi_krb5.so \) ; then
24521
24522 cat >>confdefs.h <<\_ACEOF
24523 #define HAVE_KRB5 1
24524 _ACEOF
24525
24526          KRBDIR="$dir"
24527                      if test $K5VERS -le 131; then
24528
24529 cat >>confdefs.h <<\_ACEOF
24530 #define USE_GSS_KRB5_CCACHE_NAME 1
24531 _ACEOF
24532
24533          fi
24534          gssapi_lib=gssapi_krb5
24535          break
24536                   elif test \( -f $dir/include/heim_err.h -o\
24537                  -f $dir/include/heimdal/heim_err.h \) -a \
24538                 -f $dir/lib/libroken.a; then
24539
24540 cat >>confdefs.h <<\_ACEOF
24541 #define HAVE_HEIMDAL 1
24542 _ACEOF
24543
24544          KRBDIR="$dir"
24545          gssapi_lib=gssapi
24546         break
24547       fi
24548     fi
24549   done
24550     if test "x$KRBDIR" = "x"; then
24551     if test "x$krb5_with" = "x"; then
24552       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
24553 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
24554    { (exit 1); exit 1; }; }
24555     else
24556       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
24557 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
24558    { (exit 1); exit 1; }; }
24559     fi
24560   fi
24561   { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
24562 $as_echo "$KRBDIR" >&6; }
24563
24564     echo "The current KRBDIR is $KRBDIR"
24565   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
24566        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
24567     KRBLDFLAGS="";
24568   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
24569     KRBLDFLAGS="";
24570   else
24571     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
24572   fi
24573
24574     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
24575 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
24576 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
24577 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24578   $as_echo_n "(cached) " >&6
24579 else
24580   ac_check_lib_save_LIBS=$LIBS
24581 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24582 cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588
24589 /* Override any GCC internal prototype to avoid an error.
24590    Use char because int might match the return type of a GCC
24591    builtin and then its argument prototype would still apply.  */
24592 #ifdef __cplusplus
24593 extern "C"
24594 #endif
24595 char gss_krb5_export_lucid_sec_context ();
24596 int
24597 main ()
24598 {
24599 return gss_krb5_export_lucid_sec_context ();
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24611 $as_echo "$ac_try_echo") >&5
24612   (eval "$ac_link") 2>conftest.er1
24613   ac_status=$?
24614   grep -v '^ *+' conftest.er1 >conftest.err
24615   rm -f conftest.er1
24616   cat conftest.err >&5
24617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618   (exit $ac_status); } && {
24619          test -z "$ac_c_werror_flag" ||
24620          test ! -s conftest.err
24621        } && test -s conftest$ac_exeext && {
24622          test "$cross_compiling" = yes ||
24623          $as_test_x conftest$ac_exeext
24624        }; then
24625   eval "$as_ac_Lib=yes"
24626 else
24627   $as_echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630         eval "$as_ac_Lib=no"
24631 fi
24632
24633 rm -rf conftest.dSYM
24634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24635       conftest$ac_exeext conftest.$ac_ext
24636 LIBS=$ac_check_lib_save_LIBS
24637 fi
24638 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24639                  $as_echo "$as_val"'`
24640                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24641 $as_echo "$ac_res" >&6; }
24642 as_val=`eval 'as_val=${'$as_ac_Lib'}
24643                  $as_echo "$as_val"'`
24644    if test "x$as_val" = x""yes; then
24645
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_LUCID_CONTEXT_SUPPORT 1
24648 _ACEOF
24649
24650 fi
24651
24652   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
24653 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
24654 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
24655 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24656   $as_echo_n "(cached) " >&6
24657 else
24658   ac_check_lib_save_LIBS=$LIBS
24659 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24660 cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666
24667 /* Override any GCC internal prototype to avoid an error.
24668    Use char because int might match the return type of a GCC
24669    builtin and then its argument prototype would still apply.  */
24670 #ifdef __cplusplus
24671 extern "C"
24672 #endif
24673 char gss_krb5_set_allowable_enctypes ();
24674 int
24675 main ()
24676 {
24677 return gss_krb5_set_allowable_enctypes ();
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (ac_try="$ac_link"
24684 case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24689 $as_echo "$ac_try_echo") >&5
24690   (eval "$ac_link") 2>conftest.er1
24691   ac_status=$?
24692   grep -v '^ *+' conftest.er1 >conftest.err
24693   rm -f conftest.er1
24694   cat conftest.err >&5
24695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); } && {
24697          test -z "$ac_c_werror_flag" ||
24698          test ! -s conftest.err
24699        } && test -s conftest$ac_exeext && {
24700          test "$cross_compiling" = yes ||
24701          $as_test_x conftest$ac_exeext
24702        }; then
24703   eval "$as_ac_Lib=yes"
24704 else
24705   $as_echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         eval "$as_ac_Lib=no"
24709 fi
24710
24711 rm -rf conftest.dSYM
24712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24713       conftest$ac_exeext conftest.$ac_ext
24714 LIBS=$ac_check_lib_save_LIBS
24715 fi
24716 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24717                  $as_echo "$as_val"'`
24718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24719 $as_echo "$ac_res" >&6; }
24720 as_val=`eval 'as_val=${'$as_ac_Lib'}
24721                  $as_echo "$as_val"'`
24722    if test "x$as_val" = x""yes; then
24723
24724 cat >>confdefs.h <<\_ACEOF
24725 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
24726 _ACEOF
24727
24728 fi
24729
24730   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
24731 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
24732 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
24733 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24734   $as_echo_n "(cached) " >&6
24735 else
24736   ac_check_lib_save_LIBS=$LIBS
24737 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h.  */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h.  */
24744
24745 /* Override any GCC internal prototype to avoid an error.
24746    Use char because int might match the return type of a GCC
24747    builtin and then its argument prototype would still apply.  */
24748 #ifdef __cplusplus
24749 extern "C"
24750 #endif
24751 char gss_krb5_ccache_name ();
24752 int
24753 main ()
24754 {
24755 return gss_krb5_ccache_name ();
24756   ;
24757   return 0;
24758 }
24759 _ACEOF
24760 rm -f conftest.$ac_objext conftest$ac_exeext
24761 if { (ac_try="$ac_link"
24762 case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768   (eval "$ac_link") 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } && {
24775          test -z "$ac_c_werror_flag" ||
24776          test ! -s conftest.err
24777        } && test -s conftest$ac_exeext && {
24778          test "$cross_compiling" = yes ||
24779          $as_test_x conftest$ac_exeext
24780        }; then
24781   eval "$as_ac_Lib=yes"
24782 else
24783   $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786         eval "$as_ac_Lib=no"
24787 fi
24788
24789 rm -rf conftest.dSYM
24790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24791       conftest$ac_exeext conftest.$ac_ext
24792 LIBS=$ac_check_lib_save_LIBS
24793 fi
24794 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24795                  $as_echo "$as_val"'`
24796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24797 $as_echo "$ac_res" >&6; }
24798 as_val=`eval 'as_val=${'$as_ac_Lib'}
24799                  $as_echo "$as_val"'`
24800    if test "x$as_val" = x""yes; then
24801
24802 cat >>confdefs.h <<\_ACEOF
24803 #define HAVE_GSS_KRB5_CCACHE_NAME 1
24804 _ACEOF
24805
24806 fi
24807
24808
24809     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
24810 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
24811 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
24812 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24813   $as_echo_n "(cached) " >&6
24814 else
24815   ac_check_lib_save_LIBS=$LIBS
24816 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h.  */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h.  */
24823
24824 /* Override any GCC internal prototype to avoid an error.
24825    Use char because int might match the return type of a GCC
24826    builtin and then its argument prototype would still apply.  */
24827 #ifdef __cplusplus
24828 extern "C"
24829 #endif
24830 char krb5_get_error_message ();
24831 int
24832 main ()
24833 {
24834 return krb5_get_error_message ();
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (ac_try="$ac_link"
24841 case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847   (eval "$ac_link") 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } && {
24854          test -z "$ac_c_werror_flag" ||
24855          test ! -s conftest.err
24856        } && test -s conftest$ac_exeext && {
24857          test "$cross_compiling" = yes ||
24858          $as_test_x conftest$ac_exeext
24859        }; then
24860   eval "$as_ac_Lib=yes"
24861 else
24862   $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         eval "$as_ac_Lib=no"
24866 fi
24867
24868 rm -rf conftest.dSYM
24869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24870       conftest$ac_exeext conftest.$ac_ext
24871 LIBS=$ac_check_lib_save_LIBS
24872 fi
24873 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24874                  $as_echo "$as_val"'`
24875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24876 $as_echo "$ac_res" >&6; }
24877 as_val=`eval 'as_val=${'$as_ac_Lib'}
24878                  $as_echo "$as_val"'`
24879    if test "x$as_val" = x""yes; then
24880
24881 cat >>confdefs.h <<\_ACEOF
24882 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
24883 _ACEOF
24884
24885 fi
24886
24887
24888     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
24889 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
24890 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
24891 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24892   $as_echo_n "(cached) " >&6
24893 else
24894   ac_check_lib_save_LIBS=$LIBS
24895 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any GCC internal prototype to avoid an error.
24904    Use char because int might match the return type of a GCC
24905    builtin and then its argument prototype would still apply.  */
24906 #ifdef __cplusplus
24907 extern "C"
24908 #endif
24909 char krb5_get_init_creds_opt_set_addressless ();
24910 int
24911 main ()
24912 {
24913 return krb5_get_init_creds_opt_set_addressless ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24925 $as_echo "$ac_try_echo") >&5
24926   (eval "$ac_link") 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } && {
24933          test -z "$ac_c_werror_flag" ||
24934          test ! -s conftest.err
24935        } && test -s conftest$ac_exeext && {
24936          test "$cross_compiling" = yes ||
24937          $as_test_x conftest$ac_exeext
24938        }; then
24939   eval "$as_ac_Lib=yes"
24940 else
24941   $as_echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         eval "$as_ac_Lib=no"
24945 fi
24946
24947 rm -rf conftest.dSYM
24948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24949       conftest$ac_exeext conftest.$ac_ext
24950 LIBS=$ac_check_lib_save_LIBS
24951 fi
24952 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24953                  $as_echo "$as_val"'`
24954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24955 $as_echo "$ac_res" >&6; }
24956 as_val=`eval 'as_val=${'$as_ac_Lib'}
24957                  $as_echo "$as_val"'`
24958    if test "x$as_val" = x""yes; then
24959
24960 cat >>confdefs.h <<\_ACEOF
24961 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24962 _ACEOF
24963
24964 fi
24965
24966
24967     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24968     { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24969 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24970   fi
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980       { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24981 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
24982 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24983   $as_echo_n "(cached) " >&6
24984 else
24985   ac_check_lib_save_LIBS=$LIBS
24986 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24987 cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993
24994 /* Override any GCC internal prototype to avoid an error.
24995    Use char because int might match the return type of a GCC
24996    builtin and then its argument prototype would still apply.  */
24997 #ifdef __cplusplus
24998 extern "C"
24999 #endif
25000 char authgss_create_default ();
25001 int
25002 main ()
25003 {
25004 return authgss_create_default ();
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (ac_try="$ac_link"
25011 case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25016 $as_echo "$ac_try_echo") >&5
25017   (eval "$ac_link") 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } && {
25024          test -z "$ac_c_werror_flag" ||
25025          test ! -s conftest.err
25026        } && test -s conftest$ac_exeext && {
25027          test "$cross_compiling" = yes ||
25028          $as_test_x conftest$ac_exeext
25029        }; then
25030   ac_cv_lib_rpcsecgss_authgss_create_default=yes
25031 else
25032   $as_echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035         ac_cv_lib_rpcsecgss_authgss_create_default=no
25036 fi
25037
25038 rm -rf conftest.dSYM
25039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25040       conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25042 fi
25043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
25044 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
25045 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
25046   librpcsecgss=1
25047 else
25048   { { $as_echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
25049 $as_echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
25050    { (exit 1); exit 1; }; }
25051 fi
25052
25053   { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
25054 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
25055 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
25056   $as_echo_n "(cached) " >&6
25057 else
25058   ac_check_lib_save_LIBS=$LIBS
25059 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
25060 cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h.  */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h.  */
25066
25067 /* Override any GCC internal prototype to avoid an error.
25068    Use char because int might match the return type of a GCC
25069    builtin and then its argument prototype would still apply.  */
25070 #ifdef __cplusplus
25071 extern "C"
25072 #endif
25073 char authgss_set_debug_level ();
25074 int
25075 main ()
25076 {
25077 return authgss_set_debug_level ();
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext conftest$ac_exeext
25083 if { (ac_try="$ac_link"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25089 $as_echo "$ac_try_echo") >&5
25090   (eval "$ac_link") 2>conftest.er1
25091   ac_status=$?
25092   grep -v '^ *+' conftest.er1 >conftest.err
25093   rm -f conftest.er1
25094   cat conftest.err >&5
25095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); } && {
25097          test -z "$ac_c_werror_flag" ||
25098          test ! -s conftest.err
25099        } && test -s conftest$ac_exeext && {
25100          test "$cross_compiling" = yes ||
25101          $as_test_x conftest$ac_exeext
25102        }; then
25103   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
25104 else
25105   $as_echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
25109 fi
25110
25111 rm -rf conftest.dSYM
25112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25113       conftest$ac_exeext conftest.$ac_ext
25114 LIBS=$ac_check_lib_save_LIBS
25115 fi
25116 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
25117 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
25118 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
25119
25120 cat >>confdefs.h <<\_ACEOF
25121 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
25122 _ACEOF
25123
25124 fi
25125
25126
25127 fi
25128
25129 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
25130 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
25131 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
25132   $as_echo_n "(cached) " >&6
25133 else
25134   cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140  #include <netdb.h>
25141
25142 int
25143 main ()
25144 {
25145 #ifndef AI_ADDRCONFIG
25146   (void) AI_ADDRCONFIG;
25147 #endif
25148
25149   ;
25150   return 0;
25151 }
25152 _ACEOF
25153 rm -f conftest.$ac_objext
25154 if { (ac_try="$ac_compile"
25155 case "(($ac_try" in
25156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25157   *) ac_try_echo=$ac_try;;
25158 esac
25159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25160 $as_echo "$ac_try_echo") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_c_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171   ac_cv_have_decl_AI_ADDRCONFIG=yes
25172 else
25173   $as_echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_cv_have_decl_AI_ADDRCONFIG=no
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 fi
25181 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
25182 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
25183 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
25184
25185 cat >>confdefs.h <<\_ACEOF
25186 #define HAVE_DECL_AI_ADDRCONFIG 1
25187 _ACEOF
25188
25189 fi
25190
25191
25192 if test "$enable_tirpc" = yes; then
25193
25194 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
25195 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
25196 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
25197   $as_echo_n "(cached) " >&6
25198 else
25199   ac_check_lib_save_LIBS=$LIBS
25200 LIBS="-ltirpc  $LIBS"
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207
25208 /* Override any GCC internal prototype to avoid an error.
25209    Use char because int might match the return type of a GCC
25210    builtin and then its argument prototype would still apply.  */
25211 #ifdef __cplusplus
25212 extern "C"
25213 #endif
25214 char clnt_tli_create ();
25215 int
25216 main ()
25217 {
25218 return clnt_tli_create ();
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (ac_try="$ac_link"
25225 case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231   (eval "$ac_link") 2>conftest.er1
25232   ac_status=$?
25233   grep -v '^ *+' conftest.er1 >conftest.err
25234   rm -f conftest.er1
25235   cat conftest.err >&5
25236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); } && {
25238          test -z "$ac_c_werror_flag" ||
25239          test ! -s conftest.err
25240        } && test -s conftest$ac_exeext && {
25241          test "$cross_compiling" = yes ||
25242          $as_test_x conftest$ac_exeext
25243        }; then
25244   ac_cv_lib_tirpc_clnt_tli_create=yes
25245 else
25246   $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249         ac_cv_lib_tirpc_clnt_tli_create=no
25250 fi
25251
25252 rm -rf conftest.dSYM
25253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254       conftest$ac_exeext conftest.$ac_ext
25255 LIBS=$ac_check_lib_save_LIBS
25256 fi
25257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
25258 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
25259 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
25260   cat >>confdefs.h <<_ACEOF
25261 #define HAVE_LIBTIRPC 1
25262 _ACEOF
25263
25264   LIBS="-ltirpc $LIBS"
25265
25266 else
25267   { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
25268 $as_echo "$as_me: error: libtirpc not found." >&2;}
25269    { (exit 1); exit 1; }; }
25270 fi
25271
25272
25273 for ac_header in tirpc/netconfig.h
25274 do
25275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25277   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25278 $as_echo_n "checking for $ac_header... " >&6; }
25279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25280   $as_echo_n "(cached) " >&6
25281 fi
25282 ac_res=`eval 'as_val=${'$as_ac_Header'}
25283                  $as_echo "$as_val"'`
25284                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25285 $as_echo "$ac_res" >&6; }
25286 else
25287   # Is the header compilable?
25288 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25289 $as_echo_n "checking $ac_header usability... " >&6; }
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 $ac_includes_default
25297 #include <$ac_header>
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25306 $as_echo "$ac_try_echo") >&5
25307   (eval "$ac_compile") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest.$ac_objext; then
25317   ac_header_compiler=yes
25318 else
25319   $as_echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25321
25322         ac_header_compiler=no
25323 fi
25324
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25327 $as_echo "$ac_header_compiler" >&6; }
25328
25329 # Is the header present?
25330 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25331 $as_echo_n "checking $ac_header presence... " >&6; }
25332 cat >conftest.$ac_ext <<_ACEOF
25333 /* confdefs.h.  */
25334 _ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h.  */
25338 #include <$ac_header>
25339 _ACEOF
25340 if { (ac_try="$ac_cpp conftest.$ac_ext"
25341 case "(($ac_try" in
25342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343   *) ac_try_echo=$ac_try;;
25344 esac
25345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25346 $as_echo "$ac_try_echo") >&5
25347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } >/dev/null && {
25354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25355          test ! -s conftest.err
25356        }; then
25357   ac_header_preproc=yes
25358 else
25359   $as_echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362   ac_header_preproc=no
25363 fi
25364
25365 rm -f conftest.err conftest.$ac_ext
25366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25367 $as_echo "$ac_header_preproc" >&6; }
25368
25369 # So?  What about this header?
25370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25371   yes:no: )
25372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25373 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25376     ac_header_preproc=yes
25377     ;;
25378   no:yes:* )
25379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25380 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25382 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25384 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25386 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25390 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25391     ( cat <<\_ASBOX
25392 ## ---------------------------------------- ##
25393 ## Report this to linux-nfs@vger.kernel.org ##
25394 ## ---------------------------------------- ##
25395 _ASBOX
25396      ) | sed "s/^/$as_me: WARNING:     /" >&2
25397     ;;
25398 esac
25399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25400 $as_echo_n "checking for $ac_header... " >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402   $as_echo_n "(cached) " >&6
25403 else
25404   eval "$as_ac_Header=\$ac_header_preproc"
25405 fi
25406 ac_res=`eval 'as_val=${'$as_ac_Header'}
25407                  $as_echo "$as_val"'`
25408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25409 $as_echo "$ac_res" >&6; }
25410
25411 fi
25412 as_val=`eval 'as_val=${'$as_ac_Header'}
25413                  $as_echo "$as_val"'`
25414    if test "x$as_val" = x""yes; then
25415   cat >>confdefs.h <<_ACEOF
25416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25417 _ACEOF
25418
25419 else
25420   { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
25421 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
25422    { (exit 1); exit 1; }; }
25423 fi
25424
25425 done
25426
25427
25428
25429
25430
25431
25432
25433
25434 for ac_func in bindresvport_sa getnetconfig \
25435                   clnt_create clnt_create_timed \
25436                   clnt_vc_create clnt_dg_create xdr_rpcb
25437 do
25438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25440 $as_echo_n "checking for $ac_func... " >&6; }
25441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25442   $as_echo_n "(cached) " >&6
25443 else
25444   cat >conftest.$ac_ext <<_ACEOF
25445 /* confdefs.h.  */
25446 _ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h.  */
25450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25452 #define $ac_func innocuous_$ac_func
25453
25454 /* System header to define __stub macros and hopefully few prototypes,
25455     which can conflict with char $ac_func (); below.
25456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25457     <limits.h> exists even on freestanding compilers.  */
25458
25459 #ifdef __STDC__
25460 # include <limits.h>
25461 #else
25462 # include <assert.h>
25463 #endif
25464
25465 #undef $ac_func
25466
25467 /* Override any GCC internal prototype to avoid an error.
25468    Use char because int might match the return type of a GCC
25469    builtin and then its argument prototype would still apply.  */
25470 #ifdef __cplusplus
25471 extern "C"
25472 #endif
25473 char $ac_func ();
25474 /* The GNU C library defines this for functions which it implements
25475     to always fail with ENOSYS.  Some functions are actually named
25476     something starting with __ and the normal name is an alias.  */
25477 #if defined __stub_$ac_func || defined __stub___$ac_func
25478 choke me
25479 #endif
25480
25481 int
25482 main ()
25483 {
25484 return $ac_func ();
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (ac_try="$ac_link"
25491 case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25496 $as_echo "$ac_try_echo") >&5
25497   (eval "$ac_link") 2>conftest.er1
25498   ac_status=$?
25499   grep -v '^ *+' conftest.er1 >conftest.err
25500   rm -f conftest.er1
25501   cat conftest.err >&5
25502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); } && {
25504          test -z "$ac_c_werror_flag" ||
25505          test ! -s conftest.err
25506        } && test -s conftest$ac_exeext && {
25507          test "$cross_compiling" = yes ||
25508          $as_test_x conftest$ac_exeext
25509        }; then
25510   eval "$as_ac_var=yes"
25511 else
25512   $as_echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515         eval "$as_ac_var=no"
25516 fi
25517
25518 rm -rf conftest.dSYM
25519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25520       conftest$ac_exeext conftest.$ac_ext
25521 fi
25522 ac_res=`eval 'as_val=${'$as_ac_var'}
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_var'}
25527                  $as_echo "$as_val"'`
25528    if test "x$as_val" = x""yes; then
25529   cat >>confdefs.h <<_ACEOF
25530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25531 _ACEOF
25532
25533 fi
25534 done
25535
25536 fi
25537
25538 if test "$enable_ipv6" = yes; then
25539   if test "$enable_tirpc" = no; then
25540     { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires '--enable-tirpc'." >&5
25541 $as_echo "$as_me: error: '--enable-ipv6' requires '--enable-tirpc'." >&2;}
25542    { (exit 1); exit 1; }; }
25543   fi
25544   { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
25545 $as_echo_n "checking for getnameinfo... " >&6; }
25546 if test "${ac_cv_func_getnameinfo+set}" = set; then
25547   $as_echo_n "(cached) " >&6
25548 else
25549   cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
25556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25557 #define getnameinfo innocuous_getnameinfo
25558
25559 /* System header to define __stub macros and hopefully few prototypes,
25560     which can conflict with char getnameinfo (); below.
25561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25562     <limits.h> exists even on freestanding compilers.  */
25563
25564 #ifdef __STDC__
25565 # include <limits.h>
25566 #else
25567 # include <assert.h>
25568 #endif
25569
25570 #undef getnameinfo
25571
25572 /* Override any GCC internal prototype to avoid an error.
25573    Use char because int might match the return type of a GCC
25574    builtin and then its argument prototype would still apply.  */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 char getnameinfo ();
25579 /* The GNU C library defines this for functions which it implements
25580     to always fail with ENOSYS.  Some functions are actually named
25581     something starting with __ and the normal name is an alias.  */
25582 #if defined __stub_getnameinfo || defined __stub___getnameinfo
25583 choke me
25584 #endif
25585
25586 int
25587 main ()
25588 {
25589 return getnameinfo ();
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (ac_try="$ac_link"
25596 case "(($ac_try" in
25597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598   *) ac_try_echo=$ac_try;;
25599 esac
25600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25601 $as_echo "$ac_try_echo") >&5
25602   (eval "$ac_link") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest$ac_exeext && {
25612          test "$cross_compiling" = yes ||
25613          $as_test_x conftest$ac_exeext
25614        }; then
25615   ac_cv_func_getnameinfo=yes
25616 else
25617   $as_echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25619
25620         ac_cv_func_getnameinfo=no
25621 fi
25622
25623 rm -rf conftest.dSYM
25624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25625       conftest$ac_exeext conftest.$ac_ext
25626 fi
25627 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
25628 $as_echo "$ac_cv_func_getnameinfo" >&6; }
25629
25630   { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
25631 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
25632 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
25633   $as_echo_n "(cached) " >&6
25634 else
25635   cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641  #include <netdb.h>
25642
25643 int
25644 main ()
25645 {
25646 #ifndef AI_ADDRCONFIG
25647   (void) AI_ADDRCONFIG;
25648 #endif
25649
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25661 $as_echo "$ac_try_echo") >&5
25662   (eval "$ac_compile") 2>conftest.er1
25663   ac_status=$?
25664   grep -v '^ *+' conftest.er1 >conftest.err
25665   rm -f conftest.er1
25666   cat conftest.err >&5
25667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); } && {
25669          test -z "$ac_c_werror_flag" ||
25670          test ! -s conftest.err
25671        } && test -s conftest.$ac_objext; then
25672   ac_cv_have_decl_AI_ADDRCONFIG=yes
25673 else
25674   $as_echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25676
25677         ac_cv_have_decl_AI_ADDRCONFIG=no
25678 fi
25679
25680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25681 fi
25682 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
25683 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
25684 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
25685   :
25686 else
25687   { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
25688 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
25689    { (exit 1); exit 1; }; }
25690 fi
25691
25692 fi
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
25718                  malloc.h memory.h netdb.h netinet/in.h paths.h \
25719                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
25720                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
25721                  syslog.h unistd.h com_err.h et/com_err.h \
25722                  ifaddrs.h
25723 do
25724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25726   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25727 $as_echo_n "checking for $ac_header... " >&6; }
25728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25729   $as_echo_n "(cached) " >&6
25730 fi
25731 ac_res=`eval 'as_val=${'$as_ac_Header'}
25732                  $as_echo "$as_val"'`
25733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25734 $as_echo "$ac_res" >&6; }
25735 else
25736   # Is the header compilable?
25737 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25738 $as_echo_n "checking $ac_header usability... " >&6; }
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745 $ac_includes_default
25746 #include <$ac_header>
25747 _ACEOF
25748 rm -f conftest.$ac_objext
25749 if { (ac_try="$ac_compile"
25750 case "(($ac_try" in
25751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752   *) ac_try_echo=$ac_try;;
25753 esac
25754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25755 $as_echo "$ac_try_echo") >&5
25756   (eval "$ac_compile") 2>conftest.er1
25757   ac_status=$?
25758   grep -v '^ *+' conftest.er1 >conftest.err
25759   rm -f conftest.er1
25760   cat conftest.err >&5
25761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } && {
25763          test -z "$ac_c_werror_flag" ||
25764          test ! -s conftest.err
25765        } && test -s conftest.$ac_objext; then
25766   ac_header_compiler=yes
25767 else
25768   $as_echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771         ac_header_compiler=no
25772 fi
25773
25774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25776 $as_echo "$ac_header_compiler" >&6; }
25777
25778 # Is the header present?
25779 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25780 $as_echo_n "checking $ac_header presence... " >&6; }
25781 cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787 #include <$ac_header>
25788 _ACEOF
25789 if { (ac_try="$ac_cpp conftest.$ac_ext"
25790 case "(($ac_try" in
25791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792   *) ac_try_echo=$ac_try;;
25793 esac
25794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25795 $as_echo "$ac_try_echo") >&5
25796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25797   ac_status=$?
25798   grep -v '^ *+' conftest.er1 >conftest.err
25799   rm -f conftest.er1
25800   cat conftest.err >&5
25801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); } >/dev/null && {
25803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25804          test ! -s conftest.err
25805        }; then
25806   ac_header_preproc=yes
25807 else
25808   $as_echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25810
25811   ac_header_preproc=no
25812 fi
25813
25814 rm -f conftest.err conftest.$ac_ext
25815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25816 $as_echo "$ac_header_preproc" >&6; }
25817
25818 # So?  What about this header?
25819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25820   yes:no: )
25821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25822 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25825     ac_header_preproc=yes
25826     ;;
25827   no:yes:* )
25828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25829 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25831 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25833 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25835 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25839 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25840     ( cat <<\_ASBOX
25841 ## ---------------------------------------- ##
25842 ## Report this to linux-nfs@vger.kernel.org ##
25843 ## ---------------------------------------- ##
25844 _ASBOX
25845      ) | sed "s/^/$as_me: WARNING:     /" >&2
25846     ;;
25847 esac
25848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25849 $as_echo_n "checking for $ac_header... " >&6; }
25850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25851   $as_echo_n "(cached) " >&6
25852 else
25853   eval "$as_ac_Header=\$ac_header_preproc"
25854 fi
25855 ac_res=`eval 'as_val=${'$as_ac_Header'}
25856                  $as_echo "$as_val"'`
25857                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25858 $as_echo "$ac_res" >&6; }
25859
25860 fi
25861 as_val=`eval 'as_val=${'$as_ac_Header'}
25862                  $as_echo "$as_val"'`
25863    if test "x$as_val" = x""yes; then
25864   cat >>confdefs.h <<_ACEOF
25865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25866 _ACEOF
25867
25868 fi
25869
25870 done
25871
25872
25873 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25874 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25875 if test "${ac_cv_c_const+set}" = set; then
25876   $as_echo_n "(cached) " >&6
25877 else
25878   cat >conftest.$ac_ext <<_ACEOF
25879 /* confdefs.h.  */
25880 _ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h.  */
25884
25885 int
25886 main ()
25887 {
25888 /* FIXME: Include the comments suggested by Paul. */
25889 #ifndef __cplusplus
25890   /* Ultrix mips cc rejects this.  */
25891   typedef int charset[2];
25892   const charset cs;
25893   /* SunOS 4.1.1 cc rejects this.  */
25894   char const *const *pcpcc;
25895   char **ppc;
25896   /* NEC SVR4.0.2 mips cc rejects this.  */
25897   struct point {int x, y;};
25898   static struct point const zero = {0,0};
25899   /* AIX XL C 1.02.0.0 rejects this.
25900      It does not let you subtract one const X* pointer from another in
25901      an arm of an if-expression whose if-part is not a constant
25902      expression */
25903   const char *g = "string";
25904   pcpcc = &g + (g ? g-g : 0);
25905   /* HPUX 7.0 cc rejects these. */
25906   ++pcpcc;
25907   ppc = (char**) pcpcc;
25908   pcpcc = (char const *const *) ppc;
25909   { /* SCO 3.2v4 cc rejects this.  */
25910     char *t;
25911     char const *s = 0 ? (char *) 0 : (char const *) 0;
25912
25913     *t++ = 0;
25914     if (s) return 0;
25915   }
25916   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25917     int x[] = {25, 17};
25918     const int *foo = &x[0];
25919     ++foo;
25920   }
25921   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25922     typedef const int *iptr;
25923     iptr p = 0;
25924     ++p;
25925   }
25926   { /* AIX XL C 1.02.0.0 rejects this saying
25927        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25928     struct s { int j; const int *ap[3]; };
25929     struct s *b; b->j = 5;
25930   }
25931   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25932     const int foo = 10;
25933     if (!foo) return 0;
25934   }
25935   return !cs[0] && !zero.x;
25936 #endif
25937
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest.$ac_objext
25943 if { (ac_try="$ac_compile"
25944 case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949 $as_echo "$ac_try_echo") >&5
25950   (eval "$ac_compile") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest.$ac_objext; then
25960   ac_cv_c_const=yes
25961 else
25962   $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965         ac_cv_c_const=no
25966 fi
25967
25968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 fi
25970 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25971 $as_echo "$ac_cv_c_const" >&6; }
25972 if test $ac_cv_c_const = no; then
25973
25974 cat >>confdefs.h <<\_ACEOF
25975 #define const /**/
25976 _ACEOF
25977
25978 fi
25979
25980 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25981 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25982 if test "${ac_cv_type_uid_t+set}" = set; then
25983   $as_echo_n "(cached) " >&6
25984 else
25985   cat >conftest.$ac_ext <<_ACEOF
25986 /* confdefs.h.  */
25987 _ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h.  */
25991 #include <sys/types.h>
25992
25993 _ACEOF
25994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25995   $EGREP "uid_t" >/dev/null 2>&1; then
25996   ac_cv_type_uid_t=yes
25997 else
25998   ac_cv_type_uid_t=no
25999 fi
26000 rm -f conftest*
26001
26002 fi
26003 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26004 $as_echo "$ac_cv_type_uid_t" >&6; }
26005 if test $ac_cv_type_uid_t = no; then
26006
26007 cat >>confdefs.h <<\_ACEOF
26008 #define uid_t int
26009 _ACEOF
26010
26011
26012 cat >>confdefs.h <<\_ACEOF
26013 #define gid_t int
26014 _ACEOF
26015
26016 fi
26017
26018 { $as_echo "$as_me:$LINENO: checking for inline" >&5
26019 $as_echo_n "checking for inline... " >&6; }
26020 if test "${ac_cv_c_inline+set}" = set; then
26021   $as_echo_n "(cached) " >&6
26022 else
26023   ac_cv_c_inline=no
26024 for ac_kw in inline __inline__ __inline; do
26025   cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h.  */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h.  */
26031 #ifndef __cplusplus
26032 typedef int foo_t;
26033 static $ac_kw foo_t static_foo () {return 0; }
26034 $ac_kw foo_t foo () {return 0; }
26035 #endif
26036
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042   *) ac_try_echo=$ac_try;;
26043 esac
26044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26045 $as_echo "$ac_try_echo") >&5
26046   (eval "$ac_compile") 2>conftest.er1
26047   ac_status=$?
26048   grep -v '^ *+' conftest.er1 >conftest.err
26049   rm -f conftest.er1
26050   cat conftest.err >&5
26051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && {
26053          test -z "$ac_c_werror_flag" ||
26054          test ! -s conftest.err
26055        } && test -s conftest.$ac_objext; then
26056   ac_cv_c_inline=$ac_kw
26057 else
26058   $as_echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061
26062 fi
26063
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065   test "$ac_cv_c_inline" != no && break
26066 done
26067
26068 fi
26069 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26070 $as_echo "$ac_cv_c_inline" >&6; }
26071
26072
26073 case $ac_cv_c_inline in
26074   inline | yes) ;;
26075   *)
26076     case $ac_cv_c_inline in
26077       no) ac_val=;;
26078       *) ac_val=$ac_cv_c_inline;;
26079     esac
26080     cat >>confdefs.h <<_ACEOF
26081 #ifndef __cplusplus
26082 #define inline $ac_val
26083 #endif
26084 _ACEOF
26085     ;;
26086 esac
26087
26088 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
26089 $as_echo_n "checking for off_t... " >&6; }
26090 if test "${ac_cv_type_off_t+set}" = set; then
26091   $as_echo_n "(cached) " >&6
26092 else
26093   ac_cv_type_off_t=no
26094 cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 $ac_includes_default
26101 int
26102 main ()
26103 {
26104 if (sizeof (off_t))
26105        return 0;
26106   ;
26107   return 0;
26108 }
26109 _ACEOF
26110 rm -f conftest.$ac_objext
26111 if { (ac_try="$ac_compile"
26112 case "(($ac_try" in
26113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114   *) ac_try_echo=$ac_try;;
26115 esac
26116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26117 $as_echo "$ac_try_echo") >&5
26118   (eval "$ac_compile") 2>conftest.er1
26119   ac_status=$?
26120   grep -v '^ *+' conftest.er1 >conftest.err
26121   rm -f conftest.er1
26122   cat conftest.err >&5
26123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); } && {
26125          test -z "$ac_c_werror_flag" ||
26126          test ! -s conftest.err
26127        } && test -s conftest.$ac_objext; then
26128   cat >conftest.$ac_ext <<_ACEOF
26129 /* confdefs.h.  */
26130 _ACEOF
26131 cat confdefs.h >>conftest.$ac_ext
26132 cat >>conftest.$ac_ext <<_ACEOF
26133 /* end confdefs.h.  */
26134 $ac_includes_default
26135 int
26136 main ()
26137 {
26138 if (sizeof ((off_t)))
26139           return 0;
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26151 $as_echo "$ac_try_echo") >&5
26152   (eval "$ac_compile") 2>conftest.er1
26153   ac_status=$?
26154   grep -v '^ *+' conftest.er1 >conftest.err
26155   rm -f conftest.er1
26156   cat conftest.err >&5
26157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); } && {
26159          test -z "$ac_c_werror_flag" ||
26160          test ! -s conftest.err
26161        } && test -s conftest.$ac_objext; then
26162   :
26163 else
26164   $as_echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26166
26167         ac_cv_type_off_t=yes
26168 fi
26169
26170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171 else
26172   $as_echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175
26176 fi
26177
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 fi
26180 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26181 $as_echo "$ac_cv_type_off_t" >&6; }
26182 if test "x$ac_cv_type_off_t" = x""yes; then
26183   :
26184 else
26185
26186 cat >>confdefs.h <<_ACEOF
26187 #define off_t long int
26188 _ACEOF
26189
26190 fi
26191
26192 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
26193 $as_echo_n "checking for pid_t... " >&6; }
26194 if test "${ac_cv_type_pid_t+set}" = set; then
26195   $as_echo_n "(cached) " >&6
26196 else
26197   ac_cv_type_pid_t=no
26198 cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204 $ac_includes_default
26205 int
26206 main ()
26207 {
26208 if (sizeof (pid_t))
26209        return 0;
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (ac_try="$ac_compile"
26216 case "(($ac_try" in
26217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218   *) ac_try_echo=$ac_try;;
26219 esac
26220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26221 $as_echo "$ac_try_echo") >&5
26222   (eval "$ac_compile") 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } && {
26229          test -z "$ac_c_werror_flag" ||
26230          test ! -s conftest.err
26231        } && test -s conftest.$ac_objext; then
26232   cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 $ac_includes_default
26239 int
26240 main ()
26241 {
26242 if (sizeof ((pid_t)))
26243           return 0;
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 rm -f conftest.$ac_objext
26249 if { (ac_try="$ac_compile"
26250 case "(($ac_try" in
26251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252   *) ac_try_echo=$ac_try;;
26253 esac
26254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26255 $as_echo "$ac_try_echo") >&5
26256   (eval "$ac_compile") 2>conftest.er1
26257   ac_status=$?
26258   grep -v '^ *+' conftest.er1 >conftest.err
26259   rm -f conftest.er1
26260   cat conftest.err >&5
26261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); } && {
26263          test -z "$ac_c_werror_flag" ||
26264          test ! -s conftest.err
26265        } && test -s conftest.$ac_objext; then
26266   :
26267 else
26268   $as_echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271         ac_cv_type_pid_t=yes
26272 fi
26273
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275 else
26276   $as_echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26285 $as_echo "$ac_cv_type_pid_t" >&6; }
26286 if test "x$ac_cv_type_pid_t" = x""yes; then
26287   :
26288 else
26289
26290 cat >>confdefs.h <<_ACEOF
26291 #define pid_t int
26292 _ACEOF
26293
26294 fi
26295
26296 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
26297 $as_echo_n "checking for size_t... " >&6; }
26298 if test "${ac_cv_type_size_t+set}" = set; then
26299   $as_echo_n "(cached) " >&6
26300 else
26301   ac_cv_type_size_t=no
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 $ac_includes_default
26309 int
26310 main ()
26311 {
26312 if (sizeof (size_t))
26313        return 0;
26314   ;
26315   return 0;
26316 }
26317 _ACEOF
26318 rm -f conftest.$ac_objext
26319 if { (ac_try="$ac_compile"
26320 case "(($ac_try" in
26321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322   *) ac_try_echo=$ac_try;;
26323 esac
26324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26325 $as_echo "$ac_try_echo") >&5
26326   (eval "$ac_compile") 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } && {
26333          test -z "$ac_c_werror_flag" ||
26334          test ! -s conftest.err
26335        } && test -s conftest.$ac_objext; then
26336   cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 $ac_includes_default
26343 int
26344 main ()
26345 {
26346 if (sizeof ((size_t)))
26347           return 0;
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext
26353 if { (ac_try="$ac_compile"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26359 $as_echo "$ac_try_echo") >&5
26360   (eval "$ac_compile") 2>conftest.er1
26361   ac_status=$?
26362   grep -v '^ *+' conftest.er1 >conftest.err
26363   rm -f conftest.er1
26364   cat conftest.err >&5
26365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); } && {
26367          test -z "$ac_c_werror_flag" ||
26368          test ! -s conftest.err
26369        } && test -s conftest.$ac_objext; then
26370   :
26371 else
26372   $as_echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         ac_cv_type_size_t=yes
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26379 else
26380   $as_echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 fi
26388 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26389 $as_echo "$ac_cv_type_size_t" >&6; }
26390 if test "x$ac_cv_type_size_t" = x""yes; then
26391   :
26392 else
26393
26394 cat >>confdefs.h <<_ACEOF
26395 #define size_t unsigned int
26396 _ACEOF
26397
26398 fi
26399
26400 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26402 if test "${ac_cv_header_time+set}" = set; then
26403   $as_echo_n "(cached) " >&6
26404 else
26405   cat >conftest.$ac_ext <<_ACEOF
26406 /* confdefs.h.  */
26407 _ACEOF
26408 cat confdefs.h >>conftest.$ac_ext
26409 cat >>conftest.$ac_ext <<_ACEOF
26410 /* end confdefs.h.  */
26411 #include <sys/types.h>
26412 #include <sys/time.h>
26413 #include <time.h>
26414
26415 int
26416 main ()
26417 {
26418 if ((struct tm *) 0)
26419 return 0;
26420   ;
26421   return 0;
26422 }
26423 _ACEOF
26424 rm -f conftest.$ac_objext
26425 if { (ac_try="$ac_compile"
26426 case "(($ac_try" in
26427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428   *) ac_try_echo=$ac_try;;
26429 esac
26430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26431 $as_echo "$ac_try_echo") >&5
26432   (eval "$ac_compile") 2>conftest.er1
26433   ac_status=$?
26434   grep -v '^ *+' conftest.er1 >conftest.err
26435   rm -f conftest.er1
26436   cat conftest.err >&5
26437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438   (exit $ac_status); } && {
26439          test -z "$ac_c_werror_flag" ||
26440          test ! -s conftest.err
26441        } && test -s conftest.$ac_objext; then
26442   ac_cv_header_time=yes
26443 else
26444   $as_echo "$as_me: failed program was:" >&5
26445 sed 's/^/| /' conftest.$ac_ext >&5
26446
26447         ac_cv_header_time=no
26448 fi
26449
26450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 fi
26452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26453 $as_echo "$ac_cv_header_time" >&6; }
26454 if test $ac_cv_header_time = yes; then
26455
26456 cat >>confdefs.h <<\_ACEOF
26457 #define TIME_WITH_SYS_TIME 1
26458 _ACEOF
26459
26460 fi
26461
26462 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26463 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26464 if test "${ac_cv_struct_tm+set}" = set; then
26465   $as_echo_n "(cached) " >&6
26466 else
26467   cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 #include <sys/types.h>
26474 #include <time.h>
26475
26476 int
26477 main ()
26478 {
26479 struct tm tm;
26480                                      int *p = &tm.tm_sec;
26481                                      return !p;
26482   ;
26483   return 0;
26484 }
26485 _ACEOF
26486 rm -f conftest.$ac_objext
26487 if { (ac_try="$ac_compile"
26488 case "(($ac_try" in
26489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490   *) ac_try_echo=$ac_try;;
26491 esac
26492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26493 $as_echo "$ac_try_echo") >&5
26494   (eval "$ac_compile") 2>conftest.er1
26495   ac_status=$?
26496   grep -v '^ *+' conftest.er1 >conftest.err
26497   rm -f conftest.er1
26498   cat conftest.err >&5
26499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); } && {
26501          test -z "$ac_c_werror_flag" ||
26502          test ! -s conftest.err
26503        } && test -s conftest.$ac_objext; then
26504   ac_cv_struct_tm=time.h
26505 else
26506   $as_echo "$as_me: failed program was:" >&5
26507 sed 's/^/| /' conftest.$ac_ext >&5
26508
26509         ac_cv_struct_tm=sys/time.h
26510 fi
26511
26512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26513 fi
26514 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26515 $as_echo "$ac_cv_struct_tm" >&6; }
26516 if test $ac_cv_struct_tm = sys/time.h; then
26517
26518 cat >>confdefs.h <<\_ACEOF
26519 #define TM_IN_SYS_TIME 1
26520 _ACEOF
26521
26522 fi
26523
26524
26525 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26526 # for constant arguments.  Useless!
26527 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
26528 $as_echo_n "checking for working alloca.h... " >&6; }
26529 if test "${ac_cv_working_alloca_h+set}" = set; then
26530   $as_echo_n "(cached) " >&6
26531 else
26532   cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h.  */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h.  */
26538 #include <alloca.h>
26539 int
26540 main ()
26541 {
26542 char *p = (char *) alloca (2 * sizeof (int));
26543                           if (p) return 0;
26544   ;
26545   return 0;
26546 }
26547 _ACEOF
26548 rm -f conftest.$ac_objext conftest$ac_exeext
26549 if { (ac_try="$ac_link"
26550 case "(($ac_try" in
26551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26552   *) ac_try_echo=$ac_try;;
26553 esac
26554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26555 $as_echo "$ac_try_echo") >&5
26556   (eval "$ac_link") 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } && {
26563          test -z "$ac_c_werror_flag" ||
26564          test ! -s conftest.err
26565        } && test -s conftest$ac_exeext && {
26566          test "$cross_compiling" = yes ||
26567          $as_test_x conftest$ac_exeext
26568        }; then
26569   ac_cv_working_alloca_h=yes
26570 else
26571   $as_echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26573
26574         ac_cv_working_alloca_h=no
26575 fi
26576
26577 rm -rf conftest.dSYM
26578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26579       conftest$ac_exeext conftest.$ac_ext
26580 fi
26581 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26582 $as_echo "$ac_cv_working_alloca_h" >&6; }
26583 if test $ac_cv_working_alloca_h = yes; then
26584
26585 cat >>confdefs.h <<\_ACEOF
26586 #define HAVE_ALLOCA_H 1
26587 _ACEOF
26588
26589 fi
26590
26591 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
26592 $as_echo_n "checking for alloca... " >&6; }
26593 if test "${ac_cv_func_alloca_works+set}" = set; then
26594   $as_echo_n "(cached) " >&6
26595 else
26596   cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 #ifdef __GNUC__
26603 # define alloca __builtin_alloca
26604 #else
26605 # ifdef _MSC_VER
26606 #  include <malloc.h>
26607 #  define alloca _alloca
26608 # else
26609 #  ifdef HAVE_ALLOCA_H
26610 #   include <alloca.h>
26611 #  else
26612 #   ifdef _AIX
26613  #pragma alloca
26614 #   else
26615 #    ifndef alloca /* predefined by HP cc +Olibcalls */
26616 char *alloca ();
26617 #    endif
26618 #   endif
26619 #  endif
26620 # endif
26621 #endif
26622
26623 int
26624 main ()
26625 {
26626 char *p = (char *) alloca (1);
26627                                     if (p) return 0;
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 rm -f conftest.$ac_objext conftest$ac_exeext
26633 if { (ac_try="$ac_link"
26634 case "(($ac_try" in
26635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636   *) ac_try_echo=$ac_try;;
26637 esac
26638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26639 $as_echo "$ac_try_echo") >&5
26640   (eval "$ac_link") 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } && {
26647          test -z "$ac_c_werror_flag" ||
26648          test ! -s conftest.err
26649        } && test -s conftest$ac_exeext && {
26650          test "$cross_compiling" = yes ||
26651          $as_test_x conftest$ac_exeext
26652        }; then
26653   ac_cv_func_alloca_works=yes
26654 else
26655   $as_echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26657
26658         ac_cv_func_alloca_works=no
26659 fi
26660
26661 rm -rf conftest.dSYM
26662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26663       conftest$ac_exeext conftest.$ac_ext
26664 fi
26665 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
26666 $as_echo "$ac_cv_func_alloca_works" >&6; }
26667
26668 if test $ac_cv_func_alloca_works = yes; then
26669
26670 cat >>confdefs.h <<\_ACEOF
26671 #define HAVE_ALLOCA 1
26672 _ACEOF
26673
26674 else
26675   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
26676 # that cause trouble.  Some versions do not even contain alloca or
26677 # contain a buggy version.  If you still want to use their alloca,
26678 # use ar to extract alloca.o from them instead of compiling alloca.c.
26679
26680 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
26681
26682 cat >>confdefs.h <<\_ACEOF
26683 #define C_ALLOCA 1
26684 _ACEOF
26685
26686
26687 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
26688 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
26689 if test "${ac_cv_os_cray+set}" = set; then
26690   $as_echo_n "(cached) " >&6
26691 else
26692   cat >conftest.$ac_ext <<_ACEOF
26693 /* confdefs.h.  */
26694 _ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h.  */
26698 #if defined CRAY && ! defined CRAY2
26699 webecray
26700 #else
26701 wenotbecray
26702 #endif
26703
26704 _ACEOF
26705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26706   $EGREP "webecray" >/dev/null 2>&1; then
26707   ac_cv_os_cray=yes
26708 else
26709   ac_cv_os_cray=no
26710 fi
26711 rm -f conftest*
26712
26713 fi
26714 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
26715 $as_echo "$ac_cv_os_cray" >&6; }
26716 if test $ac_cv_os_cray = yes; then
26717   for ac_func in _getb67 GETB67 getb67; do
26718     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26720 $as_echo_n "checking for $ac_func... " >&6; }
26721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26722   $as_echo_n "(cached) " >&6
26723 else
26724   cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26732 #define $ac_func innocuous_$ac_func
26733
26734 /* System header to define __stub macros and hopefully few prototypes,
26735     which can conflict with char $ac_func (); below.
26736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26737     <limits.h> exists even on freestanding compilers.  */
26738
26739 #ifdef __STDC__
26740 # include <limits.h>
26741 #else
26742 # include <assert.h>
26743 #endif
26744
26745 #undef $ac_func
26746
26747 /* Override any GCC internal prototype to avoid an error.
26748    Use char because int might match the return type of a GCC
26749    builtin and then its argument prototype would still apply.  */
26750 #ifdef __cplusplus
26751 extern "C"
26752 #endif
26753 char $ac_func ();
26754 /* The GNU C library defines this for functions which it implements
26755     to always fail with ENOSYS.  Some functions are actually named
26756     something starting with __ and the normal name is an alias.  */
26757 #if defined __stub_$ac_func || defined __stub___$ac_func
26758 choke me
26759 #endif
26760
26761 int
26762 main ()
26763 {
26764 return $ac_func ();
26765   ;
26766   return 0;
26767 }
26768 _ACEOF
26769 rm -f conftest.$ac_objext conftest$ac_exeext
26770 if { (ac_try="$ac_link"
26771 case "(($ac_try" in
26772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773   *) ac_try_echo=$ac_try;;
26774 esac
26775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26776 $as_echo "$ac_try_echo") >&5
26777   (eval "$ac_link") 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } && {
26784          test -z "$ac_c_werror_flag" ||
26785          test ! -s conftest.err
26786        } && test -s conftest$ac_exeext && {
26787          test "$cross_compiling" = yes ||
26788          $as_test_x conftest$ac_exeext
26789        }; then
26790   eval "$as_ac_var=yes"
26791 else
26792   $as_echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26794
26795         eval "$as_ac_var=no"
26796 fi
26797
26798 rm -rf conftest.dSYM
26799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26800       conftest$ac_exeext conftest.$ac_ext
26801 fi
26802 ac_res=`eval 'as_val=${'$as_ac_var'}
26803                  $as_echo "$as_val"'`
26804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26805 $as_echo "$ac_res" >&6; }
26806 as_val=`eval 'as_val=${'$as_ac_var'}
26807                  $as_echo "$as_val"'`
26808    if test "x$as_val" = x""yes; then
26809
26810 cat >>confdefs.h <<_ACEOF
26811 #define CRAY_STACKSEG_END $ac_func
26812 _ACEOF
26813
26814     break
26815 fi
26816
26817   done
26818 fi
26819
26820 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
26821 $as_echo_n "checking stack direction for C alloca... " >&6; }
26822 if test "${ac_cv_c_stack_direction+set}" = set; then
26823   $as_echo_n "(cached) " >&6
26824 else
26825   if test "$cross_compiling" = yes; then
26826   ac_cv_c_stack_direction=0
26827 else
26828   cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h.  */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h.  */
26834 $ac_includes_default
26835 int
26836 find_stack_direction ()
26837 {
26838   static char *addr = 0;
26839   auto char dummy;
26840   if (addr == 0)
26841     {
26842       addr = &dummy;
26843       return find_stack_direction ();
26844     }
26845   else
26846     return (&dummy > addr) ? 1 : -1;
26847 }
26848
26849 int
26850 main ()
26851 {
26852   return find_stack_direction () < 0;
26853 }
26854 _ACEOF
26855 rm -f conftest$ac_exeext
26856 if { (ac_try="$ac_link"
26857 case "(($ac_try" in
26858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859   *) ac_try_echo=$ac_try;;
26860 esac
26861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26862 $as_echo "$ac_try_echo") >&5
26863   (eval "$ac_link") 2>&5
26864   ac_status=$?
26865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26867   { (case "(($ac_try" in
26868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26869   *) ac_try_echo=$ac_try;;
26870 esac
26871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26872 $as_echo "$ac_try_echo") >&5
26873   (eval "$ac_try") 2>&5
26874   ac_status=$?
26875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); }; }; then
26877   ac_cv_c_stack_direction=1
26878 else
26879   $as_echo "$as_me: program exited with status $ac_status" >&5
26880 $as_echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26882
26883 ( exit $ac_status )
26884 ac_cv_c_stack_direction=-1
26885 fi
26886 rm -rf conftest.dSYM
26887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26888 fi
26889
26890
26891 fi
26892 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
26893 $as_echo "$ac_cv_c_stack_direction" >&6; }
26894
26895 cat >>confdefs.h <<_ACEOF
26896 #define STACK_DIRECTION $ac_cv_c_stack_direction
26897 _ACEOF
26898
26899
26900 fi
26901
26902
26903
26904
26905
26906
26907 ac_header_dirent=no
26908 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26909   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26910 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26911 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26913   $as_echo_n "(cached) " >&6
26914 else
26915   cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921 #include <sys/types.h>
26922 #include <$ac_hdr>
26923
26924 int
26925 main ()
26926 {
26927 if ((DIR *) 0)
26928 return 0;
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941   (eval "$ac_compile") 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } && {
26948          test -z "$ac_c_werror_flag" ||
26949          test ! -s conftest.err
26950        } && test -s conftest.$ac_objext; then
26951   eval "$as_ac_Header=yes"
26952 else
26953   $as_echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956         eval "$as_ac_Header=no"
26957 fi
26958
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 fi
26961 ac_res=`eval 'as_val=${'$as_ac_Header'}
26962                  $as_echo "$as_val"'`
26963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26964 $as_echo "$ac_res" >&6; }
26965 as_val=`eval 'as_val=${'$as_ac_Header'}
26966                  $as_echo "$as_val"'`
26967    if test "x$as_val" = x""yes; then
26968   cat >>confdefs.h <<_ACEOF
26969 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26970 _ACEOF
26971
26972 ac_header_dirent=$ac_hdr; break
26973 fi
26974
26975 done
26976 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26977 if test $ac_header_dirent = dirent.h; then
26978   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26979 $as_echo_n "checking for library containing opendir... " >&6; }
26980 if test "${ac_cv_search_opendir+set}" = set; then
26981   $as_echo_n "(cached) " >&6
26982 else
26983   ac_func_search_save_LIBS=$LIBS
26984 cat >conftest.$ac_ext <<_ACEOF
26985 /* confdefs.h.  */
26986 _ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h.  */
26990
26991 /* Override any GCC internal prototype to avoid an error.
26992    Use char because int might match the return type of a GCC
26993    builtin and then its argument prototype would still apply.  */
26994 #ifdef __cplusplus
26995 extern "C"
26996 #endif
26997 char opendir ();
26998 int
26999 main ()
27000 {
27001 return opendir ();
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 for ac_lib in '' dir; do
27007   if test -z "$ac_lib"; then
27008     ac_res="none required"
27009   else
27010     ac_res=-l$ac_lib
27011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27012   fi
27013   rm -f conftest.$ac_objext conftest$ac_exeext
27014 if { (ac_try="$ac_link"
27015 case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021   (eval "$ac_link") 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } && {
27028          test -z "$ac_c_werror_flag" ||
27029          test ! -s conftest.err
27030        } && test -s conftest$ac_exeext && {
27031          test "$cross_compiling" = yes ||
27032          $as_test_x conftest$ac_exeext
27033        }; then
27034   ac_cv_search_opendir=$ac_res
27035 else
27036   $as_echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039
27040 fi
27041
27042 rm -rf conftest.dSYM
27043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27044       conftest$ac_exeext
27045   if test "${ac_cv_search_opendir+set}" = set; then
27046   break
27047 fi
27048 done
27049 if test "${ac_cv_search_opendir+set}" = set; then
27050   :
27051 else
27052   ac_cv_search_opendir=no
27053 fi
27054 rm conftest.$ac_ext
27055 LIBS=$ac_func_search_save_LIBS
27056 fi
27057 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27058 $as_echo "$ac_cv_search_opendir" >&6; }
27059 ac_res=$ac_cv_search_opendir
27060 if test "$ac_res" != no; then
27061   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27062
27063 fi
27064
27065 else
27066   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
27067 $as_echo_n "checking for library containing opendir... " >&6; }
27068 if test "${ac_cv_search_opendir+set}" = set; then
27069   $as_echo_n "(cached) " >&6
27070 else
27071   ac_func_search_save_LIBS=$LIBS
27072 cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078
27079 /* Override any GCC internal prototype to avoid an error.
27080    Use char because int might match the return type of a GCC
27081    builtin and then its argument prototype would still apply.  */
27082 #ifdef __cplusplus
27083 extern "C"
27084 #endif
27085 char opendir ();
27086 int
27087 main ()
27088 {
27089 return opendir ();
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 for ac_lib in '' x; do
27095   if test -z "$ac_lib"; then
27096     ac_res="none required"
27097   else
27098     ac_res=-l$ac_lib
27099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27100   fi
27101   rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105   *) ac_try_echo=$ac_try;;
27106 esac
27107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27108 $as_echo "$ac_try_echo") >&5
27109   (eval "$ac_link") 2>conftest.er1
27110   ac_status=$?
27111   grep -v '^ *+' conftest.er1 >conftest.err
27112   rm -f conftest.er1
27113   cat conftest.err >&5
27114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); } && {
27116          test -z "$ac_c_werror_flag" ||
27117          test ! -s conftest.err
27118        } && test -s conftest$ac_exeext && {
27119          test "$cross_compiling" = yes ||
27120          $as_test_x conftest$ac_exeext
27121        }; then
27122   ac_cv_search_opendir=$ac_res
27123 else
27124   $as_echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127
27128 fi
27129
27130 rm -rf conftest.dSYM
27131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27132       conftest$ac_exeext
27133   if test "${ac_cv_search_opendir+set}" = set; then
27134   break
27135 fi
27136 done
27137 if test "${ac_cv_search_opendir+set}" = set; then
27138   :
27139 else
27140   ac_cv_search_opendir=no
27141 fi
27142 rm conftest.$ac_ext
27143 LIBS=$ac_func_search_save_LIBS
27144 fi
27145 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27146 $as_echo "$ac_cv_search_opendir" >&6; }
27147 ac_res=$ac_cv_search_opendir
27148 if test "$ac_res" != no; then
27149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27150
27151 fi
27152
27153 fi
27154
27155 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27156 $as_echo_n "checking whether closedir returns void... " >&6; }
27157 if test "${ac_cv_func_closedir_void+set}" = set; then
27158   $as_echo_n "(cached) " >&6
27159 else
27160   if test "$cross_compiling" = yes; then
27161   ac_cv_func_closedir_void=yes
27162 else
27163   cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h.  */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h.  */
27169 $ac_includes_default
27170 #include <$ac_header_dirent>
27171 #ifndef __cplusplus
27172 int closedir ();
27173 #endif
27174
27175 int
27176 main ()
27177 {
27178 return closedir (opendir (".")) != 0;
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 rm -f conftest$ac_exeext
27184 if { (ac_try="$ac_link"
27185 case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27190 $as_echo "$ac_try_echo") >&5
27191   (eval "$ac_link") 2>&5
27192   ac_status=$?
27193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27195   { (case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27200 $as_echo "$ac_try_echo") >&5
27201   (eval "$ac_try") 2>&5
27202   ac_status=$?
27203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; }; then
27205   ac_cv_func_closedir_void=no
27206 else
27207   $as_echo "$as_me: program exited with status $ac_status" >&5
27208 $as_echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27210
27211 ( exit $ac_status )
27212 ac_cv_func_closedir_void=yes
27213 fi
27214 rm -rf conftest.dSYM
27215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27216 fi
27217
27218
27219 fi
27220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27221 $as_echo "$ac_cv_func_closedir_void" >&6; }
27222 if test $ac_cv_func_closedir_void = yes; then
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define CLOSEDIR_VOID 1
27226 _ACEOF
27227
27228 fi
27229
27230 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
27231 $as_echo_n "checking for error_at_line... " >&6; }
27232 if test "${ac_cv_lib_error_at_line+set}" = set; then
27233   $as_echo_n "(cached) " >&6
27234 else
27235   cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 #include <error.h>
27242 int
27243 main ()
27244 {
27245 error_at_line (0, 0, "", 0, "an error occurred");
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (ac_try="$ac_link"
27252 case "(($ac_try" in
27253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254   *) ac_try_echo=$ac_try;;
27255 esac
27256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27257 $as_echo "$ac_try_echo") >&5
27258   (eval "$ac_link") 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } && {
27265          test -z "$ac_c_werror_flag" ||
27266          test ! -s conftest.err
27267        } && test -s conftest$ac_exeext && {
27268          test "$cross_compiling" = yes ||
27269          $as_test_x conftest$ac_exeext
27270        }; then
27271   ac_cv_lib_error_at_line=yes
27272 else
27273   $as_echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27275
27276         ac_cv_lib_error_at_line=no
27277 fi
27278
27279 rm -rf conftest.dSYM
27280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27281       conftest$ac_exeext conftest.$ac_ext
27282 fi
27283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
27284 $as_echo "$ac_cv_lib_error_at_line" >&6; }
27285 if test $ac_cv_lib_error_at_line = no; then
27286   case " $LIBOBJS " in
27287   *" error.$ac_objext "* ) ;;
27288   *) LIBOBJS="$LIBOBJS error.$ac_objext"
27289  ;;
27290 esac
27291
27292 fi
27293
27294
27295 for ac_header in vfork.h
27296 do
27297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27299   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27300 $as_echo_n "checking for $ac_header... " >&6; }
27301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27302   $as_echo_n "(cached) " >&6
27303 fi
27304 ac_res=`eval 'as_val=${'$as_ac_Header'}
27305                  $as_echo "$as_val"'`
27306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27307 $as_echo "$ac_res" >&6; }
27308 else
27309   # Is the header compilable?
27310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27311 $as_echo_n "checking $ac_header usability... " >&6; }
27312 cat >conftest.$ac_ext <<_ACEOF
27313 /* confdefs.h.  */
27314 _ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h.  */
27318 $ac_includes_default
27319 #include <$ac_header>
27320 _ACEOF
27321 rm -f conftest.$ac_objext
27322 if { (ac_try="$ac_compile"
27323 case "(($ac_try" in
27324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325   *) ac_try_echo=$ac_try;;
27326 esac
27327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27328 $as_echo "$ac_try_echo") >&5
27329   (eval "$ac_compile") 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && {
27336          test -z "$ac_c_werror_flag" ||
27337          test ! -s conftest.err
27338        } && test -s conftest.$ac_objext; then
27339   ac_header_compiler=yes
27340 else
27341   $as_echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344         ac_header_compiler=no
27345 fi
27346
27347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27349 $as_echo "$ac_header_compiler" >&6; }
27350
27351 # Is the header present?
27352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27353 $as_echo_n "checking $ac_header presence... " >&6; }
27354 cat >conftest.$ac_ext <<_ACEOF
27355 /* confdefs.h.  */
27356 _ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h.  */
27360 #include <$ac_header>
27361 _ACEOF
27362 if { (ac_try="$ac_cpp conftest.$ac_ext"
27363 case "(($ac_try" in
27364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365   *) ac_try_echo=$ac_try;;
27366 esac
27367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27368 $as_echo "$ac_try_echo") >&5
27369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } >/dev/null && {
27376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27377          test ! -s conftest.err
27378        }; then
27379   ac_header_preproc=yes
27380 else
27381   $as_echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383
27384   ac_header_preproc=no
27385 fi
27386
27387 rm -f conftest.err conftest.$ac_ext
27388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27389 $as_echo "$ac_header_preproc" >&6; }
27390
27391 # So?  What about this header?
27392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27393   yes:no: )
27394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27398     ac_header_preproc=yes
27399     ;;
27400   no:yes:* )
27401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27404 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27407     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27408 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27413     ( cat <<\_ASBOX
27414 ## ---------------------------------------- ##
27415 ## Report this to linux-nfs@vger.kernel.org ##
27416 ## ---------------------------------------- ##
27417 _ASBOX
27418      ) | sed "s/^/$as_me: WARNING:     /" >&2
27419     ;;
27420 esac
27421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27422 $as_echo_n "checking for $ac_header... " >&6; }
27423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27424   $as_echo_n "(cached) " >&6
27425 else
27426   eval "$as_ac_Header=\$ac_header_preproc"
27427 fi
27428 ac_res=`eval 'as_val=${'$as_ac_Header'}
27429                  $as_echo "$as_val"'`
27430                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27431 $as_echo "$ac_res" >&6; }
27432
27433 fi
27434 as_val=`eval 'as_val=${'$as_ac_Header'}
27435                  $as_echo "$as_val"'`
27436    if test "x$as_val" = x""yes; then
27437   cat >>confdefs.h <<_ACEOF
27438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27439 _ACEOF
27440
27441 fi
27442
27443 done
27444
27445
27446
27447 for ac_func in fork vfork
27448 do
27449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27451 $as_echo_n "checking for $ac_func... " >&6; }
27452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27453   $as_echo_n "(cached) " >&6
27454 else
27455   cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h.  */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h.  */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27463 #define $ac_func innocuous_$ac_func
27464
27465 /* System header to define __stub macros and hopefully few prototypes,
27466     which can conflict with char $ac_func (); below.
27467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468     <limits.h> exists even on freestanding compilers.  */
27469
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27475
27476 #undef $ac_func
27477
27478 /* Override any GCC internal prototype to avoid an error.
27479    Use char because int might match the return type of a GCC
27480    builtin and then its argument prototype would still apply.  */
27481 #ifdef __cplusplus
27482 extern "C"
27483 #endif
27484 char $ac_func ();
27485 /* The GNU C library defines this for functions which it implements
27486     to always fail with ENOSYS.  Some functions are actually named
27487     something starting with __ and the normal name is an alias.  */
27488 #if defined __stub_$ac_func || defined __stub___$ac_func
27489 choke me
27490 #endif
27491
27492 int
27493 main ()
27494 {
27495 return $ac_func ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27507 $as_echo "$ac_try_echo") >&5
27508   (eval "$ac_link") 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } && {
27515          test -z "$ac_c_werror_flag" ||
27516          test ! -s conftest.err
27517        } && test -s conftest$ac_exeext && {
27518          test "$cross_compiling" = yes ||
27519          $as_test_x conftest$ac_exeext
27520        }; then
27521   eval "$as_ac_var=yes"
27522 else
27523   $as_echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526         eval "$as_ac_var=no"
27527 fi
27528
27529 rm -rf conftest.dSYM
27530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27531       conftest$ac_exeext conftest.$ac_ext
27532 fi
27533 ac_res=`eval 'as_val=${'$as_ac_var'}
27534                  $as_echo "$as_val"'`
27535                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27536 $as_echo "$ac_res" >&6; }
27537 as_val=`eval 'as_val=${'$as_ac_var'}
27538                  $as_echo "$as_val"'`
27539    if test "x$as_val" = x""yes; then
27540   cat >>confdefs.h <<_ACEOF
27541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27542 _ACEOF
27543
27544 fi
27545 done
27546
27547 if test "x$ac_cv_func_fork" = xyes; then
27548   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
27549 $as_echo_n "checking for working fork... " >&6; }
27550 if test "${ac_cv_func_fork_works+set}" = set; then
27551   $as_echo_n "(cached) " >&6
27552 else
27553   if test "$cross_compiling" = yes; then
27554   ac_cv_func_fork_works=cross
27555 else
27556   cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562 $ac_includes_default
27563 int
27564 main ()
27565 {
27566
27567           /* By Ruediger Kuhlmann. */
27568           return fork () < 0;
27569
27570   ;
27571   return 0;
27572 }
27573 _ACEOF
27574 rm -f conftest$ac_exeext
27575 if { (ac_try="$ac_link"
27576 case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27581 $as_echo "$ac_try_echo") >&5
27582   (eval "$ac_link") 2>&5
27583   ac_status=$?
27584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27586   { (case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591 $as_echo "$ac_try_echo") >&5
27592   (eval "$ac_try") 2>&5
27593   ac_status=$?
27594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596   ac_cv_func_fork_works=yes
27597 else
27598   $as_echo "$as_me: program exited with status $ac_status" >&5
27599 $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602 ( exit $ac_status )
27603 ac_cv_func_fork_works=no
27604 fi
27605 rm -rf conftest.dSYM
27606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27607 fi
27608
27609
27610 fi
27611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
27612 $as_echo "$ac_cv_func_fork_works" >&6; }
27613
27614 else
27615   ac_cv_func_fork_works=$ac_cv_func_fork
27616 fi
27617 if test "x$ac_cv_func_fork_works" = xcross; then
27618   case $host in
27619     *-*-amigaos* | *-*-msdosdjgpp*)
27620       # Override, as these systems have only a dummy fork() stub
27621       ac_cv_func_fork_works=no
27622       ;;
27623     *)
27624       ac_cv_func_fork_works=yes
27625       ;;
27626   esac
27627   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27628 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27629 fi
27630 ac_cv_func_vfork_works=$ac_cv_func_vfork
27631 if test "x$ac_cv_func_vfork" = xyes; then
27632   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
27633 $as_echo_n "checking for working vfork... " >&6; }
27634 if test "${ac_cv_func_vfork_works+set}" = set; then
27635   $as_echo_n "(cached) " >&6
27636 else
27637   if test "$cross_compiling" = yes; then
27638   ac_cv_func_vfork_works=cross
27639 else
27640   cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646 /* Thanks to Paul Eggert for this test.  */
27647 $ac_includes_default
27648 #include <sys/wait.h>
27649 #ifdef HAVE_VFORK_H
27650 # include <vfork.h>
27651 #endif
27652 /* On some sparc systems, changes by the child to local and incoming
27653    argument registers are propagated back to the parent.  The compiler
27654    is told about this with #include <vfork.h>, but some compilers
27655    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
27656    static variable whose address is put into a register that is
27657    clobbered by the vfork.  */
27658 static void
27659 #ifdef __cplusplus
27660 sparc_address_test (int arg)
27661 # else
27662 sparc_address_test (arg) int arg;
27663 #endif
27664 {
27665   static pid_t child;
27666   if (!child) {
27667     child = vfork ();
27668     if (child < 0) {
27669       perror ("vfork");
27670       _exit(2);
27671     }
27672     if (!child) {
27673       arg = getpid();
27674       write(-1, "", 0);
27675       _exit (arg);
27676     }
27677   }
27678 }
27679
27680 int
27681 main ()
27682 {
27683   pid_t parent = getpid ();
27684   pid_t child;
27685
27686   sparc_address_test (0);
27687
27688   child = vfork ();
27689
27690   if (child == 0) {
27691     /* Here is another test for sparc vfork register problems.  This
27692        test uses lots of local variables, at least as many local
27693        variables as main has allocated so far including compiler
27694        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
27695        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
27696        reuse the register of parent for one of the local variables,
27697        since it will think that parent can't possibly be used any more
27698        in this routine.  Assigning to the local variable will thus
27699        munge parent in the parent process.  */
27700     pid_t
27701       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27702       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27703     /* Convince the compiler that p..p7 are live; otherwise, it might
27704        use the same hardware register for all 8 local variables.  */
27705     if (p != p1 || p != p2 || p != p3 || p != p4
27706         || p != p5 || p != p6 || p != p7)
27707       _exit(1);
27708
27709     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27710        from child file descriptors.  If the child closes a descriptor
27711        before it execs or exits, this munges the parent's descriptor
27712        as well.  Test for this by closing stdout in the child.  */
27713     _exit(close(fileno(stdout)) != 0);
27714   } else {
27715     int status;
27716     struct stat st;
27717
27718     while (wait(&status) != child)
27719       ;
27720     return (
27721          /* Was there some problem with vforking?  */
27722          child < 0
27723
27724          /* Did the child fail?  (This shouldn't happen.)  */
27725          || status
27726
27727          /* Did the vfork/compiler bug occur?  */
27728          || parent != getpid()
27729
27730          /* Did the file descriptor bug occur?  */
27731          || fstat(fileno(stdout), &st) != 0
27732          );
27733   }
27734 }
27735 _ACEOF
27736 rm -f conftest$ac_exeext
27737 if { (ac_try="$ac_link"
27738 case "(($ac_try" in
27739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740   *) ac_try_echo=$ac_try;;
27741 esac
27742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27743 $as_echo "$ac_try_echo") >&5
27744   (eval "$ac_link") 2>&5
27745   ac_status=$?
27746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27748   { (case "(($ac_try" in
27749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750   *) ac_try_echo=$ac_try;;
27751 esac
27752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27753 $as_echo "$ac_try_echo") >&5
27754   (eval "$ac_try") 2>&5
27755   ac_status=$?
27756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; }; then
27758   ac_cv_func_vfork_works=yes
27759 else
27760   $as_echo "$as_me: program exited with status $ac_status" >&5
27761 $as_echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764 ( exit $ac_status )
27765 ac_cv_func_vfork_works=no
27766 fi
27767 rm -rf conftest.dSYM
27768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27769 fi
27770
27771
27772 fi
27773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
27774 $as_echo "$ac_cv_func_vfork_works" >&6; }
27775
27776 fi;
27777 if test "x$ac_cv_func_fork_works" = xcross; then
27778   ac_cv_func_vfork_works=$ac_cv_func_vfork
27779   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27780 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27781 fi
27782
27783 if test "x$ac_cv_func_vfork_works" = xyes; then
27784
27785 cat >>confdefs.h <<\_ACEOF
27786 #define HAVE_WORKING_VFORK 1
27787 _ACEOF
27788
27789 else
27790
27791 cat >>confdefs.h <<\_ACEOF
27792 #define vfork fork
27793 _ACEOF
27794
27795 fi
27796 if test "x$ac_cv_func_fork_works" = xyes; then
27797
27798 cat >>confdefs.h <<\_ACEOF
27799 #define HAVE_WORKING_FORK 1
27800 _ACEOF
27801
27802 fi
27803
27804 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
27805 $as_echo_n "checking type of array argument to getgroups... " >&6; }
27806 if test "${ac_cv_type_getgroups+set}" = set; then
27807   $as_echo_n "(cached) " >&6
27808 else
27809   if test "$cross_compiling" = yes; then
27810   ac_cv_type_getgroups=cross
27811 else
27812   cat >conftest.$ac_ext <<_ACEOF
27813 /* confdefs.h.  */
27814 _ACEOF
27815 cat confdefs.h >>conftest.$ac_ext
27816 cat >>conftest.$ac_ext <<_ACEOF
27817 /* end confdefs.h.  */
27818 /* Thanks to Mike Rendell for this test.  */
27819 $ac_includes_default
27820 #define NGID 256
27821 #undef MAX
27822 #define MAX(x, y) ((x) > (y) ? (x) : (y))
27823
27824 int
27825 main ()
27826 {
27827   gid_t gidset[NGID];
27828   int i, n;
27829   union { gid_t gval; long int lval; }  val;
27830
27831   val.lval = -1;
27832   for (i = 0; i < NGID; i++)
27833     gidset[i] = val.gval;
27834   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
27835                  gidset);
27836   /* Exit non-zero if getgroups seems to require an array of ints.  This
27837      happens when gid_t is short int but getgroups modifies an array
27838      of ints.  */
27839   return n > 0 && gidset[n] != val.gval;
27840 }
27841 _ACEOF
27842 rm -f conftest$ac_exeext
27843 if { (ac_try="$ac_link"
27844 case "(($ac_try" in
27845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846   *) ac_try_echo=$ac_try;;
27847 esac
27848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27849 $as_echo "$ac_try_echo") >&5
27850   (eval "$ac_link") 2>&5
27851   ac_status=$?
27852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27854   { (case "(($ac_try" in
27855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856   *) ac_try_echo=$ac_try;;
27857 esac
27858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27859 $as_echo "$ac_try_echo") >&5
27860   (eval "$ac_try") 2>&5
27861   ac_status=$?
27862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; }; then
27864   ac_cv_type_getgroups=gid_t
27865 else
27866   $as_echo "$as_me: program exited with status $ac_status" >&5
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870 ( exit $ac_status )
27871 ac_cv_type_getgroups=int
27872 fi
27873 rm -rf conftest.dSYM
27874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27875 fi
27876
27877
27878 if test $ac_cv_type_getgroups = cross; then
27879         cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h.  */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h.  */
27885 #include <unistd.h>
27886
27887 _ACEOF
27888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27889   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
27890   ac_cv_type_getgroups=gid_t
27891 else
27892   ac_cv_type_getgroups=int
27893 fi
27894 rm -f conftest*
27895
27896 fi
27897 fi
27898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
27899 $as_echo "$ac_cv_type_getgroups" >&6; }
27900
27901 cat >>confdefs.h <<_ACEOF
27902 #define GETGROUPS_T $ac_cv_type_getgroups
27903 _ACEOF
27904
27905
27906 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
27907 $as_echo_n "checking for getgroups... " >&6; }
27908 if test "${ac_cv_func_getgroups+set}" = set; then
27909   $as_echo_n "(cached) " >&6
27910 else
27911   cat >conftest.$ac_ext <<_ACEOF
27912 /* confdefs.h.  */
27913 _ACEOF
27914 cat confdefs.h >>conftest.$ac_ext
27915 cat >>conftest.$ac_ext <<_ACEOF
27916 /* end confdefs.h.  */
27917 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
27918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27919 #define getgroups innocuous_getgroups
27920
27921 /* System header to define __stub macros and hopefully few prototypes,
27922     which can conflict with char getgroups (); below.
27923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27924     <limits.h> exists even on freestanding compilers.  */
27925
27926 #ifdef __STDC__
27927 # include <limits.h>
27928 #else
27929 # include <assert.h>
27930 #endif
27931
27932 #undef getgroups
27933
27934 /* Override any GCC internal prototype to avoid an error.
27935    Use char because int might match the return type of a GCC
27936    builtin and then its argument prototype would still apply.  */
27937 #ifdef __cplusplus
27938 extern "C"
27939 #endif
27940 char getgroups ();
27941 /* The GNU C library defines this for functions which it implements
27942     to always fail with ENOSYS.  Some functions are actually named
27943     something starting with __ and the normal name is an alias.  */
27944 #if defined __stub_getgroups || defined __stub___getgroups
27945 choke me
27946 #endif
27947
27948 int
27949 main ()
27950 {
27951 return getgroups ();
27952   ;
27953   return 0;
27954 }
27955 _ACEOF
27956 rm -f conftest.$ac_objext conftest$ac_exeext
27957 if { (ac_try="$ac_link"
27958 case "(($ac_try" in
27959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960   *) ac_try_echo=$ac_try;;
27961 esac
27962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27963 $as_echo "$ac_try_echo") >&5
27964   (eval "$ac_link") 2>conftest.er1
27965   ac_status=$?
27966   grep -v '^ *+' conftest.er1 >conftest.err
27967   rm -f conftest.er1
27968   cat conftest.err >&5
27969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); } && {
27971          test -z "$ac_c_werror_flag" ||
27972          test ! -s conftest.err
27973        } && test -s conftest$ac_exeext && {
27974          test "$cross_compiling" = yes ||
27975          $as_test_x conftest$ac_exeext
27976        }; then
27977   ac_cv_func_getgroups=yes
27978 else
27979   $as_echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27981
27982         ac_cv_func_getgroups=no
27983 fi
27984
27985 rm -rf conftest.dSYM
27986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27987       conftest$ac_exeext conftest.$ac_ext
27988 fi
27989 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
27990 $as_echo "$ac_cv_func_getgroups" >&6; }
27991
27992
27993 # If we don't yet have getgroups, see if it's in -lbsd.
27994 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27995 ac_save_LIBS=$LIBS
27996 if test $ac_cv_func_getgroups = no; then
27997   { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
27998 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27999 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
28000   $as_echo_n "(cached) " >&6
28001 else
28002   ac_check_lib_save_LIBS=$LIBS
28003 LIBS="-lbsd  $LIBS"
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010
28011 /* Override any GCC internal prototype to avoid an error.
28012    Use char because int might match the return type of a GCC
28013    builtin and then its argument prototype would still apply.  */
28014 #ifdef __cplusplus
28015 extern "C"
28016 #endif
28017 char getgroups ();
28018 int
28019 main ()
28020 {
28021 return getgroups ();
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext conftest$ac_exeext
28027 if { (ac_try="$ac_link"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28033 $as_echo "$ac_try_echo") >&5
28034   (eval "$ac_link") 2>conftest.er1
28035   ac_status=$?
28036   grep -v '^ *+' conftest.er1 >conftest.err
28037   rm -f conftest.er1
28038   cat conftest.err >&5
28039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040   (exit $ac_status); } && {
28041          test -z "$ac_c_werror_flag" ||
28042          test ! -s conftest.err
28043        } && test -s conftest$ac_exeext && {
28044          test "$cross_compiling" = yes ||
28045          $as_test_x conftest$ac_exeext
28046        }; then
28047   ac_cv_lib_bsd_getgroups=yes
28048 else
28049   $as_echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28051
28052         ac_cv_lib_bsd_getgroups=no
28053 fi
28054
28055 rm -rf conftest.dSYM
28056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28057       conftest$ac_exeext conftest.$ac_ext
28058 LIBS=$ac_check_lib_save_LIBS
28059 fi
28060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
28061 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28062 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
28063   GETGROUPS_LIB=-lbsd
28064 fi
28065
28066 fi
28067
28068 # Run the program to test the functionality of the system-supplied
28069 # getgroups function only if there is such a function.
28070 if test $ac_cv_func_getgroups = yes; then
28071   { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
28072 $as_echo_n "checking for working getgroups... " >&6; }
28073 if test "${ac_cv_func_getgroups_works+set}" = set; then
28074   $as_echo_n "(cached) " >&6
28075 else
28076   if test "$cross_compiling" = yes; then
28077   ac_cv_func_getgroups_works=no
28078 else
28079   cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 $ac_includes_default
28086 int
28087 main ()
28088 {
28089 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
28090        return getgroups (0, 0) == -1;
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest$ac_exeext
28096 if { (ac_try="$ac_link"
28097 case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28102 $as_echo "$ac_try_echo") >&5
28103   (eval "$ac_link") 2>&5
28104   ac_status=$?
28105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28107   { (case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112 $as_echo "$ac_try_echo") >&5
28113   (eval "$ac_try") 2>&5
28114   ac_status=$?
28115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); }; }; then
28117   ac_cv_func_getgroups_works=yes
28118 else
28119   $as_echo "$as_me: program exited with status $ac_status" >&5
28120 $as_echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28122
28123 ( exit $ac_status )
28124 ac_cv_func_getgroups_works=no
28125 fi
28126 rm -rf conftest.dSYM
28127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28128 fi
28129
28130
28131
28132 fi
28133 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
28134 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28135   if test $ac_cv_func_getgroups_works = yes; then
28136
28137 cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_GETGROUPS 1
28139 _ACEOF
28140
28141   fi
28142 fi
28143 LIBS=$ac_save_LIBS
28144
28145 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28146 # -lseq on Dynix/PTX, -lgen on Unixware.
28147 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28148 $as_echo_n "checking for library containing getmntent... " >&6; }
28149 if test "${ac_cv_search_getmntent+set}" = set; then
28150   $as_echo_n "(cached) " >&6
28151 else
28152   ac_func_search_save_LIBS=$LIBS
28153 cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159
28160 /* Override any GCC internal prototype to avoid an error.
28161    Use char because int might match the return type of a GCC
28162    builtin and then its argument prototype would still apply.  */
28163 #ifdef __cplusplus
28164 extern "C"
28165 #endif
28166 char getmntent ();
28167 int
28168 main ()
28169 {
28170 return getmntent ();
28171   ;
28172   return 0;
28173 }
28174 _ACEOF
28175 for ac_lib in '' sun seq gen; do
28176   if test -z "$ac_lib"; then
28177     ac_res="none required"
28178   else
28179     ac_res=-l$ac_lib
28180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28181   fi
28182   rm -f conftest.$ac_objext conftest$ac_exeext
28183 if { (ac_try="$ac_link"
28184 case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28189 $as_echo "$ac_try_echo") >&5
28190   (eval "$ac_link") 2>conftest.er1
28191   ac_status=$?
28192   grep -v '^ *+' conftest.er1 >conftest.err
28193   rm -f conftest.er1
28194   cat conftest.err >&5
28195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196   (exit $ac_status); } && {
28197          test -z "$ac_c_werror_flag" ||
28198          test ! -s conftest.err
28199        } && test -s conftest$ac_exeext && {
28200          test "$cross_compiling" = yes ||
28201          $as_test_x conftest$ac_exeext
28202        }; then
28203   ac_cv_search_getmntent=$ac_res
28204 else
28205   $as_echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28207
28208
28209 fi
28210
28211 rm -rf conftest.dSYM
28212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28213       conftest$ac_exeext
28214   if test "${ac_cv_search_getmntent+set}" = set; then
28215   break
28216 fi
28217 done
28218 if test "${ac_cv_search_getmntent+set}" = set; then
28219   :
28220 else
28221   ac_cv_search_getmntent=no
28222 fi
28223 rm conftest.$ac_ext
28224 LIBS=$ac_func_search_save_LIBS
28225 fi
28226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28227 $as_echo "$ac_cv_search_getmntent" >&6; }
28228 ac_res=$ac_cv_search_getmntent
28229 if test "$ac_res" != no; then
28230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28231   ac_cv_func_getmntent=yes
28232
28233 cat >>confdefs.h <<\_ACEOF
28234 #define HAVE_GETMNTENT 1
28235 _ACEOF
28236
28237 else
28238   ac_cv_func_getmntent=no
28239 fi
28240
28241
28242 if test $ac_cv_c_compiler_gnu = yes; then
28243     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
28244 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28245 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
28246   $as_echo_n "(cached) " >&6
28247 else
28248     ac_pattern="Autoconf.*'x'"
28249   cat >conftest.$ac_ext <<_ACEOF
28250 /* confdefs.h.  */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h.  */
28255 #include <sgtty.h>
28256 Autoconf TIOCGETP
28257 _ACEOF
28258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28259   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28260   ac_cv_prog_gcc_traditional=yes
28261 else
28262   ac_cv_prog_gcc_traditional=no
28263 fi
28264 rm -f conftest*
28265
28266
28267   if test $ac_cv_prog_gcc_traditional = no; then
28268     cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274 #include <termio.h>
28275 Autoconf TCGETA
28276 _ACEOF
28277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28278   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28279   ac_cv_prog_gcc_traditional=yes
28280 fi
28281 rm -f conftest*
28282
28283   fi
28284 fi
28285 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
28286 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28287   if test $ac_cv_prog_gcc_traditional = yes; then
28288     CC="$CC -traditional"
28289   fi
28290 fi
28291
28292 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28293 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28294 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28295   $as_echo_n "(cached) " >&6
28296 else
28297   rm -f conftest.sym conftest.file
28298 echo >conftest.file
28299 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28300   if test "$cross_compiling" = yes; then
28301   ac_cv_func_lstat_dereferences_slashed_symlink=no
28302 else
28303   cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 $ac_includes_default
28310 int
28311 main ()
28312 {
28313 struct stat sbuf;
28314      /* Linux will dereference the symlink and fail.
28315         That is better in the sense that it means we will not
28316         have to compile and use the lstat wrapper.  */
28317      return lstat ("conftest.sym/", &sbuf) == 0;
28318   ;
28319   return 0;
28320 }
28321 _ACEOF
28322 rm -f conftest$ac_exeext
28323 if { (ac_try="$ac_link"
28324 case "(($ac_try" in
28325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326   *) ac_try_echo=$ac_try;;
28327 esac
28328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28329 $as_echo "$ac_try_echo") >&5
28330   (eval "$ac_link") 2>&5
28331   ac_status=$?
28332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28334   { (case "(($ac_try" in
28335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336   *) ac_try_echo=$ac_try;;
28337 esac
28338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339 $as_echo "$ac_try_echo") >&5
28340   (eval "$ac_try") 2>&5
28341   ac_status=$?
28342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); }; }; then
28344   ac_cv_func_lstat_dereferences_slashed_symlink=yes
28345 else
28346   $as_echo "$as_me: program exited with status $ac_status" >&5
28347 $as_echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28349
28350 ( exit $ac_status )
28351 ac_cv_func_lstat_dereferences_slashed_symlink=no
28352 fi
28353 rm -rf conftest.dSYM
28354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28355 fi
28356
28357
28358 else
28359   # If the `ln -s' command failed, then we probably don't even
28360   # have an lstat function.
28361   ac_cv_func_lstat_dereferences_slashed_symlink=no
28362 fi
28363 rm -f conftest.sym conftest.file
28364
28365 fi
28366 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
28367 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
28368
28369 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
28370
28371 cat >>confdefs.h <<_ACEOF
28372 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
28373 _ACEOF
28374
28375
28376 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
28377   case " $LIBOBJS " in
28378   *" lstat.$ac_objext "* ) ;;
28379   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28380  ;;
28381 esac
28382
28383 fi
28384
28385 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
28386 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
28387 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
28388   $as_echo_n "(cached) " >&6
28389 else
28390   if test "$cross_compiling" = yes; then
28391   ac_cv_func_lstat_empty_string_bug=yes
28392 else
28393   cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 $ac_includes_default
28400 int
28401 main ()
28402 {
28403 struct stat sbuf;
28404   return lstat ("", &sbuf) == 0;
28405   ;
28406   return 0;
28407 }
28408 _ACEOF
28409 rm -f conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28416 $as_echo "$ac_try_echo") >&5
28417   (eval "$ac_link") 2>&5
28418   ac_status=$?
28419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28421   { (case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28426 $as_echo "$ac_try_echo") >&5
28427   (eval "$ac_try") 2>&5
28428   ac_status=$?
28429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; }; then
28431   ac_cv_func_lstat_empty_string_bug=no
28432 else
28433   $as_echo "$as_me: program exited with status $ac_status" >&5
28434 $as_echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28436
28437 ( exit $ac_status )
28438 ac_cv_func_lstat_empty_string_bug=yes
28439 fi
28440 rm -rf conftest.dSYM
28441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28442 fi
28443
28444
28445 fi
28446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
28447 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
28448 if test $ac_cv_func_lstat_empty_string_bug = yes; then
28449   case " $LIBOBJS " in
28450   *" lstat.$ac_objext "* ) ;;
28451   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28452  ;;
28453 esac
28454
28455
28456 cat >>confdefs.h <<_ACEOF
28457 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
28458 _ACEOF
28459
28460 fi
28461
28462 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28463 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28464 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28465   $as_echo_n "(cached) " >&6
28466 else
28467   rm -f conftest.sym conftest.file
28468 echo >conftest.file
28469 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28470   if test "$cross_compiling" = yes; then
28471   ac_cv_func_lstat_dereferences_slashed_symlink=no
28472 else
28473   cat >conftest.$ac_ext <<_ACEOF
28474 /* confdefs.h.  */
28475 _ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h.  */
28479 $ac_includes_default
28480 int
28481 main ()
28482 {
28483 struct stat sbuf;
28484      /* Linux will dereference the symlink and fail.
28485         That is better in the sense that it means we will not
28486         have to compile and use the lstat wrapper.  */
28487      return lstat ("conftest.sym/", &sbuf) == 0;
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28499 $as_echo "$ac_try_echo") >&5
28500   (eval "$ac_link") 2>&5
28501   ac_status=$?
28502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28504   { (case "(($ac_try" in
28505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506   *) ac_try_echo=$ac_try;;
28507 esac
28508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28509 $as_echo "$ac_try_echo") >&5
28510   (eval "$ac_try") 2>&5
28511   ac_status=$?
28512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); }; }; then
28514   ac_cv_func_lstat_dereferences_slashed_symlink=yes
28515 else
28516   $as_echo "$as_me: program exited with status $ac_status" >&5
28517 $as_echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520 ( exit $ac_status )
28521 ac_cv_func_lstat_dereferences_slashed_symlink=no
28522 fi
28523 rm -rf conftest.dSYM
28524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28525 fi
28526
28527
28528 else
28529   # If the `ln -s' command failed, then we probably don't even
28530   # have an lstat function.
28531   ac_cv_func_lstat_dereferences_slashed_symlink=no
28532 fi
28533 rm -f conftest.sym conftest.file
28534
28535 fi
28536 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
28537 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
28538
28539 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
28540
28541 cat >>confdefs.h <<_ACEOF
28542 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
28543 _ACEOF
28544
28545
28546 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
28547   case " $LIBOBJS " in
28548   *" lstat.$ac_objext "* ) ;;
28549   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28550  ;;
28551 esac
28552
28553 fi
28554
28555 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
28556 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
28557 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
28558   $as_echo_n "(cached) " >&6
28559 else
28560   cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566 #include <sys/types.h>
28567 int
28568 main ()
28569 {
28570 return makedev(0, 0);
28571   ;
28572   return 0;
28573 }
28574 _ACEOF
28575 rm -f conftest.$ac_objext conftest$ac_exeext
28576 if { (ac_try="$ac_link"
28577 case "(($ac_try" in
28578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579   *) ac_try_echo=$ac_try;;
28580 esac
28581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28582 $as_echo "$ac_try_echo") >&5
28583   (eval "$ac_link") 2>conftest.er1
28584   ac_status=$?
28585   grep -v '^ *+' conftest.er1 >conftest.err
28586   rm -f conftest.er1
28587   cat conftest.err >&5
28588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); } && {
28590          test -z "$ac_c_werror_flag" ||
28591          test ! -s conftest.err
28592        } && test -s conftest$ac_exeext && {
28593          test "$cross_compiling" = yes ||
28594          $as_test_x conftest$ac_exeext
28595        }; then
28596   ac_cv_header_sys_types_h_makedev=yes
28597 else
28598   $as_echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601         ac_cv_header_sys_types_h_makedev=no
28602 fi
28603
28604 rm -rf conftest.dSYM
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606       conftest$ac_exeext conftest.$ac_ext
28607
28608 fi
28609 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
28610 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
28611
28612 if test $ac_cv_header_sys_types_h_makedev = no; then
28613 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
28614   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
28615 $as_echo_n "checking for sys/mkdev.h... " >&6; }
28616 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
28617   $as_echo_n "(cached) " >&6
28618 fi
28619 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
28620 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
28621 else
28622   # Is the header compilable?
28623 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
28624 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
28625 cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 $ac_includes_default
28632 #include <sys/mkdev.h>
28633 _ACEOF
28634 rm -f conftest.$ac_objext
28635 if { (ac_try="$ac_compile"
28636 case "(($ac_try" in
28637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638   *) ac_try_echo=$ac_try;;
28639 esac
28640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28641 $as_echo "$ac_try_echo") >&5
28642   (eval "$ac_compile") 2>conftest.er1
28643   ac_status=$?
28644   grep -v '^ *+' conftest.er1 >conftest.err
28645   rm -f conftest.er1
28646   cat conftest.err >&5
28647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648   (exit $ac_status); } && {
28649          test -z "$ac_c_werror_flag" ||
28650          test ! -s conftest.err
28651        } && test -s conftest.$ac_objext; then
28652   ac_header_compiler=yes
28653 else
28654   $as_echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28656
28657         ac_header_compiler=no
28658 fi
28659
28660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28662 $as_echo "$ac_header_compiler" >&6; }
28663
28664 # Is the header present?
28665 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
28666 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
28667 cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h.  */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h.  */
28673 #include <sys/mkdev.h>
28674 _ACEOF
28675 if { (ac_try="$ac_cpp conftest.$ac_ext"
28676 case "(($ac_try" in
28677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678   *) ac_try_echo=$ac_try;;
28679 esac
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } >/dev/null && {
28689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28690          test ! -s conftest.err
28691        }; then
28692   ac_header_preproc=yes
28693 else
28694   $as_echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28696
28697   ac_header_preproc=no
28698 fi
28699
28700 rm -f conftest.err conftest.$ac_ext
28701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28702 $as_echo "$ac_header_preproc" >&6; }
28703
28704 # So?  What about this header?
28705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28706   yes:no: )
28707     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
28708 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28709     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
28710 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
28711     ac_header_preproc=yes
28712     ;;
28713   no:yes:* )
28714     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
28715 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
28716     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
28717 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
28718     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
28719 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
28720     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
28721 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28722     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
28723 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
28724     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
28725 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
28726     ( cat <<\_ASBOX
28727 ## ---------------------------------------- ##
28728 ## Report this to linux-nfs@vger.kernel.org ##
28729 ## ---------------------------------------- ##
28730 _ASBOX
28731      ) | sed "s/^/$as_me: WARNING:     /" >&2
28732     ;;
28733 esac
28734 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
28735 $as_echo_n "checking for sys/mkdev.h... " >&6; }
28736 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
28737   $as_echo_n "(cached) " >&6
28738 else
28739   ac_cv_header_sys_mkdev_h=$ac_header_preproc
28740 fi
28741 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
28742 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
28743
28744 fi
28745 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
28746
28747 cat >>confdefs.h <<\_ACEOF
28748 #define MAJOR_IN_MKDEV 1
28749 _ACEOF
28750
28751 fi
28752
28753
28754
28755   if test $ac_cv_header_sys_mkdev_h = no; then
28756     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
28757   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
28758 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
28759 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
28760   $as_echo_n "(cached) " >&6
28761 fi
28762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
28763 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
28764 else
28765   # Is the header compilable?
28766 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
28767 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
28768 cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h.  */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h.  */
28774 $ac_includes_default
28775 #include <sys/sysmacros.h>
28776 _ACEOF
28777 rm -f conftest.$ac_objext
28778 if { (ac_try="$ac_compile"
28779 case "(($ac_try" in
28780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781   *) ac_try_echo=$ac_try;;
28782 esac
28783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28784 $as_echo "$ac_try_echo") >&5
28785   (eval "$ac_compile") 2>conftest.er1
28786   ac_status=$?
28787   grep -v '^ *+' conftest.er1 >conftest.err
28788   rm -f conftest.er1
28789   cat conftest.err >&5
28790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); } && {
28792          test -z "$ac_c_werror_flag" ||
28793          test ! -s conftest.err
28794        } && test -s conftest.$ac_objext; then
28795   ac_header_compiler=yes
28796 else
28797   $as_echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28799
28800         ac_header_compiler=no
28801 fi
28802
28803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28805 $as_echo "$ac_header_compiler" >&6; }
28806
28807 # Is the header present?
28808 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
28809 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
28810 cat >conftest.$ac_ext <<_ACEOF
28811 /* confdefs.h.  */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h.  */
28816 #include <sys/sysmacros.h>
28817 _ACEOF
28818 if { (ac_try="$ac_cpp conftest.$ac_ext"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28824 $as_echo "$ac_try_echo") >&5
28825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } >/dev/null && {
28832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28833          test ! -s conftest.err
28834        }; then
28835   ac_header_preproc=yes
28836 else
28837   $as_echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840   ac_header_preproc=no
28841 fi
28842
28843 rm -f conftest.err conftest.$ac_ext
28844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28845 $as_echo "$ac_header_preproc" >&6; }
28846
28847 # So?  What about this header?
28848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28849   yes:no: )
28850     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
28851 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28852     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
28853 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
28854     ac_header_preproc=yes
28855     ;;
28856   no:yes:* )
28857     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
28858 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
28859     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
28860 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
28861     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
28862 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
28863     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
28864 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28865     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
28866 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
28867     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
28868 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
28869     ( cat <<\_ASBOX
28870 ## ---------------------------------------- ##
28871 ## Report this to linux-nfs@vger.kernel.org ##
28872 ## ---------------------------------------- ##
28873 _ASBOX
28874      ) | sed "s/^/$as_me: WARNING:     /" >&2
28875     ;;
28876 esac
28877 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
28878 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
28879 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
28880   $as_echo_n "(cached) " >&6
28881 else
28882   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
28883 fi
28884 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
28885 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
28886
28887 fi
28888 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
28889
28890 cat >>confdefs.h <<\_ACEOF
28891 #define MAJOR_IN_SYSMACROS 1
28892 _ACEOF
28893
28894 fi
28895
28896
28897   fi
28898 fi
28899
28900 #AC_FUNC_MALLOC
28901 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28902 $as_echo_n "checking for working memcmp... " >&6; }
28903 if test "${ac_cv_func_memcmp_working+set}" = set; then
28904   $as_echo_n "(cached) " >&6
28905 else
28906   if test "$cross_compiling" = yes; then
28907   ac_cv_func_memcmp_working=no
28908 else
28909   cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915 $ac_includes_default
28916 int
28917 main ()
28918 {
28919
28920   /* Some versions of memcmp are not 8-bit clean.  */
28921   char c0 = '\100', c1 = '\200', c2 = '\201';
28922   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28923     return 1;
28924
28925   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28926      or more and with at least one buffer not starting on a 4-byte boundary.
28927      William Lewis provided this test program.   */
28928   {
28929     char foo[21];
28930     char bar[21];
28931     int i;
28932     for (i = 0; i < 4; i++)
28933       {
28934         char *a = foo + i;
28935         char *b = bar + i;
28936         strcpy (a, "--------01111111");
28937         strcpy (b, "--------10000000");
28938         if (memcmp (a, b, 16) >= 0)
28939           return 1;
28940       }
28941     return 0;
28942   }
28943
28944   ;
28945   return 0;
28946 }
28947 _ACEOF
28948 rm -f conftest$ac_exeext
28949 if { (ac_try="$ac_link"
28950 case "(($ac_try" in
28951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952   *) ac_try_echo=$ac_try;;
28953 esac
28954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28955 $as_echo "$ac_try_echo") >&5
28956   (eval "$ac_link") 2>&5
28957   ac_status=$?
28958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28960   { (case "(($ac_try" in
28961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962   *) ac_try_echo=$ac_try;;
28963 esac
28964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28965 $as_echo "$ac_try_echo") >&5
28966   (eval "$ac_try") 2>&5
28967   ac_status=$?
28968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ac_cv_func_memcmp_working=yes
28971 else
28972   $as_echo "$as_me: program exited with status $ac_status" >&5
28973 $as_echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ( exit $ac_status )
28977 ac_cv_func_memcmp_working=no
28978 fi
28979 rm -rf conftest.dSYM
28980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28981 fi
28982
28983
28984 fi
28985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28986 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28987 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28988   *" memcmp.$ac_objext "* ) ;;
28989   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28990  ;;
28991 esac
28992
28993
28994 #AC_FUNC_REALLOC
28995
28996
28997 for ac_header in sys/select.h sys/socket.h
28998 do
28999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29001   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29002 $as_echo_n "checking for $ac_header... " >&6; }
29003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29004   $as_echo_n "(cached) " >&6
29005 fi
29006 ac_res=`eval 'as_val=${'$as_ac_Header'}
29007                  $as_echo "$as_val"'`
29008                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29009 $as_echo "$ac_res" >&6; }
29010 else
29011   # Is the header compilable?
29012 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29013 $as_echo_n "checking $ac_header usability... " >&6; }
29014 cat >conftest.$ac_ext <<_ACEOF
29015 /* confdefs.h.  */
29016 _ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h.  */
29020 $ac_includes_default
29021 #include <$ac_header>
29022 _ACEOF
29023 rm -f conftest.$ac_objext
29024 if { (ac_try="$ac_compile"
29025 case "(($ac_try" in
29026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027   *) ac_try_echo=$ac_try;;
29028 esac
29029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29030 $as_echo "$ac_try_echo") >&5
29031   (eval "$ac_compile") 2>conftest.er1
29032   ac_status=$?
29033   grep -v '^ *+' conftest.er1 >conftest.err
29034   rm -f conftest.er1
29035   cat conftest.err >&5
29036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); } && {
29038          test -z "$ac_c_werror_flag" ||
29039          test ! -s conftest.err
29040        } && test -s conftest.$ac_objext; then
29041   ac_header_compiler=yes
29042 else
29043   $as_echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29045
29046         ac_header_compiler=no
29047 fi
29048
29049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29051 $as_echo "$ac_header_compiler" >&6; }
29052
29053 # Is the header present?
29054 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29055 $as_echo_n "checking $ac_header presence... " >&6; }
29056 cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062 #include <$ac_header>
29063 _ACEOF
29064 if { (ac_try="$ac_cpp conftest.$ac_ext"
29065 case "(($ac_try" in
29066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067   *) ac_try_echo=$ac_try;;
29068 esac
29069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29070 $as_echo "$ac_try_echo") >&5
29071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29072   ac_status=$?
29073   grep -v '^ *+' conftest.er1 >conftest.err
29074   rm -f conftest.er1
29075   cat conftest.err >&5
29076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077   (exit $ac_status); } >/dev/null && {
29078          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29079          test ! -s conftest.err
29080        }; then
29081   ac_header_preproc=yes
29082 else
29083   $as_echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29085
29086   ac_header_preproc=no
29087 fi
29088
29089 rm -f conftest.err conftest.$ac_ext
29090 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29091 $as_echo "$ac_header_preproc" >&6; }
29092
29093 # So?  What about this header?
29094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29095   yes:no: )
29096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29097 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29098     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29100     ac_header_preproc=yes
29101     ;;
29102   no:yes:* )
29103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29104 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29106 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29107     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29108 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29110 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29113     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29114 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29115     ( cat <<\_ASBOX
29116 ## ---------------------------------------- ##
29117 ## Report this to linux-nfs@vger.kernel.org ##
29118 ## ---------------------------------------- ##
29119 _ASBOX
29120      ) | sed "s/^/$as_me: WARNING:     /" >&2
29121     ;;
29122 esac
29123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29124 $as_echo_n "checking for $ac_header... " >&6; }
29125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29126   $as_echo_n "(cached) " >&6
29127 else
29128   eval "$as_ac_Header=\$ac_header_preproc"
29129 fi
29130 ac_res=`eval 'as_val=${'$as_ac_Header'}
29131                  $as_echo "$as_val"'`
29132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29133 $as_echo "$ac_res" >&6; }
29134
29135 fi
29136 as_val=`eval 'as_val=${'$as_ac_Header'}
29137                  $as_echo "$as_val"'`
29138    if test "x$as_val" = x""yes; then
29139   cat >>confdefs.h <<_ACEOF
29140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29141 _ACEOF
29142
29143 fi
29144
29145 done
29146
29147 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
29148 $as_echo_n "checking types of arguments for select... " >&6; }
29149 if test "${ac_cv_func_select_args+set}" = set; then
29150   $as_echo_n "(cached) " >&6
29151 else
29152   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29153  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
29154   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29155    cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161 $ac_includes_default
29162 #ifdef HAVE_SYS_SELECT_H
29163 # include <sys/select.h>
29164 #endif
29165 #ifdef HAVE_SYS_SOCKET_H
29166 # include <sys/socket.h>
29167 #endif
29168
29169 int
29170 main ()
29171 {
29172 extern int select ($ac_arg1,
29173                                             $ac_arg234, $ac_arg234, $ac_arg234,
29174                                             $ac_arg5);
29175   ;
29176   return 0;
29177 }
29178 _ACEOF
29179 rm -f conftest.$ac_objext
29180 if { (ac_try="$ac_compile"
29181 case "(($ac_try" in
29182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183   *) ac_try_echo=$ac_try;;
29184 esac
29185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29186 $as_echo "$ac_try_echo") >&5
29187   (eval "$ac_compile") 2>conftest.er1
29188   ac_status=$?
29189   grep -v '^ *+' conftest.er1 >conftest.err
29190   rm -f conftest.er1
29191   cat conftest.err >&5
29192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); } && {
29194          test -z "$ac_c_werror_flag" ||
29195          test ! -s conftest.err
29196        } && test -s conftest.$ac_objext; then
29197   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29198 else
29199   $as_echo "$as_me: failed program was:" >&5
29200 sed 's/^/| /' conftest.$ac_ext >&5
29201
29202
29203 fi
29204
29205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29206   done
29207  done
29208 done
29209 # Provide a safe default value.
29210 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
29211
29212 fi
29213 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29214 $as_echo "$ac_cv_func_select_args" >&6; }
29215 ac_save_IFS=$IFS; IFS=','
29216 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29217 IFS=$ac_save_IFS
29218 shift
29219
29220 cat >>confdefs.h <<_ACEOF
29221 #define SELECT_TYPE_ARG1 $1
29222 _ACEOF
29223
29224
29225 cat >>confdefs.h <<_ACEOF
29226 #define SELECT_TYPE_ARG234 ($2)
29227 _ACEOF
29228
29229
29230 cat >>confdefs.h <<_ACEOF
29231 #define SELECT_TYPE_ARG5 ($3)
29232 _ACEOF
29233
29234 rm -f conftest*
29235
29236 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29237 $as_echo_n "checking return type of signal handlers... " >&6; }
29238 if test "${ac_cv_type_signal+set}" = set; then
29239   $as_echo_n "(cached) " >&6
29240 else
29241   cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 #include <sys/types.h>
29248 #include <signal.h>
29249
29250 int
29251 main ()
29252 {
29253 return *(signal (0, 0)) (0) == 1;
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262   *) ac_try_echo=$ac_try;;
29263 esac
29264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29265 $as_echo "$ac_try_echo") >&5
29266   (eval "$ac_compile") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_c_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest.$ac_objext; then
29276   ac_cv_type_signal=int
29277 else
29278   $as_echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         ac_cv_type_signal=void
29282 fi
29283
29284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29285 fi
29286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29287 $as_echo "$ac_cv_type_signal" >&6; }
29288
29289 cat >>confdefs.h <<_ACEOF
29290 #define RETSIGTYPE $ac_cv_type_signal
29291 _ACEOF
29292
29293
29294 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
29295 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
29296 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
29297   $as_echo_n "(cached) " >&6
29298 else
29299   if test "$cross_compiling" = yes; then
29300   ac_cv_func_stat_empty_string_bug=yes
29301 else
29302   cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 $ac_includes_default
29309 int
29310 main ()
29311 {
29312 struct stat sbuf;
29313   return stat ("", &sbuf) == 0;
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest$ac_exeext
29319 if { (ac_try="$ac_link"
29320 case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29325 $as_echo "$ac_try_echo") >&5
29326   (eval "$ac_link") 2>&5
29327   ac_status=$?
29328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29330   { (case "(($ac_try" in
29331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332   *) ac_try_echo=$ac_try;;
29333 esac
29334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29335 $as_echo "$ac_try_echo") >&5
29336   (eval "$ac_try") 2>&5
29337   ac_status=$?
29338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); }; }; then
29340   ac_cv_func_stat_empty_string_bug=no
29341 else
29342   $as_echo "$as_me: program exited with status $ac_status" >&5
29343 $as_echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29345
29346 ( exit $ac_status )
29347 ac_cv_func_stat_empty_string_bug=yes
29348 fi
29349 rm -rf conftest.dSYM
29350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29351 fi
29352
29353
29354 fi
29355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
29356 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
29357 if test $ac_cv_func_stat_empty_string_bug = yes; then
29358   case " $LIBOBJS " in
29359   *" stat.$ac_objext "* ) ;;
29360   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
29361  ;;
29362 esac
29363
29364
29365 cat >>confdefs.h <<_ACEOF
29366 #define HAVE_STAT_EMPTY_STRING_BUG 1
29367 _ACEOF
29368
29369 fi
29370
29371
29372 for ac_func in vprintf
29373 do
29374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29375 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29376 $as_echo_n "checking for $ac_func... " >&6; }
29377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29378   $as_echo_n "(cached) " >&6
29379 else
29380   cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29388 #define $ac_func innocuous_$ac_func
29389
29390 /* System header to define __stub macros and hopefully few prototypes,
29391     which can conflict with char $ac_func (); below.
29392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29393     <limits.h> exists even on freestanding compilers.  */
29394
29395 #ifdef __STDC__
29396 # include <limits.h>
29397 #else
29398 # include <assert.h>
29399 #endif
29400
29401 #undef $ac_func
29402
29403 /* Override any GCC internal prototype to avoid an error.
29404    Use char because int might match the return type of a GCC
29405    builtin and then its argument prototype would still apply.  */
29406 #ifdef __cplusplus
29407 extern "C"
29408 #endif
29409 char $ac_func ();
29410 /* The GNU C library defines this for functions which it implements
29411     to always fail with ENOSYS.  Some functions are actually named
29412     something starting with __ and the normal name is an alias.  */
29413 #if defined __stub_$ac_func || defined __stub___$ac_func
29414 choke me
29415 #endif
29416
29417 int
29418 main ()
29419 {
29420 return $ac_func ();
29421   ;
29422   return 0;
29423 }
29424 _ACEOF
29425 rm -f conftest.$ac_objext conftest$ac_exeext
29426 if { (ac_try="$ac_link"
29427 case "(($ac_try" in
29428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429   *) ac_try_echo=$ac_try;;
29430 esac
29431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29432 $as_echo "$ac_try_echo") >&5
29433   (eval "$ac_link") 2>conftest.er1
29434   ac_status=$?
29435   grep -v '^ *+' conftest.er1 >conftest.err
29436   rm -f conftest.er1
29437   cat conftest.err >&5
29438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); } && {
29440          test -z "$ac_c_werror_flag" ||
29441          test ! -s conftest.err
29442        } && test -s conftest$ac_exeext && {
29443          test "$cross_compiling" = yes ||
29444          $as_test_x conftest$ac_exeext
29445        }; then
29446   eval "$as_ac_var=yes"
29447 else
29448   $as_echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451         eval "$as_ac_var=no"
29452 fi
29453
29454 rm -rf conftest.dSYM
29455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29456       conftest$ac_exeext conftest.$ac_ext
29457 fi
29458 ac_res=`eval 'as_val=${'$as_ac_var'}
29459                  $as_echo "$as_val"'`
29460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29461 $as_echo "$ac_res" >&6; }
29462 as_val=`eval 'as_val=${'$as_ac_var'}
29463                  $as_echo "$as_val"'`
29464    if test "x$as_val" = x""yes; then
29465   cat >>confdefs.h <<_ACEOF
29466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29467 _ACEOF
29468
29469 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
29470 $as_echo_n "checking for _doprnt... " >&6; }
29471 if test "${ac_cv_func__doprnt+set}" = set; then
29472   $as_echo_n "(cached) " >&6
29473 else
29474   cat >conftest.$ac_ext <<_ACEOF
29475 /* confdefs.h.  */
29476 _ACEOF
29477 cat confdefs.h >>conftest.$ac_ext
29478 cat >>conftest.$ac_ext <<_ACEOF
29479 /* end confdefs.h.  */
29480 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
29481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29482 #define _doprnt innocuous__doprnt
29483
29484 /* System header to define __stub macros and hopefully few prototypes,
29485     which can conflict with char _doprnt (); below.
29486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29487     <limits.h> exists even on freestanding compilers.  */
29488
29489 #ifdef __STDC__
29490 # include <limits.h>
29491 #else
29492 # include <assert.h>
29493 #endif
29494
29495 #undef _doprnt
29496
29497 /* Override any GCC internal prototype to avoid an error.
29498    Use char because int might match the return type of a GCC
29499    builtin and then its argument prototype would still apply.  */
29500 #ifdef __cplusplus
29501 extern "C"
29502 #endif
29503 char _doprnt ();
29504 /* The GNU C library defines this for functions which it implements
29505     to always fail with ENOSYS.  Some functions are actually named
29506     something starting with __ and the normal name is an alias.  */
29507 #if defined __stub__doprnt || defined __stub____doprnt
29508 choke me
29509 #endif
29510
29511 int
29512 main ()
29513 {
29514 return _doprnt ();
29515   ;
29516   return 0;
29517 }
29518 _ACEOF
29519 rm -f conftest.$ac_objext conftest$ac_exeext
29520 if { (ac_try="$ac_link"
29521 case "(($ac_try" in
29522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523   *) ac_try_echo=$ac_try;;
29524 esac
29525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29526 $as_echo "$ac_try_echo") >&5
29527   (eval "$ac_link") 2>conftest.er1
29528   ac_status=$?
29529   grep -v '^ *+' conftest.er1 >conftest.err
29530   rm -f conftest.er1
29531   cat conftest.err >&5
29532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); } && {
29534          test -z "$ac_c_werror_flag" ||
29535          test ! -s conftest.err
29536        } && test -s conftest$ac_exeext && {
29537          test "$cross_compiling" = yes ||
29538          $as_test_x conftest$ac_exeext
29539        }; then
29540   ac_cv_func__doprnt=yes
29541 else
29542   $as_echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545         ac_cv_func__doprnt=no
29546 fi
29547
29548 rm -rf conftest.dSYM
29549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29550       conftest$ac_exeext conftest.$ac_ext
29551 fi
29552 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
29553 $as_echo "$ac_cv_func__doprnt" >&6; }
29554 if test "x$ac_cv_func__doprnt" = x""yes; then
29555
29556 cat >>confdefs.h <<\_ACEOF
29557 #define HAVE_DOPRNT 1
29558 _ACEOF
29559
29560 fi
29561
29562 fi
29563 done
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
29598                gethostbyaddr gethostbyname gethostname getmntent \
29599                getnameinfo getrpcbyname \
29600                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
29601                realpath rmdir select socket strcasecmp strchr strdup \
29602                strerror strrchr strtol strtoul sigprocmask
29603 do
29604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29606 $as_echo_n "checking for $ac_func... " >&6; }
29607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29608   $as_echo_n "(cached) " >&6
29609 else
29610   cat >conftest.$ac_ext <<_ACEOF
29611 /* confdefs.h.  */
29612 _ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h.  */
29616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29618 #define $ac_func innocuous_$ac_func
29619
29620 /* System header to define __stub macros and hopefully few prototypes,
29621     which can conflict with char $ac_func (); below.
29622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29623     <limits.h> exists even on freestanding compilers.  */
29624
29625 #ifdef __STDC__
29626 # include <limits.h>
29627 #else
29628 # include <assert.h>
29629 #endif
29630
29631 #undef $ac_func
29632
29633 /* Override any GCC internal prototype to avoid an error.
29634    Use char because int might match the return type of a GCC
29635    builtin and then its argument prototype would still apply.  */
29636 #ifdef __cplusplus
29637 extern "C"
29638 #endif
29639 char $ac_func ();
29640 /* The GNU C library defines this for functions which it implements
29641     to always fail with ENOSYS.  Some functions are actually named
29642     something starting with __ and the normal name is an alias.  */
29643 #if defined __stub_$ac_func || defined __stub___$ac_func
29644 choke me
29645 #endif
29646
29647 int
29648 main ()
29649 {
29650 return $ac_func ();
29651   ;
29652   return 0;
29653 }
29654 _ACEOF
29655 rm -f conftest.$ac_objext conftest$ac_exeext
29656 if { (ac_try="$ac_link"
29657 case "(($ac_try" in
29658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659   *) ac_try_echo=$ac_try;;
29660 esac
29661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29662 $as_echo "$ac_try_echo") >&5
29663   (eval "$ac_link") 2>conftest.er1
29664   ac_status=$?
29665   grep -v '^ *+' conftest.er1 >conftest.err
29666   rm -f conftest.er1
29667   cat conftest.err >&5
29668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); } && {
29670          test -z "$ac_c_werror_flag" ||
29671          test ! -s conftest.err
29672        } && test -s conftest$ac_exeext && {
29673          test "$cross_compiling" = yes ||
29674          $as_test_x conftest$ac_exeext
29675        }; then
29676   eval "$as_ac_var=yes"
29677 else
29678   $as_echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29680
29681         eval "$as_ac_var=no"
29682 fi
29683
29684 rm -rf conftest.dSYM
29685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29686       conftest$ac_exeext conftest.$ac_ext
29687 fi
29688 ac_res=`eval 'as_val=${'$as_ac_var'}
29689                  $as_echo "$as_val"'`
29690                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29691 $as_echo "$ac_res" >&6; }
29692 as_val=`eval 'as_val=${'$as_ac_var'}
29693                  $as_echo "$as_val"'`
29694    if test "x$as_val" = x""yes; then
29695   cat >>confdefs.h <<_ACEOF
29696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29697 _ACEOF
29698
29699 fi
29700 done
29701
29702
29703
29704 # The cast to long int works around a bug in the HP C Compiler
29705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29707 # This bug is HP SR number 8606223364.
29708 { $as_echo "$as_me:$LINENO: checking size of short" >&5
29709 $as_echo_n "checking size of short... " >&6; }
29710 if test "${ac_cv_sizeof_short+set}" = set; then
29711   $as_echo_n "(cached) " >&6
29712 else
29713   if test "$cross_compiling" = yes; then
29714   # Depending upon the size, compute the lo and hi bounds.
29715 cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h.  */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h.  */
29721 $ac_includes_default
29722 int
29723 main ()
29724 {
29725 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
29726 test_array [0] = 0
29727
29728   ;
29729   return 0;
29730 }
29731 _ACEOF
29732 rm -f conftest.$ac_objext
29733 if { (ac_try="$ac_compile"
29734 case "(($ac_try" in
29735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29736   *) ac_try_echo=$ac_try;;
29737 esac
29738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29739 $as_echo "$ac_try_echo") >&5
29740   (eval "$ac_compile") 2>conftest.er1
29741   ac_status=$?
29742   grep -v '^ *+' conftest.er1 >conftest.err
29743   rm -f conftest.er1
29744   cat conftest.err >&5
29745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } && {
29747          test -z "$ac_c_werror_flag" ||
29748          test ! -s conftest.err
29749        } && test -s conftest.$ac_objext; then
29750   ac_lo=0 ac_mid=0
29751   while :; do
29752     cat >conftest.$ac_ext <<_ACEOF
29753 /* confdefs.h.  */
29754 _ACEOF
29755 cat confdefs.h >>conftest.$ac_ext
29756 cat >>conftest.$ac_ext <<_ACEOF
29757 /* end confdefs.h.  */
29758 $ac_includes_default
29759 int
29760 main ()
29761 {
29762 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
29763 test_array [0] = 0
29764
29765   ;
29766   return 0;
29767 }
29768 _ACEOF
29769 rm -f conftest.$ac_objext
29770 if { (ac_try="$ac_compile"
29771 case "(($ac_try" in
29772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773   *) ac_try_echo=$ac_try;;
29774 esac
29775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29776 $as_echo "$ac_try_echo") >&5
29777   (eval "$ac_compile") 2>conftest.er1
29778   ac_status=$?
29779   grep -v '^ *+' conftest.er1 >conftest.err
29780   rm -f conftest.er1
29781   cat conftest.err >&5
29782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); } && {
29784          test -z "$ac_c_werror_flag" ||
29785          test ! -s conftest.err
29786        } && test -s conftest.$ac_objext; then
29787   ac_hi=$ac_mid; break
29788 else
29789   $as_echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29791
29792         ac_lo=`expr $ac_mid + 1`
29793                         if test $ac_lo -le $ac_mid; then
29794                           ac_lo= ac_hi=
29795                           break
29796                         fi
29797                         ac_mid=`expr 2 '*' $ac_mid + 1`
29798 fi
29799
29800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29801   done
29802 else
29803   $as_echo "$as_me: failed program was:" >&5
29804 sed 's/^/| /' conftest.$ac_ext >&5
29805
29806         cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812 $ac_includes_default
29813 int
29814 main ()
29815 {
29816 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
29817 test_array [0] = 0
29818
29819   ;
29820   return 0;
29821 }
29822 _ACEOF
29823 rm -f conftest.$ac_objext
29824 if { (ac_try="$ac_compile"
29825 case "(($ac_try" in
29826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29827   *) ac_try_echo=$ac_try;;
29828 esac
29829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29830 $as_echo "$ac_try_echo") >&5
29831   (eval "$ac_compile") 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } && {
29838          test -z "$ac_c_werror_flag" ||
29839          test ! -s conftest.err
29840        } && test -s conftest.$ac_objext; then
29841   ac_hi=-1 ac_mid=-1
29842   while :; do
29843     cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h.  */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h.  */
29849 $ac_includes_default
29850 int
29851 main ()
29852 {
29853 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
29854 test_array [0] = 0
29855
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 rm -f conftest.$ac_objext
29861 if { (ac_try="$ac_compile"
29862 case "(($ac_try" in
29863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864   *) ac_try_echo=$ac_try;;
29865 esac
29866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29867 $as_echo "$ac_try_echo") >&5
29868   (eval "$ac_compile") 2>conftest.er1
29869   ac_status=$?
29870   grep -v '^ *+' conftest.er1 >conftest.err
29871   rm -f conftest.er1
29872   cat conftest.err >&5
29873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); } && {
29875          test -z "$ac_c_werror_flag" ||
29876          test ! -s conftest.err
29877        } && test -s conftest.$ac_objext; then
29878   ac_lo=$ac_mid; break
29879 else
29880   $as_echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883         ac_hi=`expr '(' $ac_mid ')' - 1`
29884                         if test $ac_mid -le $ac_hi; then
29885                           ac_lo= ac_hi=
29886                           break
29887                         fi
29888                         ac_mid=`expr 2 '*' $ac_mid`
29889 fi
29890
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892   done
29893 else
29894   $as_echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897         ac_lo= ac_hi=
29898 fi
29899
29900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29901 fi
29902
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904 # Binary search between lo and hi bounds.
29905 while test "x$ac_lo" != "x$ac_hi"; do
29906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29907   cat >conftest.$ac_ext <<_ACEOF
29908 /* confdefs.h.  */
29909 _ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h.  */
29913 $ac_includes_default
29914 int
29915 main ()
29916 {
29917 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
29918 test_array [0] = 0
29919
29920   ;
29921   return 0;
29922 }
29923 _ACEOF
29924 rm -f conftest.$ac_objext
29925 if { (ac_try="$ac_compile"
29926 case "(($ac_try" in
29927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29928   *) ac_try_echo=$ac_try;;
29929 esac
29930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29931 $as_echo "$ac_try_echo") >&5
29932   (eval "$ac_compile") 2>conftest.er1
29933   ac_status=$?
29934   grep -v '^ *+' conftest.er1 >conftest.err
29935   rm -f conftest.er1
29936   cat conftest.err >&5
29937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); } && {
29939          test -z "$ac_c_werror_flag" ||
29940          test ! -s conftest.err
29941        } && test -s conftest.$ac_objext; then
29942   ac_hi=$ac_mid
29943 else
29944   $as_echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29946
29947         ac_lo=`expr '(' $ac_mid ')' + 1`
29948 fi
29949
29950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29951 done
29952 case $ac_lo in
29953 ?*) ac_cv_sizeof_short=$ac_lo;;
29954 '') if test "$ac_cv_type_short" = yes; then
29955      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29957 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
29958 See \`config.log' for more details." >&5
29959 $as_echo "$as_me: error: cannot compute sizeof (short)
29960 See \`config.log' for more details." >&2;}
29961    { (exit 77); exit 77; }; }; }
29962    else
29963      ac_cv_sizeof_short=0
29964    fi ;;
29965 esac
29966 else
29967   cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973 $ac_includes_default
29974 static long int longval () { return (long int) (sizeof (short)); }
29975 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
29976 #include <stdio.h>
29977 #include <stdlib.h>
29978 int
29979 main ()
29980 {
29981
29982   FILE *f = fopen ("conftest.val", "w");
29983   if (! f)
29984     return 1;
29985   if (((long int) (sizeof (short))) < 0)
29986     {
29987       long int i = longval ();
29988       if (i != ((long int) (sizeof (short))))
29989         return 1;
29990       fprintf (f, "%ld", i);
29991     }
29992   else
29993     {
29994       unsigned long int i = ulongval ();
29995       if (i != ((long int) (sizeof (short))))
29996         return 1;
29997       fprintf (f, "%lu", i);
29998     }
29999   /* Do not output a trailing newline, as this causes \r\n confusion
30000      on some platforms.  */
30001   return ferror (f) || fclose (f) != 0;
30002
30003   ;
30004   return 0;
30005 }
30006 _ACEOF
30007 rm -f conftest$ac_exeext
30008 if { (ac_try="$ac_link"
30009 case "(($ac_try" in
30010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011   *) ac_try_echo=$ac_try;;
30012 esac
30013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30014 $as_echo "$ac_try_echo") >&5
30015   (eval "$ac_link") 2>&5
30016   ac_status=$?
30017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30019   { (case "(($ac_try" in
30020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021   *) ac_try_echo=$ac_try;;
30022 esac
30023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30024 $as_echo "$ac_try_echo") >&5
30025   (eval "$ac_try") 2>&5
30026   ac_status=$?
30027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; }; then
30029   ac_cv_sizeof_short=`cat conftest.val`
30030 else
30031   $as_echo "$as_me: program exited with status $ac_status" >&5
30032 $as_echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035 ( exit $ac_status )
30036 if test "$ac_cv_type_short" = yes; then
30037      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30039 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
30040 See \`config.log' for more details." >&5
30041 $as_echo "$as_me: error: cannot compute sizeof (short)
30042 See \`config.log' for more details." >&2;}
30043    { (exit 77); exit 77; }; }; }
30044    else
30045      ac_cv_sizeof_short=0
30046    fi
30047 fi
30048 rm -rf conftest.dSYM
30049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30050 fi
30051 rm -f conftest.val
30052 fi
30053 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
30054 $as_echo "$ac_cv_sizeof_short" >&6; }
30055
30056
30057
30058 cat >>confdefs.h <<_ACEOF
30059 #define SIZEOF_SHORT $ac_cv_sizeof_short
30060 _ACEOF
30061
30062
30063 # The cast to long int works around a bug in the HP C Compiler
30064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30066 # This bug is HP SR number 8606223364.
30067 { $as_echo "$as_me:$LINENO: checking size of int" >&5
30068 $as_echo_n "checking size of int... " >&6; }
30069 if test "${ac_cv_sizeof_int+set}" = set; then
30070   $as_echo_n "(cached) " >&6
30071 else
30072   if test "$cross_compiling" = yes; then
30073   # Depending upon the size, compute the lo and hi bounds.
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080 $ac_includes_default
30081 int
30082 main ()
30083 {
30084 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
30085 test_array [0] = 0
30086
30087   ;
30088   return 0;
30089 }
30090 _ACEOF
30091 rm -f conftest.$ac_objext
30092 if { (ac_try="$ac_compile"
30093 case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30098 $as_echo "$ac_try_echo") >&5
30099   (eval "$ac_compile") 2>conftest.er1
30100   ac_status=$?
30101   grep -v '^ *+' conftest.er1 >conftest.err
30102   rm -f conftest.er1
30103   cat conftest.err >&5
30104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); } && {
30106          test -z "$ac_c_werror_flag" ||
30107          test ! -s conftest.err
30108        } && test -s conftest.$ac_objext; then
30109   ac_lo=0 ac_mid=0
30110   while :; do
30111     cat >conftest.$ac_ext <<_ACEOF
30112 /* confdefs.h.  */
30113 _ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h.  */
30117 $ac_includes_default
30118 int
30119 main ()
30120 {
30121 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30122 test_array [0] = 0
30123
30124   ;
30125   return 0;
30126 }
30127 _ACEOF
30128 rm -f conftest.$ac_objext
30129 if { (ac_try="$ac_compile"
30130 case "(($ac_try" in
30131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132   *) ac_try_echo=$ac_try;;
30133 esac
30134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30135 $as_echo "$ac_try_echo") >&5
30136   (eval "$ac_compile") 2>conftest.er1
30137   ac_status=$?
30138   grep -v '^ *+' conftest.er1 >conftest.err
30139   rm -f conftest.er1
30140   cat conftest.err >&5
30141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); } && {
30143          test -z "$ac_c_werror_flag" ||
30144          test ! -s conftest.err
30145        } && test -s conftest.$ac_objext; then
30146   ac_hi=$ac_mid; break
30147 else
30148   $as_echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30150
30151         ac_lo=`expr $ac_mid + 1`
30152                         if test $ac_lo -le $ac_mid; then
30153                           ac_lo= ac_hi=
30154                           break
30155                         fi
30156                         ac_mid=`expr 2 '*' $ac_mid + 1`
30157 fi
30158
30159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30160   done
30161 else
30162   $as_echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165         cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171 $ac_includes_default
30172 int
30173 main ()
30174 {
30175 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
30176 test_array [0] = 0
30177
30178   ;
30179   return 0;
30180 }
30181 _ACEOF
30182 rm -f conftest.$ac_objext
30183 if { (ac_try="$ac_compile"
30184 case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30189 $as_echo "$ac_try_echo") >&5
30190   (eval "$ac_compile") 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } && {
30197          test -z "$ac_c_werror_flag" ||
30198          test ! -s conftest.err
30199        } && test -s conftest.$ac_objext; then
30200   ac_hi=-1 ac_mid=-1
30201   while :; do
30202     cat >conftest.$ac_ext <<_ACEOF
30203 /* confdefs.h.  */
30204 _ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h.  */
30208 $ac_includes_default
30209 int
30210 main ()
30211 {
30212 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
30213 test_array [0] = 0
30214
30215   ;
30216   return 0;
30217 }
30218 _ACEOF
30219 rm -f conftest.$ac_objext
30220 if { (ac_try="$ac_compile"
30221 case "(($ac_try" in
30222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223   *) ac_try_echo=$ac_try;;
30224 esac
30225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30226 $as_echo "$ac_try_echo") >&5
30227   (eval "$ac_compile") 2>conftest.er1
30228   ac_status=$?
30229   grep -v '^ *+' conftest.er1 >conftest.err
30230   rm -f conftest.er1
30231   cat conftest.err >&5
30232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233   (exit $ac_status); } && {
30234          test -z "$ac_c_werror_flag" ||
30235          test ! -s conftest.err
30236        } && test -s conftest.$ac_objext; then
30237   ac_lo=$ac_mid; break
30238 else
30239   $as_echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242         ac_hi=`expr '(' $ac_mid ')' - 1`
30243                         if test $ac_mid -le $ac_hi; then
30244                           ac_lo= ac_hi=
30245                           break
30246                         fi
30247                         ac_mid=`expr 2 '*' $ac_mid`
30248 fi
30249
30250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30251   done
30252 else
30253   $as_echo "$as_me: failed program was:" >&5
30254 sed 's/^/| /' conftest.$ac_ext >&5
30255
30256         ac_lo= ac_hi=
30257 fi
30258
30259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30260 fi
30261
30262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30263 # Binary search between lo and hi bounds.
30264 while test "x$ac_lo" != "x$ac_hi"; do
30265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30266   cat >conftest.$ac_ext <<_ACEOF
30267 /* confdefs.h.  */
30268 _ACEOF
30269 cat confdefs.h >>conftest.$ac_ext
30270 cat >>conftest.$ac_ext <<_ACEOF
30271 /* end confdefs.h.  */
30272 $ac_includes_default
30273 int
30274 main ()
30275 {
30276 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30277 test_array [0] = 0
30278
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext
30284 if { (ac_try="$ac_compile"
30285 case "(($ac_try" in
30286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287   *) ac_try_echo=$ac_try;;
30288 esac
30289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30290 $as_echo "$ac_try_echo") >&5
30291   (eval "$ac_compile") 2>conftest.er1
30292   ac_status=$?
30293   grep -v '^ *+' conftest.er1 >conftest.err
30294   rm -f conftest.er1
30295   cat conftest.err >&5
30296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } && {
30298          test -z "$ac_c_werror_flag" ||
30299          test ! -s conftest.err
30300        } && test -s conftest.$ac_objext; then
30301   ac_hi=$ac_mid
30302 else
30303   $as_echo "$as_me: failed program was:" >&5
30304 sed 's/^/| /' conftest.$ac_ext >&5
30305
30306         ac_lo=`expr '(' $ac_mid ')' + 1`
30307 fi
30308
30309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310 done
30311 case $ac_lo in
30312 ?*) ac_cv_sizeof_int=$ac_lo;;
30313 '') if test "$ac_cv_type_int" = yes; then
30314      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30316 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30317 See \`config.log' for more details." >&5
30318 $as_echo "$as_me: error: cannot compute sizeof (int)
30319 See \`config.log' for more details." >&2;}
30320    { (exit 77); exit 77; }; }; }
30321    else
30322      ac_cv_sizeof_int=0
30323    fi ;;
30324 esac
30325 else
30326   cat >conftest.$ac_ext <<_ACEOF
30327 /* confdefs.h.  */
30328 _ACEOF
30329 cat confdefs.h >>conftest.$ac_ext
30330 cat >>conftest.$ac_ext <<_ACEOF
30331 /* end confdefs.h.  */
30332 $ac_includes_default
30333 static long int longval () { return (long int) (sizeof (int)); }
30334 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
30335 #include <stdio.h>
30336 #include <stdlib.h>
30337 int
30338 main ()
30339 {
30340
30341   FILE *f = fopen ("conftest.val", "w");
30342   if (! f)
30343     return 1;
30344   if (((long int) (sizeof (int))) < 0)
30345     {
30346       long int i = longval ();
30347       if (i != ((long int) (sizeof (int))))
30348         return 1;
30349       fprintf (f, "%ld", i);
30350     }
30351   else
30352     {
30353       unsigned long int i = ulongval ();
30354       if (i != ((long int) (sizeof (int))))
30355         return 1;
30356       fprintf (f, "%lu", i);
30357     }
30358   /* Do not output a trailing newline, as this causes \r\n confusion
30359      on some platforms.  */
30360   return ferror (f) || fclose (f) != 0;
30361
30362   ;
30363   return 0;
30364 }
30365 _ACEOF
30366 rm -f conftest$ac_exeext
30367 if { (ac_try="$ac_link"
30368 case "(($ac_try" in
30369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370   *) ac_try_echo=$ac_try;;
30371 esac
30372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30373 $as_echo "$ac_try_echo") >&5
30374   (eval "$ac_link") 2>&5
30375   ac_status=$?
30376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30378   { (case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30383 $as_echo "$ac_try_echo") >&5
30384   (eval "$ac_try") 2>&5
30385   ac_status=$?
30386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387   (exit $ac_status); }; }; then
30388   ac_cv_sizeof_int=`cat conftest.val`
30389 else
30390   $as_echo "$as_me: program exited with status $ac_status" >&5
30391 $as_echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30393
30394 ( exit $ac_status )
30395 if test "$ac_cv_type_int" = yes; then
30396      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30398 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30399 See \`config.log' for more details." >&5
30400 $as_echo "$as_me: error: cannot compute sizeof (int)
30401 See \`config.log' for more details." >&2;}
30402    { (exit 77); exit 77; }; }; }
30403    else
30404      ac_cv_sizeof_int=0
30405    fi
30406 fi
30407 rm -rf conftest.dSYM
30408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30409 fi
30410 rm -f conftest.val
30411 fi
30412 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
30413 $as_echo "$ac_cv_sizeof_int" >&6; }
30414
30415
30416
30417 cat >>confdefs.h <<_ACEOF
30418 #define SIZEOF_INT $ac_cv_sizeof_int
30419 _ACEOF
30420
30421
30422 # The cast to long int works around a bug in the HP C Compiler
30423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30425 # This bug is HP SR number 8606223364.
30426 { $as_echo "$as_me:$LINENO: checking size of long" >&5
30427 $as_echo_n "checking size of long... " >&6; }
30428 if test "${ac_cv_sizeof_long+set}" = set; then
30429   $as_echo_n "(cached) " >&6
30430 else
30431   if test "$cross_compiling" = yes; then
30432   # Depending upon the size, compute the lo and hi bounds.
30433 cat >conftest.$ac_ext <<_ACEOF
30434 /* confdefs.h.  */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h.  */
30439 $ac_includes_default
30440 int
30441 main ()
30442 {
30443 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
30444 test_array [0] = 0
30445
30446   ;
30447   return 0;
30448 }
30449 _ACEOF
30450 rm -f conftest.$ac_objext
30451 if { (ac_try="$ac_compile"
30452 case "(($ac_try" in
30453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454   *) ac_try_echo=$ac_try;;
30455 esac
30456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30457 $as_echo "$ac_try_echo") >&5
30458   (eval "$ac_compile") 2>conftest.er1
30459   ac_status=$?
30460   grep -v '^ *+' conftest.er1 >conftest.err
30461   rm -f conftest.er1
30462   cat conftest.err >&5
30463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); } && {
30465          test -z "$ac_c_werror_flag" ||
30466          test ! -s conftest.err
30467        } && test -s conftest.$ac_objext; then
30468   ac_lo=0 ac_mid=0
30469   while :; do
30470     cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 $ac_includes_default
30477 int
30478 main ()
30479 {
30480 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
30481 test_array [0] = 0
30482
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30494 $as_echo "$ac_try_echo") >&5
30495   (eval "$ac_compile") 2>conftest.er1
30496   ac_status=$?
30497   grep -v '^ *+' conftest.er1 >conftest.err
30498   rm -f conftest.er1
30499   cat conftest.err >&5
30500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); } && {
30502          test -z "$ac_c_werror_flag" ||
30503          test ! -s conftest.err
30504        } && test -s conftest.$ac_objext; then
30505   ac_hi=$ac_mid; break
30506 else
30507   $as_echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         ac_lo=`expr $ac_mid + 1`
30511                         if test $ac_lo -le $ac_mid; then
30512                           ac_lo= ac_hi=
30513                           break
30514                         fi
30515                         ac_mid=`expr 2 '*' $ac_mid + 1`
30516 fi
30517
30518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30519   done
30520 else
30521   $as_echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30523
30524         cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530 $ac_includes_default
30531 int
30532 main ()
30533 {
30534 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
30535 test_array [0] = 0
30536
30537   ;
30538   return 0;
30539 }
30540 _ACEOF
30541 rm -f conftest.$ac_objext
30542 if { (ac_try="$ac_compile"
30543 case "(($ac_try" in
30544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545   *) ac_try_echo=$ac_try;;
30546 esac
30547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30548 $as_echo "$ac_try_echo") >&5
30549   (eval "$ac_compile") 2>conftest.er1
30550   ac_status=$?
30551   grep -v '^ *+' conftest.er1 >conftest.err
30552   rm -f conftest.er1
30553   cat conftest.err >&5
30554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); } && {
30556          test -z "$ac_c_werror_flag" ||
30557          test ! -s conftest.err
30558        } && test -s conftest.$ac_objext; then
30559   ac_hi=-1 ac_mid=-1
30560   while :; do
30561     cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567 $ac_includes_default
30568 int
30569 main ()
30570 {
30571 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
30572 test_array [0] = 0
30573
30574   ;
30575   return 0;
30576 }
30577 _ACEOF
30578 rm -f conftest.$ac_objext
30579 if { (ac_try="$ac_compile"
30580 case "(($ac_try" in
30581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582   *) ac_try_echo=$ac_try;;
30583 esac
30584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30585 $as_echo "$ac_try_echo") >&5
30586   (eval "$ac_compile") 2>conftest.er1
30587   ac_status=$?
30588   grep -v '^ *+' conftest.er1 >conftest.err
30589   rm -f conftest.er1
30590   cat conftest.err >&5
30591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); } && {
30593          test -z "$ac_c_werror_flag" ||
30594          test ! -s conftest.err
30595        } && test -s conftest.$ac_objext; then
30596   ac_lo=$ac_mid; break
30597 else
30598   $as_echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601         ac_hi=`expr '(' $ac_mid ')' - 1`
30602                         if test $ac_mid -le $ac_hi; then
30603                           ac_lo= ac_hi=
30604                           break
30605                         fi
30606                         ac_mid=`expr 2 '*' $ac_mid`
30607 fi
30608
30609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30610   done
30611 else
30612   $as_echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.$ac_ext >&5
30614
30615         ac_lo= ac_hi=
30616 fi
30617
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30619 fi
30620
30621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30622 # Binary search between lo and hi bounds.
30623 while test "x$ac_lo" != "x$ac_hi"; do
30624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30625   cat >conftest.$ac_ext <<_ACEOF
30626 /* confdefs.h.  */
30627 _ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h.  */
30631 $ac_includes_default
30632 int
30633 main ()
30634 {
30635 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
30636 test_array [0] = 0
30637
30638   ;
30639   return 0;
30640 }
30641 _ACEOF
30642 rm -f conftest.$ac_objext
30643 if { (ac_try="$ac_compile"
30644 case "(($ac_try" in
30645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30646   *) ac_try_echo=$ac_try;;
30647 esac
30648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30649 $as_echo "$ac_try_echo") >&5
30650   (eval "$ac_compile") 2>conftest.er1
30651   ac_status=$?
30652   grep -v '^ *+' conftest.er1 >conftest.err
30653   rm -f conftest.er1
30654   cat conftest.err >&5
30655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656   (exit $ac_status); } && {
30657          test -z "$ac_c_werror_flag" ||
30658          test ! -s conftest.err
30659        } && test -s conftest.$ac_objext; then
30660   ac_hi=$ac_mid
30661 else
30662   $as_echo "$as_me: failed program was:" >&5
30663 sed 's/^/| /' conftest.$ac_ext >&5
30664
30665         ac_lo=`expr '(' $ac_mid ')' + 1`
30666 fi
30667
30668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30669 done
30670 case $ac_lo in
30671 ?*) ac_cv_sizeof_long=$ac_lo;;
30672 '') if test "$ac_cv_type_long" = yes; then
30673      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30675 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
30676 See \`config.log' for more details." >&5
30677 $as_echo "$as_me: error: cannot compute sizeof (long)
30678 See \`config.log' for more details." >&2;}
30679    { (exit 77); exit 77; }; }; }
30680    else
30681      ac_cv_sizeof_long=0
30682    fi ;;
30683 esac
30684 else
30685   cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h.  */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h.  */
30691 $ac_includes_default
30692 static long int longval () { return (long int) (sizeof (long)); }
30693 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
30694 #include <stdio.h>
30695 #include <stdlib.h>
30696 int
30697 main ()
30698 {
30699
30700   FILE *f = fopen ("conftest.val", "w");
30701   if (! f)
30702     return 1;
30703   if (((long int) (sizeof (long))) < 0)
30704     {
30705       long int i = longval ();
30706       if (i != ((long int) (sizeof (long))))
30707         return 1;
30708       fprintf (f, "%ld", i);
30709     }
30710   else
30711     {
30712       unsigned long int i = ulongval ();
30713       if (i != ((long int) (sizeof (long))))
30714         return 1;
30715       fprintf (f, "%lu", i);
30716     }
30717   /* Do not output a trailing newline, as this causes \r\n confusion
30718      on some platforms.  */
30719   return ferror (f) || fclose (f) != 0;
30720
30721   ;
30722   return 0;
30723 }
30724 _ACEOF
30725 rm -f conftest$ac_exeext
30726 if { (ac_try="$ac_link"
30727 case "(($ac_try" in
30728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30729   *) ac_try_echo=$ac_try;;
30730 esac
30731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30732 $as_echo "$ac_try_echo") >&5
30733   (eval "$ac_link") 2>&5
30734   ac_status=$?
30735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30737   { (case "(($ac_try" in
30738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739   *) ac_try_echo=$ac_try;;
30740 esac
30741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30742 $as_echo "$ac_try_echo") >&5
30743   (eval "$ac_try") 2>&5
30744   ac_status=$?
30745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; }; then
30747   ac_cv_sizeof_long=`cat conftest.val`
30748 else
30749   $as_echo "$as_me: program exited with status $ac_status" >&5
30750 $as_echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30752
30753 ( exit $ac_status )
30754 if test "$ac_cv_type_long" = yes; then
30755      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30757 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
30758 See \`config.log' for more details." >&5
30759 $as_echo "$as_me: error: cannot compute sizeof (long)
30760 See \`config.log' for more details." >&2;}
30761    { (exit 77); exit 77; }; }; }
30762    else
30763      ac_cv_sizeof_long=0
30764    fi
30765 fi
30766 rm -rf conftest.dSYM
30767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30768 fi
30769 rm -f conftest.val
30770 fi
30771 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
30772 $as_echo "$ac_cv_sizeof_long" >&6; }
30773
30774
30775
30776 cat >>confdefs.h <<_ACEOF
30777 #define SIZEOF_LONG $ac_cv_sizeof_long
30778 _ACEOF
30779
30780
30781 # The cast to long int works around a bug in the HP C Compiler
30782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30784 # This bug is HP SR number 8606223364.
30785 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
30786 $as_echo_n "checking size of size_t... " >&6; }
30787 if test "${ac_cv_sizeof_size_t+set}" = set; then
30788   $as_echo_n "(cached) " >&6
30789 else
30790   if test "$cross_compiling" = yes; then
30791   # Depending upon the size, compute the lo and hi bounds.
30792 cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798 $ac_includes_default
30799 int
30800 main ()
30801 {
30802 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
30803 test_array [0] = 0
30804
30805   ;
30806   return 0;
30807 }
30808 _ACEOF
30809 rm -f conftest.$ac_objext
30810 if { (ac_try="$ac_compile"
30811 case "(($ac_try" in
30812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30813   *) ac_try_echo=$ac_try;;
30814 esac
30815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30816 $as_echo "$ac_try_echo") >&5
30817   (eval "$ac_compile") 2>conftest.er1
30818   ac_status=$?
30819   grep -v '^ *+' conftest.er1 >conftest.err
30820   rm -f conftest.er1
30821   cat conftest.err >&5
30822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); } && {
30824          test -z "$ac_c_werror_flag" ||
30825          test ! -s conftest.err
30826        } && test -s conftest.$ac_objext; then
30827   ac_lo=0 ac_mid=0
30828   while :; do
30829     cat >conftest.$ac_ext <<_ACEOF
30830 /* confdefs.h.  */
30831 _ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h.  */
30835 $ac_includes_default
30836 int
30837 main ()
30838 {
30839 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
30840 test_array [0] = 0
30841
30842   ;
30843   return 0;
30844 }
30845 _ACEOF
30846 rm -f conftest.$ac_objext
30847 if { (ac_try="$ac_compile"
30848 case "(($ac_try" in
30849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850   *) ac_try_echo=$ac_try;;
30851 esac
30852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30853 $as_echo "$ac_try_echo") >&5
30854   (eval "$ac_compile") 2>conftest.er1
30855   ac_status=$?
30856   grep -v '^ *+' conftest.er1 >conftest.err
30857   rm -f conftest.er1
30858   cat conftest.err >&5
30859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860   (exit $ac_status); } && {
30861          test -z "$ac_c_werror_flag" ||
30862          test ! -s conftest.err
30863        } && test -s conftest.$ac_objext; then
30864   ac_hi=$ac_mid; break
30865 else
30866   $as_echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.$ac_ext >&5
30868
30869         ac_lo=`expr $ac_mid + 1`
30870                         if test $ac_lo -le $ac_mid; then
30871                           ac_lo= ac_hi=
30872                           break
30873                         fi
30874                         ac_mid=`expr 2 '*' $ac_mid + 1`
30875 fi
30876
30877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30878   done
30879 else
30880   $as_echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30882
30883         cat >conftest.$ac_ext <<_ACEOF
30884 /* confdefs.h.  */
30885 _ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h.  */
30889 $ac_includes_default
30890 int
30891 main ()
30892 {
30893 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
30894 test_array [0] = 0
30895
30896   ;
30897   return 0;
30898 }
30899 _ACEOF
30900 rm -f conftest.$ac_objext
30901 if { (ac_try="$ac_compile"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30907 $as_echo "$ac_try_echo") >&5
30908   (eval "$ac_compile") 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } && {
30915          test -z "$ac_c_werror_flag" ||
30916          test ! -s conftest.err
30917        } && test -s conftest.$ac_objext; then
30918   ac_hi=-1 ac_mid=-1
30919   while :; do
30920     cat >conftest.$ac_ext <<_ACEOF
30921 /* confdefs.h.  */
30922 _ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h.  */
30926 $ac_includes_default
30927 int
30928 main ()
30929 {
30930 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
30931 test_array [0] = 0
30932
30933   ;
30934   return 0;
30935 }
30936 _ACEOF
30937 rm -f conftest.$ac_objext
30938 if { (ac_try="$ac_compile"
30939 case "(($ac_try" in
30940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941   *) ac_try_echo=$ac_try;;
30942 esac
30943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30944 $as_echo "$ac_try_echo") >&5
30945   (eval "$ac_compile") 2>conftest.er1
30946   ac_status=$?
30947   grep -v '^ *+' conftest.er1 >conftest.err
30948   rm -f conftest.er1
30949   cat conftest.err >&5
30950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } && {
30952          test -z "$ac_c_werror_flag" ||
30953          test ! -s conftest.err
30954        } && test -s conftest.$ac_objext; then
30955   ac_lo=$ac_mid; break
30956 else
30957   $as_echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30959
30960         ac_hi=`expr '(' $ac_mid ')' - 1`
30961                         if test $ac_mid -le $ac_hi; then
30962                           ac_lo= ac_hi=
30963                           break
30964                         fi
30965                         ac_mid=`expr 2 '*' $ac_mid`
30966 fi
30967
30968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30969   done
30970 else
30971   $as_echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974         ac_lo= ac_hi=
30975 fi
30976
30977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30978 fi
30979
30980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30981 # Binary search between lo and hi bounds.
30982 while test "x$ac_lo" != "x$ac_hi"; do
30983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30984   cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h.  */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h.  */
30990 $ac_includes_default
30991 int
30992 main ()
30993 {
30994 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
30995 test_array [0] = 0
30996
30997   ;
30998   return 0;
30999 }
31000 _ACEOF
31001 rm -f conftest.$ac_objext
31002 if { (ac_try="$ac_compile"
31003 case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31008 $as_echo "$ac_try_echo") >&5
31009   (eval "$ac_compile") 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } && {
31016          test -z "$ac_c_werror_flag" ||
31017          test ! -s conftest.err
31018        } && test -s conftest.$ac_objext; then
31019   ac_hi=$ac_mid
31020 else
31021   $as_echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31023
31024         ac_lo=`expr '(' $ac_mid ')' + 1`
31025 fi
31026
31027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31028 done
31029 case $ac_lo in
31030 ?*) ac_cv_sizeof_size_t=$ac_lo;;
31031 '') if test "$ac_cv_type_size_t" = yes; then
31032      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31034 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31035 See \`config.log' for more details." >&5
31036 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31037 See \`config.log' for more details." >&2;}
31038    { (exit 77); exit 77; }; }; }
31039    else
31040      ac_cv_sizeof_size_t=0
31041    fi ;;
31042 esac
31043 else
31044   cat >conftest.$ac_ext <<_ACEOF
31045 /* confdefs.h.  */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h.  */
31050 $ac_includes_default
31051 static long int longval () { return (long int) (sizeof (size_t)); }
31052 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
31053 #include <stdio.h>
31054 #include <stdlib.h>
31055 int
31056 main ()
31057 {
31058
31059   FILE *f = fopen ("conftest.val", "w");
31060   if (! f)
31061     return 1;
31062   if (((long int) (sizeof (size_t))) < 0)
31063     {
31064       long int i = longval ();
31065       if (i != ((long int) (sizeof (size_t))))
31066         return 1;
31067       fprintf (f, "%ld", i);
31068     }
31069   else
31070     {
31071       unsigned long int i = ulongval ();
31072       if (i != ((long int) (sizeof (size_t))))
31073         return 1;
31074       fprintf (f, "%lu", i);
31075     }
31076   /* Do not output a trailing newline, as this causes \r\n confusion
31077      on some platforms.  */
31078   return ferror (f) || fclose (f) != 0;
31079
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 rm -f conftest$ac_exeext
31085 if { (ac_try="$ac_link"
31086 case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31091 $as_echo "$ac_try_echo") >&5
31092   (eval "$ac_link") 2>&5
31093   ac_status=$?
31094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31096   { (case "(($ac_try" in
31097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098   *) ac_try_echo=$ac_try;;
31099 esac
31100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31101 $as_echo "$ac_try_echo") >&5
31102   (eval "$ac_try") 2>&5
31103   ac_status=$?
31104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); }; }; then
31106   ac_cv_sizeof_size_t=`cat conftest.val`
31107 else
31108   $as_echo "$as_me: program exited with status $ac_status" >&5
31109 $as_echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112 ( exit $ac_status )
31113 if test "$ac_cv_type_size_t" = yes; then
31114      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31116 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31117 See \`config.log' for more details." >&5
31118 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31119 See \`config.log' for more details." >&2;}
31120    { (exit 77); exit 77; }; }; }
31121    else
31122      ac_cv_sizeof_size_t=0
31123    fi
31124 fi
31125 rm -rf conftest.dSYM
31126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31127 fi
31128 rm -f conftest.val
31129 fi
31130 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
31131 $as_echo "$ac_cv_sizeof_size_t" >&6; }
31132
31133
31134
31135 cat >>confdefs.h <<_ACEOF
31136 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
31137 _ACEOF
31138
31139
31140 # The cast to long int works around a bug in the HP C Compiler
31141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31143 # This bug is HP SR number 8606223364.
31144 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
31145 $as_echo_n "checking size of socklen_t... " >&6; }
31146 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
31147   $as_echo_n "(cached) " >&6
31148 else
31149   if test "$cross_compiling" = yes; then
31150   # Depending upon the size, compute the lo and hi bounds.
31151 cat >conftest.$ac_ext <<_ACEOF
31152 /* confdefs.h.  */
31153 _ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h.  */
31157 $ac_includes_default
31158 int
31159 main ()
31160 {
31161 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
31162 test_array [0] = 0
31163
31164   ;
31165   return 0;
31166 }
31167 _ACEOF
31168 rm -f conftest.$ac_objext
31169 if { (ac_try="$ac_compile"
31170 case "(($ac_try" in
31171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172   *) ac_try_echo=$ac_try;;
31173 esac
31174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31175 $as_echo "$ac_try_echo") >&5
31176   (eval "$ac_compile") 2>conftest.er1
31177   ac_status=$?
31178   grep -v '^ *+' conftest.er1 >conftest.err
31179   rm -f conftest.er1
31180   cat conftest.err >&5
31181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); } && {
31183          test -z "$ac_c_werror_flag" ||
31184          test ! -s conftest.err
31185        } && test -s conftest.$ac_objext; then
31186   ac_lo=0 ac_mid=0
31187   while :; do
31188     cat >conftest.$ac_ext <<_ACEOF
31189 /* confdefs.h.  */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h.  */
31194 $ac_includes_default
31195 int
31196 main ()
31197 {
31198 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31199 test_array [0] = 0
31200
31201   ;
31202   return 0;
31203 }
31204 _ACEOF
31205 rm -f conftest.$ac_objext
31206 if { (ac_try="$ac_compile"
31207 case "(($ac_try" in
31208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209   *) ac_try_echo=$ac_try;;
31210 esac
31211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31212 $as_echo "$ac_try_echo") >&5
31213   (eval "$ac_compile") 2>conftest.er1
31214   ac_status=$?
31215   grep -v '^ *+' conftest.er1 >conftest.err
31216   rm -f conftest.er1
31217   cat conftest.err >&5
31218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); } && {
31220          test -z "$ac_c_werror_flag" ||
31221          test ! -s conftest.err
31222        } && test -s conftest.$ac_objext; then
31223   ac_hi=$ac_mid; break
31224 else
31225   $as_echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31227
31228         ac_lo=`expr $ac_mid + 1`
31229                         if test $ac_lo -le $ac_mid; then
31230                           ac_lo= ac_hi=
31231                           break
31232                         fi
31233                         ac_mid=`expr 2 '*' $ac_mid + 1`
31234 fi
31235
31236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31237   done
31238 else
31239   $as_echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31241
31242         cat >conftest.$ac_ext <<_ACEOF
31243 /* confdefs.h.  */
31244 _ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h.  */
31248 $ac_includes_default
31249 int
31250 main ()
31251 {
31252 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
31253 test_array [0] = 0
31254
31255   ;
31256   return 0;
31257 }
31258 _ACEOF
31259 rm -f conftest.$ac_objext
31260 if { (ac_try="$ac_compile"
31261 case "(($ac_try" in
31262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263   *) ac_try_echo=$ac_try;;
31264 esac
31265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31266 $as_echo "$ac_try_echo") >&5
31267   (eval "$ac_compile") 2>conftest.er1
31268   ac_status=$?
31269   grep -v '^ *+' conftest.er1 >conftest.err
31270   rm -f conftest.er1
31271   cat conftest.err >&5
31272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); } && {
31274          test -z "$ac_c_werror_flag" ||
31275          test ! -s conftest.err
31276        } && test -s conftest.$ac_objext; then
31277   ac_hi=-1 ac_mid=-1
31278   while :; do
31279     cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 $ac_includes_default
31286 int
31287 main ()
31288 {
31289 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
31290 test_array [0] = 0
31291
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext
31297 if { (ac_try="$ac_compile"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31303 $as_echo "$ac_try_echo") >&5
31304   (eval "$ac_compile") 2>conftest.er1
31305   ac_status=$?
31306   grep -v '^ *+' conftest.er1 >conftest.err
31307   rm -f conftest.er1
31308   cat conftest.err >&5
31309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); } && {
31311          test -z "$ac_c_werror_flag" ||
31312          test ! -s conftest.err
31313        } && test -s conftest.$ac_objext; then
31314   ac_lo=$ac_mid; break
31315 else
31316   $as_echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31318
31319         ac_hi=`expr '(' $ac_mid ')' - 1`
31320                         if test $ac_mid -le $ac_hi; then
31321                           ac_lo= ac_hi=
31322                           break
31323                         fi
31324                         ac_mid=`expr 2 '*' $ac_mid`
31325 fi
31326
31327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31328   done
31329 else
31330   $as_echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.$ac_ext >&5
31332
31333         ac_lo= ac_hi=
31334 fi
31335
31336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31337 fi
31338
31339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 # Binary search between lo and hi bounds.
31341 while test "x$ac_lo" != "x$ac_hi"; do
31342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31343   cat >conftest.$ac_ext <<_ACEOF
31344 /* confdefs.h.  */
31345 _ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h.  */
31349 $ac_includes_default
31350 int
31351 main ()
31352 {
31353 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31354 test_array [0] = 0
31355
31356   ;
31357   return 0;
31358 }
31359 _ACEOF
31360 rm -f conftest.$ac_objext
31361 if { (ac_try="$ac_compile"
31362 case "(($ac_try" in
31363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31364   *) ac_try_echo=$ac_try;;
31365 esac
31366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31367 $as_echo "$ac_try_echo") >&5
31368   (eval "$ac_compile") 2>conftest.er1
31369   ac_status=$?
31370   grep -v '^ *+' conftest.er1 >conftest.err
31371   rm -f conftest.er1
31372   cat conftest.err >&5
31373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); } && {
31375          test -z "$ac_c_werror_flag" ||
31376          test ! -s conftest.err
31377        } && test -s conftest.$ac_objext; then
31378   ac_hi=$ac_mid
31379 else
31380   $as_echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383         ac_lo=`expr '(' $ac_mid ')' + 1`
31384 fi
31385
31386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31387 done
31388 case $ac_lo in
31389 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
31390 '') if test "$ac_cv_type_socklen_t" = yes; then
31391      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31393 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31394 See \`config.log' for more details." >&5
31395 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31396 See \`config.log' for more details." >&2;}
31397    { (exit 77); exit 77; }; }; }
31398    else
31399      ac_cv_sizeof_socklen_t=0
31400    fi ;;
31401 esac
31402 else
31403   cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409 $ac_includes_default
31410 static long int longval () { return (long int) (sizeof (socklen_t)); }
31411 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
31412 #include <stdio.h>
31413 #include <stdlib.h>
31414 int
31415 main ()
31416 {
31417
31418   FILE *f = fopen ("conftest.val", "w");
31419   if (! f)
31420     return 1;
31421   if (((long int) (sizeof (socklen_t))) < 0)
31422     {
31423       long int i = longval ();
31424       if (i != ((long int) (sizeof (socklen_t))))
31425         return 1;
31426       fprintf (f, "%ld", i);
31427     }
31428   else
31429     {
31430       unsigned long int i = ulongval ();
31431       if (i != ((long int) (sizeof (socklen_t))))
31432         return 1;
31433       fprintf (f, "%lu", i);
31434     }
31435   /* Do not output a trailing newline, as this causes \r\n confusion
31436      on some platforms.  */
31437   return ferror (f) || fclose (f) != 0;
31438
31439   ;
31440   return 0;
31441 }
31442 _ACEOF
31443 rm -f conftest$ac_exeext
31444 if { (ac_try="$ac_link"
31445 case "(($ac_try" in
31446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447   *) ac_try_echo=$ac_try;;
31448 esac
31449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31450 $as_echo "$ac_try_echo") >&5
31451   (eval "$ac_link") 2>&5
31452   ac_status=$?
31453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31455   { (case "(($ac_try" in
31456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457   *) ac_try_echo=$ac_try;;
31458 esac
31459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31460 $as_echo "$ac_try_echo") >&5
31461   (eval "$ac_try") 2>&5
31462   ac_status=$?
31463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); }; }; then
31465   ac_cv_sizeof_socklen_t=`cat conftest.val`
31466 else
31467   $as_echo "$as_me: program exited with status $ac_status" >&5
31468 $as_echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31470
31471 ( exit $ac_status )
31472 if test "$ac_cv_type_socklen_t" = yes; then
31473      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31475 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31476 See \`config.log' for more details." >&5
31477 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31478 See \`config.log' for more details." >&2;}
31479    { (exit 77); exit 77; }; }; }
31480    else
31481      ac_cv_sizeof_socklen_t=0
31482    fi
31483 fi
31484 rm -rf conftest.dSYM
31485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31486 fi
31487 rm -f conftest.val
31488 fi
31489 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
31490 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
31491
31492
31493
31494 cat >>confdefs.h <<_ACEOF
31495 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
31496 _ACEOF
31497
31498
31499
31500
31501
31502 cat >>confdefs.h <<_ACEOF
31503 #define NFS_STATEDIR "$statedir"
31504 _ACEOF
31505
31506
31507 if test "x$cross_compiling" = "xno"; then
31508         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
31509         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
31510         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
31511         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
31512 else
31513         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
31514         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
31515         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
31516         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
31517 fi
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529 case $host in
31530   *)
31531     ARCHFLAGS="" ;;
31532 esac
31533
31534 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
31535
31536 AM_CFLAGS="$my_am_cflags"
31537
31538
31539 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
31540 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
31541
31542
31543 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"
31544
31545 cat >confcache <<\_ACEOF
31546 # This file is a shell script that caches the results of configure
31547 # tests run on this system so they can be shared between configure
31548 # scripts and configure runs, see configure's option --config-cache.
31549 # It is not useful on other systems.  If it contains results you don't
31550 # want to keep, you may remove or edit it.
31551 #
31552 # config.status only pays attention to the cache file if you give it
31553 # the --recheck option to rerun configure.
31554 #
31555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31557 # following values.
31558
31559 _ACEOF
31560
31561 # The following way of writing the cache mishandles newlines in values,
31562 # but we know of no workaround that is simple, portable, and efficient.
31563 # So, we kill variables containing newlines.
31564 # Ultrix sh set writes to stderr and can't be redirected directly,
31565 # and sets the high bit in the cache file unless we assign to the vars.
31566 (
31567   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31568     eval ac_val=\$$ac_var
31569     case $ac_val in #(
31570     *${as_nl}*)
31571       case $ac_var in #(
31572       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31573 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31574       esac
31575       case $ac_var in #(
31576       _ | IFS | as_nl) ;; #(
31577       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31578       *) $as_unset $ac_var ;;
31579       esac ;;
31580     esac
31581   done
31582
31583   (set) 2>&1 |
31584     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31585     *${as_nl}ac_space=\ *)
31586       # `set' does not quote correctly, so add quotes (double-quote
31587       # substitution turns \\\\ into \\, and sed turns \\ into \).
31588       sed -n \
31589         "s/'/'\\\\''/g;
31590           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31591       ;; #(
31592     *)
31593       # `set' quotes correctly as required by POSIX, so do not add quotes.
31594       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31595       ;;
31596     esac |
31597     sort
31598 ) |
31599   sed '
31600      /^ac_cv_env_/b end
31601      t clear
31602      :clear
31603      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31604      t end
31605      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31606      :end' >>confcache
31607 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31608   if test -w "$cache_file"; then
31609     test "x$cache_file" != "x/dev/null" &&
31610       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31611 $as_echo "$as_me: updating cache $cache_file" >&6;}
31612     cat confcache >$cache_file
31613   else
31614     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31616   fi
31617 fi
31618 rm -f confcache
31619
31620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31621 # Let make expand exec_prefix.
31622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31623
31624 DEFS=-DHAVE_CONFIG_H
31625
31626 ac_libobjs=
31627 ac_ltlibobjs=
31628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31629   # 1. Remove the extension, and $U if already installed.
31630   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31631   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31632   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31633   #    will be set to the directory where LIBOBJS objects are built.
31634   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31635   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31636 done
31637 LIBOBJS=$ac_libobjs
31638
31639 LTLIBOBJS=$ac_ltlibobjs
31640
31641
31642 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31643   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31644 Usually this means the macro was only invoked conditionally." >&5
31645 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31646 Usually this means the macro was only invoked conditionally." >&2;}
31647    { (exit 1); exit 1; }; }
31648 fi
31649 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
31650   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
31651 Usually this means the macro was only invoked conditionally." >&5
31652 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
31653 Usually this means the macro was only invoked conditionally." >&2;}
31654    { (exit 1); exit 1; }; }
31655 fi
31656 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
31657   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
31658 Usually this means the macro was only invoked conditionally." >&5
31659 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
31660 Usually this means the macro was only invoked conditionally." >&2;}
31661    { (exit 1); exit 1; }; }
31662 fi
31663 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
31664   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
31665 Usually this means the macro was only invoked conditionally." >&5
31666 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
31667 Usually this means the macro was only invoked conditionally." >&2;}
31668    { (exit 1); exit 1; }; }
31669 fi
31670 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
31671   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
31672 Usually this means the macro was only invoked conditionally." >&5
31673 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
31674 Usually this means the macro was only invoked conditionally." >&2;}
31675    { (exit 1); exit 1; }; }
31676 fi
31677 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
31678   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
31679 Usually this means the macro was only invoked conditionally." >&5
31680 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
31681 Usually this means the macro was only invoked conditionally." >&2;}
31682    { (exit 1); exit 1; }; }
31683 fi
31684 if test -z "${CONFIG_TIRPC_TRUE}" && test -z "${CONFIG_TIRPC_FALSE}"; then
31685   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_TIRPC\" was never defined.
31686 Usually this means the macro was only invoked conditionally." >&5
31687 $as_echo "$as_me: error: conditional \"CONFIG_TIRPC\" was never defined.
31688 Usually this means the macro was only invoked conditionally." >&2;}
31689    { (exit 1); exit 1; }; }
31690 fi
31691 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31692   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31693 Usually this means the macro was only invoked conditionally." >&5
31694 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
31695 Usually this means the macro was only invoked conditionally." >&2;}
31696    { (exit 1); exit 1; }; }
31697 fi
31698 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31699   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31700 Usually this means the macro was only invoked conditionally." >&5
31701 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31702 Usually this means the macro was only invoked conditionally." >&2;}
31703    { (exit 1); exit 1; }; }
31704 fi
31705 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31706   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31707 Usually this means the macro was only invoked conditionally." >&5
31708 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31709 Usually this means the macro was only invoked conditionally." >&2;}
31710    { (exit 1); exit 1; }; }
31711 fi
31712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31713   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31714 Usually this means the macro was only invoked conditionally." >&5
31715 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31716 Usually this means the macro was only invoked conditionally." >&2;}
31717    { (exit 1); exit 1; }; }
31718 fi
31719
31720 : ${CONFIG_STATUS=./config.status}
31721 ac_write_fail=0
31722 ac_clean_files_save=$ac_clean_files
31723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31724 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31725 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31726 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31727 #! $SHELL
31728 # Generated by $as_me.
31729 # Run this file to recreate the current configuration.
31730 # Compiler output produced by configure, useful for debugging
31731 # configure, is in config.log if it exists.
31732
31733 debug=false
31734 ac_cs_recheck=false
31735 ac_cs_silent=false
31736 SHELL=\${CONFIG_SHELL-$SHELL}
31737 _ACEOF
31738
31739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31740 ## --------------------- ##
31741 ## M4sh Initialization.  ##
31742 ## --------------------- ##
31743
31744 # Be more Bourne compatible
31745 DUALCASE=1; export DUALCASE # for MKS sh
31746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31747   emulate sh
31748   NULLCMD=:
31749   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31750   # is contrary to our usage.  Disable this feature.
31751   alias -g '${1+"$@"}'='"$@"'
31752   setopt NO_GLOB_SUBST
31753 else
31754   case `(set -o) 2>/dev/null` in
31755   *posix*) set -o posix ;;
31756 esac
31757
31758 fi
31759
31760
31761
31762
31763 # PATH needs CR
31764 # Avoid depending upon Character Ranges.
31765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31768 as_cr_digits='0123456789'
31769 as_cr_alnum=$as_cr_Letters$as_cr_digits
31770
31771 as_nl='
31772 '
31773 export as_nl
31774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31778 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31779   as_echo='printf %s\n'
31780   as_echo_n='printf %s'
31781 else
31782   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31783     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31784     as_echo_n='/usr/ucb/echo -n'
31785   else
31786     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31787     as_echo_n_body='eval
31788       arg=$1;
31789       case $arg in
31790       *"$as_nl"*)
31791         expr "X$arg" : "X\\(.*\\)$as_nl";
31792         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31793       esac;
31794       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31795     '
31796     export as_echo_n_body
31797     as_echo_n='sh -c $as_echo_n_body as_echo'
31798   fi
31799   export as_echo_body
31800   as_echo='sh -c $as_echo_body as_echo'
31801 fi
31802
31803 # The user is always right.
31804 if test "${PATH_SEPARATOR+set}" != set; then
31805   PATH_SEPARATOR=:
31806   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31807     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31808       PATH_SEPARATOR=';'
31809   }
31810 fi
31811
31812 # Support unset when possible.
31813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31814   as_unset=unset
31815 else
31816   as_unset=false
31817 fi
31818
31819
31820 # IFS
31821 # We need space, tab and new line, in precisely that order.  Quoting is
31822 # there to prevent editors from complaining about space-tab.
31823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31824 # splitting by setting IFS to empty value.)
31825 IFS=" ""        $as_nl"
31826
31827 # Find who we are.  Look in the path if we contain no directory separator.
31828 case $0 in
31829   *[\\/]* ) as_myself=$0 ;;
31830   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31831 for as_dir in $PATH
31832 do
31833   IFS=$as_save_IFS
31834   test -z "$as_dir" && as_dir=.
31835   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31836 done
31837 IFS=$as_save_IFS
31838
31839      ;;
31840 esac
31841 # We did not find ourselves, most probably we were run as `sh COMMAND'
31842 # in which case we are not to be found in the path.
31843 if test "x$as_myself" = x; then
31844   as_myself=$0
31845 fi
31846 if test ! -f "$as_myself"; then
31847   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31848   { (exit 1); exit 1; }
31849 fi
31850
31851 # Work around bugs in pre-3.0 UWIN ksh.
31852 for as_var in ENV MAIL MAILPATH
31853 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31854 done
31855 PS1='$ '
31856 PS2='> '
31857 PS4='+ '
31858
31859 # NLS nuisances.
31860 LC_ALL=C
31861 export LC_ALL
31862 LANGUAGE=C
31863 export LANGUAGE
31864
31865 # Required to use basename.
31866 if expr a : '\(a\)' >/dev/null 2>&1 &&
31867    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31868   as_expr=expr
31869 else
31870   as_expr=false
31871 fi
31872
31873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31874   as_basename=basename
31875 else
31876   as_basename=false
31877 fi
31878
31879
31880 # Name of the executable.
31881 as_me=`$as_basename -- "$0" ||
31882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31883          X"$0" : 'X\(//\)$' \| \
31884          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31885 $as_echo X/"$0" |
31886     sed '/^.*\/\([^/][^/]*\)\/*$/{
31887             s//\1/
31888             q
31889           }
31890           /^X\/\(\/\/\)$/{
31891             s//\1/
31892             q
31893           }
31894           /^X\/\(\/\).*/{
31895             s//\1/
31896             q
31897           }
31898           s/.*/./; q'`
31899
31900 # CDPATH.
31901 $as_unset CDPATH
31902
31903
31904
31905   as_lineno_1=$LINENO
31906   as_lineno_2=$LINENO
31907   test "x$as_lineno_1" != "x$as_lineno_2" &&
31908   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31909
31910   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31911   # uniformly replaced by the line number.  The first 'sed' inserts a
31912   # line-number line after each line using $LINENO; the second 'sed'
31913   # does the real work.  The second script uses 'N' to pair each
31914   # line-number line with the line containing $LINENO, and appends
31915   # trailing '-' during substitution so that $LINENO is not a special
31916   # case at line end.
31917   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31918   # scripts with optimization help from Paolo Bonzini.  Blame Lee
31919   # E. McMahon (1931-1989) for sed's syntax.  :-)
31920   sed -n '
31921     p
31922     /[$]LINENO/=
31923   ' <$as_myself |
31924     sed '
31925       s/[$]LINENO.*/&-/
31926       t lineno
31927       b
31928       :lineno
31929       N
31930       :loop
31931       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31932       t loop
31933       s/-\n.*//
31934     ' >$as_me.lineno &&
31935   chmod +x "$as_me.lineno" ||
31936     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31937    { (exit 1); exit 1; }; }
31938
31939   # Don't try to exec as it changes $[0], causing all sort of problems
31940   # (the dirname of $[0] is not the place where we might find the
31941   # original and so on.  Autoconf is especially sensitive to this).
31942   . "./$as_me.lineno"
31943   # Exit status is that of the last command.
31944   exit
31945 }
31946
31947
31948 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31949   as_dirname=dirname
31950 else
31951   as_dirname=false
31952 fi
31953
31954 ECHO_C= ECHO_N= ECHO_T=
31955 case `echo -n x` in
31956 -n*)
31957   case `echo 'x\c'` in
31958   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31959   *)   ECHO_C='\c';;
31960   esac;;
31961 *)
31962   ECHO_N='-n';;
31963 esac
31964 if expr a : '\(a\)' >/dev/null 2>&1 &&
31965    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31966   as_expr=expr
31967 else
31968   as_expr=false
31969 fi
31970
31971 rm -f conf$$ conf$$.exe conf$$.file
31972 if test -d conf$$.dir; then
31973   rm -f conf$$.dir/conf$$.file
31974 else
31975   rm -f conf$$.dir
31976   mkdir conf$$.dir 2>/dev/null
31977 fi
31978 if (echo >conf$$.file) 2>/dev/null; then
31979   if ln -s conf$$.file conf$$ 2>/dev/null; then
31980     as_ln_s='ln -s'
31981     # ... but there are two gotchas:
31982     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31983     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31984     # In both cases, we have to default to `cp -p'.
31985     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31986       as_ln_s='cp -p'
31987   elif ln conf$$.file conf$$ 2>/dev/null; then
31988     as_ln_s=ln
31989   else
31990     as_ln_s='cp -p'
31991   fi
31992 else
31993   as_ln_s='cp -p'
31994 fi
31995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31996 rmdir conf$$.dir 2>/dev/null
31997
31998 if mkdir -p . 2>/dev/null; then
31999   as_mkdir_p=:
32000 else
32001   test -d ./-p && rmdir ./-p
32002   as_mkdir_p=false
32003 fi
32004
32005 if test -x / >/dev/null 2>&1; then
32006   as_test_x='test -x'
32007 else
32008   if ls -dL / >/dev/null 2>&1; then
32009     as_ls_L_option=L
32010   else
32011     as_ls_L_option=
32012   fi
32013   as_test_x='
32014     eval sh -c '\''
32015       if test -d "$1"; then
32016         test -d "$1/.";
32017       else
32018         case $1 in
32019         -*)set "./$1";;
32020         esac;
32021         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32022         ???[sx]*):;;*)false;;esac;fi
32023     '\'' sh
32024   '
32025 fi
32026 as_executable_p=$as_test_x
32027
32028 # Sed expression to map a string onto a valid CPP name.
32029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32030
32031 # Sed expression to map a string onto a valid variable name.
32032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32033
32034
32035 exec 6>&1
32036
32037 # Save the log message, to keep $[0] and so on meaningful, and to
32038 # report actual input values of CONFIG_FILES etc. instead of their
32039 # values after options handling.
32040 ac_log="
32041 This file was extended by linux nfs-utils $as_me 1.1.5, which was
32042 generated by GNU Autoconf 2.63.  Invocation command line was
32043
32044   CONFIG_FILES    = $CONFIG_FILES
32045   CONFIG_HEADERS  = $CONFIG_HEADERS
32046   CONFIG_LINKS    = $CONFIG_LINKS
32047   CONFIG_COMMANDS = $CONFIG_COMMANDS
32048   $ $0 $@
32049
32050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32051 "
32052
32053 _ACEOF
32054
32055 case $ac_config_files in *"
32056 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32057 esac
32058
32059 case $ac_config_headers in *"
32060 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32061 esac
32062
32063
32064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32065 # Files that config.status was made for.
32066 config_files="$ac_config_files"
32067 config_headers="$ac_config_headers"
32068 config_commands="$ac_config_commands"
32069
32070 _ACEOF
32071
32072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32073 ac_cs_usage="\
32074 \`$as_me' instantiates files from templates according to the
32075 current configuration.
32076
32077 Usage: $0 [OPTION]... [FILE]...
32078
32079   -h, --help       print this help, then exit
32080   -V, --version    print version number and configuration settings, then exit
32081   -q, --quiet, --silent
32082                    do not print progress messages
32083   -d, --debug      don't remove temporary files
32084       --recheck    update $as_me by reconfiguring in the same conditions
32085       --file=FILE[:TEMPLATE]
32086                    instantiate the configuration file FILE
32087       --header=FILE[:TEMPLATE]
32088                    instantiate the configuration header FILE
32089
32090 Configuration files:
32091 $config_files
32092
32093 Configuration headers:
32094 $config_headers
32095
32096 Configuration commands:
32097 $config_commands
32098
32099 Report bugs to <bug-autoconf@gnu.org>."
32100
32101 _ACEOF
32102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32103 ac_cs_version="\\
32104 linux nfs-utils config.status 1.1.5
32105 configured by $0, generated by GNU Autoconf 2.63,
32106   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32107
32108 Copyright (C) 2008 Free Software Foundation, Inc.
32109 This config.status script is free software; the Free Software Foundation
32110 gives unlimited permission to copy, distribute and modify it."
32111
32112 ac_pwd='$ac_pwd'
32113 srcdir='$srcdir'
32114 INSTALL='$INSTALL'
32115 MKDIR_P='$MKDIR_P'
32116 AWK='$AWK'
32117 test -n "\$AWK" || AWK=awk
32118 _ACEOF
32119
32120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32121 # The default lists apply if the user does not specify any file.
32122 ac_need_defaults=:
32123 while test $# != 0
32124 do
32125   case $1 in
32126   --*=*)
32127     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32128     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32129     ac_shift=:
32130     ;;
32131   *)
32132     ac_option=$1
32133     ac_optarg=$2
32134     ac_shift=shift
32135     ;;
32136   esac
32137
32138   case $ac_option in
32139   # Handling of the options.
32140   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32141     ac_cs_recheck=: ;;
32142   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32143     $as_echo "$ac_cs_version"; exit ;;
32144   --debug | --debu | --deb | --de | --d | -d )
32145     debug=: ;;
32146   --file | --fil | --fi | --f )
32147     $ac_shift
32148     case $ac_optarg in
32149     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32150     esac
32151     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
32152     ac_need_defaults=false;;
32153   --header | --heade | --head | --hea )
32154     $ac_shift
32155     case $ac_optarg in
32156     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32157     esac
32158     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
32159     ac_need_defaults=false;;
32160   --he | --h)
32161     # Conflict between --help and --header
32162     { $as_echo "$as_me: error: ambiguous option: $1
32163 Try \`$0 --help' for more information." >&2
32164    { (exit 1); exit 1; }; };;
32165   --help | --hel | -h )
32166     $as_echo "$ac_cs_usage"; exit ;;
32167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32168   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32169     ac_cs_silent=: ;;
32170
32171   # This is an error.
32172   -*) { $as_echo "$as_me: error: unrecognized option: $1
32173 Try \`$0 --help' for more information." >&2
32174    { (exit 1); exit 1; }; } ;;
32175
32176   *) ac_config_targets="$ac_config_targets $1"
32177      ac_need_defaults=false ;;
32178
32179   esac
32180   shift
32181 done
32182
32183 ac_configure_extra_args=
32184
32185 if $ac_cs_silent; then
32186   exec 6>/dev/null
32187   ac_configure_extra_args="$ac_configure_extra_args --silent"
32188 fi
32189
32190 _ACEOF
32191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32192 if \$ac_cs_recheck; then
32193   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32194   shift
32195   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32196   CONFIG_SHELL='$SHELL'
32197   export CONFIG_SHELL
32198   exec "\$@"
32199 fi
32200
32201 _ACEOF
32202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32203 exec 5>>config.log
32204 {
32205   echo
32206   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32207 ## Running $as_me. ##
32208 _ASBOX
32209   $as_echo "$ac_log"
32210 } >&5
32211
32212 _ACEOF
32213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32214 #
32215 # INIT-COMMANDS
32216 #
32217 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32218
32219 _ACEOF
32220
32221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32222
32223 # Handling of arguments.
32224 for ac_config_target in $ac_config_targets
32225 do
32226   case $ac_config_target in
32227     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32228     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
32229     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32230     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
32231     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32232     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
32233     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
32234     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
32235     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
32236     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
32237     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
32238     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
32239     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
32240     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
32241     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
32242     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
32243     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
32244     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
32245     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
32246     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
32247     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
32248     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
32249     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
32250     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
32251     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
32252     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
32253     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
32254     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
32255
32256   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32257 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32258    { (exit 1); exit 1; }; };;
32259   esac
32260 done
32261
32262
32263 # If the user did not use the arguments to specify the items to instantiate,
32264 # then the envvar interface is used.  Set only those that are not.
32265 # We use the long form for the default assignment because of an extremely
32266 # bizarre bug on SunOS 4.1.3.
32267 if $ac_need_defaults; then
32268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32270   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32271 fi
32272
32273 # Have a temporary directory for convenience.  Make it in the build tree
32274 # simply because there is no reason against having it here, and in addition,
32275 # creating and moving files from /tmp can sometimes cause problems.
32276 # Hook for its removal unless debugging.
32277 # Note that there is a small window in which the directory will not be cleaned:
32278 # after its creation but before its name has been assigned to `$tmp'.
32279 $debug ||
32280 {
32281   tmp=
32282   trap 'exit_status=$?
32283   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32284 ' 0
32285   trap '{ (exit 1); exit 1; }' 1 2 13 15
32286 }
32287 # Create a (secure) tmp directory for tmp files.
32288
32289 {
32290   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32291   test -n "$tmp" && test -d "$tmp"
32292 }  ||
32293 {
32294   tmp=./conf$$-$RANDOM
32295   (umask 077 && mkdir "$tmp")
32296 } ||
32297 {
32298    $as_echo "$as_me: cannot create a temporary directory in ." >&2
32299    { (exit 1); exit 1; }
32300 }
32301
32302 # Set up the scripts for CONFIG_FILES section.
32303 # No need to generate them if there are no CONFIG_FILES.
32304 # This happens for instance with `./config.status config.h'.
32305 if test -n "$CONFIG_FILES"; then
32306
32307
32308 ac_cr='\r'
32309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32311   ac_cs_awk_cr='\\r'
32312 else
32313   ac_cs_awk_cr=$ac_cr
32314 fi
32315
32316 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32317 _ACEOF
32318
32319
32320 {
32321   echo "cat >conf$$subs.awk <<_ACEOF" &&
32322   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32323   echo "_ACEOF"
32324 } >conf$$subs.sh ||
32325   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32326 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32327    { (exit 1); exit 1; }; }
32328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32329 ac_delim='%!_!# '
32330 for ac_last_try in false false false false false :; do
32331   . ./conf$$subs.sh ||
32332     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32333 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32334    { (exit 1); exit 1; }; }
32335
32336   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32337   if test $ac_delim_n = $ac_delim_num; then
32338     break
32339   elif $ac_last_try; then
32340     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32341 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32342    { (exit 1); exit 1; }; }
32343   else
32344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32345   fi
32346 done
32347 rm -f conf$$subs.sh
32348
32349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32350 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32351 _ACEOF
32352 sed -n '
32353 h
32354 s/^/S["/; s/!.*/"]=/
32355 p
32356 g
32357 s/^[^!]*!//
32358 :repl
32359 t repl
32360 s/'"$ac_delim"'$//
32361 t delim
32362 :nl
32363 h
32364 s/\(.\{148\}\).*/\1/
32365 t more1
32366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32367 p
32368 n
32369 b repl
32370 :more1
32371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32372 p
32373 g
32374 s/.\{148\}//
32375 t nl
32376 :delim
32377 h
32378 s/\(.\{148\}\).*/\1/
32379 t more2
32380 s/["\\]/\\&/g; s/^/"/; s/$/"/
32381 p
32382 b
32383 :more2
32384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32385 p
32386 g
32387 s/.\{148\}//
32388 t delim
32389 ' <conf$$subs.awk | sed '
32390 /^[^""]/{
32391   N
32392   s/\n//
32393 }
32394 ' >>$CONFIG_STATUS || ac_write_fail=1
32395 rm -f conf$$subs.awk
32396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32397 _ACAWK
32398 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32399   for (key in S) S_is_set[key] = 1
32400   FS = "\a"
32401
32402 }
32403 {
32404   line = $ 0
32405   nfields = split(line, field, "@")
32406   substed = 0
32407   len = length(field[1])
32408   for (i = 2; i < nfields; i++) {
32409     key = field[i]
32410     keylen = length(key)
32411     if (S_is_set[key]) {
32412       value = S[key]
32413       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32414       len += length(value) + length(field[++i])
32415       substed = 1
32416     } else
32417       len += 1 + keylen
32418   }
32419
32420   print line
32421 }
32422
32423 _ACAWK
32424 _ACEOF
32425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32427   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32428 else
32429   cat
32430 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32431   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32432 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32433    { (exit 1); exit 1; }; }
32434 _ACEOF
32435
32436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32438 # trailing colons and then remove the whole line if VPATH becomes empty
32439 # (actually we leave an empty line to preserve line numbers).
32440 if test "x$srcdir" = x.; then
32441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32442 s/:*\$(srcdir):*/:/
32443 s/:*\${srcdir}:*/:/
32444 s/:*@srcdir@:*/:/
32445 s/^\([^=]*=[     ]*\):*/\1/
32446 s/:*$//
32447 s/^[^=]*=[       ]*$//
32448 }'
32449 fi
32450
32451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32452 fi # test -n "$CONFIG_FILES"
32453
32454 # Set up the scripts for CONFIG_HEADERS section.
32455 # No need to generate them if there are no CONFIG_HEADERS.
32456 # This happens for instance with `./config.status Makefile'.
32457 if test -n "$CONFIG_HEADERS"; then
32458 cat >"$tmp/defines.awk" <<\_ACAWK ||
32459 BEGIN {
32460 _ACEOF
32461
32462 # Transform confdefs.h into an awk script `defines.awk', embedded as
32463 # here-document in config.status, that substitutes the proper values into
32464 # config.h.in to produce config.h.
32465
32466 # Create a delimiter string that does not exist in confdefs.h, to ease
32467 # handling of long lines.
32468 ac_delim='%!_!# '
32469 for ac_last_try in false false :; do
32470   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32471   if test -z "$ac_t"; then
32472     break
32473   elif $ac_last_try; then
32474     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32475 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32476    { (exit 1); exit 1; }; }
32477   else
32478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32479   fi
32480 done
32481
32482 # For the awk script, D is an array of macro values keyed by name,
32483 # likewise P contains macro parameters if any.  Preserve backslash
32484 # newline sequences.
32485
32486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32487 sed -n '
32488 s/.\{148\}/&'"$ac_delim"'/g
32489 t rset
32490 :rset
32491 s/^[     ]*#[    ]*define[       ][      ]*/ /
32492 t def
32493 d
32494 :def
32495 s/\\$//
32496 t bsnl
32497 s/["\\]/\\&/g
32498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32499 D["\1"]=" \3"/p
32500 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32501 d
32502 :bsnl
32503 s/["\\]/\\&/g
32504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32505 D["\1"]=" \3\\\\\\n"\\/p
32506 t cont
32507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32508 t cont
32509 d
32510 :cont
32511 n
32512 s/.\{148\}/&'"$ac_delim"'/g
32513 t clear
32514 :clear
32515 s/\\$//
32516 t bsnlc
32517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32518 d
32519 :bsnlc
32520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32521 b cont
32522 ' <confdefs.h | sed '
32523 s/'"$ac_delim"'/"\\\
32524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32525
32526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32527   for (key in D) D_is_set[key] = 1
32528   FS = "\a"
32529 }
32530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32531   line = \$ 0
32532   split(line, arg, " ")
32533   if (arg[1] == "#") {
32534     defundef = arg[2]
32535     mac1 = arg[3]
32536   } else {
32537     defundef = substr(arg[1], 2)
32538     mac1 = arg[2]
32539   }
32540   split(mac1, mac2, "(") #)
32541   macro = mac2[1]
32542   prefix = substr(line, 1, index(line, defundef) - 1)
32543   if (D_is_set[macro]) {
32544     # Preserve the white space surrounding the "#".
32545     print prefix "define", macro P[macro] D[macro]
32546     next
32547   } else {
32548     # Replace #undef with comments.  This is necessary, for example,
32549     # in the case of _POSIX_SOURCE, which is predefined and required
32550     # on some systems where configure will not decide to define it.
32551     if (defundef == "undef") {
32552       print "/*", prefix defundef, macro, "*/"
32553       next
32554     }
32555   }
32556 }
32557 { print }
32558 _ACAWK
32559 _ACEOF
32560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32561   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32562 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32563    { (exit 1); exit 1; }; }
32564 fi # test -n "$CONFIG_HEADERS"
32565
32566
32567 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32568 shift
32569 for ac_tag
32570 do
32571   case $ac_tag in
32572   :[FHLC]) ac_mode=$ac_tag; continue;;
32573   esac
32574   case $ac_mode$ac_tag in
32575   :[FHL]*:*);;
32576   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32577 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32578    { (exit 1); exit 1; }; };;
32579   :[FH]-) ac_tag=-:-;;
32580   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32581   esac
32582   ac_save_IFS=$IFS
32583   IFS=:
32584   set x $ac_tag
32585   IFS=$ac_save_IFS
32586   shift
32587   ac_file=$1
32588   shift
32589
32590   case $ac_mode in
32591   :L) ac_source=$1;;
32592   :[FH])
32593     ac_file_inputs=
32594     for ac_f
32595     do
32596       case $ac_f in
32597       -) ac_f="$tmp/stdin";;
32598       *) # Look for the file first in the build tree, then in the source tree
32599          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32600          # because $ac_f cannot contain `:'.
32601          test -f "$ac_f" ||
32602            case $ac_f in
32603            [\\/$]*) false;;
32604            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32605            esac ||
32606            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32607 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32608    { (exit 1); exit 1; }; };;
32609       esac
32610       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32611       ac_file_inputs="$ac_file_inputs '$ac_f'"
32612     done
32613
32614     # Let's still pretend it is `configure' which instantiates (i.e., don't
32615     # use $as_me), people would be surprised to read:
32616     #    /* config.h.  Generated by config.status.  */
32617     configure_input='Generated from '`
32618           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32619         `' by configure.'
32620     if test x"$ac_file" != x-; then
32621       configure_input="$ac_file.  $configure_input"
32622       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32623 $as_echo "$as_me: creating $ac_file" >&6;}
32624     fi
32625     # Neutralize special characters interpreted by sed in replacement strings.
32626     case $configure_input in #(
32627     *\&* | *\|* | *\\* )
32628        ac_sed_conf_input=`$as_echo "$configure_input" |
32629        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32630     *) ac_sed_conf_input=$configure_input;;
32631     esac
32632
32633     case $ac_tag in
32634     *:-:* | *:-) cat >"$tmp/stdin" \
32635       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32636 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32637    { (exit 1); exit 1; }; } ;;
32638     esac
32639     ;;
32640   esac
32641
32642   ac_dir=`$as_dirname -- "$ac_file" ||
32643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32644          X"$ac_file" : 'X\(//\)[^/]' \| \
32645          X"$ac_file" : 'X\(//\)$' \| \
32646          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32647 $as_echo X"$ac_file" |
32648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32649             s//\1/
32650             q
32651           }
32652           /^X\(\/\/\)[^/].*/{
32653             s//\1/
32654             q
32655           }
32656           /^X\(\/\/\)$/{
32657             s//\1/
32658             q
32659           }
32660           /^X\(\/\).*/{
32661             s//\1/
32662             q
32663           }
32664           s/.*/./; q'`
32665   { as_dir="$ac_dir"
32666   case $as_dir in #(
32667   -*) as_dir=./$as_dir;;
32668   esac
32669   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32670     as_dirs=
32671     while :; do
32672       case $as_dir in #(
32673       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32674       *) as_qdir=$as_dir;;
32675       esac
32676       as_dirs="'$as_qdir' $as_dirs"
32677       as_dir=`$as_dirname -- "$as_dir" ||
32678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32679          X"$as_dir" : 'X\(//\)[^/]' \| \
32680          X"$as_dir" : 'X\(//\)$' \| \
32681          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32682 $as_echo X"$as_dir" |
32683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32684             s//\1/
32685             q
32686           }
32687           /^X\(\/\/\)[^/].*/{
32688             s//\1/
32689             q
32690           }
32691           /^X\(\/\/\)$/{
32692             s//\1/
32693             q
32694           }
32695           /^X\(\/\).*/{
32696             s//\1/
32697             q
32698           }
32699           s/.*/./; q'`
32700       test -d "$as_dir" && break
32701     done
32702     test -z "$as_dirs" || eval "mkdir $as_dirs"
32703   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32704 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32705    { (exit 1); exit 1; }; }; }
32706   ac_builddir=.
32707
32708 case "$ac_dir" in
32709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32710 *)
32711   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32712   # A ".." for each directory in $ac_dir_suffix.
32713   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32714   case $ac_top_builddir_sub in
32715   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32716   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32717   esac ;;
32718 esac
32719 ac_abs_top_builddir=$ac_pwd
32720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32721 # for backward compatibility:
32722 ac_top_builddir=$ac_top_build_prefix
32723
32724 case $srcdir in
32725   .)  # We are building in place.
32726     ac_srcdir=.
32727     ac_top_srcdir=$ac_top_builddir_sub
32728     ac_abs_top_srcdir=$ac_pwd ;;
32729   [\\/]* | ?:[\\/]* )  # Absolute name.
32730     ac_srcdir=$srcdir$ac_dir_suffix;
32731     ac_top_srcdir=$srcdir
32732     ac_abs_top_srcdir=$srcdir ;;
32733   *) # Relative name.
32734     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32735     ac_top_srcdir=$ac_top_build_prefix$srcdir
32736     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32737 esac
32738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32739
32740
32741   case $ac_mode in
32742   :F)
32743   #
32744   # CONFIG_FILE
32745   #
32746
32747   case $INSTALL in
32748   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32749   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32750   esac
32751   ac_MKDIR_P=$MKDIR_P
32752   case $MKDIR_P in
32753   [\\/$]* | ?:[\\/]* ) ;;
32754   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32755   esac
32756 _ACEOF
32757
32758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32759 # If the template does not know about datarootdir, expand it.
32760 # FIXME: This hack should be removed a few years after 2.60.
32761 ac_datarootdir_hack=; ac_datarootdir_seen=
32762
32763 ac_sed_dataroot='
32764 /datarootdir/ {
32765   p
32766   q
32767 }
32768 /@datadir@/p
32769 /@docdir@/p
32770 /@infodir@/p
32771 /@localedir@/p
32772 /@mandir@/p
32773 '
32774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32775 *datarootdir*) ac_datarootdir_seen=yes;;
32776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32777   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32779 _ACEOF
32780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32781   ac_datarootdir_hack='
32782   s&@datadir@&$datadir&g
32783   s&@docdir@&$docdir&g
32784   s&@infodir@&$infodir&g
32785   s&@localedir@&$localedir&g
32786   s&@mandir@&$mandir&g
32787     s&\\\${datarootdir}&$datarootdir&g' ;;
32788 esac
32789 _ACEOF
32790
32791 # Neutralize VPATH when `$srcdir' = `.'.
32792 # Shell code in configure.ac might set extrasub.
32793 # FIXME: do we really want to maintain this feature?
32794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32795 ac_sed_extra="$ac_vpsub
32796 $extrasub
32797 _ACEOF
32798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32799 :t
32800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32801 s|@configure_input@|$ac_sed_conf_input|;t t
32802 s&@top_builddir@&$ac_top_builddir_sub&;t t
32803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32804 s&@srcdir@&$ac_srcdir&;t t
32805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32806 s&@top_srcdir@&$ac_top_srcdir&;t t
32807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32808 s&@builddir@&$ac_builddir&;t t
32809 s&@abs_builddir@&$ac_abs_builddir&;t t
32810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32811 s&@INSTALL@&$ac_INSTALL&;t t
32812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32813 $ac_datarootdir_hack
32814 "
32815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32816   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32817 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32818    { (exit 1); exit 1; }; }
32819
32820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32821   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32822   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32823   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32824 which seems to be undefined.  Please make sure it is defined." >&5
32825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32826 which seems to be undefined.  Please make sure it is defined." >&2;}
32827
32828   rm -f "$tmp/stdin"
32829   case $ac_file in
32830   -) cat "$tmp/out" && rm -f "$tmp/out";;
32831   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32832   esac \
32833   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32834 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32835    { (exit 1); exit 1; }; }
32836  ;;
32837   :H)
32838   #
32839   # CONFIG_HEADER
32840   #
32841   if test x"$ac_file" != x-; then
32842     {
32843       $as_echo "/* $configure_input  */" \
32844       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32845     } >"$tmp/config.h" \
32846       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32847 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32848    { (exit 1); exit 1; }; }
32849     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32850       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32851 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32852     else
32853       rm -f "$ac_file"
32854       mv "$tmp/config.h" "$ac_file" \
32855         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32856 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32857    { (exit 1); exit 1; }; }
32858     fi
32859   else
32860     $as_echo "/* $configure_input  */" \
32861       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32862       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32863 $as_echo "$as_me: error: could not create -" >&2;}
32864    { (exit 1); exit 1; }; }
32865   fi
32866 # Compute "$ac_file"'s index in $config_headers.
32867 _am_arg="$ac_file"
32868 _am_stamp_count=1
32869 for _am_header in $config_headers :; do
32870   case $_am_header in
32871     $_am_arg | $_am_arg:* )
32872       break ;;
32873     * )
32874       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32875   esac
32876 done
32877 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32878 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32879          X"$_am_arg" : 'X\(//\)[^/]' \| \
32880          X"$_am_arg" : 'X\(//\)$' \| \
32881          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32882 $as_echo X"$_am_arg" |
32883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32884             s//\1/
32885             q
32886           }
32887           /^X\(\/\/\)[^/].*/{
32888             s//\1/
32889             q
32890           }
32891           /^X\(\/\/\)$/{
32892             s//\1/
32893             q
32894           }
32895           /^X\(\/\).*/{
32896             s//\1/
32897             q
32898           }
32899           s/.*/./; q'`/stamp-h$_am_stamp_count
32900  ;;
32901
32902   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32903 $as_echo "$as_me: executing $ac_file commands" >&6;}
32904  ;;
32905   esac
32906
32907
32908   case $ac_file$ac_mode in
32909     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32910   # Strip MF so we end up with the name of the file.
32911   mf=`echo "$mf" | sed -e 's/:.*$//'`
32912   # Check whether this is an Automake generated Makefile or not.
32913   # We used to match only the files named `Makefile.in', but
32914   # some people rename them; so instead we look at the file content.
32915   # Grep'ing the first line is not enough: some people post-process
32916   # each Makefile.in and add a new line on top of each file to say so.
32917   # Grep'ing the whole file is not good either: AIX grep has a line
32918   # limit of 2048, but all sed's we know have understand at least 4000.
32919   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32920     dirpart=`$as_dirname -- "$mf" ||
32921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32922          X"$mf" : 'X\(//\)[^/]' \| \
32923          X"$mf" : 'X\(//\)$' \| \
32924          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32925 $as_echo X"$mf" |
32926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32927             s//\1/
32928             q
32929           }
32930           /^X\(\/\/\)[^/].*/{
32931             s//\1/
32932             q
32933           }
32934           /^X\(\/\/\)$/{
32935             s//\1/
32936             q
32937           }
32938           /^X\(\/\).*/{
32939             s//\1/
32940             q
32941           }
32942           s/.*/./; q'`
32943   else
32944     continue
32945   fi
32946   # Extract the definition of DEPDIR, am__include, and am__quote
32947   # from the Makefile without running `make'.
32948   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32949   test -z "$DEPDIR" && continue
32950   am__include=`sed -n 's/^am__include = //p' < "$mf"`
32951   test -z "am__include" && continue
32952   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32953   # When using ansi2knr, U may be empty or an underscore; expand it
32954   U=`sed -n 's/^U = //p' < "$mf"`
32955   # Find all dependency output files, they are included files with
32956   # $(DEPDIR) in their names.  We invoke sed twice because it is the
32957   # simplest approach to changing $(DEPDIR) to its actual value in the
32958   # expansion.
32959   for file in `sed -n "
32960     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32961        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32962     # Make sure the directory exists.
32963     test -f "$dirpart/$file" && continue
32964     fdir=`$as_dirname -- "$file" ||
32965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32966          X"$file" : 'X\(//\)[^/]' \| \
32967          X"$file" : 'X\(//\)$' \| \
32968          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32969 $as_echo X"$file" |
32970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32971             s//\1/
32972             q
32973           }
32974           /^X\(\/\/\)[^/].*/{
32975             s//\1/
32976             q
32977           }
32978           /^X\(\/\/\)$/{
32979             s//\1/
32980             q
32981           }
32982           /^X\(\/\).*/{
32983             s//\1/
32984             q
32985           }
32986           s/.*/./; q'`
32987     { as_dir=$dirpart/$fdir
32988   case $as_dir in #(
32989   -*) as_dir=./$as_dir;;
32990   esac
32991   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32992     as_dirs=
32993     while :; do
32994       case $as_dir in #(
32995       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32996       *) as_qdir=$as_dir;;
32997       esac
32998       as_dirs="'$as_qdir' $as_dirs"
32999       as_dir=`$as_dirname -- "$as_dir" ||
33000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33001          X"$as_dir" : 'X\(//\)[^/]' \| \
33002          X"$as_dir" : 'X\(//\)$' \| \
33003          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33004 $as_echo X"$as_dir" |
33005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33006             s//\1/
33007             q
33008           }
33009           /^X\(\/\/\)[^/].*/{
33010             s//\1/
33011             q
33012           }
33013           /^X\(\/\/\)$/{
33014             s//\1/
33015             q
33016           }
33017           /^X\(\/\).*/{
33018             s//\1/
33019             q
33020           }
33021           s/.*/./; q'`
33022       test -d "$as_dir" && break
33023     done
33024     test -z "$as_dirs" || eval "mkdir $as_dirs"
33025   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33026 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33027    { (exit 1); exit 1; }; }; }
33028     # echo "creating $dirpart/$file"
33029     echo '# dummy' > "$dirpart/$file"
33030   done
33031 done
33032  ;;
33033
33034   esac
33035 done # for ac_tag
33036
33037
33038 { (exit 0); exit 0; }
33039 _ACEOF
33040 chmod +x $CONFIG_STATUS
33041 ac_clean_files=$ac_clean_files_save
33042
33043 test $ac_write_fail = 0 ||
33044   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
33045 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
33046    { (exit 1); exit 1; }; }
33047
33048
33049 # configure is writing to config.log, and then calls config.status.
33050 # config.status does its own redirection, appending to config.log.
33051 # Unfortunately, on DOS this fails, as config.log is still kept open
33052 # by configure, so config.status won't be able to write to it; its
33053 # output is simply discarded.  So we exec the FD to /dev/null,
33054 # effectively closing config.log, so it can be properly (re)opened and
33055 # appended to by config.status.  When coming back to configure, we
33056 # need to make the FD available again.
33057 if test "$no_create" != yes; then
33058   ac_cs_success=:
33059   ac_config_status_args=
33060   test "$silent" = yes &&
33061     ac_config_status_args="$ac_config_status_args --quiet"
33062   exec 5>/dev/null
33063   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33064   exec 5>>config.log
33065   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33066   # would make configure fail if this is the last instruction.
33067   $ac_cs_success || { (exit 1); exit 1; }
33068 fi
33069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33070   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33072 fi
33073
33074