]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.1.4
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.4.
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 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.4'
732 PACKAGE_STRING='linux nfs-utils 1.1.4'
733 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 am__isrc
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 RELEASE
844 statedir
845 statduser
846 startstatd
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 RPCGEN_PATH
859 CONFIG_RPCGEN_TRUE
860 CONFIG_RPCGEN_FALSE
861 CONFIG_MOUNT_TRUE
862 CONFIG_MOUNT_FALSE
863 enable_ipv6
864 CONFIG_IPV6_TRUE
865 CONFIG_IPV6_FALSE
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 ac_ct_CC
871 EXEEXT
872 OBJEXT
873 DEPDIR
874 am__include
875 am__quote
876 AMDEP_TRUE
877 AMDEP_FALSE
878 AMDEPBACKSLASH
879 CCDEPMODE
880 am__fastdepCC_TRUE
881 am__fastdepCC_FALSE
882 LIBWRAP
883 HAVE_LIBWRAP
884 HAVE_TCP_WRAPPER
885 CXX
886 CXXFLAGS
887 ac_ct_CXX
888 CXXDEPMODE
889 am__fastdepCXX_TRUE
890 am__fastdepCXX_FALSE
891 CPP
892 LN_S
893 SED
894 GREP
895 EGREP
896 ECHO
897 AR
898 RANLIB
899 CXXCPP
900 F77
901 FFLAGS
902 ac_ct_F77
903 LIBTOOL
904 CC_FOR_BUILD
905 LD
906 LIBNSL
907 PKG_CONFIG
908 RPCSECGSS_CFLAGS
909 RPCSECGSS_LIBS
910 GSSGLUE_CFLAGS
911 GSSGLUE_LIBS
912 LIBSOCKET
913 LIBCRYPT
914 LIBBSD
915 LIBBLKID
916 KRBDIR
917 KRBLIBS
918 KRBCFLAGS
919 KRBLDFLAGS
920 K5VERS
921 ALLOCA
922 LIBOBJS
923 CFLAGS_FOR_BUILD
924 CXXFLAGS_FOR_BUILD
925 CPPFLAGS_FOR_BUILD
926 LDFLAGS_FOR_BUILD
927 AM_CPPFLAGS
928 AM_CFLAGS
929 ACLOCAL_AMFLAGS
930 LTLIBOBJS'
931 ac_subst_files=''
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CXX
941 CXXFLAGS
942 CCC
943 CPP
944 CXXCPP
945 F77
946 FFLAGS
947 PKG_CONFIG
948 RPCSECGSS_CFLAGS
949 RPCSECGSS_LIBS
950 GSSGLUE_CFLAGS
951 GSSGLUE_LIBS'
952
953
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004   # If the previous option needs an argument, assign it.
1005   if test -n "$ac_prev"; then
1006     eval $ac_prev=\$ac_option
1007     ac_prev=
1008     continue
1009   fi
1010
1011   case $ac_option in
1012   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013   *)    ac_optarg=yes ;;
1014   esac
1015
1016   # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018   case $ac_dashdash$ac_option in
1019   --)
1020     ac_dashdash=yes ;;
1021
1022   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023     ac_prev=bindir ;;
1024   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025     bindir=$ac_optarg ;;
1026
1027   -build | --build | --buil | --bui | --bu)
1028     ac_prev=build_alias ;;
1029   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030     build_alias=$ac_optarg ;;
1031
1032   -cache-file | --cache-file | --cache-fil | --cache-fi \
1033   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034     ac_prev=cache_file ;;
1035   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037     cache_file=$ac_optarg ;;
1038
1039   --config-cache | -C)
1040     cache_file=config.cache ;;
1041
1042   -datadir | --datadir | --datadi | --datad)
1043     ac_prev=datadir ;;
1044   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045     datadir=$ac_optarg ;;
1046
1047   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048   | --dataroo | --dataro | --datar)
1049     ac_prev=datarootdir ;;
1050   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052     datarootdir=$ac_optarg ;;
1053
1054   -disable-* | --disable-*)
1055     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1059    { (exit 1); exit 1; }; }
1060     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1061     eval enable_$ac_feature=no ;;
1062
1063   -docdir | --docdir | --docdi | --doc | --do)
1064     ac_prev=docdir ;;
1065   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066     docdir=$ac_optarg ;;
1067
1068   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069     ac_prev=dvidir ;;
1070   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071     dvidir=$ac_optarg ;;
1072
1073   -enable-* | --enable-*)
1074     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080     eval enable_$ac_feature=\$ac_optarg ;;
1081
1082   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084   | --exec | --exe | --ex)
1085     ac_prev=exec_prefix ;;
1086   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088   | --exec=* | --exe=* | --ex=*)
1089     exec_prefix=$ac_optarg ;;
1090
1091   -gas | --gas | --ga | --g)
1092     # Obsolete; use --with-gas.
1093     with_gas=yes ;;
1094
1095   -help | --help | --hel | --he | -h)
1096     ac_init_help=long ;;
1097   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098     ac_init_help=recursive ;;
1099   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100     ac_init_help=short ;;
1101
1102   -host | --host | --hos | --ho)
1103     ac_prev=host_alias ;;
1104   -host=* | --host=* | --hos=* | --ho=*)
1105     host_alias=$ac_optarg ;;
1106
1107   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108     ac_prev=htmldir ;;
1109   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110   | --ht=*)
1111     htmldir=$ac_optarg ;;
1112
1113   -includedir | --includedir | --includedi | --included | --include \
1114   | --includ | --inclu | --incl | --inc)
1115     ac_prev=includedir ;;
1116   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117   | --includ=* | --inclu=* | --incl=* | --inc=*)
1118     includedir=$ac_optarg ;;
1119
1120   -infodir | --infodir | --infodi | --infod | --info | --inf)
1121     ac_prev=infodir ;;
1122   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123     infodir=$ac_optarg ;;
1124
1125   -libdir | --libdir | --libdi | --libd)
1126     ac_prev=libdir ;;
1127   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128     libdir=$ac_optarg ;;
1129
1130   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131   | --libexe | --libex | --libe)
1132     ac_prev=libexecdir ;;
1133   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134   | --libexe=* | --libex=* | --libe=*)
1135     libexecdir=$ac_optarg ;;
1136
1137   -localedir | --localedir | --localedi | --localed | --locale)
1138     ac_prev=localedir ;;
1139   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140     localedir=$ac_optarg ;;
1141
1142   -localstatedir | --localstatedir | --localstatedi | --localstated \
1143   | --localstate | --localstat | --localsta | --localst | --locals)
1144     ac_prev=localstatedir ;;
1145   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147     localstatedir=$ac_optarg ;;
1148
1149   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150     ac_prev=mandir ;;
1151   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152     mandir=$ac_optarg ;;
1153
1154   -nfp | --nfp | --nf)
1155     # Obsolete; use --without-fp.
1156     with_fp=no ;;
1157
1158   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159   | --no-cr | --no-c | -n)
1160     no_create=yes ;;
1161
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     no_recursion=yes ;;
1165
1166   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168   | --oldin | --oldi | --old | --ol | --o)
1169     ac_prev=oldincludedir ;;
1170   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173     oldincludedir=$ac_optarg ;;
1174
1175   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176     ac_prev=prefix ;;
1177   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178     prefix=$ac_optarg ;;
1179
1180   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181   | --program-pre | --program-pr | --program-p)
1182     ac_prev=program_prefix ;;
1183   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185     program_prefix=$ac_optarg ;;
1186
1187   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188   | --program-suf | --program-su | --program-s)
1189     ac_prev=program_suffix ;;
1190   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192     program_suffix=$ac_optarg ;;
1193
1194   -program-transform-name | --program-transform-name \
1195   | --program-transform-nam | --program-transform-na \
1196   | --program-transform-n | --program-transform- \
1197   | --program-transform | --program-transfor \
1198   | --program-transfo | --program-transf \
1199   | --program-trans | --program-tran \
1200   | --progr-tra | --program-tr | --program-t)
1201     ac_prev=program_transform_name ;;
1202   -program-transform-name=* | --program-transform-name=* \
1203   | --program-transform-nam=* | --program-transform-na=* \
1204   | --program-transform-n=* | --program-transform-=* \
1205   | --program-transform=* | --program-transfor=* \
1206   | --program-transfo=* | --program-transf=* \
1207   | --program-trans=* | --program-tran=* \
1208   | --progr-tra=* | --program-tr=* | --program-t=*)
1209     program_transform_name=$ac_optarg ;;
1210
1211   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212     ac_prev=pdfdir ;;
1213   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214     pdfdir=$ac_optarg ;;
1215
1216   -psdir | --psdir | --psdi | --psd | --ps)
1217     ac_prev=psdir ;;
1218   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219     psdir=$ac_optarg ;;
1220
1221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222   | -silent | --silent | --silen | --sile | --sil)
1223     silent=yes ;;
1224
1225   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226     ac_prev=sbindir ;;
1227   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228   | --sbi=* | --sb=*)
1229     sbindir=$ac_optarg ;;
1230
1231   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233   | --sharedst | --shareds | --shared | --share | --shar \
1234   | --sha | --sh)
1235     ac_prev=sharedstatedir ;;
1236   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239   | --sha=* | --sh=*)
1240     sharedstatedir=$ac_optarg ;;
1241
1242   -site | --site | --sit)
1243     ac_prev=site ;;
1244   -site=* | --site=* | --sit=*)
1245     site=$ac_optarg ;;
1246
1247   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248     ac_prev=srcdir ;;
1249   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250     srcdir=$ac_optarg ;;
1251
1252   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253   | --syscon | --sysco | --sysc | --sys | --sy)
1254     ac_prev=sysconfdir ;;
1255   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257     sysconfdir=$ac_optarg ;;
1258
1259   -target | --target | --targe | --targ | --tar | --ta | --t)
1260     ac_prev=target_alias ;;
1261   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262     target_alias=$ac_optarg ;;
1263
1264   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265     verbose=yes ;;
1266
1267   -version | --version | --versio | --versi | --vers | -V)
1268     ac_init_version=: ;;
1269
1270   -with-* | --with-*)
1271     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid package name: $ac_package" >&2
1275    { (exit 1); exit 1; }; }
1276     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277     eval with_$ac_package=\$ac_optarg ;;
1278
1279   -without-* | --without-*)
1280     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid package name: $ac_package" >&2
1284    { (exit 1); exit 1; }; }
1285     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1286     eval with_$ac_package=no ;;
1287
1288   --x)
1289     # Obsolete; use --with-x.
1290     with_x=yes ;;
1291
1292   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293   | --x-incl | --x-inc | --x-in | --x-i)
1294     ac_prev=x_includes ;;
1295   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297     x_includes=$ac_optarg ;;
1298
1299   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301     ac_prev=x_libraries ;;
1302   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304     x_libraries=$ac_optarg ;;
1305
1306   -*) { echo "$as_me: error: unrecognized option: $ac_option
1307 Try \`$0 --help' for more information." >&2
1308    { (exit 1); exit 1; }; }
1309     ;;
1310
1311   *=*)
1312     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1315       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1316    { (exit 1); exit 1; }; }
1317     eval $ac_envvar=\$ac_optarg
1318     export $ac_envvar ;;
1319
1320   *)
1321     # FIXME: should be removed in autoconf 3.0.
1322     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326     ;;
1327
1328   esac
1329 done
1330
1331 if test -n "$ac_prev"; then
1332   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333   { echo "$as_me: error: missing argument to $ac_option" >&2
1334    { (exit 1); exit 1; }; }
1335 fi
1336
1337 # Be sure to have absolute directory names.
1338 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339                 datadir sysconfdir sharedstatedir localstatedir includedir \
1340                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341                 libdir localedir mandir
1342 do
1343   eval ac_val=\$$ac_var
1344   case $ac_val in
1345     [\\/$]* | ?:[\\/]* )  continue;;
1346     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347   esac
1348   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1349    { (exit 1); exit 1; }; }
1350 done
1351
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1358
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361   if test "x$build_alias" = x; then
1362     cross_compiling=maybe
1363     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1364     If a cross compiler is detected then cross compile mode will be used." >&2
1365   elif test "x$build_alias" != "x$host_alias"; then
1366     cross_compiling=yes
1367   fi
1368 fi
1369
1370 ac_tool_prefix=
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373 test "$silent" = yes && exec 6>/dev/null
1374
1375
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379   { echo "$as_me: error: Working directory cannot be determined" >&2
1380    { (exit 1); exit 1; }; }
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382   { echo "$as_me: error: pwd does not report name of working directory" >&2
1383    { (exit 1); exit 1; }; }
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388   ac_srcdir_defaulted=yes
1389   # Try the directory containing this script, then the parent directory.
1390   ac_confdir=`$as_dirname -- "$0" ||
1391 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392          X"$0" : 'X\(//\)[^/]' \| \
1393          X"$0" : 'X\(//\)$' \| \
1394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1395 echo X"$0" |
1396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)[^/].*/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\).*/{
1409             s//\1/
1410             q
1411           }
1412           s/.*/./; q'`
1413   srcdir=$ac_confdir
1414   if test ! -r "$srcdir/$ac_unique_file"; then
1415     srcdir=..
1416   fi
1417 else
1418   ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1423    { (exit 1); exit 1; }; }
1424 fi
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1428    { (exit 1); exit 1; }; }
1429         pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432   srcdir=.
1433 fi
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_env_${ac_var}_value=\$${ac_var}
1443   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451   # Omit some internal or obsolete options to make the list less imposing.
1452   # This message is too long to be a string in the A/UX 3.1 sh.
1453   cat <<_ACEOF
1454 \`configure' configures linux nfs-utils 1.1.4 to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE.  See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464   -h, --help              display this help and exit
1465       --help=short        display options specific to this package
1466       --help=recursive    display the short help of all the included packages
1467   -V, --version           display version information and exit
1468   -q, --quiet, --silent   do not print \`checking...' messages
1469       --cache-file=FILE   cache test results in FILE [disabled]
1470   -C, --config-cache      alias for \`--cache-file=config.cache'
1471   -n, --no-create         do not create output files
1472       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475   --prefix=PREFIX         install architecture-independent files in PREFIX
1476                           [$ac_default_prefix]
1477   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1478                           [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488   --bindir=DIR           user executables [EPREFIX/bin]
1489   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1490   --libexecdir=DIR       program executables [EPREFIX/libexec]
1491   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1492   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1493   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1494   --libdir=DIR           object code libraries [EPREFIX/lib]
1495   --includedir=DIR       C header files [PREFIX/include]
1496   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1497   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1498   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1499   --infodir=DIR          info documentation [DATAROOTDIR/info]
1500   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1501   --mandir=DIR           man documentation [DATAROOTDIR/man]
1502   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1503   --htmldir=DIR          html documentation [DOCDIR]
1504   --dvidir=DIR           dvi documentation [DOCDIR]
1505   --pdfdir=DIR           pdf documentation [DOCDIR]
1506   --psdir=DIR            ps documentation [DOCDIR]
1507 _ACEOF
1508
1509   cat <<\_ACEOF
1510
1511 Program names:
1512   --program-prefix=PREFIX            prepend PREFIX to installed program names
1513   --program-suffix=SUFFIX            append SUFFIX to installed program names
1514   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1515
1516 System types:
1517   --build=BUILD     configure for building on BUILD [guessed]
1518   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of linux nfs-utils 1.1.4:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --enable-maintainer-mode  enable make rules and dependencies not useful
1532                           (and sometimes confusing) to the casual installer
1533   --enable-nfsv3          enable support for NFSv3 [default=yes]
1534   --enable-nfsv4          enable support for NFSv4 [default=yes]
1535   --enable-gss            enable support for rpcsec_gss [default=yes]
1536   --enable-kprefix        install progs as rpc.knfsd etc
1537   --without-uuid          Exclude uuid support and so avoid possibly buggy
1538                           libblkid
1539   --enable-mount          Create mount.nfs and don't use the util-linux
1540                           mount(8) functionality. [default=yes]
1541   --enable-ipv6           enable support for IPv6 [default=no]
1542   --disable-dependency-tracking  speeds up one-time build
1543   --enable-dependency-tracking   do not reject slow dependency extractors
1544   --disable-largefile     omit support for large files
1545   --enable-shared[=PKGS]  build shared libraries [default=yes]
1546   --enable-static[=PKGS]  build static libraries [default=yes]
1547   --enable-fast-install[=PKGS]
1548                           optimize for fast installation [default=yes]
1549   --disable-libtool-lock  avoid locking (might break parallel builds)
1550
1551 Optional Packages:
1552   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554   --with-release=XXX      set release to XXX [1]
1555   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1556   --with-statduser=rpcuser
1557                           statd to run under [rpcuser or nobody]
1558   --with-start-statd=scriptname
1559                           When an nfs filesystems is mounted with locking, run
1560                           this script
1561   --with-rpcgen=internal  use internal rpcgen instead of system one
1562   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1563                  (optionally in PATH)
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565   --with-pic              try to use only PIC/non-PIC objects [default=use
1566                           both]
1567   --with-tags[=TAGS]      include additional configurations [automatic]
1568   --with-krb5=DIR         use Kerberos v5 installation in DIR
1569
1570 Some influential environment variables:
1571   CC          C compiler command
1572   CFLAGS      C compiler flags
1573   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1574               nonstandard directory <lib dir>
1575   LIBS        libraries to pass to the linker, e.g. -l<library>
1576   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577               you have headers in a nonstandard directory <include dir>
1578   CXX         C++ compiler command
1579   CXXFLAGS    C++ compiler flags
1580   CPP         C preprocessor
1581   CXXCPP      C++ preprocessor
1582   F77         Fortran 77 compiler command
1583   FFLAGS      Fortran 77 compiler flags
1584   PKG_CONFIG  path to pkg-config utility
1585   RPCSECGSS_CFLAGS
1586               C compiler flags for RPCSECGSS, overriding pkg-config
1587   RPCSECGSS_LIBS
1588               linker flags for RPCSECGSS, overriding pkg-config
1589   GSSGLUE_CFLAGS
1590               C compiler flags for GSSGLUE, overriding pkg-config
1591   GSSGLUE_LIBS
1592               linker flags for GSSGLUE, overriding pkg-config
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to <linux-nfs@vger.kernel.org>.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603   # If there are subdirs, report their specific --help.
1604   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605     test -d "$ac_dir" || continue
1606     ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612   # A ".." for each directory in $ac_dir_suffix.
1613   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614   case $ac_top_builddir_sub in
1615   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617   esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625   .)  # We are building in place.
1626     ac_srcdir=.
1627     ac_top_srcdir=$ac_top_builddir_sub
1628     ac_abs_top_srcdir=$ac_pwd ;;
1629   [\\/]* | ?:[\\/]* )  # Absolute name.
1630     ac_srcdir=$srcdir$ac_dir_suffix;
1631     ac_top_srcdir=$srcdir
1632     ac_abs_top_srcdir=$srcdir ;;
1633   *) # Relative name.
1634     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635     ac_top_srcdir=$ac_top_build_prefix$srcdir
1636     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640     cd "$ac_dir" || { ac_status=$?; continue; }
1641     # Check for guested configure.
1642     if test -f "$ac_srcdir/configure.gnu"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645     elif test -f "$ac_srcdir/configure"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure" --help=recursive
1648     else
1649       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650     fi || ac_status=$?
1651     cd "$ac_pwd" || { ac_status=$?; break; }
1652   done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657   cat <<\_ACEOF
1658 linux nfs-utils configure 1.1.4
1659 generated by GNU Autoconf 2.61
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666   exit
1667 fi
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1671
1672 It was created by linux nfs-utils $as_me 1.1.4, which was
1673 generated by GNU Autoconf 2.61.  Invocation command line was
1674
1675   $ $0 $@
1676
1677 _ACEOF
1678 exec 5>>config.log
1679 {
1680 cat <<_ASUNAME
1681 ## --------- ##
1682 ## Platform. ##
1683 ## --------- ##
1684
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1693
1694 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1695 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1698 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1699 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1700 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1701
1702 _ASUNAME
1703
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   echo "PATH: $as_dir"
1710 done
1711 IFS=$as_save_IFS
1712
1713 } >&5
1714
1715 cat >&5 <<_ACEOF
1716
1717
1718 ## ----------- ##
1719 ## Core tests. ##
1720 ## ----------- ##
1721
1722 _ACEOF
1723
1724
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_configure_args=
1731 ac_configure_args0=
1732 ac_configure_args1=
1733 ac_must_keep_next=false
1734 for ac_pass in 1 2
1735 do
1736   for ac_arg
1737   do
1738     case $ac_arg in
1739     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741     | -silent | --silent | --silen | --sile | --sil)
1742       continue ;;
1743     *\'*)
1744       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745     esac
1746     case $ac_pass in
1747     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748     2)
1749       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750       if test $ac_must_keep_next = true; then
1751         ac_must_keep_next=false # Got value, back to normal.
1752       else
1753         case $ac_arg in
1754           *=* | --config-cache | -C | -disable-* | --disable-* \
1755           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757           | -with-* | --with-* | -without-* | --without-* | --x)
1758             case "$ac_configure_args0 " in
1759               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760             esac
1761             ;;
1762           -* ) ac_must_keep_next=true ;;
1763         esac
1764       fi
1765       ac_configure_args="$ac_configure_args '$ac_arg'"
1766       ;;
1767     esac
1768   done
1769 done
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log.  We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779   # Save into config.log some information that might help in debugging.
1780   {
1781     echo
1782
1783     cat <<\_ASBOX
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1787 _ASBOX
1788     echo
1789     # The following way of writing the cache mishandles newlines in values,
1790 (
1791   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792     eval ac_val=\$$ac_var
1793     case $ac_val in #(
1794     *${as_nl}*)
1795       case $ac_var in #(
1796       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1797 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1798       esac
1799       case $ac_var in #(
1800       _ | IFS | as_nl) ;; #(
1801       *) $as_unset $ac_var ;;
1802       esac ;;
1803     esac
1804   done
1805   (set) 2>&1 |
1806     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807     *${as_nl}ac_space=\ *)
1808       sed -n \
1809         "s/'\''/'\''\\\\'\'''\''/g;
1810           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811       ;; #(
1812     *)
1813       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1814       ;;
1815     esac |
1816     sort
1817 )
1818     echo
1819
1820     cat <<\_ASBOX
1821 ## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##
1824 _ASBOX
1825     echo
1826     for ac_var in $ac_subst_vars
1827     do
1828       eval ac_val=\$$ac_var
1829       case $ac_val in
1830       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831       esac
1832       echo "$ac_var='\''$ac_val'\''"
1833     done | sort
1834     echo
1835
1836     if test -n "$ac_subst_files"; then
1837       cat <<\_ASBOX
1838 ## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##
1841 _ASBOX
1842       echo
1843       for ac_var in $ac_subst_files
1844       do
1845         eval ac_val=\$$ac_var
1846         case $ac_val in
1847         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848         esac
1849         echo "$ac_var='\''$ac_val'\''"
1850       done | sort
1851       echo
1852     fi
1853
1854     if test -s confdefs.h; then
1855       cat <<\_ASBOX
1856 ## ----------- ##
1857 ## confdefs.h. ##
1858 ## ----------- ##
1859 _ASBOX
1860       echo
1861       cat confdefs.h
1862       echo
1863     fi
1864     test "$ac_signal" != 0 &&
1865       echo "$as_me: caught signal $ac_signal"
1866     echo "$as_me: exit $exit_status"
1867   } >&5
1868   rm -f core *.core core.conftest.* &&
1869     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870     exit $exit_status
1871 ' 0
1872 for ac_signal in 1 2 13 15; do
1873   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 done
1875 ac_signal=0
1876
1877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1878 rm -f -r conftest* confdefs.h
1879
1880 # Predefined preprocessor variables.
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 _ACEOF
1905
1906
1907 # Let the site file select an alternate cache file if it wants to.
1908 # Prefer explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910   set x "$CONFIG_SITE"
1911 elif test "x$prefix" != xNONE; then
1912   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1913 else
1914   set x "$ac_default_prefix/share/config.site" \
1915         "$ac_default_prefix/etc/config.site"
1916 fi
1917 shift
1918 for ac_site_file
1919 do
1920   if test -r "$ac_site_file"; then
1921     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 echo "$as_me: loading site script $ac_site_file" >&6;}
1923     sed 's/^/| /' "$ac_site_file" >&5
1924     . "$ac_site_file"
1925   fi
1926 done
1927
1928 if test -r "$cache_file"; then
1929   # Some versions of bash will fail to source /dev/null (special
1930   # files actually), so we avoid doing that.
1931   if test -f "$cache_file"; then
1932     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 echo "$as_me: loading cache $cache_file" >&6;}
1934     case $cache_file in
1935       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936       *)                      . "./$cache_file";;
1937     esac
1938   fi
1939 else
1940   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 echo "$as_me: creating cache $cache_file" >&6;}
1942   >$cache_file
1943 fi
1944
1945 # Check that the precious variables saved in the cache have kept the same
1946 # value.
1947 ac_cache_corrupted=false
1948 for ac_var in $ac_precious_vars; do
1949   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950   eval ac_new_set=\$ac_env_${ac_var}_set
1951   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952   eval ac_new_val=\$ac_env_${ac_var}_value
1953   case $ac_old_set,$ac_new_set in
1954     set,)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,set)
1959       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961       ac_cache_corrupted=: ;;
1962     ,);;
1963     *)
1964       if test "x$ac_old_val" != "x$ac_new_val"; then
1965         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1968 echo "$as_me:   former value:  $ac_old_val" >&2;}
1969         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1970 echo "$as_me:   current value: $ac_new_val" >&2;}
1971         ac_cache_corrupted=:
1972       fi;;
1973   esac
1974   # Pass precious variables to config.status.
1975   if test "$ac_new_set" = set; then
1976     case $ac_new_val in
1977     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978     *) ac_arg=$ac_var=$ac_new_val ;;
1979     esac
1980     case " $ac_configure_args " in
1981       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1982       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983     esac
1984   fi
1985 done
1986 if $ac_cache_corrupted; then
1987   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
2024
2025 ac_aux_dir=
2026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027   if test -f "$ac_dir/install-sh"; then
2028     ac_aux_dir=$ac_dir
2029     ac_install_sh="$ac_aux_dir/install-sh -c"
2030     break
2031   elif test -f "$ac_dir/install.sh"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/install.sh -c"
2034     break
2035   elif test -f "$ac_dir/shtool"; then
2036     ac_aux_dir=$ac_dir
2037     ac_install_sh="$ac_aux_dir/shtool install -c"
2038     break
2039   fi
2040 done
2041 if test -z "$ac_aux_dir"; then
2042   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2044    { (exit 1); exit 1; }; }
2045 fi
2046
2047 # These three variables are undocumented and unsupported,
2048 # and are intended to be withdrawn in a future Autoconf release.
2049 # They can cause serious problems if a builder's source tree is in a directory
2050 # whose full name contains unusual characters.
2051 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2052 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2053 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2054
2055
2056 # Make sure we can run config.sub.
2057 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2058   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2059 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 { echo "$as_me:$LINENO: checking build system type" >&5
2063 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_build+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   ac_build_alias=$build_alias
2068 test "x$ac_build_alias" = x &&
2069   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2070 test "x$ac_build_alias" = x &&
2071   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2072 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2073    { (exit 1); exit 1; }; }
2074 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2075   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2077    { (exit 1); exit 1; }; }
2078
2079 fi
2080 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2081 echo "${ECHO_T}$ac_cv_build" >&6; }
2082 case $ac_cv_build in
2083 *-*-*) ;;
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2085 echo "$as_me: error: invalid value of canonical build" >&2;}
2086    { (exit 1); exit 1; }; };;
2087 esac
2088 build=$ac_cv_build
2089 ac_save_IFS=$IFS; IFS='-'
2090 set x $ac_cv_build
2091 shift
2092 build_cpu=$1
2093 build_vendor=$2
2094 shift; shift
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2097 build_os=$*
2098 IFS=$ac_save_IFS
2099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2100
2101
2102 { echo "$as_me:$LINENO: checking host system type" >&5
2103 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_host+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test "x$host_alias" = x; then
2108   ac_cv_host=$ac_cv_build
2109 else
2110   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2111     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2113    { (exit 1); exit 1; }; }
2114 fi
2115
2116 fi
2117 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2118 echo "${ECHO_T}$ac_cv_host" >&6; }
2119 case $ac_cv_host in
2120 *-*-*) ;;
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2122 echo "$as_me: error: invalid value of canonical host" >&2;}
2123    { (exit 1); exit 1; }; };;
2124 esac
2125 host=$ac_cv_host
2126 ac_save_IFS=$IFS; IFS='-'
2127 set x $ac_cv_host
2128 shift
2129 host_cpu=$1
2130 host_vendor=$2
2131 shift; shift
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2134 host_os=$*
2135 IFS=$ac_save_IFS
2136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2137
2138
2139
2140 am__api_version='1.10'
2141
2142 # Find a good install program.  We prefer a C program (faster),
2143 # so one script is as good as another.  But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2148 # AIX /bin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # OS/2's system install, which has a completely different semantic
2154 # ./install, which can be erroneously created by make from ./install.sh.
2155 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2156 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2157 if test -z "$INSTALL"; then
2158 if test "${ac_cv_path_install+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   # Account for people who put trailing slashes in PATH elements.
2167 case $as_dir/ in
2168   ./ | .// | /cC/* | \
2169   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2170   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2171   /usr/ucb/* ) ;;
2172   *)
2173     # OSF1 and SCO ODT 3.0 have their own names for install.
2174     # Don't use installbsd from OSF since it installs stuff as root
2175     # by default.
2176     for ac_prog in ginstall scoinst install; do
2177       for ac_exec_ext in '' $ac_executable_extensions; do
2178         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2179           if test $ac_prog = install &&
2180             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181             # AIX install.  It has an incompatible calling convention.
2182             :
2183           elif test $ac_prog = install &&
2184             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2185             # program-specific install script used by HP pwplus--don't use.
2186             :
2187           else
2188             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2189             break 3
2190           fi
2191         fi
2192       done
2193     done
2194     ;;
2195 esac
2196 done
2197 IFS=$as_save_IFS
2198
2199
2200 fi
2201   if test "${ac_cv_path_install+set}" = set; then
2202     INSTALL=$ac_cv_path_install
2203   else
2204     # As a last resort, use the slow shell script.  Don't cache a
2205     # value for INSTALL within a source directory, because that will
2206     # break other packages using the cache if that directory is
2207     # removed, or if the value is a relative name.
2208     INSTALL=$ac_install_sh
2209   fi
2210 fi
2211 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2212 echo "${ECHO_T}$INSTALL" >&6; }
2213
2214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215 # It thinks the first close brace ends the variable substitution.
2216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217
2218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219
2220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221
2222 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2223 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2224 # Just in case
2225 sleep 1
2226 echo timestamp > conftest.file
2227 # Do `set' in a subshell so we don't clobber the current shell's
2228 # arguments.  Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2231 # directory).
2232 if (
2233    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2234    if test "$*" = "X"; then
2235       # -L didn't work.
2236       set X `ls -t $srcdir/configure conftest.file`
2237    fi
2238    rm -f conftest.file
2239    if test "$*" != "X $srcdir/configure conftest.file" \
2240       && test "$*" != "X conftest.file $srcdir/configure"; then
2241
2242       # If neither matched, then we have a broken ls.  This can happen
2243       # if, for instance, CONFIG_SHELL is bash and it inherits a
2244       # broken ls alias from the environment.  This has actually
2245       # happened.  Such a system could not be considered "sane".
2246       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2247 alias in your environment" >&5
2248 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2249 alias in your environment" >&2;}
2250    { (exit 1); exit 1; }; }
2251    fi
2252
2253    test "$2" = conftest.file
2254    )
2255 then
2256    # Ok.
2257    :
2258 else
2259    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2260 Check your system clock" >&5
2261 echo "$as_me: error: newly created file is older than distributed files!
2262 Check your system clock" >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2267 test "$program_prefix" != NONE &&
2268   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2269 # Use a double $ so make ignores it.
2270 test "$program_suffix" != NONE &&
2271   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2272 # Double any \ or $.  echo might interpret backslashes.
2273 # By default was `s,x,x', remove it if useless.
2274 cat <<\_ACEOF >conftest.sed
2275 s/[\\$]/&&/g;s/;s,x,x,$//
2276 _ACEOF
2277 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2278 rm -f conftest.sed
2279
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2284 # Use eval to expand $SHELL
2285 if eval "$MISSING --run true"; then
2286   am_missing_run="$MISSING --run "
2287 else
2288   am_missing_run=
2289   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2290 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291 fi
2292
2293 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2294 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2295 if test -z "$MKDIR_P"; then
2296   if test "${ac_cv_path_mkdir+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_prog in mkdir gmkdir; do
2305          for ac_exec_ext in '' $ac_executable_extensions; do
2306            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2307            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2308              'mkdir (GNU coreutils) '* | \
2309              'mkdir (coreutils) '* | \
2310              'mkdir (fileutils) '4.1*)
2311                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2312                break 3;;
2313            esac
2314          done
2315        done
2316 done
2317 IFS=$as_save_IFS
2318
2319 fi
2320
2321   if test "${ac_cv_path_mkdir+set}" = set; then
2322     MKDIR_P="$ac_cv_path_mkdir -p"
2323   else
2324     # As a last resort, use the slow shell script.  Don't cache a
2325     # value for MKDIR_P within a source directory, because that will
2326     # break other packages using the cache if that directory is
2327     # removed, or if the value is a relative name.
2328     test -d ./--version && rmdir ./--version
2329     MKDIR_P="$ac_install_sh -d"
2330   fi
2331 fi
2332 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2333 echo "${ECHO_T}$MKDIR_P" >&6; }
2334
2335 mkdir_p="$MKDIR_P"
2336 case $mkdir_p in
2337   [\\/$]* | ?:[\\/]*) ;;
2338   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2339 esac
2340
2341 for ac_prog in gawk mawk nawk awk
2342 do
2343   # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_AWK+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$AWK"; then
2351   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_AWK="$ac_prog"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 AWK=$ac_cv_prog_AWK
2371 if test -n "$AWK"; then
2372   { echo "$as_me:$LINENO: result: $AWK" >&5
2373 echo "${ECHO_T}$AWK" >&6; }
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379
2380   test -n "$AWK" && break
2381 done
2382
2383 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2384 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2385 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.make <<\_ACEOF
2390 SHELL = /bin/sh
2391 all:
2392         @echo '@@@%%%=$(MAKE)=@@@%%%'
2393 _ACEOF
2394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396   *@@@%%%=?*=@@@%%%*)
2397     eval ac_cv_prog_make_${ac_make}_set=yes;;
2398   *)
2399     eval ac_cv_prog_make_${ac_make}_set=no;;
2400 esac
2401 rm -f conftest.make
2402 fi
2403 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404   { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2406   SET_MAKE=
2407 else
2408   { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410   SET_MAKE="MAKE=${MAKE-make}"
2411 fi
2412
2413 rm -rf .tst 2>/dev/null
2414 mkdir .tst 2>/dev/null
2415 if test -d .tst; then
2416   am__leading_dot=.
2417 else
2418   am__leading_dot=_
2419 fi
2420 rmdir .tst 2>/dev/null
2421
2422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2423   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2424   # is not polluted with repeated "-I."
2425   am__isrc=' -I$(srcdir)'
2426   # test to see if srcdir already configured
2427   if test -f $srcdir/config.status; then
2428     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2429 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2430    { (exit 1); exit 1; }; }
2431   fi
2432 fi
2433
2434 # test whether we have cygpath
2435 if test -z "$CYGPATH_W"; then
2436   if (cygpath --version) >/dev/null 2>/dev/null; then
2437     CYGPATH_W='cygpath -w'
2438   else
2439     CYGPATH_W=echo
2440   fi
2441 fi
2442
2443
2444 # Define the identity of the package.
2445  PACKAGE='nfs-utils'
2446  VERSION='1.1.4'
2447
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE "$PACKAGE"
2451 _ACEOF
2452
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define VERSION "$VERSION"
2456 _ACEOF
2457
2458 # Some tools Automake needs.
2459
2460 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461
2462
2463 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464
2465
2466 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2467
2468
2469 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470
2471
2472 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2473
2474 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2475
2476 # Installed binaries are usually stripped using `strip' when the user
2477 # run `make install-strip'.  However `strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the `STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481   if test -n "$ac_tool_prefix"; then
2482   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_STRIP+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$STRIP"; then
2490   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511   { echo "$as_me:$LINENO: result: $STRIP" >&5
2512 echo "${ECHO_T}$STRIP" >&6; }
2513 else
2514   { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_STRIP"; then
2521   ac_ct_STRIP=$STRIP
2522   # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$ac_ct_STRIP"; then
2530   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539     ac_cv_prog_ac_ct_STRIP="strip"
2540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2552 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2553 else
2554   { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2556 fi
2557
2558   if test "x$ac_ct_STRIP" = x; then
2559     STRIP=":"
2560   else
2561     case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet.  If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet.  If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571     STRIP=$ac_ct_STRIP
2572   fi
2573 else
2574   STRIP="$ac_cv_prog_STRIP"
2575 fi
2576
2577 fi
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580 # We need awk for the "check" target.  The system "awk" is bad on
2581 # some platforms.
2582 # Always define AMTAR for backward compatibility.
2583
2584 AMTAR=${AMTAR-"${am_missing_run}tar"}
2585
2586 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2587
2588
2589
2590
2591
2592
2593
2594 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2596     # Check whether --enable-maintainer-mode was given.
2597 if test "${enable_maintainer_mode+set}" = set; then
2598   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599 else
2600   USE_MAINTAINER_MODE=no
2601 fi
2602
2603   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2604 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2605    if test $USE_MAINTAINER_MODE = yes; then
2606   MAINTAINER_MODE_TRUE=
2607   MAINTAINER_MODE_FALSE='#'
2608 else
2609   MAINTAINER_MODE_TRUE='#'
2610   MAINTAINER_MODE_FALSE=
2611 fi
2612
2613   MAINT=$MAINTAINER_MODE_TRUE
2614
2615
2616
2617
2618 # Check whether --with-release was given.
2619 if test "${with_release+set}" = set; then
2620   withval=$with_release; RELEASE=$withval
2621 else
2622   RELEASE=1
2623 fi
2624
2625
2626
2627 # Check whether --with-statedir was given.
2628 if test "${with_statedir+set}" = set; then
2629   withval=$with_statedir; statedir=$withval
2630 else
2631   statedir=/var/lib/nfs
2632 fi
2633
2634
2635
2636 # Check whether --with-statduser was given.
2637 if test "${with_statduser+set}" = set; then
2638   withval=$with_statduser; statduser=$withval
2639 else
2640   if test "x$cross_compiling" = "xno"; then
2641                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2642                         statduser=rpcuser
2643                 else
2644                         statduser=nobody
2645                 fi
2646         else
2647                 statduser=nobody
2648         fi
2649 fi
2650
2651
2652
2653 # Check whether --with-start-statd was given.
2654 if test "${with_start_statd+set}" = set; then
2655   withval=$with_start_statd; startstatd=$withval
2656 else
2657   startstatd=/usr/sbin/start-statd
2658
2659 fi
2660
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define START_STATD "$startstatd"
2665 _ACEOF
2666
2667 # Check whether --enable-nfsv3 was given.
2668 if test "${enable_nfsv3+set}" = set; then
2669   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2670 else
2671   enable_nfsv3=yes
2672 fi
2673
2674         if test "$enable_nfsv3" = yes; then
2675
2676 cat >>confdefs.h <<\_ACEOF
2677 #define NFS3_SUPPORTED 1
2678 _ACEOF
2679
2680         else
2681                 enable_nfsv3=
2682         fi
2683
2684 # Check whether --enable-nfsv4 was given.
2685 if test "${enable_nfsv4+set}" = set; then
2686   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2687 else
2688   enable_nfsv4=yes
2689 fi
2690
2691         if test "$enable_nfsv4" = yes; then
2692
2693 cat >>confdefs.h <<\_ACEOF
2694 #define NFS4_SUPPORTED 1
2695 _ACEOF
2696
2697                 IDMAPD=idmapd
2698         else
2699                 enable_nfsv4=
2700                 IDMAPD=
2701         fi
2702
2703
2704          if test "$enable_nfsv4" = "yes"; then
2705   CONFIG_NFSV4_TRUE=
2706   CONFIG_NFSV4_FALSE='#'
2707 else
2708   CONFIG_NFSV4_TRUE='#'
2709   CONFIG_NFSV4_FALSE=
2710 fi
2711
2712 # Check whether --enable-gss was given.
2713 if test "${enable_gss+set}" = set; then
2714   enableval=$enable_gss; enable_gss=$enableval
2715 else
2716   enable_gss=yes
2717 fi
2718
2719         if test "$enable_gss" = yes; then
2720
2721 cat >>confdefs.h <<\_ACEOF
2722 #define GSS_SUPPORTED 1
2723 _ACEOF
2724
2725                 GSSD=gssd
2726                 SVCGSSD=svcgssd
2727         else
2728                 enable_gss=
2729                 GSSD=
2730                 SVCGSSD=
2731         fi
2732
2733
2734
2735          if test "$enable_gss" = "yes"; then
2736   CONFIG_GSS_TRUE=
2737   CONFIG_GSS_FALSE='#'
2738 else
2739   CONFIG_GSS_TRUE='#'
2740   CONFIG_GSS_FALSE=
2741 fi
2742
2743 # Check whether --enable-kprefix was given.
2744 if test "${enable_kprefix+set}" = set; then
2745   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2746 else
2747   kprefix=
2748 fi
2749
2750
2751
2752 # Check whether --with-rpcgen was given.
2753 if test "${with_rpcgen+set}" = set; then
2754   withval=$with_rpcgen; rpcgen_path=$withval
2755 else
2756   rpcgen_path=yes
2757 fi
2758
2759         RPCGEN_PATH=
2760         if test "$rpcgen_path" == "yes"; then
2761             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2762             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2763         elif test "$rpcgen_path" != "internal"; then
2764             RPCGEN_PATH=$rpcgen_path
2765         fi
2766
2767          if test "$RPCGEN_PATH" == ""; then
2768   CONFIG_RPCGEN_TRUE=
2769   CONFIG_RPCGEN_FALSE='#'
2770 else
2771   CONFIG_RPCGEN_TRUE='#'
2772   CONFIG_RPCGEN_FALSE=
2773 fi
2774
2775 # Check whether --enable-uuid was given.
2776 if test "${enable_uuid+set}" = set; then
2777   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2778 else
2779   choose_blkid=default
2780 fi
2781
2782 # Check whether --enable-mount was given.
2783 if test "${enable_mount+set}" = set; then
2784   enableval=$enable_mount; enable_mount=$enableval
2785 else
2786   enable_mount=yes
2787 fi
2788
2789          if test "$enable_mount" = "yes"; then
2790   CONFIG_MOUNT_TRUE=
2791   CONFIG_MOUNT_FALSE='#'
2792 else
2793   CONFIG_MOUNT_TRUE='#'
2794   CONFIG_MOUNT_FALSE=
2795 fi
2796
2797 # Check whether --enable-ipv6 was given.
2798 if test "${enable_ipv6+set}" = set; then
2799   enableval=$enable_ipv6; enable_ipv6=$enableval
2800 else
2801   enable_ipv6=no
2802 fi
2803
2804         if test "$enable_ipv6" = yes; then
2805
2806 cat >>confdefs.h <<\_ACEOF
2807 #define IPV6_SUPPORTED 1
2808 _ACEOF
2809
2810         else
2811                 enable_ipv6=
2812         fi
2813
2814          if test "$enable_ipv6" = "yes"; then
2815   CONFIG_IPV6_TRUE=
2816   CONFIG_IPV6_FALSE='#'
2817 else
2818   CONFIG_IPV6_TRUE='#'
2819   CONFIG_IPV6_FALSE=
2820 fi
2821
2822
2823 # Check whether user wants TCP wrappers support
2824 DEPDIR="${am__leading_dot}deps"
2825
2826 ac_config_commands="$ac_config_commands depfiles"
2827
2828
2829 am_make=${MAKE-make}
2830 cat > confinc << 'END'
2831 am__doit:
2832         @echo done
2833 .PHONY: am__doit
2834 END
2835 # If we don't find an include directive, just comment out the code.
2836 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2837 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2838 am__include="#"
2839 am__quote=
2840 _am_result=none
2841 # First try GNU make style include.
2842 echo "include confinc" > confmf
2843 # We grep out `Entering directory' and `Leaving directory'
2844 # messages which can occur if `w' ends up in MAKEFLAGS.
2845 # In particular we don't look at `^make:' because GNU make might
2846 # be invoked under some other name (usually "gmake"), in which
2847 # case it prints its new name instead of `make'.
2848 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2849    am__include=include
2850    am__quote=
2851    _am_result=GNU
2852 fi
2853 # Now try BSD make style include.
2854 if test "$am__include" = "#"; then
2855    echo '.include "confinc"' > confmf
2856    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2857       am__include=.include
2858       am__quote="\""
2859       _am_result=BSD
2860    fi
2861 fi
2862
2863
2864 { echo "$as_me:$LINENO: result: $_am_result" >&5
2865 echo "${ECHO_T}$_am_result" >&6; }
2866 rm -f confinc confmf
2867
2868 # Check whether --enable-dependency-tracking was given.
2869 if test "${enable_dependency_tracking+set}" = set; then
2870   enableval=$enable_dependency_tracking;
2871 fi
2872
2873 if test "x$enable_dependency_tracking" != xno; then
2874   am_depcomp="$ac_aux_dir/depcomp"
2875   AMDEPBACKSLASH='\'
2876 fi
2877  if test "x$enable_dependency_tracking" != xno; then
2878   AMDEP_TRUE=
2879   AMDEP_FALSE='#'
2880 else
2881   AMDEP_TRUE='#'
2882   AMDEP_FALSE=
2883 fi
2884
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2923 else
2924   { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_CC"; then
2931   ac_ct_CC=$CC
2932   # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$ac_ct_CC"; then
2940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947   for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_ac_ct_CC="gcc"
2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6; }
2963 else
2964   { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2966 fi
2967
2968   if test "x$ac_ct_CC" = x; then
2969     CC=""
2970   else
2971     case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet.  If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&5
2976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2977 whose name does not start with the host triplet.  If you think this
2978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981     CC=$ac_ct_CC
2982   fi
2983 else
2984   CC="$ac_cv_prog_CC"
2985 fi
2986
2987 if test -z "$CC"; then
2988           if test -n "$ac_tool_prefix"; then
2989     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   if test -n "$CC"; then
2997   ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004   for ac_exec_ext in '' $ac_executable_extensions; do
3005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006     ac_cv_prog_CC="${ac_tool_prefix}cc"
3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3020 else
3021   { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3023 fi
3024
3025
3026   fi
3027 fi
3028 if test -z "$CC"; then
3029   # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039   ac_prog_rejected=no
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048        ac_prog_rejected=yes
3049        continue
3050      fi
3051     ac_cv_prog_CC="cc"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 if test $ac_prog_rejected = yes; then
3060   # We found a bogon in the path, so make sure we never use it.
3061   set dummy $ac_cv_prog_CC
3062   shift
3063   if test $# != 0; then
3064     # We chose a different compiler from the bogus one.
3065     # However, it has the same basename, so the bogon will be chosen
3066     # first if we set CC to just the basename; use the full file name.
3067     shift
3068     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3069   fi
3070 fi
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075   { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3077 else
3078   { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
3080 fi
3081
3082
3083 fi
3084 if test -z "$CC"; then
3085   if test -n "$ac_tool_prefix"; then
3086   for ac_prog in cl.exe
3087   do
3088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103   for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3119 else
3120   { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3122 fi
3123
3124
3125     test -n "$CC" && break
3126   done
3127 fi
3128 if test -z "$CC"; then
3129   ac_ct_CC=$CC
3130   for ac_prog in cl.exe
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   if test -n "$ac_ct_CC"; then
3140   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
3150     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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 echo "${ECHO_T}$ac_ct_CC" >&6; }
3163 else
3164   { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3166 fi
3167
3168
3169   test -n "$ac_ct_CC" && break
3170 done
3171
3172   if test "x$ac_ct_CC" = x; then
3173     CC=""
3174   else
3175     case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3178 whose name does not start with the host triplet.  If you think this
3179 configuration is useful to you, please write to autoconf@gnu.org." >&5
3180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3181 whose name does not start with the host triplet.  If you think this
3182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185     CC=$ac_ct_CC
3186   fi
3187 fi
3188
3189 fi
3190
3191
3192 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details." >&5
3194 echo "$as_me: error: no acceptable C compiler found in \$PATH
3195 See \`config.log' for more details." >&2;}
3196    { (exit 1); exit 1; }; }
3197
3198 # Provide some information about the compiler.
3199 echo "$as_me:$LINENO: checking for C compiler version" >&5
3200 ac_compiler=`set X $ac_compile; echo $2`
3201 { (ac_try="$ac_compiler --version >&5"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compiler --version >&5") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211 { (ac_try="$ac_compiler -v >&5"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_compiler -v >&5") 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }
3221 { (ac_try="$ac_compiler -V >&5"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compiler -V >&5") 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }
3231
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3251 # of exeext.
3252 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3254 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3255 #
3256 # List of possible output files, starting from the most likely.
3257 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3258 # only as a last resort.  b.out is created by i960 compilers.
3259 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3260 #
3261 # The IRIX 6 linker writes into existing files which may not be
3262 # executable, retaining their permissions.  Remove them first so a
3263 # subsequent execution test works.
3264 ac_rmfiles=
3265 for ac_file in $ac_files
3266 do
3267   case $ac_file in
3268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3269     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3270   esac
3271 done
3272 rm -f $ac_rmfiles
3273
3274 if { (ac_try="$ac_link_default"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_link_default") 2>&5
3281   ac_status=$?
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); }; then
3284   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3288 # Autoconf.
3289 for ac_file in $ac_files ''
3290 do
3291   test -f "$ac_file" || continue
3292   case $ac_file in
3293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3294         ;;
3295     [ab].out )
3296         # We found the default executable, but exeext='' is most
3297         # certainly right.
3298         break;;
3299     *.* )
3300         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301         then :; else
3302            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303         fi
3304         # We set ac_cv_exeext here because the later test for it is not
3305         # safe: cross compilers may not add the suffix if given an `-o'
3306         # argument, so we may need to know it at that point already.
3307         # Even if this section looks crufty: it has the advantage of
3308         # actually working.
3309         break;;
3310     * )
3311         break;;
3312   esac
3313 done
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3315
3316 else
3317   ac_file=''
3318 fi
3319
3320 { echo "$as_me:$LINENO: result: $ac_file" >&5
3321 echo "${ECHO_T}$ac_file" >&6; }
3322 if test -z "$ac_file"; then
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&5
3328 echo "$as_me: error: C compiler cannot create executables
3329 See \`config.log' for more details." >&2;}
3330    { (exit 77); exit 77; }; }
3331 fi
3332
3333 ac_exeext=$ac_cv_exeext
3334
3335 # Check that the compiler produces executables we can run.  If not, either
3336 # the compiler is broken, or we cross compile.
3337 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3340 # If not cross compiling, check that we can run a simple program.
3341 if test "$cross_compiling" != yes; then
3342   if { ac_try='./$ac_file'
3343   { (case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352     cross_compiling=no
3353   else
3354     if test "$cross_compiling" = maybe; then
3355         cross_compiling=yes
3356     else
3357         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details." >&5
3360 echo "$as_me: error: cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." >&2;}
3363    { (exit 1); exit 1; }; }
3364     fi
3365   fi
3366 fi
3367 { echo "$as_me:$LINENO: result: yes" >&5
3368 echo "${ECHO_T}yes" >&6; }
3369
3370 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run.  If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3376 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 echo "${ECHO_T}$cross_compiling" >&6; }
3378
3379 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3381 if { (ac_try="$ac_link"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_link") 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; then
3391   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396   test -f "$ac_file" || continue
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3399     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400           break;;
3401     * ) break;;
3402   esac
3403 done
3404 else
3405   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }
3410 fi
3411
3412 rm -f conftest$ac_cv_exeext
3413 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3414 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3415
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3418 ac_exeext=$EXEEXT
3419 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3420 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3421 if test "${ac_cv_objext+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_compile") 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; then
3450   for ac_file in conftest.o conftest.obj conftest.*; do
3451   test -f "$ac_file" || continue;
3452   case $ac_file in
3453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3454     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455        break;;
3456   esac
3457 done
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details." >&2;}
3466    { (exit 1); exit 1; }; }
3467 fi
3468
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3472 echo "${ECHO_T}$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3476 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490 #ifndef __GNUC__
3491        choke me
3492 #endif
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_compile") 2>conftest.er1
3506   ac_status=$?
3507   grep -v '^ *+' conftest.er1 >conftest.err
3508   rm -f conftest.er1
3509   cat conftest.err >&5
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } && {
3512          test -z "$ac_c_werror_flag" ||
3513          test ! -s conftest.err
3514        } && test -s conftest.$ac_objext; then
3515   ac_compiler_gnu=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520         ac_compiler_gnu=no
3521 fi
3522
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3528 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3529 GCC=`test $ac_compiler_gnu = yes && echo yes`
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3533 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   ac_save_c_werror_flag=$ac_c_werror_flag
3538    ac_c_werror_flag=yes
3539    ac_cv_prog_cc_g=no
3540    CFLAGS="-g"
3541    cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563   (eval "$ac_compile") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } && {
3570          test -z "$ac_c_werror_flag" ||
3571          test ! -s conftest.err
3572        } && test -s conftest.$ac_objext; then
3573   ac_cv_prog_cc_g=yes
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578         CFLAGS=""
3579       cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585
3586 int
3587 main ()
3588 {
3589
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_compile") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } && {
3608          test -z "$ac_c_werror_flag" ||
3609          test ! -s conftest.err
3610        } && test -s conftest.$ac_objext; then
3611   :
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616         ac_c_werror_flag=$ac_save_c_werror_flag
3617          CFLAGS="-g"
3618          cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624
3625 int
3626 main ()
3627 {
3628
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_compile") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } && {
3647          test -z "$ac_c_werror_flag" ||
3648          test ! -s conftest.err
3649        } && test -s conftest.$ac_objext; then
3650   ac_cv_prog_cc_g=yes
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655
3656 fi
3657
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 fi
3660
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 fi
3663
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665    ac_c_werror_flag=$ac_save_c_werror_flag
3666 fi
3667 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3668 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3669 if test "$ac_test_CFLAGS" = set; then
3670   CFLAGS=$ac_save_CFLAGS
3671 elif test $ac_cv_prog_cc_g = yes; then
3672   if test "$GCC" = yes; then
3673     CFLAGS="-g -O2"
3674   else
3675     CFLAGS="-g"
3676   fi
3677 else
3678   if test "$GCC" = yes; then
3679     CFLAGS="-O2"
3680   else
3681     CFLAGS=
3682   fi
3683 fi
3684 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3685 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3686 if test "${ac_cv_prog_cc_c89+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   ac_cv_prog_cc_c89=no
3690 ac_save_CC=$CC
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3705      char **p;
3706      int i;
3707 {
3708   return p[i];
3709 }
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3711 {
3712   char *s;
3713   va_list v;
3714   va_start (v,p);
3715   s = g (p, va_arg (v,int));
3716   va_end (v);
3717   return s;
3718 }
3719
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3721    function prototypes and stuff, but not '\xHH' hex character constants.
3722    These don't provoke an error unfortunately, instead are silently treated
3723    as 'x'.  The following induces an error, until -std is added to get
3724    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3725    array size at least.  It's necessary to write '\x00'==0 to get something
3726    that's true only with -std.  */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730    inside strings and character constants.  */
3731 #define FOO(x) 'x'
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738 int argc;
3739 char **argv;
3740 int
3741 main ()
3742 {
3743 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750 do
3751   CC="$ac_save_CC $ac_arg"
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759   (eval "$ac_compile") 2>conftest.er1
3760   ac_status=$?
3761   grep -v '^ *+' conftest.er1 >conftest.err
3762   rm -f conftest.er1
3763   cat conftest.err >&5
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); } && {
3766          test -z "$ac_c_werror_flag" ||
3767          test ! -s conftest.err
3768        } && test -s conftest.$ac_objext; then
3769   ac_cv_prog_cc_c89=$ac_arg
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774
3775 fi
3776
3777 rm -f core conftest.err conftest.$ac_objext
3778   test "x$ac_cv_prog_cc_c89" != "xno" && break
3779 done
3780 rm -f conftest.$ac_ext
3781 CC=$ac_save_CC
3782
3783 fi
3784 # AC_CACHE_VAL
3785 case "x$ac_cv_prog_cc_c89" in
3786   x)
3787     { echo "$as_me:$LINENO: result: none needed" >&5
3788 echo "${ECHO_T}none needed" >&6; } ;;
3789   xno)
3790     { echo "$as_me:$LINENO: result: unsupported" >&5
3791 echo "${ECHO_T}unsupported" >&6; } ;;
3792   *)
3793     CC="$CC $ac_cv_prog_cc_c89"
3794     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3795 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3796 esac
3797
3798
3799 ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
3805 depcc="$CC"   am_compiler_list=
3806
3807 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3809 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3813   # We make a subdir and do the tests there.  Otherwise we can end up
3814   # making bogus files that we don't know about and never remove.  For
3815   # instance it was reported that on HP-UX the gcc test will end up
3816   # making a dummy file named `D' -- because `-MD' means `put the output
3817   # in D'.
3818   mkdir conftest.dir
3819   # Copy depcomp to subdir because otherwise we won't find it if we're
3820   # using a relative directory.
3821   cp "$am_depcomp" conftest.dir
3822   cd conftest.dir
3823   # We will build objects and dependencies in a subdirectory because
3824   # it helps to detect inapplicable dependency modes.  For instance
3825   # both Tru64's cc and ICC support -MD to output dependencies as a
3826   # side effect of compilation, but ICC will put the dependencies in
3827   # the current directory while Tru64 will put them in the object
3828   # directory.
3829   mkdir sub
3830
3831   am_cv_CC_dependencies_compiler_type=none
3832   if test "$am_compiler_list" = ""; then
3833      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3834   fi
3835   for depmode in $am_compiler_list; do
3836     # Setup a source with many dependencies, because some compilers
3837     # like to wrap large dependency lists on column 80 (with \), and
3838     # we should not choose a depcomp mode which is confused by this.
3839     #
3840     # We need to recreate these files for each test, as the compiler may
3841     # overwrite some of them when testing with obscure command lines.
3842     # This happens at least with the AIX C compiler.
3843     : > sub/conftest.c
3844     for i in 1 2 3 4 5 6; do
3845       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3846       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3847       # Solaris 8's {/usr,}/bin/sh.
3848       touch sub/conftst$i.h
3849     done
3850     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3851
3852     case $depmode in
3853     nosideeffect)
3854       # after this tag, mechanisms are not by side-effect, so they'll
3855       # only be used when explicitly requested
3856       if test "x$enable_dependency_tracking" = xyes; then
3857         continue
3858       else
3859         break
3860       fi
3861       ;;
3862     none) break ;;
3863     esac
3864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865     # mode.  It turns out that the SunPro C++ compiler does not properly
3866     # handle `-M -o', and we need to detect this.
3867     if depmode=$depmode \
3868        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3869        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3871          >/dev/null 2>conftest.err &&
3872        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3875        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876       # icc doesn't choke on unknown options, it will just issue warnings
3877       # or remarks (even with -Werror).  So we grep stderr for any message
3878       # that says an option was ignored or not supported.
3879       # When given -MP, icc 7.0 and 7.1 complain thusly:
3880       #   icc: Command line warning: ignoring option '-M'; no argument required
3881       # The diagnosis changed in icc 8.0:
3882       #   icc: Command line remark: option '-MP' not supported
3883       if (grep 'ignoring option' conftest.err ||
3884           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885         am_cv_CC_dependencies_compiler_type=$depmode
3886         break
3887       fi
3888     fi
3889   done
3890
3891   cd ..
3892   rm -rf conftest.dir
3893 else
3894   am_cv_CC_dependencies_compiler_type=none
3895 fi
3896
3897 fi
3898 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902  if
3903   test "x$enable_dependency_tracking" != xno \
3904   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905   am__fastdepCC_TRUE=
3906   am__fastdepCC_FALSE='#'
3907 else
3908   am__fastdepCC_TRUE='#'
3909   am__fastdepCC_FALSE=
3910 fi
3911
3912
3913
3914
3915   TCPW_MSG="no"
3916
3917 # Check whether --with-tcp-wrappers was given.
3918 if test "${with_tcp_wrappers+set}" = set; then
3919   withval=$with_tcp_wrappers; with_tcpw=$withval
3920 else
3921   with_tcpw=yes
3922 fi
3923
3924         if test "x$with_tcpw" != "xno" ; then
3925             saved_LIBS="$LIBS"
3926             saved_LDFLAGS="$LDFLAGS"
3927             saved_CPPFLAGS="$CPPFLAGS"
3928             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3929                 if test -d "${with_tcpw}/lib"; then
3930                     if test -n "${need_dash_r}"; then
3931                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3932                     else
3933                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3934                     fi
3935                 else
3936                     if test -n "${need_dash_r}"; then
3937                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3938                     else
3939                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3940                     fi
3941                 fi
3942                 if test -d "${with_tcpw}/include"; then
3943                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3944                 else
3945                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3946                 fi
3947             fi
3948             LIBWRAP="-lwrap"
3949             LIBS="$LIBWRAP $LIBS"
3950             { echo "$as_me:$LINENO: checking for libwrap" >&5
3951 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3952             cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958
3959                 #include <tcpd.h>
3960                 int deny_severity = 0, allow_severity = 0;
3961
3962 int
3963 main ()
3964 {
3965 hosts_access(0);
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (ac_try="$ac_link"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977   (eval "$ac_link") 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } && {
3984          test -z "$ac_c_werror_flag" ||
3985          test ! -s conftest.err
3986        } && test -s conftest$ac_exeext &&
3987        $as_test_x conftest$ac_exeext; then
3988
3989                 { echo "$as_me:$LINENO: result: yes" >&5
3990 echo "${ECHO_T}yes" >&6; }
3991
3992
3993 cat >>confdefs.h <<\_ACEOF
3994 #define LIBWRAP 1
3995 _ACEOF
3996
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define HAVE_LIBWRAP 1
4000 _ACEOF
4001
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_TCP_WRAPPER 1
4005 _ACEOF
4006
4007                 TCPW_MSG="yes"
4008
4009 else
4010   echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013
4014                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4015 echo "$as_me: error: *** libwrap missing" >&2;}
4016    { (exit 1); exit 1; }; }
4017
4018
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022       conftest$ac_exeext conftest.$ac_ext
4023             LIBS="$saved_LIBS"
4024         fi
4025
4026
4027
4028
4029
4030 # Arrange for large-file support
4031 # Check whether --enable-largefile was given.
4032 if test "${enable_largefile+set}" = set; then
4033   enableval=$enable_largefile;
4034 fi
4035
4036 if test "$enable_largefile" != no; then
4037
4038   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4039 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4040 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   ac_cv_sys_largefile_CC=no
4044      if test "$GCC" != yes; then
4045        ac_save_CC=$CC
4046        while :; do
4047          # IRIX 6.2 and later do not support large files by default,
4048          # so use the C compiler's -n32 option if that helps.
4049          cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 #include <sys/types.h>
4056  /* Check that off_t can represent 2**63 - 1 correctly.
4057     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4058     since some C++ compilers masquerading as C compilers
4059     incorrectly reject 9223372036854775807.  */
4060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4061   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4062                        && LARGE_OFF_T % 2147483647 == 1)
4063                       ? 1 : -1];
4064 int
4065 main ()
4066 {
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072          rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } && {
4086          test -z "$ac_c_werror_flag" ||
4087          test ! -s conftest.err
4088        } && test -s conftest.$ac_objext; then
4089   break
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext
4098          CC="$CC -n32"
4099          rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_compile") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } && {
4113          test -z "$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        } && test -s conftest.$ac_objext; then
4116   ac_cv_sys_largefile_CC=' -n32'; break
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121
4122 fi
4123
4124 rm -f core conftest.err conftest.$ac_objext
4125          break
4126        done
4127        CC=$ac_save_CC
4128        rm -f conftest.$ac_ext
4129     fi
4130 fi
4131 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4132 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4133   if test "$ac_cv_sys_largefile_CC" != no; then
4134     CC=$CC$ac_cv_sys_largefile_CC
4135   fi
4136
4137   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4138 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4139 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   while :; do
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <sys/types.h>
4150  /* Check that off_t can represent 2**63 - 1 correctly.
4151     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4152     since some C++ compilers masquerading as C compilers
4153     incorrectly reject 9223372036854775807.  */
4154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4155   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4156                        && LARGE_OFF_T % 2147483647 == 1)
4157                       ? 1 : -1];
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_compile") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } && {
4180          test -z "$ac_c_werror_flag" ||
4181          test ! -s conftest.err
4182        } && test -s conftest.$ac_objext; then
4183   ac_cv_sys_file_offset_bits=no; break
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188
4189 fi
4190
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #define _FILE_OFFSET_BITS 64
4199 #include <sys/types.h>
4200  /* Check that off_t can represent 2**63 - 1 correctly.
4201     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4202     since some C++ compilers masquerading as C compilers
4203     incorrectly reject 9223372036854775807.  */
4204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4205   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4206                        && LARGE_OFF_T % 2147483647 == 1)
4207                       ? 1 : -1];
4208 int
4209 main ()
4210 {
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_compile") 2>conftest.er1
4224   ac_status=$?
4225   grep -v '^ *+' conftest.er1 >conftest.err
4226   rm -f conftest.er1
4227   cat conftest.err >&5
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } && {
4230          test -z "$ac_c_werror_flag" ||
4231          test ! -s conftest.err
4232        } && test -s conftest.$ac_objext; then
4233   ac_cv_sys_file_offset_bits=64; break
4234 else
4235   echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238
4239 fi
4240
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242   ac_cv_sys_file_offset_bits=unknown
4243   break
4244 done
4245 fi
4246 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4247 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4248 case $ac_cv_sys_file_offset_bits in #(
4249   no | unknown) ;;
4250   *)
4251 cat >>confdefs.h <<_ACEOF
4252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4253 _ACEOF
4254 ;;
4255 esac
4256 rm -f conftest*
4257   if test $ac_cv_sys_file_offset_bits = unknown; then
4258     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4259 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4260 if test "${ac_cv_sys_large_files+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   while :; do
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 #include <sys/types.h>
4271  /* Check that off_t can represent 2**63 - 1 correctly.
4272     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4273     since some C++ compilers masquerading as C compilers
4274     incorrectly reject 9223372036854775807.  */
4275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4276   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4277                        && LARGE_OFF_T % 2147483647 == 1)
4278                       ? 1 : -1];
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294   (eval "$ac_compile") 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } && {
4301          test -z "$ac_c_werror_flag" ||
4302          test ! -s conftest.err
4303        } && test -s conftest.$ac_objext; then
4304   ac_cv_sys_large_files=no; break
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313   cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h.  */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h.  */
4319 #define _LARGE_FILES 1
4320 #include <sys/types.h>
4321  /* Check that off_t can represent 2**63 - 1 correctly.
4322     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4323     since some C++ compilers masquerading as C compilers
4324     incorrectly reject 9223372036854775807.  */
4325 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4326   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4327                        && LARGE_OFF_T % 2147483647 == 1)
4328                       ? 1 : -1];
4329 int
4330 main ()
4331 {
4332
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344   (eval "$ac_compile") 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && {
4351          test -z "$ac_c_werror_flag" ||
4352          test ! -s conftest.err
4353        } && test -s conftest.$ac_objext; then
4354   ac_cv_sys_large_files=1; break
4355 else
4356   echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359
4360 fi
4361
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363   ac_cv_sys_large_files=unknown
4364   break
4365 done
4366 fi
4367 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4368 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4369 case $ac_cv_sys_large_files in #(
4370   no | unknown) ;;
4371   *)
4372 cat >>confdefs.h <<_ACEOF
4373 #define _LARGE_FILES $ac_cv_sys_large_files
4374 _ACEOF
4375 ;;
4376 esac
4377 rm -f conftest*
4378   fi
4379 fi
4380
4381
4382
4383 ac_config_headers="$ac_config_headers support/include/config.h"
4384
4385
4386 # Checks for programs.
4387 ac_ext=cpp
4388 ac_cpp='$CXXCPP $CPPFLAGS'
4389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4392 if test -z "$CXX"; then
4393   if test -n "$CCC"; then
4394     CXX=$CCC
4395   else
4396     if test -n "$ac_tool_prefix"; then
4397   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398   do
4399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403 if test "${ac_cv_prog_CXX+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   if test -n "$CXX"; then
4407   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414   for ac_exec_ext in '' $ac_executable_extensions; do
4415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424 fi
4425 fi
4426 CXX=$ac_cv_prog_CXX
4427 if test -n "$CXX"; then
4428   { echo "$as_me:$LINENO: result: $CXX" >&5
4429 echo "${ECHO_T}$CXX" >&6; }
4430 else
4431   { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4433 fi
4434
4435
4436     test -n "$CXX" && break
4437   done
4438 fi
4439 if test -z "$CXX"; then
4440   ac_ct_CXX=$CXX
4441   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4442 do
4443   # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -n "$ac_ct_CXX"; then
4451   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458   for ac_exec_ext in '' $ac_executable_extensions; do
4459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460     ac_cv_prog_ac_ct_CXX="$ac_prog"
4461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4471 if test -n "$ac_ct_CXX"; then
4472   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4473 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480   test -n "$ac_ct_CXX" && break
4481 done
4482
4483   if test "x$ac_ct_CXX" = x; then
4484     CXX="g++"
4485   else
4486     case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4489 whose name does not start with the host triplet.  If you think this
4490 configuration is useful to you, please write to autoconf@gnu.org." >&5
4491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4492 whose name does not start with the host triplet.  If you think this
4493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496     CXX=$ac_ct_CXX
4497   fi
4498 fi
4499
4500   fi
4501 fi
4502 # Provide some information about the compiler.
4503 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4504 ac_compiler=`set X $ac_compile; echo $2`
4505 { (ac_try="$ac_compiler --version >&5"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_compiler --version >&5") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }
4515 { (ac_try="$ac_compiler -v >&5"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_compiler -v >&5") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }
4525 { (ac_try="$ac_compiler -V >&5"
4526 case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531   (eval "$ac_compiler -V >&5") 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }
4535
4536 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547
4548 int
4549 main ()
4550 {
4551 #ifndef __GNUC__
4552        choke me
4553 #endif
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566   (eval "$ac_compile") 2>conftest.er1
4567   ac_status=$?
4568   grep -v '^ *+' conftest.er1 >conftest.err
4569   rm -f conftest.er1
4570   cat conftest.err >&5
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } && {
4573          test -z "$ac_cxx_werror_flag" ||
4574          test ! -s conftest.err
4575        } && test -s conftest.$ac_objext; then
4576   ac_compiler_gnu=yes
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581         ac_compiler_gnu=no
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4586
4587 fi
4588 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4589 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4590 GXX=`test $ac_compiler_gnu = yes && echo yes`
4591 ac_test_CXXFLAGS=${CXXFLAGS+set}
4592 ac_save_CXXFLAGS=$CXXFLAGS
4593 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4594 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_cxx_g+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4599    ac_cxx_werror_flag=yes
4600    ac_cv_prog_cxx_g=no
4601    CXXFLAGS="-g"
4602    cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608
4609 int
4610 main ()
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest.$ac_objext
4618 if { (ac_try="$ac_compile"
4619 case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624   (eval "$ac_compile") 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } && {
4631          test -z "$ac_cxx_werror_flag" ||
4632          test ! -s conftest.err
4633        } && test -s conftest.$ac_objext; then
4634   ac_cv_prog_cxx_g=yes
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639         CXXFLAGS=""
4640       cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662   (eval "$ac_compile") 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } && {
4669          test -z "$ac_cxx_werror_flag" ||
4670          test ! -s conftest.err
4671        } && test -s conftest.$ac_objext; then
4672   :
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4678          CXXFLAGS="-g"
4679          cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685
4686 int
4687 main ()
4688 {
4689
4690   ;
4691   return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4696 case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701   (eval "$ac_compile") 2>conftest.er1
4702   ac_status=$?
4703   grep -v '^ *+' conftest.er1 >conftest.err
4704   rm -f conftest.er1
4705   cat conftest.err >&5
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } && {
4708          test -z "$ac_cxx_werror_flag" ||
4709          test ! -s conftest.err
4710        } && test -s conftest.$ac_objext; then
4711   ac_cv_prog_cxx_g=yes
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716
4717 fi
4718
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4727 fi
4728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4729 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4730 if test "$ac_test_CXXFLAGS" = set; then
4731   CXXFLAGS=$ac_save_CXXFLAGS
4732 elif test $ac_cv_prog_cxx_g = yes; then
4733   if test "$GXX" = yes; then
4734     CXXFLAGS="-g -O2"
4735   else
4736     CXXFLAGS="-g"
4737   fi
4738 else
4739   if test "$GXX" = yes; then
4740     CXXFLAGS="-O2"
4741   else
4742     CXXFLAGS=
4743   fi
4744 fi
4745 ac_ext=c
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750
4751 depcc="$CXX"  am_compiler_list=
4752
4753 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4755 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759   # We make a subdir and do the tests there.  Otherwise we can end up
4760   # making bogus files that we don't know about and never remove.  For
4761   # instance it was reported that on HP-UX the gcc test will end up
4762   # making a dummy file named `D' -- because `-MD' means `put the output
4763   # in D'.
4764   mkdir conftest.dir
4765   # Copy depcomp to subdir because otherwise we won't find it if we're
4766   # using a relative directory.
4767   cp "$am_depcomp" conftest.dir
4768   cd conftest.dir
4769   # We will build objects and dependencies in a subdirectory because
4770   # it helps to detect inapplicable dependency modes.  For instance
4771   # both Tru64's cc and ICC support -MD to output dependencies as a
4772   # side effect of compilation, but ICC will put the dependencies in
4773   # the current directory while Tru64 will put them in the object
4774   # directory.
4775   mkdir sub
4776
4777   am_cv_CXX_dependencies_compiler_type=none
4778   if test "$am_compiler_list" = ""; then
4779      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780   fi
4781   for depmode in $am_compiler_list; do
4782     # Setup a source with many dependencies, because some compilers
4783     # like to wrap large dependency lists on column 80 (with \), and
4784     # we should not choose a depcomp mode which is confused by this.
4785     #
4786     # We need to recreate these files for each test, as the compiler may
4787     # overwrite some of them when testing with obscure command lines.
4788     # This happens at least with the AIX C compiler.
4789     : > sub/conftest.c
4790     for i in 1 2 3 4 5 6; do
4791       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4792       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4793       # Solaris 8's {/usr,}/bin/sh.
4794       touch sub/conftst$i.h
4795     done
4796     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4797
4798     case $depmode in
4799     nosideeffect)
4800       # after this tag, mechanisms are not by side-effect, so they'll
4801       # only be used when explicitly requested
4802       if test "x$enable_dependency_tracking" = xyes; then
4803         continue
4804       else
4805         break
4806       fi
4807       ;;
4808     none) break ;;
4809     esac
4810     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4811     # mode.  It turns out that the SunPro C++ compiler does not properly
4812     # handle `-M -o', and we need to detect this.
4813     if depmode=$depmode \
4814        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4815        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4816        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4817          >/dev/null 2>conftest.err &&
4818        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4819        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4820        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4821        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4822       # icc doesn't choke on unknown options, it will just issue warnings
4823       # or remarks (even with -Werror).  So we grep stderr for any message
4824       # that says an option was ignored or not supported.
4825       # When given -MP, icc 7.0 and 7.1 complain thusly:
4826       #   icc: Command line warning: ignoring option '-M'; no argument required
4827       # The diagnosis changed in icc 8.0:
4828       #   icc: Command line remark: option '-MP' not supported
4829       if (grep 'ignoring option' conftest.err ||
4830           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4831         am_cv_CXX_dependencies_compiler_type=$depmode
4832         break
4833       fi
4834     fi
4835   done
4836
4837   cd ..
4838   rm -rf conftest.dir
4839 else
4840   am_cv_CXX_dependencies_compiler_type=none
4841 fi
4842
4843 fi
4844 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4845 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4846 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4847
4848  if
4849   test "x$enable_dependency_tracking" != xno \
4850   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4851   am__fastdepCXX_TRUE=
4852   am__fastdepCXX_FALSE='#'
4853 else
4854   am__fastdepCXX_TRUE='#'
4855   am__fastdepCXX_FALSE=
4856 fi
4857
4858
4859 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 if test -n "$ac_tool_prefix"; then
4865   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_CC+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$CC"; then
4873   ac_cv_prog_CC="$CC" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 CC=$ac_cv_prog_CC
4893 if test -n "$CC"; then
4894   { echo "$as_me:$LINENO: result: $CC" >&5
4895 echo "${ECHO_T}$CC" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 fi
4903 if test -z "$ac_cv_prog_CC"; then
4904   ac_ct_CC=$CC
4905   # Extract the first word of "gcc", so it can be a program name with args.
4906 set dummy gcc; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$ac_ct_CC"; then
4913   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_prog_ac_ct_CC="gcc"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4933 if test -n "$ac_ct_CC"; then
4934   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4935 echo "${ECHO_T}$ac_ct_CC" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941   if test "x$ac_ct_CC" = x; then
4942     CC=""
4943   else
4944     case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4947 whose name does not start with the host triplet.  If you think this
4948 configuration is useful to you, please write to autoconf@gnu.org." >&5
4949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4950 whose name does not start with the host triplet.  If you think this
4951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4952 ac_tool_warned=yes ;;
4953 esac
4954     CC=$ac_ct_CC
4955   fi
4956 else
4957   CC="$ac_cv_prog_CC"
4958 fi
4959
4960 if test -z "$CC"; then
4961           if test -n "$ac_tool_prefix"; then
4962     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}cc; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_prog_CC+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969   if test -n "$CC"; then
4970   ac_cv_prog_CC="$CC" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977   for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_CC="${ac_tool_prefix}cc"
4980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984 done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 CC=$ac_cv_prog_CC
4990 if test -n "$CC"; then
4991   { echo "$as_me:$LINENO: result: $CC" >&5
4992 echo "${ECHO_T}$CC" >&6; }
4993 else
4994   { echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6; }
4996 fi
4997
4998
4999   fi
5000 fi
5001 if test -z "$CC"; then
5002   # Extract the first word of "cc", so it can be a program name with args.
5003 set dummy cc; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_CC+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   if test -n "$CC"; then
5010   ac_cv_prog_CC="$CC" # Let the user override the test.
5011 else
5012   ac_prog_rejected=no
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018   for ac_exec_ext in '' $ac_executable_extensions; do
5019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5021        ac_prog_rejected=yes
5022        continue
5023      fi
5024     ac_cv_prog_CC="cc"
5025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 if test $ac_prog_rejected = yes; then
5033   # We found a bogon in the path, so make sure we never use it.
5034   set dummy $ac_cv_prog_CC
5035   shift
5036   if test $# != 0; then
5037     # We chose a different compiler from the bogus one.
5038     # However, it has the same basename, so the bogon will be chosen
5039     # first if we set CC to just the basename; use the full file name.
5040     shift
5041     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5042   fi
5043 fi
5044 fi
5045 fi
5046 CC=$ac_cv_prog_CC
5047 if test -n "$CC"; then
5048   { echo "$as_me:$LINENO: result: $CC" >&5
5049 echo "${ECHO_T}$CC" >&6; }
5050 else
5051   { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5053 fi
5054
5055
5056 fi
5057 if test -z "$CC"; then
5058   if test -n "$ac_tool_prefix"; then
5059   for ac_prog in cl.exe
5060   do
5061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_prog_CC+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   if test -n "$CC"; then
5069   ac_cv_prog_CC="$CC" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 CC=$ac_cv_prog_CC
5089 if test -n "$CC"; then
5090   { echo "$as_me:$LINENO: result: $CC" >&5
5091 echo "${ECHO_T}$CC" >&6; }
5092 else
5093   { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5095 fi
5096
5097
5098     test -n "$CC" && break
5099   done
5100 fi
5101 if test -z "$CC"; then
5102   ac_ct_CC=$CC
5103   for ac_prog in cl.exe
5104 do
5105   # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5110   echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112   if test -n "$ac_ct_CC"; then
5113   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_prog_ac_ct_CC="$ac_prog"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5133 if test -n "$ac_ct_CC"; then
5134   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5135 echo "${ECHO_T}$ac_ct_CC" >&6; }
5136 else
5137   { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5139 fi
5140
5141
5142   test -n "$ac_ct_CC" && break
5143 done
5144
5145   if test "x$ac_ct_CC" = x; then
5146     CC=""
5147   else
5148     case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5151 whose name does not start with the host triplet.  If you think this
5152 configuration is useful to you, please write to autoconf@gnu.org." >&5
5153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5154 whose name does not start with the host triplet.  If you think this
5155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5156 ac_tool_warned=yes ;;
5157 esac
5158     CC=$ac_ct_CC
5159   fi
5160 fi
5161
5162 fi
5163
5164
5165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: no acceptable C compiler found in \$PATH
5168 See \`config.log' for more details." >&2;}
5169    { (exit 1); exit 1; }; }
5170
5171 # Provide some information about the compiler.
5172 echo "$as_me:$LINENO: checking for C compiler version" >&5
5173 ac_compiler=`set X $ac_compile; echo $2`
5174 { (ac_try="$ac_compiler --version >&5"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_compiler --version >&5") 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }
5184 { (ac_try="$ac_compiler -v >&5"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_compiler -v >&5") 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }
5194 { (ac_try="$ac_compiler -V >&5"
5195 case "(($ac_try" in
5196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197   *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200   (eval "$ac_compiler -V >&5") 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }
5204
5205 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5206 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5207 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216
5217 int
5218 main ()
5219 {
5220 #ifndef __GNUC__
5221        choke me
5222 #endif
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && {
5242          test -z "$ac_c_werror_flag" ||
5243          test ! -s conftest.err
5244        } && test -s conftest.$ac_objext; then
5245   ac_compiler_gnu=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250         ac_compiler_gnu=no
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255
5256 fi
5257 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259 GCC=`test $ac_compiler_gnu = yes && echo yes`
5260 ac_test_CFLAGS=${CFLAGS+set}
5261 ac_save_CFLAGS=$CFLAGS
5262 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264 if test "${ac_cv_prog_cc_g+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   ac_save_c_werror_flag=$ac_c_werror_flag
5268    ac_c_werror_flag=yes
5269    ac_cv_prog_cc_g=no
5270    CFLAGS="-g"
5271    cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277
5278 int
5279 main ()
5280 {
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (ac_try="$ac_compile"
5288 case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_compile") 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } && {
5300          test -z "$ac_c_werror_flag" ||
5301          test ! -s conftest.err
5302        } && test -s conftest.$ac_objext; then
5303   ac_cv_prog_cc_g=yes
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308         CFLAGS=""
5309       cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315
5316 int
5317 main ()
5318 {
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5326 case "(($ac_try" in
5327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328   *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331   (eval "$ac_compile") 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } && {
5338          test -z "$ac_c_werror_flag" ||
5339          test ! -s conftest.err
5340        } && test -s conftest.$ac_objext; then
5341   :
5342 else
5343   echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346         ac_c_werror_flag=$ac_save_c_werror_flag
5347          CFLAGS="-g"
5348          cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } && {
5377          test -z "$ac_c_werror_flag" ||
5378          test ! -s conftest.err
5379        } && test -s conftest.$ac_objext; then
5380   ac_cv_prog_cc_g=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385
5386 fi
5387
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395    ac_c_werror_flag=$ac_save_c_werror_flag
5396 fi
5397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5398 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5399 if test "$ac_test_CFLAGS" = set; then
5400   CFLAGS=$ac_save_CFLAGS
5401 elif test $ac_cv_prog_cc_g = yes; then
5402   if test "$GCC" = yes; then
5403     CFLAGS="-g -O2"
5404   else
5405     CFLAGS="-g"
5406   fi
5407 else
5408   if test "$GCC" = yes; then
5409     CFLAGS="-O2"
5410   else
5411     CFLAGS=
5412   fi
5413 fi
5414 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5415 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5416 if test "${ac_cv_prog_cc_c89+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   ac_cv_prog_cc_c89=no
5420 ac_save_CC=$CC
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 #include <stdarg.h>
5428 #include <stdio.h>
5429 #include <sys/types.h>
5430 #include <sys/stat.h>
5431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5432 struct buf { int x; };
5433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5434 static char *e (p, i)
5435      char **p;
5436      int i;
5437 {
5438   return p[i];
5439 }
5440 static char *f (char * (*g) (char **, int), char **p, ...)
5441 {
5442   char *s;
5443   va_list v;
5444   va_start (v,p);
5445   s = g (p, va_arg (v,int));
5446   va_end (v);
5447   return s;
5448 }
5449
5450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5451    function prototypes and stuff, but not '\xHH' hex character constants.
5452    These don't provoke an error unfortunately, instead are silently treated
5453    as 'x'.  The following induces an error, until -std is added to get
5454    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5455    array size at least.  It's necessary to write '\x00'==0 to get something
5456    that's true only with -std.  */
5457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5458
5459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5460    inside strings and character constants.  */
5461 #define FOO(x) 'x'
5462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5463
5464 int test (int i, double x);
5465 struct s1 {int (*f) (int a);};
5466 struct s2 {int (*f) (double a);};
5467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5468 int argc;
5469 char **argv;
5470 int
5471 main ()
5472 {
5473 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5479         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5480 do
5481   CC="$ac_save_CC $ac_arg"
5482   rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_cv_prog_cc_c89=$ac_arg
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext
5508   test "x$ac_cv_prog_cc_c89" != "xno" && break
5509 done
5510 rm -f conftest.$ac_ext
5511 CC=$ac_save_CC
5512
5513 fi
5514 # AC_CACHE_VAL
5515 case "x$ac_cv_prog_cc_c89" in
5516   x)
5517     { echo "$as_me:$LINENO: result: none needed" >&5
5518 echo "${ECHO_T}none needed" >&6; } ;;
5519   xno)
5520     { echo "$as_me:$LINENO: result: unsupported" >&5
5521 echo "${ECHO_T}unsupported" >&6; } ;;
5522   *)
5523     CC="$CC $ac_cv_prog_cc_c89"
5524     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5525 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5526 esac
5527
5528
5529 ac_ext=c
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535 depcc="$CC"   am_compiler_list=
5536
5537 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5543   # We make a subdir and do the tests there.  Otherwise we can end up
5544   # making bogus files that we don't know about and never remove.  For
5545   # instance it was reported that on HP-UX the gcc test will end up
5546   # making a dummy file named `D' -- because `-MD' means `put the output
5547   # in D'.
5548   mkdir conftest.dir
5549   # Copy depcomp to subdir because otherwise we won't find it if we're
5550   # using a relative directory.
5551   cp "$am_depcomp" conftest.dir
5552   cd conftest.dir
5553   # We will build objects and dependencies in a subdirectory because
5554   # it helps to detect inapplicable dependency modes.  For instance
5555   # both Tru64's cc and ICC support -MD to output dependencies as a
5556   # side effect of compilation, but ICC will put the dependencies in
5557   # the current directory while Tru64 will put them in the object
5558   # directory.
5559   mkdir sub
5560
5561   am_cv_CC_dependencies_compiler_type=none
5562   if test "$am_compiler_list" = ""; then
5563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5564   fi
5565   for depmode in $am_compiler_list; do
5566     # Setup a source with many dependencies, because some compilers
5567     # like to wrap large dependency lists on column 80 (with \), and
5568     # we should not choose a depcomp mode which is confused by this.
5569     #
5570     # We need to recreate these files for each test, as the compiler may
5571     # overwrite some of them when testing with obscure command lines.
5572     # This happens at least with the AIX C compiler.
5573     : > sub/conftest.c
5574     for i in 1 2 3 4 5 6; do
5575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5577       # Solaris 8's {/usr,}/bin/sh.
5578       touch sub/conftst$i.h
5579     done
5580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5581
5582     case $depmode in
5583     nosideeffect)
5584       # after this tag, mechanisms are not by side-effect, so they'll
5585       # only be used when explicitly requested
5586       if test "x$enable_dependency_tracking" = xyes; then
5587         continue
5588       else
5589         break
5590       fi
5591       ;;
5592     none) break ;;
5593     esac
5594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5595     # mode.  It turns out that the SunPro C++ compiler does not properly
5596     # handle `-M -o', and we need to detect this.
5597     if depmode=$depmode \
5598        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5599        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5601          >/dev/null 2>conftest.err &&
5602        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5603        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5604        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5605        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5606       # icc doesn't choke on unknown options, it will just issue warnings
5607       # or remarks (even with -Werror).  So we grep stderr for any message
5608       # that says an option was ignored or not supported.
5609       # When given -MP, icc 7.0 and 7.1 complain thusly:
5610       #   icc: Command line warning: ignoring option '-M'; no argument required
5611       # The diagnosis changed in icc 8.0:
5612       #   icc: Command line remark: option '-MP' not supported
5613       if (grep 'ignoring option' conftest.err ||
5614           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5615         am_cv_CC_dependencies_compiler_type=$depmode
5616         break
5617       fi
5618     fi
5619   done
5620
5621   cd ..
5622   rm -rf conftest.dir
5623 else
5624   am_cv_CC_dependencies_compiler_type=none
5625 fi
5626
5627 fi
5628 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5629 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5631
5632  if
5633   test "x$enable_dependency_tracking" != xno \
5634   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5635   am__fastdepCC_TRUE=
5636   am__fastdepCC_FALSE='#'
5637 else
5638   am__fastdepCC_TRUE='#'
5639   am__fastdepCC_FALSE=
5640 fi
5641
5642
5643 ac_ext=c
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5650 # On Suns, sometimes $CPP names a directory.
5651 if test -n "$CPP" && test -d "$CPP"; then
5652   CPP=
5653 fi
5654 if test -z "$CPP"; then
5655   if test "${ac_cv_prog_CPP+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658       # Double quotes because CPP needs to be expanded
5659     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5660     do
5661       ac_preproc_ok=false
5662 for ac_c_preproc_warn_flag in '' yes
5663 do
5664   # Use a header file that comes with gcc, so configuring glibc
5665   # with a fresh cross-compiler works.
5666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5667   # <limits.h> exists even on freestanding compilers.
5668   # On the NeXT, cc -E runs the code through the compiler's parser,
5669   # not just through cpp. "Syntax error" is here to catch this case.
5670   cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676 #ifdef __STDC__
5677 # include <limits.h>
5678 #else
5679 # include <assert.h>
5680 #endif
5681                      Syntax error
5682 _ACEOF
5683 if { (ac_try="$ac_cpp conftest.$ac_ext"
5684 case "(($ac_try" in
5685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686   *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } >/dev/null && {
5696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5697          test ! -s conftest.err
5698        }; then
5699   :
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704   # Broken: fails on valid input.
5705 continue
5706 fi
5707
5708 rm -f conftest.err conftest.$ac_ext
5709
5710   # OK, works on sane cases.  Now check whether nonexistent headers
5711   # can be detected and how.
5712   cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 #include <ac_nonexistent.h>
5719 _ACEOF
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } >/dev/null && {
5733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734          test ! -s conftest.err
5735        }; then
5736   # Broken: success on invalid input.
5737 continue
5738 else
5739   echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742   # Passes both tests.
5743 ac_preproc_ok=:
5744 break
5745 fi
5746
5747 rm -f conftest.err conftest.$ac_ext
5748
5749 done
5750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5751 rm -f conftest.err conftest.$ac_ext
5752 if $ac_preproc_ok; then
5753   break
5754 fi
5755
5756     done
5757     ac_cv_prog_CPP=$CPP
5758
5759 fi
5760   CPP=$ac_cv_prog_CPP
5761 else
5762   ac_cv_prog_CPP=$CPP
5763 fi
5764 { echo "$as_me:$LINENO: result: $CPP" >&5
5765 echo "${ECHO_T}$CPP" >&6; }
5766 ac_preproc_ok=false
5767 for ac_c_preproc_warn_flag in '' yes
5768 do
5769   # Use a header file that comes with gcc, so configuring glibc
5770   # with a fresh cross-compiler works.
5771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5772   # <limits.h> exists even on freestanding compilers.
5773   # On the NeXT, cc -E runs the code through the compiler's parser,
5774   # not just through cpp. "Syntax error" is here to catch this case.
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #ifdef __STDC__
5782 # include <limits.h>
5783 #else
5784 # include <assert.h>
5785 #endif
5786                      Syntax error
5787 _ACEOF
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } >/dev/null && {
5801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        }; then
5804   :
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809   # Broken: fails on valid input.
5810 continue
5811 fi
5812
5813 rm -f conftest.err conftest.$ac_ext
5814
5815   # OK, works on sane cases.  Now check whether nonexistent headers
5816   # can be detected and how.
5817   cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823 #include <ac_nonexistent.h>
5824 _ACEOF
5825 if { (ac_try="$ac_cpp conftest.$ac_ext"
5826 case "(($ac_try" in
5827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828   *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5832   ac_status=$?
5833   grep -v '^ *+' conftest.er1 >conftest.err
5834   rm -f conftest.er1
5835   cat conftest.err >&5
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } >/dev/null && {
5838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5839          test ! -s conftest.err
5840        }; then
5841   # Broken: success on invalid input.
5842 continue
5843 else
5844   echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847   # Passes both tests.
5848 ac_preproc_ok=:
5849 break
5850 fi
5851
5852 rm -f conftest.err conftest.$ac_ext
5853
5854 done
5855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856 rm -f conftest.err conftest.$ac_ext
5857 if $ac_preproc_ok; then
5858   :
5859 else
5860   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." >&5
5862 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5863 See \`config.log' for more details." >&2;}
5864    { (exit 1); exit 1; }; }
5865 fi
5866
5867 ac_ext=c
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872
5873 # Find a good install program.  We prefer a C program (faster),
5874 # so one script is as good as another.  But avoid the broken or
5875 # incompatible versions:
5876 # SysV /etc/install, /usr/sbin/install
5877 # SunOS /usr/etc/install
5878 # IRIX /sbin/install
5879 # AIX /bin/install
5880 # AmigaOS /C/install, which installs bootblocks on floppy discs
5881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5884 # OS/2's system install, which has a completely different semantic
5885 # ./install, which can be erroneously created by make from ./install.sh.
5886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5888 if test -z "$INSTALL"; then
5889 if test "${ac_cv_path_install+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   # Account for people who put trailing slashes in PATH elements.
5898 case $as_dir/ in
5899   ./ | .// | /cC/* | \
5900   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5901   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5902   /usr/ucb/* ) ;;
5903   *)
5904     # OSF1 and SCO ODT 3.0 have their own names for install.
5905     # Don't use installbsd from OSF since it installs stuff as root
5906     # by default.
5907     for ac_prog in ginstall scoinst install; do
5908       for ac_exec_ext in '' $ac_executable_extensions; do
5909         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5910           if test $ac_prog = install &&
5911             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5912             # AIX install.  It has an incompatible calling convention.
5913             :
5914           elif test $ac_prog = install &&
5915             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5916             # program-specific install script used by HP pwplus--don't use.
5917             :
5918           else
5919             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5920             break 3
5921           fi
5922         fi
5923       done
5924     done
5925     ;;
5926 esac
5927 done
5928 IFS=$as_save_IFS
5929
5930
5931 fi
5932   if test "${ac_cv_path_install+set}" = set; then
5933     INSTALL=$ac_cv_path_install
5934   else
5935     # As a last resort, use the slow shell script.  Don't cache a
5936     # value for INSTALL within a source directory, because that will
5937     # break other packages using the cache if that directory is
5938     # removed, or if the value is a relative name.
5939     INSTALL=$ac_install_sh
5940   fi
5941 fi
5942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5943 echo "${ECHO_T}$INSTALL" >&6; }
5944
5945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5946 # It thinks the first close brace ends the variable substitution.
5947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5948
5949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5950
5951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5952
5953 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5954 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5955 LN_S=$as_ln_s
5956 if test "$LN_S" = "ln -s"; then
5957   { echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5961 echo "${ECHO_T}no, using $LN_S" >&6; }
5962 fi
5963
5964 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5965 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5966 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   cat >conftest.make <<\_ACEOF
5971 SHELL = /bin/sh
5972 all:
5973         @echo '@@@%%%=$(MAKE)=@@@%%%'
5974 _ACEOF
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5977   *@@@%%%=?*=@@@%%%*)
5978     eval ac_cv_prog_make_${ac_make}_set=yes;;
5979   *)
5980     eval ac_cv_prog_make_${ac_make}_set=no;;
5981 esac
5982 rm -f conftest.make
5983 fi
5984 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5985   { echo "$as_me:$LINENO: result: yes" >&5
5986 echo "${ECHO_T}yes" >&6; }
5987   SET_MAKE=
5988 else
5989   { echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6; }
5991   SET_MAKE="MAKE=${MAKE-make}"
5992 fi
5993
5994 # Check whether --enable-shared was given.
5995 if test "${enable_shared+set}" = set; then
5996   enableval=$enable_shared; p=${PACKAGE-default}
5997     case $enableval in
5998     yes) enable_shared=yes ;;
5999     no) enable_shared=no ;;
6000     *)
6001       enable_shared=no
6002       # Look at the argument we got.  We use all the common list separators.
6003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6004       for pkg in $enableval; do
6005         IFS="$lt_save_ifs"
6006         if test "X$pkg" = "X$p"; then
6007           enable_shared=yes
6008         fi
6009       done
6010       IFS="$lt_save_ifs"
6011       ;;
6012     esac
6013 else
6014   enable_shared=yes
6015 fi
6016
6017
6018 # Check whether --enable-static was given.
6019 if test "${enable_static+set}" = set; then
6020   enableval=$enable_static; p=${PACKAGE-default}
6021     case $enableval in
6022     yes) enable_static=yes ;;
6023     no) enable_static=no ;;
6024     *)
6025      enable_static=no
6026       # Look at the argument we got.  We use all the common list separators.
6027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6028       for pkg in $enableval; do
6029         IFS="$lt_save_ifs"
6030         if test "X$pkg" = "X$p"; then
6031           enable_static=yes
6032         fi
6033       done
6034       IFS="$lt_save_ifs"
6035       ;;
6036     esac
6037 else
6038   enable_static=yes
6039 fi
6040
6041
6042 # Check whether --enable-fast-install was given.
6043 if test "${enable_fast_install+set}" = set; then
6044   enableval=$enable_fast_install; p=${PACKAGE-default}
6045     case $enableval in
6046     yes) enable_fast_install=yes ;;
6047     no) enable_fast_install=no ;;
6048     *)
6049       enable_fast_install=no
6050       # Look at the argument we got.  We use all the common list separators.
6051       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6052       for pkg in $enableval; do
6053         IFS="$lt_save_ifs"
6054         if test "X$pkg" = "X$p"; then
6055           enable_fast_install=yes
6056         fi
6057       done
6058       IFS="$lt_save_ifs"
6059       ;;
6060     esac
6061 else
6062   enable_fast_install=yes
6063 fi
6064
6065
6066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6068 if test "${lt_cv_path_SED+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   # Loop through the user's path and test for sed and gsed.
6072 # Then use that list of sed's as ones to test for truncation.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078   for lt_ac_prog in sed gsed; do
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6081         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6082       fi
6083     done
6084   done
6085 done
6086 IFS=$as_save_IFS
6087 lt_ac_max=0
6088 lt_ac_count=0
6089 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6090 # along with /bin/sed that truncates output.
6091 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6092   test ! -f $lt_ac_sed && continue
6093   cat /dev/null > conftest.in
6094   lt_ac_count=0
6095   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6096   # Check for GNU sed and select it if it is found.
6097   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6098     lt_cv_path_SED=$lt_ac_sed
6099     break
6100   fi
6101   while true; do
6102     cat conftest.in conftest.in >conftest.tmp
6103     mv conftest.tmp conftest.in
6104     cp conftest.in conftest.nl
6105     echo >>conftest.nl
6106     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6107     cmp -s conftest.out conftest.nl || break
6108     # 10000 chars as input seems more than enough
6109     test $lt_ac_count -gt 10 && break
6110     lt_ac_count=`expr $lt_ac_count + 1`
6111     if test $lt_ac_count -gt $lt_ac_max; then
6112       lt_ac_max=$lt_ac_count
6113       lt_cv_path_SED=$lt_ac_sed
6114     fi
6115   done
6116 done
6117
6118 fi
6119
6120 SED=$lt_cv_path_SED
6121
6122 { echo "$as_me:$LINENO: result: $SED" >&5
6123 echo "${ECHO_T}$SED" >&6; }
6124
6125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6127 if test "${ac_cv_path_GREP+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   # Extract the first word of "grep ggrep" to use in msg output
6131 if test -z "$GREP"; then
6132 set dummy grep ggrep; ac_prog_name=$2
6133 if test "${ac_cv_path_GREP+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   ac_path_GREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   for ac_prog in grep ggrep; do
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6146     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6147     # Check for GNU ac_path_GREP and select it if it is found.
6148   # Check for GNU $ac_path_GREP
6149 case `"$ac_path_GREP" --version 2>&1` in
6150 *GNU*)
6151   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6152 *)
6153   ac_count=0
6154   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6155   while :
6156   do
6157     cat "conftest.in" "conftest.in" >"conftest.tmp"
6158     mv "conftest.tmp" "conftest.in"
6159     cp "conftest.in" "conftest.nl"
6160     echo 'GREP' >> "conftest.nl"
6161     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163     ac_count=`expr $ac_count + 1`
6164     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6165       # Best one so far, save it but keep looking for a better one
6166       ac_cv_path_GREP="$ac_path_GREP"
6167       ac_path_GREP_max=$ac_count
6168     fi
6169     # 10*(2^10) chars as input seems more than enough
6170     test $ac_count -gt 10 && break
6171   done
6172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6174
6175
6176     $ac_path_GREP_found && break 3
6177   done
6178 done
6179
6180 done
6181 IFS=$as_save_IFS
6182
6183
6184 fi
6185
6186 GREP="$ac_cv_path_GREP"
6187 if test -z "$GREP"; then
6188   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6190    { (exit 1); exit 1; }; }
6191 fi
6192
6193 else
6194   ac_cv_path_GREP=$GREP
6195 fi
6196
6197
6198 fi
6199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6201  GREP="$ac_cv_path_GREP"
6202
6203
6204 { echo "$as_me:$LINENO: checking for egrep" >&5
6205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6206 if test "${ac_cv_path_EGREP+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6210    then ac_cv_path_EGREP="$GREP -E"
6211    else
6212      # Extract the first word of "egrep" to use in msg output
6213 if test -z "$EGREP"; then
6214 set dummy egrep; ac_prog_name=$2
6215 if test "${ac_cv_path_EGREP+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   ac_path_EGREP_found=false
6219 # Loop through the user's path and test for each of PROGNAME-LIST
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_prog in egrep; do
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6228     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6229     # Check for GNU ac_path_EGREP and select it if it is found.
6230   # Check for GNU $ac_path_EGREP
6231 case `"$ac_path_EGREP" --version 2>&1` in
6232 *GNU*)
6233   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6234 *)
6235   ac_count=0
6236   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6237   while :
6238   do
6239     cat "conftest.in" "conftest.in" >"conftest.tmp"
6240     mv "conftest.tmp" "conftest.in"
6241     cp "conftest.in" "conftest.nl"
6242     echo 'EGREP' >> "conftest.nl"
6243     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6244     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6245     ac_count=`expr $ac_count + 1`
6246     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6247       # Best one so far, save it but keep looking for a better one
6248       ac_cv_path_EGREP="$ac_path_EGREP"
6249       ac_path_EGREP_max=$ac_count
6250     fi
6251     # 10*(2^10) chars as input seems more than enough
6252     test $ac_count -gt 10 && break
6253   done
6254   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6255 esac
6256
6257
6258     $ac_path_EGREP_found && break 3
6259   done
6260 done
6261
6262 done
6263 IFS=$as_save_IFS
6264
6265
6266 fi
6267
6268 EGREP="$ac_cv_path_EGREP"
6269 if test -z "$EGREP"; then
6270   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6272    { (exit 1); exit 1; }; }
6273 fi
6274
6275 else
6276   ac_cv_path_EGREP=$EGREP
6277 fi
6278
6279
6280    fi
6281 fi
6282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6284  EGREP="$ac_cv_path_EGREP"
6285
6286
6287
6288 # Check whether --with-gnu-ld was given.
6289 if test "${with_gnu_ld+set}" = set; then
6290   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6291 else
6292   with_gnu_ld=no
6293 fi
6294
6295 ac_prog=ld
6296 if test "$GCC" = yes; then
6297   # Check if gcc -print-prog-name=ld gives a path.
6298   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6300   case $host in
6301   *-*-mingw*)
6302     # gcc leaves a trailing carriage return which upsets mingw
6303     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6304   *)
6305     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6306   esac
6307   case $ac_prog in
6308     # Accept absolute paths.
6309     [\\/]* | ?:[\\/]*)
6310       re_direlt='/[^/][^/]*/\.\./'
6311       # Canonicalize the pathname of ld
6312       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6313       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6314         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6315       done
6316       test -z "$LD" && LD="$ac_prog"
6317       ;;
6318   "")
6319     # If it fails, then pretend we aren't using GCC.
6320     ac_prog=ld
6321     ;;
6322   *)
6323     # If it is relative, then search for the first ld in PATH.
6324     with_gnu_ld=unknown
6325     ;;
6326   esac
6327 elif test "$with_gnu_ld" = yes; then
6328   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6333 fi
6334 if test "${lt_cv_path_LD+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   if test -z "$LD"; then
6338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339   for ac_dir in $PATH; do
6340     IFS="$lt_save_ifs"
6341     test -z "$ac_dir" && ac_dir=.
6342     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6343       lt_cv_path_LD="$ac_dir/$ac_prog"
6344       # Check to see if the program is GNU ld.  I'd rather use --version,
6345       # but apparently some variants of GNU ld only accept -v.
6346       # Break only if it was the GNU/non-GNU ld that we prefer.
6347       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6348       *GNU* | *'with BFD'*)
6349         test "$with_gnu_ld" != no && break
6350         ;;
6351       *)
6352         test "$with_gnu_ld" != yes && break
6353         ;;
6354       esac
6355     fi
6356   done
6357   IFS="$lt_save_ifs"
6358 else
6359   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6360 fi
6361 fi
6362
6363 LD="$lt_cv_path_LD"
6364 if test -n "$LD"; then
6365   { echo "$as_me:$LINENO: result: $LD" >&5
6366 echo "${ECHO_T}$LD" >&6; }
6367 else
6368   { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6370 fi
6371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6373    { (exit 1); exit 1; }; }
6374 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6380 case `$LD -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382   lt_cv_prog_gnu_ld=yes
6383   ;;
6384 *)
6385   lt_cv_prog_gnu_ld=no
6386   ;;
6387 esac
6388 fi
6389 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6391 with_gnu_ld=$lt_cv_prog_gnu_ld
6392
6393
6394 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6395 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6396 if test "${lt_cv_ld_reload_flag+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   lt_cv_ld_reload_flag='-r'
6400 fi
6401 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6402 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6403 reload_flag=$lt_cv_ld_reload_flag
6404 case $reload_flag in
6405 "" | " "*) ;;
6406 *) reload_flag=" $reload_flag" ;;
6407 esac
6408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6409 case $host_os in
6410   darwin*)
6411     if test "$GCC" = yes; then
6412       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6413     else
6414       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6415     fi
6416     ;;
6417 esac
6418
6419 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6421 if test "${lt_cv_path_NM+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   if test -n "$NM"; then
6425   # Let the user override the test.
6426   lt_cv_path_NM="$NM"
6427 else
6428   lt_nm_to_check="${ac_tool_prefix}nm"
6429   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6430     lt_nm_to_check="$lt_nm_to_check nm"
6431   fi
6432   for lt_tmp_nm in $lt_nm_to_check; do
6433     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6434     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6435       IFS="$lt_save_ifs"
6436       test -z "$ac_dir" && ac_dir=.
6437       tmp_nm="$ac_dir/$lt_tmp_nm"
6438       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6439         # Check to see if the nm accepts a BSD-compat flag.
6440         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6441         #   nm: unknown option "B" ignored
6442         # Tru64's nm complains that /dev/null is an invalid object file
6443         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6444         */dev/null* | *'Invalid file or object type'*)
6445           lt_cv_path_NM="$tmp_nm -B"
6446           break
6447           ;;
6448         *)
6449           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6450           */dev/null*)
6451             lt_cv_path_NM="$tmp_nm -p"
6452             break
6453             ;;
6454           *)
6455             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6456             continue # so that we can try to find one that supports BSD flags
6457             ;;
6458           esac
6459           ;;
6460         esac
6461       fi
6462     done
6463     IFS="$lt_save_ifs"
6464   done
6465   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6466 fi
6467 fi
6468 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6469 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6470 NM="$lt_cv_path_NM"
6471
6472 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6473 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6474 if test "${lt_cv_deplibs_check_method+set}" = set; then
6475   echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477   lt_cv_file_magic_cmd='$MAGIC_CMD'
6478 lt_cv_file_magic_test_file=
6479 lt_cv_deplibs_check_method='unknown'
6480 # Need to set the preceding variable on all platforms that support
6481 # interlibrary dependencies.
6482 # 'none' -- dependencies not supported.
6483 # `unknown' -- same as none, but documents that we really don't know.
6484 # 'pass_all' -- all dependencies passed with no checks.
6485 # 'test_compile' -- check by making test program.
6486 # 'file_magic [[regex]]' -- check by looking for files in library path
6487 # which responds to the $file_magic_cmd with a given extended regex.
6488 # If you have `file' or equivalent on your system and you're not sure
6489 # whether `pass_all' will *always* work, you probably want this one.
6490
6491 case $host_os in
6492 aix4* | aix5*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 beos*)
6497   lt_cv_deplibs_check_method=pass_all
6498   ;;
6499
6500 bsdi[45]*)
6501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6502   lt_cv_file_magic_cmd='/usr/bin/file -L'
6503   lt_cv_file_magic_test_file=/shlib/libc.so
6504   ;;
6505
6506 cygwin*)
6507   # func_win32_libid is a shell function defined in ltmain.sh
6508   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509   lt_cv_file_magic_cmd='func_win32_libid'
6510   ;;
6511
6512 mingw* | pw32*)
6513   # Base MSYS/MinGW do not provide the 'file' command needed by
6514   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6515   # unless we find 'file', for example because we are cross-compiling.
6516   if ( file / ) >/dev/null 2>&1; then
6517     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518     lt_cv_file_magic_cmd='func_win32_libid'
6519   else
6520     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6521     lt_cv_file_magic_cmd='$OBJDUMP -f'
6522   fi
6523   ;;
6524
6525 darwin* | rhapsody*)
6526   lt_cv_deplibs_check_method=pass_all
6527   ;;
6528
6529 freebsd* | dragonfly*)
6530   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6531     case $host_cpu in
6532     i*86 )
6533       # Not sure whether the presence of OpenBSD here was a mistake.
6534       # Let's accept both of them until this is cleared up.
6535       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6536       lt_cv_file_magic_cmd=/usr/bin/file
6537       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6538       ;;
6539     esac
6540   else
6541     lt_cv_deplibs_check_method=pass_all
6542   fi
6543   ;;
6544
6545 gnu*)
6546   lt_cv_deplibs_check_method=pass_all
6547   ;;
6548
6549 hpux10.20* | hpux11*)
6550   lt_cv_file_magic_cmd=/usr/bin/file
6551   case $host_cpu in
6552   ia64*)
6553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6554     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6555     ;;
6556   hppa*64*)
6557     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]'
6558     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6559     ;;
6560   *)
6561     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6562     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6563     ;;
6564   esac
6565   ;;
6566
6567 interix[3-9]*)
6568   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6569   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6570   ;;
6571
6572 irix5* | irix6* | nonstopux*)
6573   case $LD in
6574   *-32|*"-32 ") libmagic=32-bit;;
6575   *-n32|*"-n32 ") libmagic=N32;;
6576   *-64|*"-64 ") libmagic=64-bit;;
6577   *) libmagic=never-match;;
6578   esac
6579   lt_cv_deplibs_check_method=pass_all
6580   ;;
6581
6582 # This must be Linux ELF.
6583 linux* | k*bsd*-gnu)
6584   lt_cv_deplibs_check_method=pass_all
6585   ;;
6586
6587 netbsd*)
6588   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6589     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6590   else
6591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6592   fi
6593   ;;
6594
6595 newos6*)
6596   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6597   lt_cv_file_magic_cmd=/usr/bin/file
6598   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6599   ;;
6600
6601 nto-qnx*)
6602   lt_cv_deplibs_check_method=unknown
6603   ;;
6604
6605 openbsd*)
6606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6608   else
6609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6610   fi
6611   ;;
6612
6613 osf3* | osf4* | osf5*)
6614   lt_cv_deplibs_check_method=pass_all
6615   ;;
6616
6617 rdos*)
6618   lt_cv_deplibs_check_method=pass_all
6619   ;;
6620
6621 solaris*)
6622   lt_cv_deplibs_check_method=pass_all
6623   ;;
6624
6625 sysv4 | sysv4.3*)
6626   case $host_vendor in
6627   motorola)
6628     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]'
6629     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6630     ;;
6631   ncr)
6632     lt_cv_deplibs_check_method=pass_all
6633     ;;
6634   sequent)
6635     lt_cv_file_magic_cmd='/bin/file'
6636     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6637     ;;
6638   sni)
6639     lt_cv_file_magic_cmd='/bin/file'
6640     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6641     lt_cv_file_magic_test_file=/lib/libc.so
6642     ;;
6643   siemens)
6644     lt_cv_deplibs_check_method=pass_all
6645     ;;
6646   pc)
6647     lt_cv_deplibs_check_method=pass_all
6648     ;;
6649   esac
6650   ;;
6651
6652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6653   lt_cv_deplibs_check_method=pass_all
6654   ;;
6655 esac
6656
6657 fi
6658 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6659 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6660 file_magic_cmd=$lt_cv_file_magic_cmd
6661 deplibs_check_method=$lt_cv_deplibs_check_method
6662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6663
6664
6665
6666
6667 # If no C compiler was specified, use CC.
6668 LTCC=${LTCC-"$CC"}
6669
6670 # If no C compiler flags were specified, use CFLAGS.
6671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6672
6673 # Allow CC to be a program name with arguments.
6674 compiler=$CC
6675
6676 # Check whether --enable-libtool-lock was given.
6677 if test "${enable_libtool_lock+set}" = set; then
6678   enableval=$enable_libtool_lock;
6679 fi
6680
6681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6682
6683 # Some flags need to be propagated to the compiler or linker for good
6684 # libtool support.
6685 case $host in
6686 ia64-*-hpux*)
6687   # Find out which ABI we are using.
6688   echo 'int i;' > conftest.$ac_ext
6689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690   (eval $ac_compile) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; then
6694     case `/usr/bin/file conftest.$ac_objext` in
6695     *ELF-32*)
6696       HPUX_IA64_MODE="32"
6697       ;;
6698     *ELF-64*)
6699       HPUX_IA64_MODE="64"
6700       ;;
6701     esac
6702   fi
6703   rm -rf conftest*
6704   ;;
6705 *-*-irix6*)
6706   # Find out which ABI we are using.
6707   echo '#line 6707 "configure"' > conftest.$ac_ext
6708   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709   (eval $ac_compile) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; then
6713    if test "$lt_cv_prog_gnu_ld" = yes; then
6714     case `/usr/bin/file conftest.$ac_objext` in
6715     *32-bit*)
6716       LD="${LD-ld} -melf32bsmip"
6717       ;;
6718     *N32*)
6719       LD="${LD-ld} -melf32bmipn32"
6720       ;;
6721     *64-bit*)
6722       LD="${LD-ld} -melf64bmip"
6723       ;;
6724     esac
6725    else
6726     case `/usr/bin/file conftest.$ac_objext` in
6727     *32-bit*)
6728       LD="${LD-ld} -32"
6729       ;;
6730     *N32*)
6731       LD="${LD-ld} -n32"
6732       ;;
6733     *64-bit*)
6734       LD="${LD-ld} -64"
6735       ;;
6736     esac
6737    fi
6738   fi
6739   rm -rf conftest*
6740   ;;
6741
6742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6743 s390*-*linux*|sparc*-*linux*)
6744   # Find out which ABI we are using.
6745   echo 'int i;' > conftest.$ac_ext
6746   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747   (eval $ac_compile) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; then
6751     case `/usr/bin/file conftest.o` in
6752     *32-bit*)
6753       case $host in
6754         x86_64-*kfreebsd*-gnu)
6755           LD="${LD-ld} -m elf_i386_fbsd"
6756           ;;
6757         x86_64-*linux*)
6758           LD="${LD-ld} -m elf_i386"
6759           ;;
6760         ppc64-*linux*|powerpc64-*linux*)
6761           LD="${LD-ld} -m elf32ppclinux"
6762           ;;
6763         s390x-*linux*)
6764           LD="${LD-ld} -m elf_s390"
6765           ;;
6766         sparc64-*linux*)
6767           LD="${LD-ld} -m elf32_sparc"
6768           ;;
6769       esac
6770       ;;
6771     *64-bit*)
6772       libsuff=64
6773       case $host in
6774         x86_64-*kfreebsd*-gnu)
6775           LD="${LD-ld} -m elf_x86_64_fbsd"
6776           ;;
6777         x86_64-*linux*)
6778           LD="${LD-ld} -m elf_x86_64"
6779           ;;
6780         ppc*-*linux*|powerpc*-*linux*)
6781           LD="${LD-ld} -m elf64ppc"
6782           ;;
6783         s390*-*linux*)
6784           LD="${LD-ld} -m elf64_s390"
6785           ;;
6786         sparc*-*linux*)
6787           LD="${LD-ld} -m elf64_sparc"
6788           ;;
6789       esac
6790       ;;
6791     esac
6792   fi
6793   rm -rf conftest*
6794   ;;
6795
6796 *-*-sco3.2v5*)
6797   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6798   SAVE_CFLAGS="$CFLAGS"
6799   CFLAGS="$CFLAGS -belf"
6800   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6801 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6802 if test "${lt_cv_cc_needs_belf+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811      cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817
6818 int
6819 main ()
6820 {
6821
6822   ;
6823   return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (ac_try="$ac_link"
6828 case "(($ac_try" in
6829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830   *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833   (eval "$ac_link") 2>conftest.er1
6834   ac_status=$?
6835   grep -v '^ *+' conftest.er1 >conftest.err
6836   rm -f conftest.er1
6837   cat conftest.err >&5
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } && {
6840          test -z "$ac_c_werror_flag" ||
6841          test ! -s conftest.err
6842        } && test -s conftest$ac_exeext &&
6843        $as_test_x conftest$ac_exeext; then
6844   lt_cv_cc_needs_belf=yes
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849         lt_cv_cc_needs_belf=no
6850 fi
6851
6852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6853       conftest$ac_exeext conftest.$ac_ext
6854      ac_ext=c
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860 fi
6861 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6862 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6863   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865     CFLAGS="$SAVE_CFLAGS"
6866   fi
6867   ;;
6868 sparc*-*solaris*)
6869   # Find out which ABI we are using.
6870   echo 'int i;' > conftest.$ac_ext
6871   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; then
6876     case `/usr/bin/file conftest.o` in
6877     *64-bit*)
6878       case $lt_cv_prog_gnu_ld in
6879       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6880       *)    LD="${LD-ld} -64" ;;
6881       esac
6882       ;;
6883     esac
6884   fi
6885   rm -rf conftest*
6886   ;;
6887
6888
6889 esac
6890
6891 need_locks="$enable_libtool_lock"
6892
6893
6894
6895 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6896 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6897 if test "${ac_cv_header_stdc+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906 #include <stdlib.h>
6907 #include <stdarg.h>
6908 #include <string.h>
6909 #include <float.h>
6910
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6921 case "(($ac_try" in
6922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923   *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926   (eval "$ac_compile") 2>conftest.er1
6927   ac_status=$?
6928   grep -v '^ *+' conftest.er1 >conftest.err
6929   rm -f conftest.er1
6930   cat conftest.err >&5
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } && {
6933          test -z "$ac_c_werror_flag" ||
6934          test ! -s conftest.err
6935        } && test -s conftest.$ac_objext; then
6936   ac_cv_header_stdc=yes
6937 else
6938   echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941         ac_cv_header_stdc=no
6942 fi
6943
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945
6946 if test $ac_cv_header_stdc = yes; then
6947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948   cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h.  */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h.  */
6954 #include <string.h>
6955
6956 _ACEOF
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958   $EGREP "memchr" >/dev/null 2>&1; then
6959   :
6960 else
6961   ac_cv_header_stdc=no
6962 fi
6963 rm -f conftest*
6964
6965 fi
6966
6967 if test $ac_cv_header_stdc = yes; then
6968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6969   cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 #include <stdlib.h>
6976
6977 _ACEOF
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979   $EGREP "free" >/dev/null 2>&1; then
6980   :
6981 else
6982   ac_cv_header_stdc=no
6983 fi
6984 rm -f conftest*
6985
6986 fi
6987
6988 if test $ac_cv_header_stdc = yes; then
6989   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6990   if test "$cross_compiling" = yes; then
6991   :
6992 else
6993   cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 #include <ctype.h>
7000 #include <stdlib.h>
7001 #if ((' ' & 0x0FF) == 0x020)
7002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7004 #else
7005 # define ISLOWER(c) \
7006                    (('a' <= (c) && (c) <= 'i') \
7007                      || ('j' <= (c) && (c) <= 'r') \
7008                      || ('s' <= (c) && (c) <= 'z'))
7009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7010 #endif
7011
7012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7013 int
7014 main ()
7015 {
7016   int i;
7017   for (i = 0; i < 256; i++)
7018     if (XOR (islower (i), ISLOWER (i))
7019         || toupper (i) != TOUPPER (i))
7020       return 2;
7021   return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest$ac_exeext
7025 if { (ac_try="$ac_link"
7026 case "(($ac_try" in
7027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028   *) ac_try_echo=$ac_try;;
7029 esac
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031   (eval "$ac_link") 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7035   { (case "(($ac_try" in
7036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037   *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040   (eval "$ac_try") 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   :
7045 else
7046   echo "$as_me: program exited with status $ac_status" >&5
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ( exit $ac_status )
7051 ac_cv_header_stdc=no
7052 fi
7053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7054 fi
7055
7056
7057 fi
7058 fi
7059 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7060 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7061 if test $ac_cv_header_stdc = yes; then
7062
7063 cat >>confdefs.h <<\_ACEOF
7064 #define STDC_HEADERS 1
7065 _ACEOF
7066
7067 fi
7068
7069 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7080                   inttypes.h stdint.h unistd.h
7081 do
7082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 $ac_includes_default
7095
7096 #include <$ac_header>
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102   *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105   (eval "$ac_compile") 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } && {
7112          test -z "$ac_c_werror_flag" ||
7113          test ! -s conftest.err
7114        } && test -s conftest.$ac_objext; then
7115   eval "$as_ac_Header=yes"
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120         eval "$as_ac_Header=no"
7121 fi
7122
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125 ac_res=`eval echo '${'$as_ac_Header'}'`
7126                { echo "$as_me:$LINENO: result: $ac_res" >&5
7127 echo "${ECHO_T}$ac_res" >&6; }
7128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7129   cat >>confdefs.h <<_ACEOF
7130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7131 _ACEOF
7132
7133 fi
7134
7135 done
7136
7137
7138
7139 for ac_header in dlfcn.h
7140 do
7141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 fi
7148 ac_res=`eval echo '${'$as_ac_Header'}'`
7149                { echo "$as_me:$LINENO: result: $ac_res" >&5
7150 echo "${ECHO_T}$ac_res" >&6; }
7151 else
7152   # Is the header compilable?
7153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 $ac_includes_default
7162 #include <$ac_header>
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168   *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171   (eval "$ac_compile") 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } && {
7178          test -z "$ac_c_werror_flag" ||
7179          test ! -s conftest.err
7180        } && test -s conftest.$ac_objext; then
7181   ac_header_compiler=yes
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186         ac_header_compiler=no
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7191 echo "${ECHO_T}$ac_header_compiler" >&6; }
7192
7193 # Is the header present?
7194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h.  */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h.  */
7202 #include <$ac_header>
7203 _ACEOF
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7205 case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } >/dev/null && {
7217          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        }; then
7220   ac_header_preproc=yes
7221 else
7222   echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225   ac_header_preproc=no
7226 fi
7227
7228 rm -f conftest.err conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7230 echo "${ECHO_T}$ac_header_preproc" >&6; }
7231
7232 # So?  What about this header?
7233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7234   yes:no: )
7235     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7239     ac_header_preproc=yes
7240     ;;
7241   no:yes:* )
7242     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7244     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7245 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7246     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7248     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7249 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7252     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7254     ( cat <<\_ASBOX
7255 ## ---------------------------------------- ##
7256 ## Report this to linux-nfs@vger.kernel.org ##
7257 ## ---------------------------------------- ##
7258 _ASBOX
7259      ) | sed "s/^/$as_me: WARNING:     /" >&2
7260     ;;
7261 esac
7262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   eval "$as_ac_Header=\$ac_header_preproc"
7268 fi
7269 ac_res=`eval echo '${'$as_ac_Header'}'`
7270                { echo "$as_me:$LINENO: result: $ac_res" >&5
7271 echo "${ECHO_T}$ac_res" >&6; }
7272
7273 fi
7274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275   cat >>confdefs.h <<_ACEOF
7276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 _ACEOF
7278
7279 fi
7280
7281 done
7282
7283
7284
7285 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7286     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7287     (test "X$CXX" != "Xg++"))) ; then
7288   ac_ext=cpp
7289 ac_cpp='$CXXCPP $CPPFLAGS'
7290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7293 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7294 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7295 if test -z "$CXXCPP"; then
7296   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299       # Double quotes because CXXCPP needs to be expanded
7300     for CXXCPP in "$CXX -E" "/lib/cpp"
7301     do
7302       ac_preproc_ok=false
7303 for ac_cxx_preproc_warn_flag in '' yes
7304 do
7305   # Use a header file that comes with gcc, so configuring glibc
7306   # with a fresh cross-compiler works.
7307   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7308   # <limits.h> exists even on freestanding compilers.
7309   # On the NeXT, cc -E runs the code through the compiler's parser,
7310   # not just through cpp. "Syntax error" is here to catch this case.
7311   cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h.  */
7317 #ifdef __STDC__
7318 # include <limits.h>
7319 #else
7320 # include <assert.h>
7321 #endif
7322                      Syntax error
7323 _ACEOF
7324 if { (ac_try="$ac_cpp conftest.$ac_ext"
7325 case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7331   ac_status=$?
7332   grep -v '^ *+' conftest.er1 >conftest.err
7333   rm -f conftest.er1
7334   cat conftest.err >&5
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } >/dev/null && {
7337          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7338          test ! -s conftest.err
7339        }; then
7340   :
7341 else
7342   echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345   # Broken: fails on valid input.
7346 continue
7347 fi
7348
7349 rm -f conftest.err conftest.$ac_ext
7350
7351   # OK, works on sane cases.  Now check whether nonexistent headers
7352   # can be detected and how.
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 #include <ac_nonexistent.h>
7360 _ACEOF
7361 if { (ac_try="$ac_cpp conftest.$ac_ext"
7362 case "(($ac_try" in
7363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364   *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7368   ac_status=$?
7369   grep -v '^ *+' conftest.er1 >conftest.err
7370   rm -f conftest.er1
7371   cat conftest.err >&5
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); } >/dev/null && {
7374          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7375          test ! -s conftest.err
7376        }; then
7377   # Broken: success on invalid input.
7378 continue
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383   # Passes both tests.
7384 ac_preproc_ok=:
7385 break
7386 fi
7387
7388 rm -f conftest.err conftest.$ac_ext
7389
7390 done
7391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7392 rm -f conftest.err conftest.$ac_ext
7393 if $ac_preproc_ok; then
7394   break
7395 fi
7396
7397     done
7398     ac_cv_prog_CXXCPP=$CXXCPP
7399
7400 fi
7401   CXXCPP=$ac_cv_prog_CXXCPP
7402 else
7403   ac_cv_prog_CXXCPP=$CXXCPP
7404 fi
7405 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7406 echo "${ECHO_T}$CXXCPP" >&6; }
7407 ac_preproc_ok=false
7408 for ac_cxx_preproc_warn_flag in '' yes
7409 do
7410   # Use a header file that comes with gcc, so configuring glibc
7411   # with a fresh cross-compiler works.
7412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413   # <limits.h> exists even on freestanding compilers.
7414   # On the NeXT, cc -E runs the code through the compiler's parser,
7415   # not just through cpp. "Syntax error" is here to catch this case.
7416   cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422 #ifdef __STDC__
7423 # include <limits.h>
7424 #else
7425 # include <assert.h>
7426 #endif
7427                      Syntax error
7428 _ACEOF
7429 if { (ac_try="$ac_cpp conftest.$ac_ext"
7430 case "(($ac_try" in
7431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432   *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7436   ac_status=$?
7437   grep -v '^ *+' conftest.er1 >conftest.err
7438   rm -f conftest.er1
7439   cat conftest.err >&5
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } >/dev/null && {
7442          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7443          test ! -s conftest.err
7444        }; then
7445   :
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450   # Broken: fails on valid input.
7451 continue
7452 fi
7453
7454 rm -f conftest.err conftest.$ac_ext
7455
7456   # OK, works on sane cases.  Now check whether nonexistent headers
7457   # can be detected and how.
7458   cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 #include <ac_nonexistent.h>
7465 _ACEOF
7466 if { (ac_try="$ac_cpp conftest.$ac_ext"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } >/dev/null && {
7479          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7480          test ! -s conftest.err
7481        }; then
7482   # Broken: success on invalid input.
7483 continue
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488   # Passes both tests.
7489 ac_preproc_ok=:
7490 break
7491 fi
7492
7493 rm -f conftest.err conftest.$ac_ext
7494
7495 done
7496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7497 rm -f conftest.err conftest.$ac_ext
7498 if $ac_preproc_ok; then
7499   :
7500 else
7501   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7504 See \`config.log' for more details." >&2;}
7505    { (exit 1); exit 1; }; }
7506 fi
7507
7508 ac_ext=cpp
7509 ac_cpp='$CXXCPP $CPPFLAGS'
7510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7513
7514 fi
7515
7516
7517 ac_ext=f
7518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7521 if test -n "$ac_tool_prefix"; then
7522   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
7523   do
7524     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_prog_F77+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531   if test -n "$F77"; then
7532   ac_cv_prog_F77="$F77" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539   for ac_exec_ext in '' $ac_executable_extensions; do
7540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 F77=$ac_cv_prog_F77
7552 if test -n "$F77"; then
7553   { echo "$as_me:$LINENO: result: $F77" >&5
7554 echo "${ECHO_T}$F77" >&6; }
7555 else
7556   { echo "$as_me:$LINENO: result: no" >&5
7557 echo "${ECHO_T}no" >&6; }
7558 fi
7559
7560
7561     test -n "$F77" && break
7562   done
7563 fi
7564 if test -z "$F77"; then
7565   ac_ct_F77=$F77
7566   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
7567 do
7568   # Extract the first word of "$ac_prog", so it can be a program name with args.
7569 set dummy $ac_prog; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   if test -n "$ac_ct_F77"; then
7576   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583   for ac_exec_ext in '' $ac_executable_extensions; do
7584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585     ac_cv_prog_ac_ct_F77="$ac_prog"
7586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7596 if test -n "$ac_ct_F77"; then
7597   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7598 echo "${ECHO_T}$ac_ct_F77" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7602 fi
7603
7604
7605   test -n "$ac_ct_F77" && break
7606 done
7607
7608   if test "x$ac_ct_F77" = x; then
7609     F77=""
7610   else
7611     case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7614 whose name does not start with the host triplet.  If you think this
7615 configuration is useful to you, please write to autoconf@gnu.org." >&5
7616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7617 whose name does not start with the host triplet.  If you think this
7618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621     F77=$ac_ct_F77
7622   fi
7623 fi
7624
7625
7626 # Provide some information about the compiler.
7627 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7628 ac_compiler=`set X $ac_compile; echo $2`
7629 { (ac_try="$ac_compiler --version >&5"
7630 case "(($ac_try" in
7631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632   *) ac_try_echo=$ac_try;;
7633 esac
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635   (eval "$ac_compiler --version >&5") 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }
7639 { (ac_try="$ac_compiler -v >&5"
7640 case "(($ac_try" in
7641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642   *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645   (eval "$ac_compiler -v >&5") 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }
7649 { (ac_try="$ac_compiler -V >&5"
7650 case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655   (eval "$ac_compiler -V >&5") 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }
7659 rm -f a.out
7660
7661 # If we don't use `.F' as extension, the preprocessor is not run on the
7662 # input file.  (Note that this only needs to work for GNU compilers.)
7663 ac_save_ext=$ac_ext
7664 ac_ext=F
7665 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7666 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7667 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   cat >conftest.$ac_ext <<_ACEOF
7671       program main
7672 #ifndef __GNUC__
7673        choke me
7674 #endif
7675
7676       end
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (ac_try="$ac_compile"
7680 case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685   (eval "$ac_compile") 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } && {
7692          test -z "$ac_f77_werror_flag" ||
7693          test ! -s conftest.err
7694        } && test -s conftest.$ac_objext; then
7695   ac_compiler_gnu=yes
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700         ac_compiler_gnu=no
7701 fi
7702
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7705
7706 fi
7707 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7708 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7709 ac_ext=$ac_save_ext
7710 ac_test_FFLAGS=${FFLAGS+set}
7711 ac_save_FFLAGS=$FFLAGS
7712 FFLAGS=
7713 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7714 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7715 if test "${ac_cv_prog_f77_g+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   FFLAGS=-g
7719 cat >conftest.$ac_ext <<_ACEOF
7720       program main
7721
7722       end
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7726 case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731   (eval "$ac_compile") 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } && {
7738          test -z "$ac_f77_werror_flag" ||
7739          test ! -s conftest.err
7740        } && test -s conftest.$ac_objext; then
7741   ac_cv_prog_f77_g=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746         ac_cv_prog_f77_g=no
7747 fi
7748
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750
7751 fi
7752 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7753 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7754 if test "$ac_test_FFLAGS" = set; then
7755   FFLAGS=$ac_save_FFLAGS
7756 elif test $ac_cv_prog_f77_g = yes; then
7757   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7758     FFLAGS="-g -O2"
7759   else
7760     FFLAGS="-g"
7761   fi
7762 else
7763   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7764     FFLAGS="-O2"
7765   else
7766     FFLAGS=
7767   fi
7768 fi
7769
7770 G77=`test $ac_compiler_gnu = yes && echo yes`
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778
7779 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7780
7781 # find the maximum length of command line arguments
7782 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7783 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7784 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787     i=0
7788   teststring="ABCD"
7789
7790   case $build_os in
7791   msdosdjgpp*)
7792     # On DJGPP, this test can blow up pretty badly due to problems in libc
7793     # (any single argument exceeding 2000 bytes causes a buffer overrun
7794     # during glob expansion).  Even if it were fixed, the result of this
7795     # check would be larger than it should be.
7796     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7797     ;;
7798
7799   gnu*)
7800     # Under GNU Hurd, this test is not required because there is
7801     # no limit to the length of command line arguments.
7802     # Libtool will interpret -1 as no limit whatsoever
7803     lt_cv_sys_max_cmd_len=-1;
7804     ;;
7805
7806   cygwin* | mingw*)
7807     # On Win9x/ME, this test blows up -- it succeeds, but takes
7808     # about 5 minutes as the teststring grows exponentially.
7809     # Worse, since 9x/ME are not pre-emptively multitasking,
7810     # you end up with a "frozen" computer, even though with patience
7811     # the test eventually succeeds (with a max line length of 256k).
7812     # Instead, let's just punt: use the minimum linelength reported by
7813     # all of the supported platforms: 8192 (on NT/2K/XP).
7814     lt_cv_sys_max_cmd_len=8192;
7815     ;;
7816
7817   amigaos*)
7818     # On AmigaOS with pdksh, this test takes hours, literally.
7819     # So we just punt and use a minimum line length of 8192.
7820     lt_cv_sys_max_cmd_len=8192;
7821     ;;
7822
7823   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7824     # This has been around since 386BSD, at least.  Likely further.
7825     if test -x /sbin/sysctl; then
7826       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7827     elif test -x /usr/sbin/sysctl; then
7828       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7829     else
7830       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7831     fi
7832     # And add a safety zone
7833     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7834     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7835     ;;
7836
7837   interix*)
7838     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7839     lt_cv_sys_max_cmd_len=196608
7840     ;;
7841
7842   osf*)
7843     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7844     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7845     # nice to cause kernel panics so lets avoid the loop below.
7846     # First set a reasonable default.
7847     lt_cv_sys_max_cmd_len=16384
7848     #
7849     if test -x /sbin/sysconfig; then
7850       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7851         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7852       esac
7853     fi
7854     ;;
7855   sco3.2v5*)
7856     lt_cv_sys_max_cmd_len=102400
7857     ;;
7858   sysv5* | sco5v6* | sysv4.2uw2*)
7859     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7860     if test -n "$kargmax"; then
7861       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7862     else
7863       lt_cv_sys_max_cmd_len=32768
7864     fi
7865     ;;
7866   *)
7867     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7868     if test -n "$lt_cv_sys_max_cmd_len"; then
7869       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7870       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7871     else
7872       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7873       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7874                = "XX$teststring") >/dev/null 2>&1 &&
7875               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7876               lt_cv_sys_max_cmd_len=$new_result &&
7877               test $i != 17 # 1/2 MB should be enough
7878       do
7879         i=`expr $i + 1`
7880         teststring=$teststring$teststring
7881       done
7882       teststring=
7883       # Add a significant safety factor because C++ compilers can tack on massive
7884       # amounts of additional arguments before passing them to the linker.
7885       # It appears as though 1/2 is a usable value.
7886       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7887     fi
7888     ;;
7889   esac
7890
7891 fi
7892
7893 if test -n $lt_cv_sys_max_cmd_len ; then
7894   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7895 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7896 else
7897   { echo "$as_me:$LINENO: result: none" >&5
7898 echo "${ECHO_T}none" >&6; }
7899 fi
7900
7901
7902
7903
7904
7905 # Check for command to grab the raw symbol name followed by C symbol from nm.
7906 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7907 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7908 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911
7912 # These are sane defaults that work on at least a few old systems.
7913 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7914
7915 # Character class describing NM global symbol codes.
7916 symcode='[BCDEGRST]'
7917
7918 # Regexp to match symbols that can be accessed directly from C.
7919 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7920
7921 # Transform an extracted symbol line into a proper C declaration
7922 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7923
7924 # Transform an extracted symbol line into symbol name and symbol address
7925 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'"
7926
7927 # Define system-specific variables.
7928 case $host_os in
7929 aix*)
7930   symcode='[BCDT]'
7931   ;;
7932 cygwin* | mingw* | pw32*)
7933   symcode='[ABCDGISTW]'
7934   ;;
7935 hpux*) # Its linker distinguishes data from code symbols
7936   if test "$host_cpu" = ia64; then
7937     symcode='[ABCDEGRST]'
7938   fi
7939   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7940   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'"
7941   ;;
7942 linux* | k*bsd*-gnu)
7943   if test "$host_cpu" = ia64; then
7944     symcode='[ABCDGIRSTW]'
7945     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7946     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'"
7947   fi
7948   ;;
7949 irix* | nonstopux*)
7950   symcode='[BCDEGRST]'
7951   ;;
7952 osf*)
7953   symcode='[BCDEGQRST]'
7954   ;;
7955 solaris*)
7956   symcode='[BDRT]'
7957   ;;
7958 sco3.2v5*)
7959   symcode='[DT]'
7960   ;;
7961 sysv4.2uw2*)
7962   symcode='[DT]'
7963   ;;
7964 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7965   symcode='[ABDT]'
7966   ;;
7967 sysv4)
7968   symcode='[DFNSTU]'
7969   ;;
7970 esac
7971
7972 # Handle CRLF in mingw tool chain
7973 opt_cr=
7974 case $build_os in
7975 mingw*)
7976   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7977   ;;
7978 esac
7979
7980 # If we're using GNU nm, then use its standard symbol codes.
7981 case `$NM -V 2>&1` in
7982 *GNU* | *'with BFD'*)
7983   symcode='[ABCDGIRSTW]' ;;
7984 esac
7985
7986 # Try without a prefix undercore, then with it.
7987 for ac_symprfx in "" "_"; do
7988
7989   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7990   symxfrm="\\1 $ac_symprfx\\2 \\2"
7991
7992   # Write the raw and C identifiers.
7993   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7994
7995   # Check to see that the pipe works correctly.
7996   pipe_works=no
7997
7998   rm -f conftest*
7999   cat > conftest.$ac_ext <<EOF
8000 #ifdef __cplusplus
8001 extern "C" {
8002 #endif
8003 char nm_test_var;
8004 void nm_test_func(){}
8005 #ifdef __cplusplus
8006 }
8007 #endif
8008 int main(){nm_test_var='a';nm_test_func();return(0);}
8009 EOF
8010
8011   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012   (eval $ac_compile) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; then
8016     # Now try to grab the symbols.
8017     nlist=conftest.nm
8018     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8019   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); } && test -s "$nlist"; then
8023       # Try sorting and uniquifying the output.
8024       if sort "$nlist" | uniq > "$nlist"T; then
8025         mv -f "$nlist"T "$nlist"
8026       else
8027         rm -f "$nlist"T
8028       fi
8029
8030       # Make sure that we snagged all the symbols we need.
8031       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8032         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8033           cat <<EOF > conftest.$ac_ext
8034 #ifdef __cplusplus
8035 extern "C" {
8036 #endif
8037
8038 EOF
8039           # Now generate the symbol file.
8040           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8041
8042           cat <<EOF >> conftest.$ac_ext
8043 #if defined (__STDC__) && __STDC__
8044 # define lt_ptr_t void *
8045 #else
8046 # define lt_ptr_t char *
8047 # define const
8048 #endif
8049
8050 /* The mapping between symbol names and symbols. */
8051 const struct {
8052   const char *name;
8053   lt_ptr_t address;
8054 }
8055 lt_preloaded_symbols[] =
8056 {
8057 EOF
8058           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8059           cat <<\EOF >> conftest.$ac_ext
8060   {0, (lt_ptr_t) 0}
8061 };
8062
8063 #ifdef __cplusplus
8064 }
8065 #endif
8066 EOF
8067           # Now try linking the two files.
8068           mv conftest.$ac_objext conftstm.$ac_objext
8069           lt_save_LIBS="$LIBS"
8070           lt_save_CFLAGS="$CFLAGS"
8071           LIBS="conftstm.$ac_objext"
8072           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8073           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074   (eval $ac_link) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8078             pipe_works=yes
8079           fi
8080           LIBS="$lt_save_LIBS"
8081           CFLAGS="$lt_save_CFLAGS"
8082         else
8083           echo "cannot find nm_test_func in $nlist" >&5
8084         fi
8085       else
8086         echo "cannot find nm_test_var in $nlist" >&5
8087       fi
8088     else
8089       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8090     fi
8091   else
8092     echo "$progname: failed program was:" >&5
8093     cat conftest.$ac_ext >&5
8094   fi
8095   rm -f conftest* conftst*
8096
8097   # Do not use the global_symbol_pipe unless it works.
8098   if test "$pipe_works" = yes; then
8099     break
8100   else
8101     lt_cv_sys_global_symbol_pipe=
8102   fi
8103 done
8104
8105 fi
8106
8107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8108   lt_cv_sys_global_symbol_to_cdecl=
8109 fi
8110 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8111   { echo "$as_me:$LINENO: result: failed" >&5
8112 echo "${ECHO_T}failed" >&6; }
8113 else
8114   { echo "$as_me:$LINENO: result: ok" >&5
8115 echo "${ECHO_T}ok" >&6; }
8116 fi
8117
8118 { echo "$as_me:$LINENO: checking for objdir" >&5
8119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8120 if test "${lt_cv_objdir+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   rm -f .libs 2>/dev/null
8124 mkdir .libs 2>/dev/null
8125 if test -d .libs; then
8126   lt_cv_objdir=.libs
8127 else
8128   # MS-DOS does not allow filenames that begin with a dot.
8129   lt_cv_objdir=_libs
8130 fi
8131 rmdir .libs 2>/dev/null
8132 fi
8133 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8134 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8135 objdir=$lt_cv_objdir
8136
8137
8138
8139
8140
8141 case $host_os in
8142 aix3*)
8143   # AIX sometimes has problems with the GCC collect2 program.  For some
8144   # reason, if we set the COLLECT_NAMES environment variable, the problems
8145   # vanish in a puff of smoke.
8146   if test "X${COLLECT_NAMES+set}" != Xset; then
8147     COLLECT_NAMES=
8148     export COLLECT_NAMES
8149   fi
8150   ;;
8151 esac
8152
8153 # Sed substitution that helps us do robust quoting.  It backslashifies
8154 # metacharacters that are still active within double-quoted strings.
8155 Xsed='sed -e 1s/^X//'
8156 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8157
8158 # Same as above, but do not quote variable references.
8159 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8160
8161 # Sed substitution to delay expansion of an escaped shell variable in a
8162 # double_quote_subst'ed string.
8163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8164
8165 # Sed substitution to avoid accidental globbing in evaled expressions
8166 no_glob_subst='s/\*/\\\*/g'
8167
8168 # Constants:
8169 rm="rm -f"
8170
8171 # Global variables:
8172 default_ofile=libtool
8173 can_build_shared=yes
8174
8175 # All known linkers require a `.a' archive for static linking (except MSVC,
8176 # which needs '.lib').
8177 libext=a
8178 ltmain="$ac_aux_dir/ltmain.sh"
8179 ofile="$default_ofile"
8180 with_gnu_ld="$lt_cv_prog_gnu_ld"
8181
8182 if test -n "$ac_tool_prefix"; then
8183   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8184 set dummy ${ac_tool_prefix}ar; ac_word=$2
8185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8187 if test "${ac_cv_prog_AR+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190   if test -n "$AR"; then
8191   ac_cv_prog_AR="$AR" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198   for ac_exec_ext in '' $ac_executable_extensions; do
8199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8200     ac_cv_prog_AR="${ac_tool_prefix}ar"
8201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 AR=$ac_cv_prog_AR
8211 if test -n "$AR"; then
8212   { echo "$as_me:$LINENO: result: $AR" >&5
8213 echo "${ECHO_T}$AR" >&6; }
8214 else
8215   { echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6; }
8217 fi
8218
8219
8220 fi
8221 if test -z "$ac_cv_prog_AR"; then
8222   ac_ct_AR=$AR
8223   # Extract the first word of "ar", so it can be a program name with args.
8224 set dummy ar; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   if test -n "$ac_ct_AR"; then
8231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238   for ac_exec_ext in '' $ac_executable_extensions; do
8239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240     ac_cv_prog_ac_ct_AR="ar"
8241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8251 if test -n "$ac_ct_AR"; then
8252   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8253 echo "${ECHO_T}$ac_ct_AR" >&6; }
8254 else
8255   { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8257 fi
8258
8259   if test "x$ac_ct_AR" = x; then
8260     AR="false"
8261   else
8262     case $cross_compiling:$ac_tool_warned in
8263 yes:)
8264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8265 whose name does not start with the host triplet.  If you think this
8266 configuration is useful to you, please write to autoconf@gnu.org." >&5
8267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8268 whose name does not start with the host triplet.  If you think this
8269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8270 ac_tool_warned=yes ;;
8271 esac
8272     AR=$ac_ct_AR
8273   fi
8274 else
8275   AR="$ac_cv_prog_AR"
8276 fi
8277
8278 if test -n "$ac_tool_prefix"; then
8279   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_prog_RANLIB+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   if test -n "$RANLIB"; then
8287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   test -z "$as_dir" && as_dir=.
8294   for ac_exec_ext in '' $ac_executable_extensions; do
8295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298     break 2
8299   fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 fi
8305 fi
8306 RANLIB=$ac_cv_prog_RANLIB
8307 if test -n "$RANLIB"; then
8308   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8309 echo "${ECHO_T}$RANLIB" >&6; }
8310 else
8311   { echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6; }
8313 fi
8314
8315
8316 fi
8317 if test -z "$ac_cv_prog_RANLIB"; then
8318   ac_ct_RANLIB=$RANLIB
8319   # Extract the first word of "ranlib", so it can be a program name with args.
8320 set dummy ranlib; ac_word=$2
8321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   if test -n "$ac_ct_RANLIB"; then
8327   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332   IFS=$as_save_IFS
8333   test -z "$as_dir" && as_dir=.
8334   for ac_exec_ext in '' $ac_executable_extensions; do
8335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336     ac_cv_prog_ac_ct_RANLIB="ranlib"
8337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338     break 2
8339   fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi
8345 fi
8346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8347 if test -n "$ac_ct_RANLIB"; then
8348   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8349 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8350 else
8351   { echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6; }
8353 fi
8354
8355   if test "x$ac_ct_RANLIB" = x; then
8356     RANLIB=":"
8357   else
8358     case $cross_compiling:$ac_tool_warned in
8359 yes:)
8360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8361 whose name does not start with the host triplet.  If you think this
8362 configuration is useful to you, please write to autoconf@gnu.org." >&5
8363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8364 whose name does not start with the host triplet.  If you think this
8365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8366 ac_tool_warned=yes ;;
8367 esac
8368     RANLIB=$ac_ct_RANLIB
8369   fi
8370 else
8371   RANLIB="$ac_cv_prog_RANLIB"
8372 fi
8373
8374 if test -n "$ac_tool_prefix"; then
8375   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8379 if test "${ac_cv_prog_STRIP+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   if test -n "$STRIP"; then
8383   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390   for ac_exec_ext in '' $ac_executable_extensions; do
8391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397 done
8398 IFS=$as_save_IFS
8399
8400 fi
8401 fi
8402 STRIP=$ac_cv_prog_STRIP
8403 if test -n "$STRIP"; then
8404   { echo "$as_me:$LINENO: result: $STRIP" >&5
8405 echo "${ECHO_T}$STRIP" >&6; }
8406 else
8407   { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8409 fi
8410
8411
8412 fi
8413 if test -z "$ac_cv_prog_STRIP"; then
8414   ac_ct_STRIP=$STRIP
8415   # Extract the first word of "strip", so it can be a program name with args.
8416 set dummy strip; ac_word=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   if test -n "$ac_ct_STRIP"; then
8423   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430   for ac_exec_ext in '' $ac_executable_extensions; do
8431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432     ac_cv_prog_ac_ct_STRIP="strip"
8433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8443 if test -n "$ac_ct_STRIP"; then
8444   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8445 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8446 else
8447   { echo "$as_me:$LINENO: result: no" >&5
8448 echo "${ECHO_T}no" >&6; }
8449 fi
8450
8451   if test "x$ac_ct_STRIP" = x; then
8452     STRIP=":"
8453   else
8454     case $cross_compiling:$ac_tool_warned in
8455 yes:)
8456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8457 whose name does not start with the host triplet.  If you think this
8458 configuration is useful to you, please write to autoconf@gnu.org." >&5
8459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8460 whose name does not start with the host triplet.  If you think this
8461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8462 ac_tool_warned=yes ;;
8463 esac
8464     STRIP=$ac_ct_STRIP
8465   fi
8466 else
8467   STRIP="$ac_cv_prog_STRIP"
8468 fi
8469
8470
8471 old_CC="$CC"
8472 old_CFLAGS="$CFLAGS"
8473
8474 # Set sane defaults for various variables
8475 test -z "$AR" && AR=ar
8476 test -z "$AR_FLAGS" && AR_FLAGS=cru
8477 test -z "$AS" && AS=as
8478 test -z "$CC" && CC=cc
8479 test -z "$LTCC" && LTCC=$CC
8480 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8481 test -z "$DLLTOOL" && DLLTOOL=dlltool
8482 test -z "$LD" && LD=ld
8483 test -z "$LN_S" && LN_S="ln -s"
8484 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8485 test -z "$NM" && NM=nm
8486 test -z "$SED" && SED=sed
8487 test -z "$OBJDUMP" && OBJDUMP=objdump
8488 test -z "$RANLIB" && RANLIB=:
8489 test -z "$STRIP" && STRIP=:
8490 test -z "$ac_objext" && ac_objext=o
8491
8492 # Determine commands to create old-style static archives.
8493 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8494 old_postinstall_cmds='chmod 644 $oldlib'
8495 old_postuninstall_cmds=
8496
8497 if test -n "$RANLIB"; then
8498   case $host_os in
8499   openbsd*)
8500     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8501     ;;
8502   *)
8503     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8504     ;;
8505   esac
8506   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8507 fi
8508
8509 for cc_temp in $compiler""; do
8510   case $cc_temp in
8511     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8512     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8513     \-*) ;;
8514     *) break;;
8515   esac
8516 done
8517 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8518
8519
8520 # Only perform the check for file, if the check method requires it
8521 case $deplibs_check_method in
8522 file_magic*)
8523   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8525 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   case $MAGIC_CMD in
8530 [\\/*] |  ?:[\\/]*)
8531   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532   ;;
8533 *)
8534   lt_save_MAGIC_CMD="$MAGIC_CMD"
8535   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537   for ac_dir in $ac_dummy; do
8538     IFS="$lt_save_ifs"
8539     test -z "$ac_dir" && ac_dir=.
8540     if test -f $ac_dir/${ac_tool_prefix}file; then
8541       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8542       if test -n "$file_magic_test_file"; then
8543         case $deplibs_check_method in
8544         "file_magic "*)
8545           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548             $EGREP "$file_magic_regex" > /dev/null; then
8549             :
8550           else
8551             cat <<EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such.  This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem.  Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8561
8562 EOF
8563           fi ;;
8564         esac
8565       fi
8566       break
8567     fi
8568   done
8569   IFS="$lt_save_ifs"
8570   MAGIC_CMD="$lt_save_MAGIC_CMD"
8571   ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8579 else
8580   { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8582 fi
8583
8584 if test -z "$lt_cv_path_MAGIC_CMD"; then
8585   if test -n "$ac_tool_prefix"; then
8586     { echo "$as_me:$LINENO: checking for file" >&5
8587 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   case $MAGIC_CMD in
8592 [\\/*] |  ?:[\\/]*)
8593   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8594   ;;
8595 *)
8596   lt_save_MAGIC_CMD="$MAGIC_CMD"
8597   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8598   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8599   for ac_dir in $ac_dummy; do
8600     IFS="$lt_save_ifs"
8601     test -z "$ac_dir" && ac_dir=.
8602     if test -f $ac_dir/file; then
8603       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8604       if test -n "$file_magic_test_file"; then
8605         case $deplibs_check_method in
8606         "file_magic "*)
8607           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8608           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8610             $EGREP "$file_magic_regex" > /dev/null; then
8611             :
8612           else
8613             cat <<EOF 1>&2
8614
8615 *** Warning: the command libtool uses to detect shared libraries,
8616 *** $file_magic_cmd, produces output that libtool cannot recognize.
8617 *** The result is that libtool may fail to recognize shared libraries
8618 *** as such.  This will affect the creation of libtool libraries that
8619 *** depend on shared libraries, but programs linked with such libtool
8620 *** libraries will work regardless of this problem.  Nevertheless, you
8621 *** may want to report the problem to your system manager and/or to
8622 *** bug-libtool@gnu.org
8623
8624 EOF
8625           fi ;;
8626         esac
8627       fi
8628       break
8629     fi
8630   done
8631   IFS="$lt_save_ifs"
8632   MAGIC_CMD="$lt_save_MAGIC_CMD"
8633   ;;
8634 esac
8635 fi
8636
8637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8638 if test -n "$MAGIC_CMD"; then
8639   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8640 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8641 else
8642   { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8644 fi
8645
8646   else
8647     MAGIC_CMD=:
8648   fi
8649 fi
8650
8651   fi
8652   ;;
8653 esac
8654
8655 enable_dlopen=no
8656 enable_win32_dll=no
8657
8658 # Check whether --enable-libtool-lock was given.
8659 if test "${enable_libtool_lock+set}" = set; then
8660   enableval=$enable_libtool_lock;
8661 fi
8662
8663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8664
8665
8666 # Check whether --with-pic was given.
8667 if test "${with_pic+set}" = set; then
8668   withval=$with_pic; pic_mode="$withval"
8669 else
8670   pic_mode=default
8671 fi
8672
8673 test -z "$pic_mode" && pic_mode=default
8674
8675 # Use C for the default configuration in the libtool script
8676 tagname=
8677 lt_save_CC="$CC"
8678 ac_ext=c
8679 ac_cpp='$CPP $CPPFLAGS'
8680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8683
8684
8685 # Source file extension for C test sources.
8686 ac_ext=c
8687
8688 # Object file extension for compiled C test sources.
8689 objext=o
8690 objext=$objext
8691
8692 # Code to be used in simple compile tests
8693 lt_simple_compile_test_code="int some_variable = 0;"
8694
8695 # Code to be used in simple link tests
8696 lt_simple_link_test_code='int main(){return(0);}'
8697
8698
8699 # If no C compiler was specified, use CC.
8700 LTCC=${LTCC-"$CC"}
8701
8702 # If no C compiler flags were specified, use CFLAGS.
8703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8704
8705 # Allow CC to be a program name with arguments.
8706 compiler=$CC
8707
8708
8709 # save warnings/boilerplate of simple test code
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8713 _lt_compiler_boilerplate=`cat conftest.err`
8714 $rm conftest*
8715
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8719 _lt_linker_boilerplate=`cat conftest.err`
8720 $rm conftest*
8721
8722
8723
8724 lt_prog_compiler_no_builtin_flag=
8725
8726 if test "$GCC" = yes; then
8727   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8728
8729
8730 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8731 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8732 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   lt_cv_prog_compiler_rtti_exceptions=no
8736   ac_outfile=conftest.$ac_objext
8737    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738    lt_compiler_flag="-fno-rtti -fno-exceptions"
8739    # Insert the option either (1) after the last *FLAGS variable, or
8740    # (2) before a word containing "conftest.", or (3) at the end.
8741    # Note that $ac_compile itself does not contain backslashes and begins
8742    # with a dollar sign (not a hyphen), so the echo should work correctly.
8743    # The option is referenced via a variable to avoid confusing sed.
8744    lt_compile=`echo "$ac_compile" | $SED \
8745    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747    -e 's:$: $lt_compiler_flag:'`
8748    (eval echo "\"\$as_me:8748: $lt_compile\"" >&5)
8749    (eval "$lt_compile" 2>conftest.err)
8750    ac_status=$?
8751    cat conftest.err >&5
8752    echo "$as_me:8752: \$? = $ac_status" >&5
8753    if (exit $ac_status) && test -s "$ac_outfile"; then
8754      # The compiler can only warn and ignore the option if not recognized
8755      # So say no if there are warnings other than the usual output.
8756      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8757      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8759        lt_cv_prog_compiler_rtti_exceptions=yes
8760      fi
8761    fi
8762    $rm conftest*
8763
8764 fi
8765 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8766 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8767
8768 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8769     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8770 else
8771     :
8772 fi
8773
8774 fi
8775
8776 lt_prog_compiler_wl=
8777 lt_prog_compiler_pic=
8778 lt_prog_compiler_static=
8779
8780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8782
8783   if test "$GCC" = yes; then
8784     lt_prog_compiler_wl='-Wl,'
8785     lt_prog_compiler_static='-static'
8786
8787     case $host_os in
8788       aix*)
8789       # All AIX code is PIC.
8790       if test "$host_cpu" = ia64; then
8791         # AIX 5 now supports IA64 processor
8792         lt_prog_compiler_static='-Bstatic'
8793       fi
8794       ;;
8795
8796     amigaos*)
8797       # FIXME: we need at least 68020 code to build shared libraries, but
8798       # adding the `-m68020' flag to GCC prevents building anything better,
8799       # like `-m68040'.
8800       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8801       ;;
8802
8803     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8804       # PIC is the default for these OSes.
8805       ;;
8806
8807     mingw* | cygwin* | pw32* | os2*)
8808       # This hack is so that the source file can tell whether it is being
8809       # built for inclusion in a dll (and should export symbols for example).
8810       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8811       # (--disable-auto-import) libraries
8812       lt_prog_compiler_pic='-DDLL_EXPORT'
8813       ;;
8814
8815     darwin* | rhapsody*)
8816       # PIC is the default on this platform
8817       # Common symbols not allowed in MH_DYLIB files
8818       lt_prog_compiler_pic='-fno-common'
8819       ;;
8820
8821     interix[3-9]*)
8822       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8823       # Instead, we relocate shared libraries at runtime.
8824       ;;
8825
8826     msdosdjgpp*)
8827       # Just because we use GCC doesn't mean we suddenly get shared libraries
8828       # on systems that don't support them.
8829       lt_prog_compiler_can_build_shared=no
8830       enable_shared=no
8831       ;;
8832
8833     sysv4*MP*)
8834       if test -d /usr/nec; then
8835         lt_prog_compiler_pic=-Kconform_pic
8836       fi
8837       ;;
8838
8839     hpux*)
8840       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8841       # not for PA HP-UX.
8842       case $host_cpu in
8843       hppa*64*|ia64*)
8844         # +Z the default
8845         ;;
8846       *)
8847         lt_prog_compiler_pic='-fPIC'
8848         ;;
8849       esac
8850       ;;
8851
8852     *)
8853       lt_prog_compiler_pic='-fPIC'
8854       ;;
8855     esac
8856   else
8857     # PORTME Check for flag to pass linker flags through the system compiler.
8858     case $host_os in
8859     aix*)
8860       lt_prog_compiler_wl='-Wl,'
8861       if test "$host_cpu" = ia64; then
8862         # AIX 5 now supports IA64 processor
8863         lt_prog_compiler_static='-Bstatic'
8864       else
8865         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8866       fi
8867       ;;
8868       darwin*)
8869         # PIC is the default on this platform
8870         # Common symbols not allowed in MH_DYLIB files
8871        case $cc_basename in
8872          xlc*)
8873          lt_prog_compiler_pic='-qnocommon'
8874          lt_prog_compiler_wl='-Wl,'
8875          ;;
8876        esac
8877        ;;
8878
8879     mingw* | cygwin* | pw32* | os2*)
8880       # This hack is so that the source file can tell whether it is being
8881       # built for inclusion in a dll (and should export symbols for example).
8882       lt_prog_compiler_pic='-DDLL_EXPORT'
8883       ;;
8884
8885     hpux9* | hpux10* | hpux11*)
8886       lt_prog_compiler_wl='-Wl,'
8887       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8888       # not for PA HP-UX.
8889       case $host_cpu in
8890       hppa*64*|ia64*)
8891         # +Z the default
8892         ;;
8893       *)
8894         lt_prog_compiler_pic='+Z'
8895         ;;
8896       esac
8897       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8898       lt_prog_compiler_static='${wl}-a ${wl}archive'
8899       ;;
8900
8901     irix5* | irix6* | nonstopux*)
8902       lt_prog_compiler_wl='-Wl,'
8903       # PIC (with -KPIC) is the default.
8904       lt_prog_compiler_static='-non_shared'
8905       ;;
8906
8907     newsos6)
8908       lt_prog_compiler_pic='-KPIC'
8909       lt_prog_compiler_static='-Bstatic'
8910       ;;
8911
8912     linux* | k*bsd*-gnu)
8913       case $cc_basename in
8914       icc* | ecc*)
8915         lt_prog_compiler_wl='-Wl,'
8916         lt_prog_compiler_pic='-KPIC'
8917         lt_prog_compiler_static='-static'
8918         ;;
8919       pgcc* | pgf77* | pgf90* | pgf95*)
8920         # Portland Group compilers (*not* the Pentium gcc compiler,
8921         # which looks to be a dead project)
8922         lt_prog_compiler_wl='-Wl,'
8923         lt_prog_compiler_pic='-fpic'
8924         lt_prog_compiler_static='-Bstatic'
8925         ;;
8926       ccc*)
8927         lt_prog_compiler_wl='-Wl,'
8928         # All Alpha code is PIC.
8929         lt_prog_compiler_static='-non_shared'
8930         ;;
8931       *)
8932         case `$CC -V 2>&1 | sed 5q` in
8933         *Sun\ C*)
8934           # Sun C 5.9
8935           lt_prog_compiler_pic='-KPIC'
8936           lt_prog_compiler_static='-Bstatic'
8937           lt_prog_compiler_wl='-Wl,'
8938           ;;
8939         *Sun\ F*)
8940           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8941           lt_prog_compiler_pic='-KPIC'
8942           lt_prog_compiler_static='-Bstatic'
8943           lt_prog_compiler_wl=''
8944           ;;
8945         esac
8946         ;;
8947       esac
8948       ;;
8949
8950     osf3* | osf4* | osf5*)
8951       lt_prog_compiler_wl='-Wl,'
8952       # All OSF/1 code is PIC.
8953       lt_prog_compiler_static='-non_shared'
8954       ;;
8955
8956     rdos*)
8957       lt_prog_compiler_static='-non_shared'
8958       ;;
8959
8960     solaris*)
8961       lt_prog_compiler_pic='-KPIC'
8962       lt_prog_compiler_static='-Bstatic'
8963       case $cc_basename in
8964       f77* | f90* | f95*)
8965         lt_prog_compiler_wl='-Qoption ld ';;
8966       *)
8967         lt_prog_compiler_wl='-Wl,';;
8968       esac
8969       ;;
8970
8971     sunos4*)
8972       lt_prog_compiler_wl='-Qoption ld '
8973       lt_prog_compiler_pic='-PIC'
8974       lt_prog_compiler_static='-Bstatic'
8975       ;;
8976
8977     sysv4 | sysv4.2uw2* | sysv4.3*)
8978       lt_prog_compiler_wl='-Wl,'
8979       lt_prog_compiler_pic='-KPIC'
8980       lt_prog_compiler_static='-Bstatic'
8981       ;;
8982
8983     sysv4*MP*)
8984       if test -d /usr/nec ;then
8985         lt_prog_compiler_pic='-Kconform_pic'
8986         lt_prog_compiler_static='-Bstatic'
8987       fi
8988       ;;
8989
8990     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8991       lt_prog_compiler_wl='-Wl,'
8992       lt_prog_compiler_pic='-KPIC'
8993       lt_prog_compiler_static='-Bstatic'
8994       ;;
8995
8996     unicos*)
8997       lt_prog_compiler_wl='-Wl,'
8998       lt_prog_compiler_can_build_shared=no
8999       ;;
9000
9001     uts4*)
9002       lt_prog_compiler_pic='-pic'
9003       lt_prog_compiler_static='-Bstatic'
9004       ;;
9005
9006     *)
9007       lt_prog_compiler_can_build_shared=no
9008       ;;
9009     esac
9010   fi
9011
9012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9013 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9014
9015 #
9016 # Check to make sure the PIC flag actually works.
9017 #
9018 if test -n "$lt_prog_compiler_pic"; then
9019
9020 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9021 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9022 if test "${lt_prog_compiler_pic_works+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025   lt_prog_compiler_pic_works=no
9026   ac_outfile=conftest.$ac_objext
9027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9029    # Insert the option either (1) after the last *FLAGS variable, or
9030    # (2) before a word containing "conftest.", or (3) at the end.
9031    # Note that $ac_compile itself does not contain backslashes and begins
9032    # with a dollar sign (not a hyphen), so the echo should work correctly.
9033    # The option is referenced via a variable to avoid confusing sed.
9034    lt_compile=`echo "$ac_compile" | $SED \
9035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037    -e 's:$: $lt_compiler_flag:'`
9038    (eval echo "\"\$as_me:9038: $lt_compile\"" >&5)
9039    (eval "$lt_compile" 2>conftest.err)
9040    ac_status=$?
9041    cat conftest.err >&5
9042    echo "$as_me:9042: \$? = $ac_status" >&5
9043    if (exit $ac_status) && test -s "$ac_outfile"; then
9044      # The compiler can only warn and ignore the option if not recognized
9045      # So say no if there are warnings other than the usual output.
9046      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9047      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9048      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9049        lt_prog_compiler_pic_works=yes
9050      fi
9051    fi
9052    $rm conftest*
9053
9054 fi
9055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9056 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9057
9058 if test x"$lt_prog_compiler_pic_works" = xyes; then
9059     case $lt_prog_compiler_pic in
9060      "" | " "*) ;;
9061      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9062      esac
9063 else
9064     lt_prog_compiler_pic=
9065      lt_prog_compiler_can_build_shared=no
9066 fi
9067
9068 fi
9069 case $host_os in
9070   # For platforms which do not support PIC, -DPIC is meaningless:
9071   *djgpp*)
9072     lt_prog_compiler_pic=
9073     ;;
9074   *)
9075     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9076     ;;
9077 esac
9078
9079 #
9080 # Check to make sure the static flag actually works.
9081 #
9082 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9083 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9084 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9085 if test "${lt_prog_compiler_static_works+set}" = set; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088   lt_prog_compiler_static_works=no
9089    save_LDFLAGS="$LDFLAGS"
9090    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9091    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9092    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9093      # The linker can only warn and ignore the option if not recognized
9094      # So say no if there are warnings
9095      if test -s conftest.err; then
9096        # Append any errors to the config.log.
9097        cat conftest.err 1>&5
9098        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9099        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100        if diff conftest.exp conftest.er2 >/dev/null; then
9101          lt_prog_compiler_static_works=yes
9102        fi
9103      else
9104        lt_prog_compiler_static_works=yes
9105      fi
9106    fi
9107    $rm conftest*
9108    LDFLAGS="$save_LDFLAGS"
9109
9110 fi
9111 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9112 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9113
9114 if test x"$lt_prog_compiler_static_works" = xyes; then
9115     :
9116 else
9117     lt_prog_compiler_static=
9118 fi
9119
9120
9121 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9122 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9123 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   lt_cv_prog_compiler_c_o=no
9127    $rm -r conftest 2>/dev/null
9128    mkdir conftest
9129    cd conftest
9130    mkdir out
9131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132
9133    lt_compiler_flag="-o out/conftest2.$ac_objext"
9134    # Insert the option either (1) after the last *FLAGS variable, or
9135    # (2) before a word containing "conftest.", or (3) at the end.
9136    # Note that $ac_compile itself does not contain backslashes and begins
9137    # with a dollar sign (not a hyphen), so the echo should work correctly.
9138    lt_compile=`echo "$ac_compile" | $SED \
9139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9141    -e 's:$: $lt_compiler_flag:'`
9142    (eval echo "\"\$as_me:9142: $lt_compile\"" >&5)
9143    (eval "$lt_compile" 2>out/conftest.err)
9144    ac_status=$?
9145    cat out/conftest.err >&5
9146    echo "$as_me:9146: \$? = $ac_status" >&5
9147    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9148    then
9149      # The compiler can only warn and ignore the option if not recognized
9150      # So say no if there are warnings
9151      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9152      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9153      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9154        lt_cv_prog_compiler_c_o=yes
9155      fi
9156    fi
9157    chmod u+w . 2>&5
9158    $rm conftest*
9159    # SGI C++ compiler will create directory out/ii_files/ for
9160    # template instantiation
9161    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9162    $rm out/* && rmdir out
9163    cd ..
9164    rmdir conftest
9165    $rm conftest*
9166
9167 fi
9168 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9169 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9170
9171
9172 hard_links="nottested"
9173 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9174   # do not overwrite the value of need_locks provided by the user
9175   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9176 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9177   hard_links=yes
9178   $rm conftest*
9179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180   touch conftest.a
9181   ln conftest.a conftest.b 2>&5 || hard_links=no
9182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9183   { echo "$as_me:$LINENO: result: $hard_links" >&5
9184 echo "${ECHO_T}$hard_links" >&6; }
9185   if test "$hard_links" = no; then
9186     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9187 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9188     need_locks=warn
9189   fi
9190 else
9191   need_locks=no
9192 fi
9193
9194 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9195 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9196
9197   runpath_var=
9198   allow_undefined_flag=
9199   enable_shared_with_static_runtimes=no
9200   archive_cmds=
9201   archive_expsym_cmds=
9202   old_archive_From_new_cmds=
9203   old_archive_from_expsyms_cmds=
9204   export_dynamic_flag_spec=
9205   whole_archive_flag_spec=
9206   thread_safe_flag_spec=
9207   hardcode_libdir_flag_spec=
9208   hardcode_libdir_flag_spec_ld=
9209   hardcode_libdir_separator=
9210   hardcode_direct=no
9211   hardcode_minus_L=no
9212   hardcode_shlibpath_var=unsupported
9213   link_all_deplibs=unknown
9214   hardcode_automatic=no
9215   module_cmds=
9216   module_expsym_cmds=
9217   always_export_symbols=no
9218   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9219   # include_expsyms should be a list of space-separated symbols to be *always*
9220   # included in the symbol list
9221   include_expsyms=
9222   # exclude_expsyms can be an extended regexp of symbols to exclude
9223   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9224   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9225   # as well as any symbol that contains `d'.
9226   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9227   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9228   # platforms (ab)use it in PIC code, but their linkers get confused if
9229   # the symbol is explicitly referenced.  Since portable code cannot
9230   # rely on this symbol name, it's probably fine to never include it in
9231   # preloaded symbol tables.
9232   extract_expsyms_cmds=
9233   # Just being paranoid about ensuring that cc_basename is set.
9234   for cc_temp in $compiler""; do
9235   case $cc_temp in
9236     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9237     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9238     \-*) ;;
9239     *) break;;
9240   esac
9241 done
9242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9243
9244   case $host_os in
9245   cygwin* | mingw* | pw32*)
9246     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247     # When not using gcc, we currently assume that we are using
9248     # Microsoft Visual C++.
9249     if test "$GCC" != yes; then
9250       with_gnu_ld=no
9251     fi
9252     ;;
9253   interix*)
9254     # we just hope/assume this is gcc and not c89 (= MSVC++)
9255     with_gnu_ld=yes
9256     ;;
9257   openbsd*)
9258     with_gnu_ld=no
9259     ;;
9260   esac
9261
9262   ld_shlibs=yes
9263   if test "$with_gnu_ld" = yes; then
9264     # If archive_cmds runs LD, not CC, wlarc should be empty
9265     wlarc='${wl}'
9266
9267     # Set some defaults for GNU ld with shared library support. These
9268     # are reset later if shared libraries are not supported. Putting them
9269     # here allows them to be overridden if necessary.
9270     runpath_var=LD_RUN_PATH
9271     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9272     export_dynamic_flag_spec='${wl}--export-dynamic'
9273     # ancient GNU ld didn't support --whole-archive et. al.
9274     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9275         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9276       else
9277         whole_archive_flag_spec=
9278     fi
9279     supports_anon_versioning=no
9280     case `$LD -v 2>/dev/null` in
9281       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9282       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9283       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9284       *\ 2.11.*) ;; # other 2.11 versions
9285       *) supports_anon_versioning=yes ;;
9286     esac
9287
9288     # See if GNU ld supports shared libraries.
9289     case $host_os in
9290     aix3* | aix4* | aix5*)
9291       # On AIX/PPC, the GNU linker is very broken
9292       if test "$host_cpu" != ia64; then
9293         ld_shlibs=no
9294         cat <<EOF 1>&2
9295
9296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9297 *** to be unable to reliably create shared libraries on AIX.
9298 *** Therefore, libtool is disabling shared libraries support.  If you
9299 *** really care for shared libraries, you may want to modify your PATH
9300 *** so that a non-GNU linker is found, and then restart.
9301
9302 EOF
9303       fi
9304       ;;
9305
9306     amigaos*)
9307       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)'
9308       hardcode_libdir_flag_spec='-L$libdir'
9309       hardcode_minus_L=yes
9310
9311       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9312       # that the semantics of dynamic libraries on AmigaOS, at least up
9313       # to version 4, is to share data among multiple programs linked
9314       # with the same dynamic library.  Since this doesn't match the
9315       # behavior of shared libraries on other platforms, we can't use
9316       # them.
9317       ld_shlibs=no
9318       ;;
9319
9320     beos*)
9321       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9322         allow_undefined_flag=unsupported
9323         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9324         # support --undefined.  This deserves some investigation.  FIXME
9325         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326       else
9327         ld_shlibs=no
9328       fi
9329       ;;
9330
9331     cygwin* | mingw* | pw32*)
9332       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9333       # as there is no search path for DLLs.
9334       hardcode_libdir_flag_spec='-L$libdir'
9335       allow_undefined_flag=unsupported
9336       always_export_symbols=no
9337       enable_shared_with_static_runtimes=yes
9338       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9339
9340       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9342         # If the export-symbols file already is a .def file (1st line
9343         # is EXPORTS), use it as is; otherwise, prepend...
9344         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9345           cp $export_symbols $output_objdir/$soname.def;
9346         else
9347           echo EXPORTS > $output_objdir/$soname.def;
9348           cat $export_symbols >> $output_objdir/$soname.def;
9349         fi~
9350         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9351       else
9352         ld_shlibs=no
9353       fi
9354       ;;
9355
9356     interix[3-9]*)
9357       hardcode_direct=no
9358       hardcode_shlibpath_var=no
9359       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360       export_dynamic_flag_spec='${wl}-E'
9361       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9362       # Instead, shared libraries are loaded at an image base (0x10000000 by
9363       # default) and relocated if they conflict, which is a slow very memory
9364       # consuming and fragmenting process.  To avoid this, we pick a random,
9365       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9366       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9367       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9368       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'
9369       ;;
9370
9371     gnu* | linux* | k*bsd*-gnu)
9372       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9373         tmp_addflag=
9374         case $cc_basename,$host_cpu in
9375         pgcc*)                          # Portland Group C compiler
9376           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'
9377           tmp_addflag=' $pic_flag'
9378           ;;
9379         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9380           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'
9381           tmp_addflag=' $pic_flag -Mnomain' ;;
9382         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9383           tmp_addflag=' -i_dynamic' ;;
9384         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9385           tmp_addflag=' -i_dynamic -nofor_main' ;;
9386         ifc* | ifort*)                  # Intel Fortran compiler
9387           tmp_addflag=' -nofor_main' ;;
9388         esac
9389         case `$CC -V 2>&1 | sed 5q` in
9390         *Sun\ C*)                       # Sun C 5.9
9391           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'
9392           tmp_sharedflag='-G' ;;
9393         *Sun\ F*)                       # Sun Fortran 8.3
9394           tmp_sharedflag='-G' ;;
9395         *)
9396           tmp_sharedflag='-shared' ;;
9397         esac
9398         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399
9400         if test $supports_anon_versioning = yes; then
9401           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9402   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403   $echo "local: *; };" >> $output_objdir/$libname.ver~
9404           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405         fi
9406       else
9407         ld_shlibs=no
9408       fi
9409       ;;
9410
9411     netbsd*)
9412       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9413         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9414         wlarc=
9415       else
9416         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418       fi
9419       ;;
9420
9421     solaris*)
9422       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9423         ld_shlibs=no
9424         cat <<EOF 1>&2
9425
9426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9427 *** create shared libraries on Solaris systems.  Therefore, libtool
9428 *** is disabling shared libraries support.  We urge you to upgrade GNU
9429 *** binutils to release 2.9.1 or newer.  Another option is to modify
9430 *** your PATH or compiler configuration so that the native linker is
9431 *** used, and then restart.
9432
9433 EOF
9434       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9435         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9437       else
9438         ld_shlibs=no
9439       fi
9440       ;;
9441
9442     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9443       case `$LD -v 2>&1` in
9444         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9445         ld_shlibs=no
9446         cat <<_LT_EOF 1>&2
9447
9448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9449 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9450 *** is disabling shared libraries support.  We urge you to upgrade GNU
9451 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9452 *** your PATH or compiler configuration so that the native linker is
9453 *** used, and then restart.
9454
9455 _LT_EOF
9456         ;;
9457         *)
9458           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9459             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9460             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9461             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9462           else
9463             ld_shlibs=no
9464           fi
9465         ;;
9466       esac
9467       ;;
9468
9469     sunos4*)
9470       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9471       wlarc=
9472       hardcode_direct=yes
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     *)
9477       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9478         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480       else
9481         ld_shlibs=no
9482       fi
9483       ;;
9484     esac
9485
9486     if test "$ld_shlibs" = no; then
9487       runpath_var=
9488       hardcode_libdir_flag_spec=
9489       export_dynamic_flag_spec=
9490       whole_archive_flag_spec=
9491     fi
9492   else
9493     # PORTME fill in a description of your system's linker (not GNU ld)
9494     case $host_os in
9495     aix3*)
9496       allow_undefined_flag=unsupported
9497       always_export_symbols=yes
9498       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'
9499       # Note: this linker hardcodes the directories in LIBPATH if there
9500       # are no directories specified by -L.
9501       hardcode_minus_L=yes
9502       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9503         # Neither direct hardcoding nor static linking is supported with a
9504         # broken collect2.
9505         hardcode_direct=unsupported
9506       fi
9507       ;;
9508
9509     aix4* | aix5*)
9510       if test "$host_cpu" = ia64; then
9511         # On IA64, the linker does run time linking by default, so we don't
9512         # have to do anything special.
9513         aix_use_runtimelinking=no
9514         exp_sym_flag='-Bexport'
9515         no_entry_flag=""
9516       else
9517         # If we're using GNU nm, then we don't want the "-C" option.
9518         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9519         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9520           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'
9521         else
9522           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'
9523         fi
9524         aix_use_runtimelinking=no
9525
9526         # Test if we are trying to use run time linking or normal
9527         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9528         # need to do runtime linking.
9529         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9530           for ld_flag in $LDFLAGS; do
9531           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9532             aix_use_runtimelinking=yes
9533             break
9534           fi
9535           done
9536           ;;
9537         esac
9538
9539         exp_sym_flag='-bexport'
9540         no_entry_flag='-bnoentry'
9541       fi
9542
9543       # When large executables or shared objects are built, AIX ld can
9544       # have problems creating the table of contents.  If linking a library
9545       # or program results in "error TOC overflow" add -mminimal-toc to
9546       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9547       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9548
9549       archive_cmds=''
9550       hardcode_direct=yes
9551       hardcode_libdir_separator=':'
9552       link_all_deplibs=yes
9553
9554       if test "$GCC" = yes; then
9555         case $host_os in aix4.[012]|aix4.[012].*)
9556         # We only want to do this on AIX 4.2 and lower, the check
9557         # below for broken collect2 doesn't work under 4.3+
9558           collect2name=`${CC} -print-prog-name=collect2`
9559           if test -f "$collect2name" && \
9560            strings "$collect2name" | grep resolve_lib_name >/dev/null
9561           then
9562           # We have reworked collect2
9563           :
9564           else
9565           # We have old collect2
9566           hardcode_direct=unsupported
9567           # It fails to find uninstalled libraries when the uninstalled
9568           # path is not listed in the libpath.  Setting hardcode_minus_L
9569           # to unsupported forces relinking
9570           hardcode_minus_L=yes
9571           hardcode_libdir_flag_spec='-L$libdir'
9572           hardcode_libdir_separator=
9573           fi
9574           ;;
9575         esac
9576         shared_flag='-shared'
9577         if test "$aix_use_runtimelinking" = yes; then
9578           shared_flag="$shared_flag "'${wl}-G'
9579         fi
9580       else
9581         # not using gcc
9582         if test "$host_cpu" = ia64; then
9583         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9584         # chokes on -Wl,-G. The following line is correct:
9585           shared_flag='-G'
9586         else
9587           if test "$aix_use_runtimelinking" = yes; then
9588             shared_flag='${wl}-G'
9589           else
9590             shared_flag='${wl}-bM:SRE'
9591           fi
9592         fi
9593       fi
9594
9595       # It seems that -bexpall does not export symbols beginning with
9596       # underscore (_), so it is better to generate a list of symbols to export.
9597       always_export_symbols=yes
9598       if test "$aix_use_runtimelinking" = yes; then
9599         # Warning - without using the other runtime loading flags (-brtl),
9600         # -berok will link without error, but may produce a broken library.
9601         allow_undefined_flag='-berok'
9602        # Determine the default libpath from the value encoded in an empty executable.
9603        cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609
9610 int
9611 main ()
9612 {
9613
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } && {
9632          test -z "$ac_c_werror_flag" ||
9633          test ! -s conftest.err
9634        } && test -s conftest$ac_exeext &&
9635        $as_test_x conftest$ac_exeext; then
9636
9637 lt_aix_libpath_sed='
9638     /Import File Strings/,/^$/ {
9639         /^0/ {
9640             s/^0  *\(.*\)$/\1/
9641             p
9642         }
9643     }'
9644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9645 # Check for a 64-bit object if we didn't find anything.
9646 if test -z "$aix_libpath"; then
9647   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 fi
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657       conftest$ac_exeext conftest.$ac_ext
9658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9659
9660        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9661         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"
9662        else
9663         if test "$host_cpu" = ia64; then
9664           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9665           allow_undefined_flag="-z nodefs"
9666           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"
9667         else
9668          # Determine the default libpath from the value encoded in an empty executable.
9669          cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675
9676 int
9677 main ()
9678 {
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_link") 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } && {
9698          test -z "$ac_c_werror_flag" ||
9699          test ! -s conftest.err
9700        } && test -s conftest$ac_exeext &&
9701        $as_test_x conftest$ac_exeext; then
9702
9703 lt_aix_libpath_sed='
9704     /Import File Strings/,/^$/ {
9705         /^0/ {
9706             s/^0  *\(.*\)$/\1/
9707             p
9708         }
9709     }'
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714 fi
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723       conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725
9726          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727           # Warning - without using the other run time loading flags,
9728           # -berok will link without error, but may produce a broken library.
9729           no_undefined_flag=' ${wl}-bernotok'
9730           allow_undefined_flag=' ${wl}-berok'
9731           # Exported symbols can be pulled into shared objects from archives
9732           whole_archive_flag_spec='$convenience'
9733           archive_cmds_need_lc=yes
9734           # This is similar to how AIX traditionally builds its shared libraries.
9735           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'
9736         fi
9737       fi
9738       ;;
9739
9740     amigaos*)
9741       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)'
9742       hardcode_libdir_flag_spec='-L$libdir'
9743       hardcode_minus_L=yes
9744       # see comment about different semantics on the GNU ld section
9745       ld_shlibs=no
9746       ;;
9747
9748     bsdi[45]*)
9749       export_dynamic_flag_spec=-rdynamic
9750       ;;
9751
9752     cygwin* | mingw* | pw32*)
9753       # When not using gcc, we currently assume that we are using
9754       # Microsoft Visual C++.
9755       # hardcode_libdir_flag_spec is actually meaningless, as there is
9756       # no search path for DLLs.
9757       hardcode_libdir_flag_spec=' '
9758       allow_undefined_flag=unsupported
9759       # Tell ltmain to make .lib files, not .a files.
9760       libext=lib
9761       # Tell ltmain to make .dll files, not .so files.
9762       shrext_cmds=".dll"
9763       # FIXME: Setting linknames here is a bad hack.
9764       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9765       # The linker will automatically build a .lib file if we build a DLL.
9766       old_archive_From_new_cmds='true'
9767       # FIXME: Should let the user specify the lib program.
9768       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9769       fix_srcfile_path='`cygpath -w "$srcfile"`'
9770       enable_shared_with_static_runtimes=yes
9771       ;;
9772
9773     darwin* | rhapsody*)
9774       case $host_os in
9775         rhapsody* | darwin1.[012])
9776          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9777          ;;
9778        *) # Darwin 1.3 on
9779          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9780            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9781          else
9782            case ${MACOSX_DEPLOYMENT_TARGET} in
9783              10.[012])
9784                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9785                ;;
9786              10.*)
9787                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9788                ;;
9789            esac
9790          fi
9791          ;;
9792       esac
9793       archive_cmds_need_lc=no
9794       hardcode_direct=no
9795       hardcode_automatic=yes
9796       hardcode_shlibpath_var=unsupported
9797       whole_archive_flag_spec=''
9798       link_all_deplibs=yes
9799     if test "$GCC" = yes ; then
9800         output_verbose_link_cmd='echo'
9801         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9802       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9803       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9804       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9805       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}'
9806     else
9807       case $cc_basename in
9808         xlc*)
9809          output_verbose_link_cmd='echo'
9810          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9811          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9812           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9813          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}'
9814           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}'
9815           ;;
9816        *)
9817          ld_shlibs=no
9818           ;;
9819       esac
9820     fi
9821       ;;
9822
9823     dgux*)
9824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825       hardcode_libdir_flag_spec='-L$libdir'
9826       hardcode_shlibpath_var=no
9827       ;;
9828
9829     freebsd1*)
9830       ld_shlibs=no
9831       ;;
9832
9833     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9834     # support.  Future versions do this automatically, but an explicit c++rt0.o
9835     # does not break anything, and helps significantly (at the cost of a little
9836     # extra space).
9837     freebsd2.2*)
9838       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9839       hardcode_libdir_flag_spec='-R$libdir'
9840       hardcode_direct=yes
9841       hardcode_shlibpath_var=no
9842       ;;
9843
9844     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9845     freebsd2*)
9846       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9847       hardcode_direct=yes
9848       hardcode_minus_L=yes
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9853     freebsd* | dragonfly*)
9854       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9855       hardcode_libdir_flag_spec='-R$libdir'
9856       hardcode_direct=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     hpux9*)
9861       if test "$GCC" = yes; then
9862         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'
9863       else
9864         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'
9865       fi
9866       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9867       hardcode_libdir_separator=:
9868       hardcode_direct=yes
9869
9870       # hardcode_minus_L: Not really in the search PATH,
9871       # but as the default location of the library.
9872       hardcode_minus_L=yes
9873       export_dynamic_flag_spec='${wl}-E'
9874       ;;
9875
9876     hpux10*)
9877       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9878         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879       else
9880         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9881       fi
9882       if test "$with_gnu_ld" = no; then
9883         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884         hardcode_libdir_separator=:
9885
9886         hardcode_direct=yes
9887         export_dynamic_flag_spec='${wl}-E'
9888
9889         # hardcode_minus_L: Not really in the search PATH,
9890         # but as the default location of the library.
9891         hardcode_minus_L=yes
9892       fi
9893       ;;
9894
9895     hpux11*)
9896       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9897         case $host_cpu in
9898         hppa*64*)
9899           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900           ;;
9901         ia64*)
9902           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903           ;;
9904         *)
9905           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9906           ;;
9907         esac
9908       else
9909         case $host_cpu in
9910         hppa*64*)
9911           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912           ;;
9913         ia64*)
9914           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9915           ;;
9916         *)
9917           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918           ;;
9919         esac
9920       fi
9921       if test "$with_gnu_ld" = no; then
9922         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923         hardcode_libdir_separator=:
9924
9925         case $host_cpu in
9926         hppa*64*|ia64*)
9927           hardcode_libdir_flag_spec_ld='+b $libdir'
9928           hardcode_direct=no
9929           hardcode_shlibpath_var=no
9930           ;;
9931         *)
9932           hardcode_direct=yes
9933           export_dynamic_flag_spec='${wl}-E'
9934
9935           # hardcode_minus_L: Not really in the search PATH,
9936           # but as the default location of the library.
9937           hardcode_minus_L=yes
9938           ;;
9939         esac
9940       fi
9941       ;;
9942
9943     irix5* | irix6* | nonstopux*)
9944       if test "$GCC" = yes; then
9945         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'
9946       else
9947         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'
9948         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9949       fi
9950       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951       hardcode_libdir_separator=:
9952       link_all_deplibs=yes
9953       ;;
9954
9955     netbsd*)
9956       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9957         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9958       else
9959         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9960       fi
9961       hardcode_libdir_flag_spec='-R$libdir'
9962       hardcode_direct=yes
9963       hardcode_shlibpath_var=no
9964       ;;
9965
9966     newsos6)
9967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968       hardcode_direct=yes
9969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970       hardcode_libdir_separator=:
9971       hardcode_shlibpath_var=no
9972       ;;
9973
9974     openbsd*)
9975       if test -f /usr/libexec/ld.so; then
9976         hardcode_direct=yes
9977         hardcode_shlibpath_var=no
9978         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9979           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9981           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9982           export_dynamic_flag_spec='${wl}-E'
9983         else
9984           case $host_os in
9985            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9986              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987              hardcode_libdir_flag_spec='-R$libdir'
9988              ;;
9989            *)
9990              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992              ;;
9993           esac
9994         fi
9995       else
9996         ld_shlibs=no
9997       fi
9998       ;;
9999
10000     os2*)
10001       hardcode_libdir_flag_spec='-L$libdir'
10002       hardcode_minus_L=yes
10003       allow_undefined_flag=unsupported
10004       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'
10005       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10006       ;;
10007
10008     osf3*)
10009       if test "$GCC" = yes; then
10010         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011         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'
10012       else
10013         allow_undefined_flag=' -expect_unresolved \*'
10014         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'
10015       fi
10016       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017       hardcode_libdir_separator=:
10018       ;;
10019
10020     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10021       if test "$GCC" = yes; then
10022         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023         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'
10024         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10025       else
10026         allow_undefined_flag=' -expect_unresolved \*'
10027         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'
10028         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10029         $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'
10030
10031         # Both c and cxx compiler support -rpath directly
10032         hardcode_libdir_flag_spec='-rpath $libdir'
10033       fi
10034       hardcode_libdir_separator=:
10035       ;;
10036
10037     solaris*)
10038       no_undefined_flag=' -z text'
10039       if test "$GCC" = yes; then
10040         wlarc='${wl}'
10041         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10043           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10044       else
10045         wlarc=''
10046         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10048         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10049       fi
10050       hardcode_libdir_flag_spec='-R$libdir'
10051       hardcode_shlibpath_var=no
10052       case $host_os in
10053       solaris2.[0-5] | solaris2.[0-5].*) ;;
10054       *)
10055         # The compiler driver will combine and reorder linker options,
10056         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10057         # but is careful enough not to reorder.
10058         # Supported since Solaris 2.6 (maybe 2.5.1?)
10059         if test "$GCC" = yes; then
10060           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10061         else
10062           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10063         fi
10064         ;;
10065       esac
10066       link_all_deplibs=yes
10067       ;;
10068
10069     sunos4*)
10070       if test "x$host_vendor" = xsequent; then
10071         # Use $CC to link under sequent, because it throws in some extra .o
10072         # files that make .init and .fini sections work.
10073         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074       else
10075         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10076       fi
10077       hardcode_libdir_flag_spec='-L$libdir'
10078       hardcode_direct=yes
10079       hardcode_minus_L=yes
10080       hardcode_shlibpath_var=no
10081       ;;
10082
10083     sysv4)
10084       case $host_vendor in
10085         sni)
10086           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087           hardcode_direct=yes # is this really true???
10088         ;;
10089         siemens)
10090           ## LD is ld it makes a PLAMLIB
10091           ## CC just makes a GrossModule.
10092           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10093           reload_cmds='$CC -r -o $output$reload_objs'
10094           hardcode_direct=no
10095         ;;
10096         motorola)
10097           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10099         ;;
10100       esac
10101       runpath_var='LD_RUN_PATH'
10102       hardcode_shlibpath_var=no
10103       ;;
10104
10105     sysv4.3*)
10106       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107       hardcode_shlibpath_var=no
10108       export_dynamic_flag_spec='-Bexport'
10109       ;;
10110
10111     sysv4*MP*)
10112       if test -d /usr/nec; then
10113         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114         hardcode_shlibpath_var=no
10115         runpath_var=LD_RUN_PATH
10116         hardcode_runpath_var=yes
10117         ld_shlibs=yes
10118       fi
10119       ;;
10120
10121     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10122       no_undefined_flag='${wl}-z,text'
10123       archive_cmds_need_lc=no
10124       hardcode_shlibpath_var=no
10125       runpath_var='LD_RUN_PATH'
10126
10127       if test "$GCC" = yes; then
10128         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130       else
10131         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133       fi
10134       ;;
10135
10136     sysv5* | sco3.2v5* | sco5v6*)
10137       # Note: We can NOT use -z defs as we might desire, because we do not
10138       # link with -lc, and that would cause any symbols used from libc to
10139       # always be unresolved, which means just about no library would
10140       # ever link correctly.  If we're not using GNU ld we use -z text
10141       # though, which does catch some bad symbols but isn't as heavy-handed
10142       # as -z defs.
10143       no_undefined_flag='${wl}-z,text'
10144       allow_undefined_flag='${wl}-z,nodefs'
10145       archive_cmds_need_lc=no
10146       hardcode_shlibpath_var=no
10147       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10148       hardcode_libdir_separator=':'
10149       link_all_deplibs=yes
10150       export_dynamic_flag_spec='${wl}-Bexport'
10151       runpath_var='LD_RUN_PATH'
10152
10153       if test "$GCC" = yes; then
10154         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10155         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10156       else
10157         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10158         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10159       fi
10160       ;;
10161
10162     uts4*)
10163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164       hardcode_libdir_flag_spec='-L$libdir'
10165       hardcode_shlibpath_var=no
10166       ;;
10167
10168     *)
10169       ld_shlibs=no
10170       ;;
10171     esac
10172   fi
10173
10174 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10175 echo "${ECHO_T}$ld_shlibs" >&6; }
10176 test "$ld_shlibs" = no && can_build_shared=no
10177
10178 #
10179 # Do we need to explicitly link libc?
10180 #
10181 case "x$archive_cmds_need_lc" in
10182 x|xyes)
10183   # Assume -lc should be added
10184   archive_cmds_need_lc=yes
10185
10186   if test "$enable_shared" = yes && test "$GCC" = yes; then
10187     case $archive_cmds in
10188     *'~'*)
10189       # FIXME: we may have to deal with multi-command sequences.
10190       ;;
10191     '$CC '*)
10192       # Test whether the compiler implicitly links with -lc since on some
10193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10194       # to ld, don't add -lc before -lgcc.
10195       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10197       $rm conftest*
10198       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199
10200       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201   (eval $ac_compile) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } 2>conftest.err; then
10205         soname=conftest
10206         lib=conftest
10207         libobjs=conftest.$ac_objext
10208         deplibs=
10209         wl=$lt_prog_compiler_wl
10210         pic_flag=$lt_prog_compiler_pic
10211         compiler_flags=-v
10212         linker_flags=-v
10213         verstring=
10214         output_objdir=.
10215         libname=conftest
10216         lt_save_allow_undefined_flag=$allow_undefined_flag
10217         allow_undefined_flag=
10218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10219   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }
10223         then
10224           archive_cmds_need_lc=no
10225         else
10226           archive_cmds_need_lc=yes
10227         fi
10228         allow_undefined_flag=$lt_save_allow_undefined_flag
10229       else
10230         cat conftest.err 1>&5
10231       fi
10232       $rm conftest*
10233       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10234 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10235       ;;
10236     esac
10237   fi
10238   ;;
10239 esac
10240
10241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10243 library_names_spec=
10244 libname_spec='lib$name'
10245 soname_spec=
10246 shrext_cmds=".so"
10247 postinstall_cmds=
10248 postuninstall_cmds=
10249 finish_cmds=
10250 finish_eval=
10251 shlibpath_var=
10252 shlibpath_overrides_runpath=unknown
10253 version_type=none
10254 dynamic_linker="$host_os ld.so"
10255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10256
10257 if test "$GCC" = yes; then
10258   case $host_os in
10259     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10260     *) lt_awk_arg="/^libraries:/" ;;
10261   esac
10262   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10263   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10264     # if the path contains ";" then we assume it to be the separator
10265     # otherwise default to the standard path separator (i.e. ":") - it is
10266     # assumed that no part of a normal pathname contains ";" but that should
10267     # okay in the real world where ";" in dirpaths is itself problematic.
10268     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10269   else
10270     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10271   fi
10272   # Ok, now we have the path, separated by spaces, we can step through it
10273   # and add multilib dir if necessary.
10274   lt_tmp_lt_search_path_spec=
10275   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10276   for lt_sys_path in $lt_search_path_spec; do
10277     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10278       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10279     else
10280       test -d "$lt_sys_path" && \
10281         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10282     fi
10283   done
10284   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10285 BEGIN {RS=" "; FS="/|\n";} {
10286   lt_foo="";
10287   lt_count=0;
10288   for (lt_i = NF; lt_i > 0; lt_i--) {
10289     if ($lt_i != "" && $lt_i != ".") {
10290       if ($lt_i == "..") {
10291         lt_count++;
10292       } else {
10293         if (lt_count == 0) {
10294           lt_foo="/" $lt_i lt_foo;
10295         } else {
10296           lt_count--;
10297         }
10298       }
10299     }
10300   }
10301   if (lt_foo != "") { lt_freq[lt_foo]++; }
10302   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10303 }'`
10304   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10305 else
10306   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10307 fi
10308 need_lib_prefix=unknown
10309 hardcode_into_libs=no
10310
10311 # when you set need_version to no, make sure it does not cause -set_version
10312 # flags to be left without arguments
10313 need_version=unknown
10314
10315 case $host_os in
10316 aix3*)
10317   version_type=linux
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10319   shlibpath_var=LIBPATH
10320
10321   # AIX 3 has no versioning support, so we append a major version to the name.
10322   soname_spec='${libname}${release}${shared_ext}$major'
10323   ;;
10324
10325 aix4* | aix5*)
10326   version_type=linux
10327   need_lib_prefix=no
10328   need_version=no
10329   hardcode_into_libs=yes
10330   if test "$host_cpu" = ia64; then
10331     # AIX 5 supports IA64
10332     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10333     shlibpath_var=LD_LIBRARY_PATH
10334   else
10335     # With GCC up to 2.95.x, collect2 would create an import file
10336     # for dependence libraries.  The import file would start with
10337     # the line `#! .'.  This would cause the generated library to
10338     # depend on `.', always an invalid library.  This was fixed in
10339     # development snapshots of GCC prior to 3.0.
10340     case $host_os in
10341       aix4 | aix4.[01] | aix4.[01].*)
10342       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10343            echo ' yes '
10344            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10345         :
10346       else
10347         can_build_shared=no
10348       fi
10349       ;;
10350     esac
10351     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10352     # soname into executable. Probably we can add versioning support to
10353     # collect2, so additional links can be useful in future.
10354     if test "$aix_use_runtimelinking" = yes; then
10355       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10356       # instead of lib<name>.a to let people know that these are not
10357       # typical AIX shared libraries.
10358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359     else
10360       # We preserve .a as extension for shared libraries through AIX4.2
10361       # and later when we are not doing run time linking.
10362       library_names_spec='${libname}${release}.a $libname.a'
10363       soname_spec='${libname}${release}${shared_ext}$major'
10364     fi
10365     shlibpath_var=LIBPATH
10366   fi
10367   ;;
10368
10369 amigaos*)
10370   library_names_spec='$libname.ixlibrary $libname.a'
10371   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10372   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'
10373   ;;
10374
10375 beos*)
10376   library_names_spec='${libname}${shared_ext}'
10377   dynamic_linker="$host_os ld.so"
10378   shlibpath_var=LIBRARY_PATH
10379   ;;
10380
10381 bsdi[45]*)
10382   version_type=linux
10383   need_version=no
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385   soname_spec='${libname}${release}${shared_ext}$major'
10386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10390   # the default ld.so.conf also contains /usr/contrib/lib and
10391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10392   # libtool to hard-code these into programs
10393   ;;
10394
10395 cygwin* | mingw* | pw32*)
10396   version_type=windows
10397   shrext_cmds=".dll"
10398   need_version=no
10399   need_lib_prefix=no
10400
10401   case $GCC,$host_os in
10402   yes,cygwin* | yes,mingw* | yes,pw32*)
10403     library_names_spec='$libname.dll.a'
10404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10405     postinstall_cmds='base_file=`basename \${file}`~
10406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10407       dldir=$destdir/`dirname \$dlpath`~
10408       test -d \$dldir || mkdir -p \$dldir~
10409       $install_prog $dir/$dlname \$dldir/$dlname~
10410       chmod a+x \$dldir/$dlname'
10411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10412       dlpath=$dir/\$dldll~
10413        $rm \$dlpath'
10414     shlibpath_overrides_runpath=yes
10415
10416     case $host_os in
10417     cygwin*)
10418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10421       ;;
10422     mingw*)
10423       # MinGW DLLs use traditional 'lib' prefix
10424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10427         # It is most probably a Windows format PATH printed by
10428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10429         # path with ; separators, and with drive letters. We can handle the
10430         # drive letters (cygwin fileutils understands them), so leave them,
10431         # especially as we might pass files found there to a mingw objdump,
10432         # which wouldn't understand a cygwinified path. Ahh.
10433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10434       else
10435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10436       fi
10437       ;;
10438     pw32*)
10439       # pw32 DLLs use 'pw' prefix rather than 'lib'
10440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10441       ;;
10442     esac
10443     ;;
10444
10445   *)
10446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10447     ;;
10448   esac
10449   dynamic_linker='Win32 ld.exe'
10450   # FIXME: first we should search . and the directory the executable is in
10451   shlibpath_var=PATH
10452   ;;
10453
10454 darwin* | rhapsody*)
10455   dynamic_linker="$host_os dyld"
10456   version_type=darwin
10457   need_lib_prefix=no
10458   need_version=no
10459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10460   soname_spec='${libname}${release}${major}$shared_ext'
10461   shlibpath_overrides_runpath=yes
10462   shlibpath_var=DYLD_LIBRARY_PATH
10463   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10464
10465   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10466   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10467   ;;
10468
10469 dgux*)
10470   version_type=linux
10471   need_lib_prefix=no
10472   need_version=no
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   ;;
10477
10478 freebsd1*)
10479   dynamic_linker=no
10480   ;;
10481
10482 freebsd* | dragonfly*)
10483   # DragonFly does not have aout.  When/if they implement a new
10484   # versioning mechanism, adjust this.
10485   if test -x /usr/bin/objformat; then
10486     objformat=`/usr/bin/objformat`
10487   else
10488     case $host_os in
10489     freebsd[123]*) objformat=aout ;;
10490     *) objformat=elf ;;
10491     esac
10492   fi
10493   version_type=freebsd-$objformat
10494   case $version_type in
10495     freebsd-elf*)
10496       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10497       need_version=no
10498       need_lib_prefix=no
10499       ;;
10500     freebsd-*)
10501       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10502       need_version=yes
10503       ;;
10504   esac
10505   shlibpath_var=LD_LIBRARY_PATH
10506   case $host_os in
10507   freebsd2*)
10508     shlibpath_overrides_runpath=yes
10509     ;;
10510   freebsd3.[01]* | freebsdelf3.[01]*)
10511     shlibpath_overrides_runpath=yes
10512     hardcode_into_libs=yes
10513     ;;
10514   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10515   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10516     shlibpath_overrides_runpath=no
10517     hardcode_into_libs=yes
10518     ;;
10519   *) # from 4.6 on, and DragonFly
10520     shlibpath_overrides_runpath=yes
10521     hardcode_into_libs=yes
10522     ;;
10523   esac
10524   ;;
10525
10526 gnu*)
10527   version_type=linux
10528   need_lib_prefix=no
10529   need_version=no
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10531   soname_spec='${libname}${release}${shared_ext}$major'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   hardcode_into_libs=yes
10534   ;;
10535
10536 hpux9* | hpux10* | hpux11*)
10537   # Give a soname corresponding to the major version so that dld.sl refuses to
10538   # link against other versions.
10539   version_type=sunos
10540   need_lib_prefix=no
10541   need_version=no
10542   case $host_cpu in
10543   ia64*)
10544     shrext_cmds='.so'
10545     hardcode_into_libs=yes
10546     dynamic_linker="$host_os dld.so"
10547     shlibpath_var=LD_LIBRARY_PATH
10548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550     soname_spec='${libname}${release}${shared_ext}$major'
10551     if test "X$HPUX_IA64_MODE" = X32; then
10552       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10553     else
10554       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10555     fi
10556     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10557     ;;
10558    hppa*64*)
10559      shrext_cmds='.sl'
10560      hardcode_into_libs=yes
10561      dynamic_linker="$host_os dld.sl"
10562      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10563      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10564      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565      soname_spec='${libname}${release}${shared_ext}$major'
10566      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10567      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10568      ;;
10569    *)
10570     shrext_cmds='.sl'
10571     dynamic_linker="$host_os dld.sl"
10572     shlibpath_var=SHLIB_PATH
10573     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575     soname_spec='${libname}${release}${shared_ext}$major'
10576     ;;
10577   esac
10578   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10579   postinstall_cmds='chmod 555 $lib'
10580   ;;
10581
10582 interix[3-9]*)
10583   version_type=linux
10584   need_lib_prefix=no
10585   need_version=no
10586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10587   soname_spec='${libname}${release}${shared_ext}$major'
10588   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10589   shlibpath_var=LD_LIBRARY_PATH
10590   shlibpath_overrides_runpath=no
10591   hardcode_into_libs=yes
10592   ;;
10593
10594 irix5* | irix6* | nonstopux*)
10595   case $host_os in
10596     nonstopux*) version_type=nonstopux ;;
10597     *)
10598         if test "$lt_cv_prog_gnu_ld" = yes; then
10599                 version_type=linux
10600         else
10601                 version_type=irix
10602         fi ;;
10603   esac
10604   need_lib_prefix=no
10605   need_version=no
10606   soname_spec='${libname}${release}${shared_ext}$major'
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10608   case $host_os in
10609   irix5* | nonstopux*)
10610     libsuff= shlibsuff=
10611     ;;
10612   *)
10613     case $LD in # libtool.m4 will add one of these switches to LD
10614     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10615       libsuff= shlibsuff= libmagic=32-bit;;
10616     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10617       libsuff=32 shlibsuff=N32 libmagic=N32;;
10618     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10619       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10620     *) libsuff= shlibsuff= libmagic=never-match;;
10621     esac
10622     ;;
10623   esac
10624   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10625   shlibpath_overrides_runpath=no
10626   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10627   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10628   hardcode_into_libs=yes
10629   ;;
10630
10631 # No shared lib support for Linux oldld, aout, or coff.
10632 linux*oldld* | linux*aout* | linux*coff*)
10633   dynamic_linker=no
10634   ;;
10635
10636 # This must be Linux ELF.
10637 linux* | k*bsd*-gnu)
10638   version_type=linux
10639   need_lib_prefix=no
10640   need_version=no
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10644   shlibpath_var=LD_LIBRARY_PATH
10645   shlibpath_overrides_runpath=no
10646   # This implies no fast_install, which is unacceptable.
10647   # Some rework will be needed to allow for fast_install
10648   # before this can be enabled.
10649   hardcode_into_libs=yes
10650   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10651   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10652
10653   # Append ld.so.conf contents to the search path
10654   if test -f /etc/ld.so.conf; then
10655     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' ' '`
10656     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10657   fi
10658
10659   # We used to test for /lib/ld.so.1 and disable shared libraries on
10660   # powerpc, because MkLinux only supported shared libraries with the
10661   # GNU dynamic linker.  Since this was broken with cross compilers,
10662   # most powerpc-linux boxes support dynamic linking these days and
10663   # people can always --disable-shared, the test was removed, and we
10664   # assume the GNU/Linux dynamic linker is in use.
10665   dynamic_linker='GNU/Linux ld.so'
10666   ;;
10667
10668 netbsd*)
10669   version_type=sunos
10670   need_lib_prefix=no
10671   need_version=no
10672   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10674     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10675     dynamic_linker='NetBSD (a.out) ld.so'
10676   else
10677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10678     soname_spec='${libname}${release}${shared_ext}$major'
10679     dynamic_linker='NetBSD ld.elf_so'
10680   fi
10681   shlibpath_var=LD_LIBRARY_PATH
10682   shlibpath_overrides_runpath=yes
10683   hardcode_into_libs=yes
10684   ;;
10685
10686 newsos6)
10687   version_type=linux
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689   shlibpath_var=LD_LIBRARY_PATH
10690   shlibpath_overrides_runpath=yes
10691   ;;
10692
10693 nto-qnx*)
10694   version_type=linux
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   shlibpath_var=LD_LIBRARY_PATH
10700   shlibpath_overrides_runpath=yes
10701   ;;
10702
10703 openbsd*)
10704   version_type=sunos
10705   sys_lib_dlsearch_path_spec="/usr/lib"
10706   need_lib_prefix=no
10707   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10708   case $host_os in
10709     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10710     *)                         need_version=no  ;;
10711   esac
10712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714   shlibpath_var=LD_LIBRARY_PATH
10715   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10716     case $host_os in
10717       openbsd2.[89] | openbsd2.[89].*)
10718         shlibpath_overrides_runpath=no
10719         ;;
10720       *)
10721         shlibpath_overrides_runpath=yes
10722         ;;
10723       esac
10724   else
10725     shlibpath_overrides_runpath=yes
10726   fi
10727   ;;
10728
10729 os2*)
10730   libname_spec='$name'
10731   shrext_cmds=".dll"
10732   need_lib_prefix=no
10733   library_names_spec='$libname${shared_ext} $libname.a'
10734   dynamic_linker='OS/2 ld.exe'
10735   shlibpath_var=LIBPATH
10736   ;;
10737
10738 osf3* | osf4* | osf5*)
10739   version_type=osf
10740   need_lib_prefix=no
10741   need_version=no
10742   soname_spec='${libname}${release}${shared_ext}$major'
10743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744   shlibpath_var=LD_LIBRARY_PATH
10745   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10746   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10747   ;;
10748
10749 rdos*)
10750   dynamic_linker=no
10751   ;;
10752
10753 solaris*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=yes
10761   hardcode_into_libs=yes
10762   # ldd complains unless libraries are executable
10763   postinstall_cmds='chmod +x $lib'
10764   ;;
10765
10766 sunos4*)
10767   version_type=sunos
10768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10769   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10770   shlibpath_var=LD_LIBRARY_PATH
10771   shlibpath_overrides_runpath=yes
10772   if test "$with_gnu_ld" = yes; then
10773     need_lib_prefix=no
10774   fi
10775   need_version=yes
10776   ;;
10777
10778 sysv4 | sysv4.3*)
10779   version_type=linux
10780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781   soname_spec='${libname}${release}${shared_ext}$major'
10782   shlibpath_var=LD_LIBRARY_PATH
10783   case $host_vendor in
10784     sni)
10785       shlibpath_overrides_runpath=no
10786       need_lib_prefix=no
10787       export_dynamic_flag_spec='${wl}-Blargedynsym'
10788       runpath_var=LD_RUN_PATH
10789       ;;
10790     siemens)
10791       need_lib_prefix=no
10792       ;;
10793     motorola)
10794       need_lib_prefix=no
10795       need_version=no
10796       shlibpath_overrides_runpath=no
10797       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10798       ;;
10799   esac
10800   ;;
10801
10802 sysv4*MP*)
10803   if test -d /usr/nec ;then
10804     version_type=linux
10805     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10806     soname_spec='$libname${shared_ext}.$major'
10807     shlibpath_var=LD_LIBRARY_PATH
10808   fi
10809   ;;
10810
10811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10812   version_type=freebsd-elf
10813   need_lib_prefix=no
10814   need_version=no
10815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10816   soname_spec='${libname}${release}${shared_ext}$major'
10817   shlibpath_var=LD_LIBRARY_PATH
10818   hardcode_into_libs=yes
10819   if test "$with_gnu_ld" = yes; then
10820     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10821     shlibpath_overrides_runpath=no
10822   else
10823     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10824     shlibpath_overrides_runpath=yes
10825     case $host_os in
10826       sco3.2v5*)
10827         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10828         ;;
10829     esac
10830   fi
10831   sys_lib_dlsearch_path_spec='/usr/lib'
10832   ;;
10833
10834 uts4*)
10835   version_type=linux
10836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837   soname_spec='${libname}${release}${shared_ext}$major'
10838   shlibpath_var=LD_LIBRARY_PATH
10839   ;;
10840
10841 *)
10842   dynamic_linker=no
10843   ;;
10844 esac
10845 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10846 echo "${ECHO_T}$dynamic_linker" >&6; }
10847 test "$dynamic_linker" = no && can_build_shared=no
10848
10849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10850 if test "$GCC" = yes; then
10851   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10852 fi
10853
10854 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10855 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10856 hardcode_action=
10857 if test -n "$hardcode_libdir_flag_spec" || \
10858    test -n "$runpath_var" || \
10859    test "X$hardcode_automatic" = "Xyes" ; then
10860
10861   # We can hardcode non-existant directories.
10862   if test "$hardcode_direct" != no &&
10863      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10864      # have to relink, otherwise we might link with an installed library
10865      # when we should be linking with a yet-to-be-installed one
10866      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10867      test "$hardcode_minus_L" != no; then
10868     # Linking always hardcodes the temporary library directory.
10869     hardcode_action=relink
10870   else
10871     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10872     hardcode_action=immediate
10873   fi
10874 else
10875   # We cannot hardcode anything, or else we can only hardcode existing
10876   # directories.
10877   hardcode_action=unsupported
10878 fi
10879 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10880 echo "${ECHO_T}$hardcode_action" >&6; }
10881
10882 if test "$hardcode_action" = relink; then
10883   # Fast installation is not supported
10884   enable_fast_install=no
10885 elif test "$shlibpath_overrides_runpath" = yes ||
10886      test "$enable_shared" = no; then
10887   # Fast installation is not necessary
10888   enable_fast_install=needless
10889 fi
10890
10891 striplib=
10892 old_striplib=
10893 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10894 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10895 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10896   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10897   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10898   { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10900 else
10901 # FIXME - insert some real tests, host_os isn't really good enough
10902   case $host_os in
10903    darwin*)
10904        if test -n "$STRIP" ; then
10905          striplib="$STRIP -x"
10906          old_striplib="$STRIP -S"
10907          { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10909        else
10910   { echo "$as_me:$LINENO: result: no" >&5
10911 echo "${ECHO_T}no" >&6; }
10912 fi
10913        ;;
10914    *)
10915   { echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6; }
10917     ;;
10918   esac
10919 fi
10920
10921 if test "x$enable_dlopen" != xyes; then
10922   enable_dlopen=unknown
10923   enable_dlopen_self=unknown
10924   enable_dlopen_self_static=unknown
10925 else
10926   lt_cv_dlopen=no
10927   lt_cv_dlopen_libs=
10928
10929   case $host_os in
10930   beos*)
10931     lt_cv_dlopen="load_add_on"
10932     lt_cv_dlopen_libs=
10933     lt_cv_dlopen_self=yes
10934     ;;
10935
10936   mingw* | pw32*)
10937     lt_cv_dlopen="LoadLibrary"
10938     lt_cv_dlopen_libs=
10939    ;;
10940
10941   cygwin*)
10942     lt_cv_dlopen="dlopen"
10943     lt_cv_dlopen_libs=
10944    ;;
10945
10946   darwin*)
10947   # if libdl is installed we need to link against it
10948     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-ldl  $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char dlopen ();
10969 int
10970 main ()
10971 {
10972 return dlopen ();
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984   (eval "$ac_link") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && {
10991          test -z "$ac_c_werror_flag" ||
10992          test ! -s conftest.err
10993        } && test -s conftest$ac_exeext &&
10994        $as_test_x conftest$ac_exeext; then
10995   ac_cv_lib_dl_dlopen=yes
10996 else
10997   echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000         ac_cv_lib_dl_dlopen=no
11001 fi
11002
11003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004       conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11008 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11009 if test $ac_cv_lib_dl_dlopen = yes; then
11010   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11011 else
11012
11013     lt_cv_dlopen="dyld"
11014     lt_cv_dlopen_libs=
11015     lt_cv_dlopen_self=yes
11016
11017 fi
11018
11019    ;;
11020
11021   *)
11022     { echo "$as_me:$LINENO: checking for shl_load" >&5
11023 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11024 if test "${ac_cv_func_shl_load+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11035 #define shl_load innocuous_shl_load
11036
11037 /* System header to define __stub macros and hopefully few prototypes,
11038     which can conflict with char shl_load (); below.
11039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11040     <limits.h> exists even on freestanding compilers.  */
11041
11042 #ifdef __STDC__
11043 # include <limits.h>
11044 #else
11045 # include <assert.h>
11046 #endif
11047
11048 #undef shl_load
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051    Use char because int might match the return type of a GCC
11052    builtin and then its argument prototype would still apply.  */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char shl_load ();
11057 /* The GNU C library defines this for functions which it implements
11058     to always fail with ENOSYS.  Some functions are actually named
11059     something starting with __ and the normal name is an alias.  */
11060 #if defined __stub_shl_load || defined __stub___shl_load
11061 choke me
11062 #endif
11063
11064 int
11065 main ()
11066 {
11067 return shl_load ();
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_link") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } && {
11086          test -z "$ac_c_werror_flag" ||
11087          test ! -s conftest.err
11088        } && test -s conftest$ac_exeext &&
11089        $as_test_x conftest$ac_exeext; then
11090   ac_cv_func_shl_load=yes
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095         ac_cv_func_shl_load=no
11096 fi
11097
11098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099       conftest$ac_exeext conftest.$ac_ext
11100 fi
11101 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11102 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11103 if test $ac_cv_func_shl_load = yes; then
11104   lt_cv_dlopen="shl_load"
11105 else
11106   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11107 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   ac_check_lib_save_LIBS=$LIBS
11112 LIBS="-ldld  $LIBS"
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119
11120 /* Override any GCC internal prototype to avoid an error.
11121    Use char because int might match the return type of a GCC
11122    builtin and then its argument prototype would still apply.  */
11123 #ifdef __cplusplus
11124 extern "C"
11125 #endif
11126 char shl_load ();
11127 int
11128 main ()
11129 {
11130 return shl_load ();
11131   ;
11132   return 0;
11133 }
11134 _ACEOF
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_link") 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } && {
11149          test -z "$ac_c_werror_flag" ||
11150          test ! -s conftest.err
11151        } && test -s conftest$ac_exeext &&
11152        $as_test_x conftest$ac_exeext; then
11153   ac_cv_lib_dld_shl_load=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158         ac_cv_lib_dld_shl_load=no
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11162       conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11164 fi
11165 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11166 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11167 if test $ac_cv_lib_dld_shl_load = yes; then
11168   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11169 else
11170   { echo "$as_me:$LINENO: checking for dlopen" >&5
11171 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11172 if test "${ac_cv_func_dlopen+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11183 #define dlopen innocuous_dlopen
11184
11185 /* System header to define __stub macros and hopefully few prototypes,
11186     which can conflict with char dlopen (); below.
11187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188     <limits.h> exists even on freestanding compilers.  */
11189
11190 #ifdef __STDC__
11191 # include <limits.h>
11192 #else
11193 # include <assert.h>
11194 #endif
11195
11196 #undef dlopen
11197
11198 /* Override any GCC internal prototype to avoid an error.
11199    Use char because int might match the return type of a GCC
11200    builtin and then its argument prototype would still apply.  */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char dlopen ();
11205 /* The GNU C library defines this for functions which it implements
11206     to always fail with ENOSYS.  Some functions are actually named
11207     something starting with __ and the normal name is an alias.  */
11208 #if defined __stub_dlopen || defined __stub___dlopen
11209 choke me
11210 #endif
11211
11212 int
11213 main ()
11214 {
11215 return dlopen ();
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_link") 2>conftest.er1
11228   ac_status=$?
11229   grep -v '^ *+' conftest.er1 >conftest.err
11230   rm -f conftest.er1
11231   cat conftest.err >&5
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } && {
11234          test -z "$ac_c_werror_flag" ||
11235          test ! -s conftest.err
11236        } && test -s conftest$ac_exeext &&
11237        $as_test_x conftest$ac_exeext; then
11238   ac_cv_func_dlopen=yes
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243         ac_cv_func_dlopen=no
11244 fi
11245
11246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11247       conftest$ac_exeext conftest.$ac_ext
11248 fi
11249 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11250 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11251 if test $ac_cv_func_dlopen = yes; then
11252   lt_cv_dlopen="dlopen"
11253 else
11254   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11255 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-ldl  $LIBS"
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267
11268 /* Override any GCC internal prototype to avoid an error.
11269    Use char because int might match the return type of a GCC
11270    builtin and then its argument prototype would still apply.  */
11271 #ifdef __cplusplus
11272 extern "C"
11273 #endif
11274 char dlopen ();
11275 int
11276 main ()
11277 {
11278 return dlopen ();
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_link") 2>conftest.er1
11291   ac_status=$?
11292   grep -v '^ *+' conftest.er1 >conftest.err
11293   rm -f conftest.er1
11294   cat conftest.err >&5
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } && {
11297          test -z "$ac_c_werror_flag" ||
11298          test ! -s conftest.err
11299        } && test -s conftest$ac_exeext &&
11300        $as_test_x conftest$ac_exeext; then
11301   ac_cv_lib_dl_dlopen=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_cv_lib_dl_dlopen=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310       conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11312 fi
11313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11315 if test $ac_cv_lib_dl_dlopen = yes; then
11316   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11317 else
11318   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11319 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   ac_check_lib_save_LIBS=$LIBS
11324 LIBS="-lsvld  $LIBS"
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333    Use char because int might match the return type of a GCC
11334    builtin and then its argument prototype would still apply.  */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (ac_try="$ac_link"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_link") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } && {
11361          test -z "$ac_c_werror_flag" ||
11362          test ! -s conftest.err
11363        } && test -s conftest$ac_exeext &&
11364        $as_test_x conftest$ac_exeext; then
11365   ac_cv_lib_svld_dlopen=yes
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370         ac_cv_lib_svld_dlopen=no
11371 fi
11372
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374       conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11376 fi
11377 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11378 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11379 if test $ac_cv_lib_svld_dlopen = yes; then
11380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11381 else
11382   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11383 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-ldld  $LIBS"
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395
11396 /* Override any GCC internal prototype to avoid an error.
11397    Use char because int might match the return type of a GCC
11398    builtin and then its argument prototype would still apply.  */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 char dld_link ();
11403 int
11404 main ()
11405 {
11406 return dld_link ();
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_link") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } && {
11425          test -z "$ac_c_werror_flag" ||
11426          test ! -s conftest.err
11427        } && test -s conftest$ac_exeext &&
11428        $as_test_x conftest$ac_exeext; then
11429   ac_cv_lib_dld_dld_link=yes
11430 else
11431   echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434         ac_cv_lib_dld_dld_link=no
11435 fi
11436
11437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11438       conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11440 fi
11441 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11443 if test $ac_cv_lib_dld_dld_link = yes; then
11444   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462     ;;
11463   esac
11464
11465   if test "x$lt_cv_dlopen" != xno; then
11466     enable_dlopen=yes
11467   else
11468     enable_dlopen=no
11469   fi
11470
11471   case $lt_cv_dlopen in
11472   dlopen)
11473     save_CPPFLAGS="$CPPFLAGS"
11474     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11475
11476     save_LDFLAGS="$LDFLAGS"
11477     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11478
11479     save_LIBS="$LIBS"
11480     LIBS="$lt_cv_dlopen_libs $LIBS"
11481
11482     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11484 if test "${lt_cv_dlopen_self+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487           if test "$cross_compiling" = yes; then :
11488   lt_cv_dlopen_self=cross
11489 else
11490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491   lt_status=$lt_dlunknown
11492   cat > conftest.$ac_ext <<EOF
11493 #line 11493 "configure"
11494 #include "confdefs.h"
11495
11496 #if HAVE_DLFCN_H
11497 #include <dlfcn.h>
11498 #endif
11499
11500 #include <stdio.h>
11501
11502 #ifdef RTLD_GLOBAL
11503 #  define LT_DLGLOBAL           RTLD_GLOBAL
11504 #else
11505 #  ifdef DL_GLOBAL
11506 #    define LT_DLGLOBAL         DL_GLOBAL
11507 #  else
11508 #    define LT_DLGLOBAL         0
11509 #  endif
11510 #endif
11511
11512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513    find out it does not work in some platform. */
11514 #ifndef LT_DLLAZY_OR_NOW
11515 #  ifdef RTLD_LAZY
11516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11517 #  else
11518 #    ifdef DL_LAZY
11519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11520 #    else
11521 #      ifdef RTLD_NOW
11522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11523 #      else
11524 #        ifdef DL_NOW
11525 #          define LT_DLLAZY_OR_NOW      DL_NOW
11526 #        else
11527 #          define LT_DLLAZY_OR_NOW      0
11528 #        endif
11529 #      endif
11530 #    endif
11531 #  endif
11532 #endif
11533
11534 #ifdef __cplusplus
11535 extern "C" void exit (int);
11536 #endif
11537
11538 void fnord() { int i=42;}
11539 int main ()
11540 {
11541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11542   int status = $lt_dlunknown;
11543
11544   if (self)
11545     {
11546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11547       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11548       /* dlclose (self); */
11549     }
11550   else
11551     puts (dlerror ());
11552
11553     exit (status);
11554 }
11555 EOF
11556   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11557   (eval $ac_link) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11561     (./conftest; exit; ) >&5 2>/dev/null
11562     lt_status=$?
11563     case x$lt_status in
11564       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11565       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11566       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11567     esac
11568   else :
11569     # compilation failed
11570     lt_cv_dlopen_self=no
11571   fi
11572 fi
11573 rm -fr conftest*
11574
11575
11576 fi
11577 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11578 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11579
11580     if test "x$lt_cv_dlopen_self" = xyes; then
11581       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11582       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11583 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11584 if test "${lt_cv_dlopen_self_static+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587           if test "$cross_compiling" = yes; then :
11588   lt_cv_dlopen_self_static=cross
11589 else
11590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591   lt_status=$lt_dlunknown
11592   cat > conftest.$ac_ext <<EOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11595
11596 #if HAVE_DLFCN_H
11597 #include <dlfcn.h>
11598 #endif
11599
11600 #include <stdio.h>
11601
11602 #ifdef RTLD_GLOBAL
11603 #  define LT_DLGLOBAL           RTLD_GLOBAL
11604 #else
11605 #  ifdef DL_GLOBAL
11606 #    define LT_DLGLOBAL         DL_GLOBAL
11607 #  else
11608 #    define LT_DLGLOBAL         0
11609 #  endif
11610 #endif
11611
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613    find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11615 #  ifdef RTLD_LAZY
11616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11617 #  else
11618 #    ifdef DL_LAZY
11619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11620 #    else
11621 #      ifdef RTLD_NOW
11622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11623 #      else
11624 #        ifdef DL_NOW
11625 #          define LT_DLLAZY_OR_NOW      DL_NOW
11626 #        else
11627 #          define LT_DLLAZY_OR_NOW      0
11628 #        endif
11629 #      endif
11630 #    endif
11631 #  endif
11632 #endif
11633
11634 #ifdef __cplusplus
11635 extern "C" void exit (int);
11636 #endif
11637
11638 void fnord() { int i=42;}
11639 int main ()
11640 {
11641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642   int status = $lt_dlunknown;
11643
11644   if (self)
11645     {
11646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648       /* dlclose (self); */
11649     }
11650   else
11651     puts (dlerror ());
11652
11653     exit (status);
11654 }
11655 EOF
11656   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657   (eval $ac_link) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11661     (./conftest; exit; ) >&5 2>/dev/null
11662     lt_status=$?
11663     case x$lt_status in
11664       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11665       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11666       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11667     esac
11668   else :
11669     # compilation failed
11670     lt_cv_dlopen_self_static=no
11671   fi
11672 fi
11673 rm -fr conftest*
11674
11675
11676 fi
11677 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11678 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11679     fi
11680
11681     CPPFLAGS="$save_CPPFLAGS"
11682     LDFLAGS="$save_LDFLAGS"
11683     LIBS="$save_LIBS"
11684     ;;
11685   esac
11686
11687   case $lt_cv_dlopen_self in
11688   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11689   *) enable_dlopen_self=unknown ;;
11690   esac
11691
11692   case $lt_cv_dlopen_self_static in
11693   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11694   *) enable_dlopen_self_static=unknown ;;
11695   esac
11696 fi
11697
11698
11699 # Report which library types will actually be built
11700 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11701 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11702 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11703 echo "${ECHO_T}$can_build_shared" >&6; }
11704
11705 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11706 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11707 test "$can_build_shared" = "no" && enable_shared=no
11708
11709 # On AIX, shared libraries and static libraries use the same namespace, and
11710 # are all built from PIC.
11711 case $host_os in
11712 aix3*)
11713   test "$enable_shared" = yes && enable_static=no
11714   if test -n "$RANLIB"; then
11715     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11716     postinstall_cmds='$RANLIB $lib'
11717   fi
11718   ;;
11719
11720 aix4* | aix5*)
11721   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11722     test "$enable_shared" = yes && enable_static=no
11723   fi
11724     ;;
11725 esac
11726 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11727 echo "${ECHO_T}$enable_shared" >&6; }
11728
11729 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11730 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11731 # Make sure either enable_shared or enable_static is yes.
11732 test "$enable_shared" = yes || enable_static=yes
11733 { echo "$as_me:$LINENO: result: $enable_static" >&5
11734 echo "${ECHO_T}$enable_static" >&6; }
11735
11736 # The else clause should only fire when bootstrapping the
11737 # libtool distribution, otherwise you forgot to ship ltmain.sh
11738 # with your package, and you will get complaints that there are
11739 # no rules to generate ltmain.sh.
11740 if test -f "$ltmain"; then
11741   # See if we are running on zsh, and set the options which allow our commands through
11742   # without removal of \ escapes.
11743   if test -n "${ZSH_VERSION+set}" ; then
11744     setopt NO_GLOB_SUBST
11745   fi
11746   # Now quote all the things that may contain metacharacters while being
11747   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11748   # variables and quote the copies for generation of the libtool script.
11749   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11750     SED SHELL STRIP \
11751     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11752     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11753     deplibs_check_method reload_flag reload_cmds need_locks \
11754     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11755     lt_cv_sys_global_symbol_to_c_name_address \
11756     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11757     old_postinstall_cmds old_postuninstall_cmds \
11758     compiler \
11759     CC \
11760     LD \
11761     lt_prog_compiler_wl \
11762     lt_prog_compiler_pic \
11763     lt_prog_compiler_static \
11764     lt_prog_compiler_no_builtin_flag \
11765     export_dynamic_flag_spec \
11766     thread_safe_flag_spec \
11767     whole_archive_flag_spec \
11768     enable_shared_with_static_runtimes \
11769     old_archive_cmds \
11770     old_archive_from_new_cmds \
11771     predep_objects \
11772     postdep_objects \
11773     predeps \
11774     postdeps \
11775     compiler_lib_search_path \
11776     archive_cmds \
11777     archive_expsym_cmds \
11778     postinstall_cmds \
11779     postuninstall_cmds \
11780     old_archive_from_expsyms_cmds \
11781     allow_undefined_flag \
11782     no_undefined_flag \
11783     export_symbols_cmds \
11784     hardcode_libdir_flag_spec \
11785     hardcode_libdir_flag_spec_ld \
11786     hardcode_libdir_separator \
11787     hardcode_automatic \
11788     module_cmds \
11789     module_expsym_cmds \
11790     lt_cv_prog_compiler_c_o \
11791     fix_srcfile_path \
11792     exclude_expsyms \
11793     include_expsyms; do
11794
11795     case $var in
11796     old_archive_cmds | \
11797     old_archive_from_new_cmds | \
11798     archive_cmds | \
11799     archive_expsym_cmds | \
11800     module_cmds | \
11801     module_expsym_cmds | \
11802     old_archive_from_expsyms_cmds | \
11803     export_symbols_cmds | \
11804     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11805     postinstall_cmds | postuninstall_cmds | \
11806     old_postinstall_cmds | old_postuninstall_cmds | \
11807     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11808       # Double-quote double-evaled strings.
11809       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11810       ;;
11811     *)
11812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11813       ;;
11814     esac
11815   done
11816
11817   case $lt_echo in
11818   *'\$0 --fallback-echo"')
11819     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11820     ;;
11821   esac
11822
11823 cfgfile="${ofile}T"
11824   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11825   $rm -f "$cfgfile"
11826   { echo "$as_me:$LINENO: creating $ofile" >&5
11827 echo "$as_me: creating $ofile" >&6;}
11828
11829   cat <<__EOF__ >> "$cfgfile"
11830 #! $SHELL
11831
11832 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11835 #
11836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11837 # Free Software Foundation, Inc.
11838 #
11839 # This file is part of GNU Libtool:
11840 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11841 #
11842 # This program is free software; you can redistribute it and/or modify
11843 # it under the terms of the GNU General Public License as published by
11844 # the Free Software Foundation; either version 2 of the License, or
11845 # (at your option) any later version.
11846 #
11847 # This program is distributed in the hope that it will be useful, but
11848 # WITHOUT ANY WARRANTY; without even the implied warranty of
11849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11850 # General Public License for more details.
11851 #
11852 # You should have received a copy of the GNU General Public License
11853 # along with this program; if not, write to the Free Software
11854 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11855 #
11856 # As a special exception to the GNU General Public License, if you
11857 # distribute this file as part of a program that contains a
11858 # configuration script generated by Autoconf, you may include it under
11859 # the same distribution terms that you use for the rest of that program.
11860
11861 # A sed program that does not truncate output.
11862 SED=$lt_SED
11863
11864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11865 Xsed="$SED -e 1s/^X//"
11866
11867 # The HP-UX ksh and POSIX shell print the target directory to stdout
11868 # if CDPATH is set.
11869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11870
11871 # The names of the tagged configurations supported by this script.
11872 available_tags=
11873
11874 # ### BEGIN LIBTOOL CONFIG
11875
11876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11877
11878 # Shell to use when invoking shell scripts.
11879 SHELL=$lt_SHELL
11880
11881 # Whether or not to build shared libraries.
11882 build_libtool_libs=$enable_shared
11883
11884 # Whether or not to build static libraries.
11885 build_old_libs=$enable_static
11886
11887 # Whether or not to add -lc for building shared libraries.
11888 build_libtool_need_lc=$archive_cmds_need_lc
11889
11890 # Whether or not to disallow shared libs when runtime libs are static
11891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11892
11893 # Whether or not to optimize for fast installation.
11894 fast_install=$enable_fast_install
11895
11896 # The host system.
11897 host_alias=$host_alias
11898 host=$host
11899 host_os=$host_os
11900
11901 # The build system.
11902 build_alias=$build_alias
11903 build=$build
11904 build_os=$build_os
11905
11906 # An echo program that does not interpret backslashes.
11907 echo=$lt_echo
11908
11909 # The archiver.
11910 AR=$lt_AR
11911 AR_FLAGS=$lt_AR_FLAGS
11912
11913 # A C compiler.
11914 LTCC=$lt_LTCC
11915
11916 # LTCC compiler flags.
11917 LTCFLAGS=$lt_LTCFLAGS
11918
11919 # A language-specific compiler.
11920 CC=$lt_compiler
11921
11922 # Is the compiler the GNU C compiler?
11923 with_gcc=$GCC
11924
11925 # An ERE matcher.
11926 EGREP=$lt_EGREP
11927
11928 # The linker used to build libraries.
11929 LD=$lt_LD
11930
11931 # Whether we need hard or soft links.
11932 LN_S=$lt_LN_S
11933
11934 # A BSD-compatible nm program.
11935 NM=$lt_NM
11936
11937 # A symbol stripping program
11938 STRIP=$lt_STRIP
11939
11940 # Used to examine libraries when file_magic_cmd begins "file"
11941 MAGIC_CMD=$MAGIC_CMD
11942
11943 # Used on cygwin: DLL creation program.
11944 DLLTOOL="$DLLTOOL"
11945
11946 # Used on cygwin: object dumper.
11947 OBJDUMP="$OBJDUMP"
11948
11949 # Used on cygwin: assembler.
11950 AS="$AS"
11951
11952 # The name of the directory that contains temporary libtool files.
11953 objdir=$objdir
11954
11955 # How to create reloadable object files.
11956 reload_flag=$lt_reload_flag
11957 reload_cmds=$lt_reload_cmds
11958
11959 # How to pass a linker flag through the compiler.
11960 wl=$lt_lt_prog_compiler_wl
11961
11962 # Object file suffix (normally "o").
11963 objext="$ac_objext"
11964
11965 # Old archive suffix (normally "a").
11966 libext="$libext"
11967
11968 # Shared library suffix (normally ".so").
11969 shrext_cmds='$shrext_cmds'
11970
11971 # Executable file suffix (normally "").
11972 exeext="$exeext"
11973
11974 # Additional compiler flags for building library objects.
11975 pic_flag=$lt_lt_prog_compiler_pic
11976 pic_mode=$pic_mode
11977
11978 # What is the maximum length of a command?
11979 max_cmd_len=$lt_cv_sys_max_cmd_len
11980
11981 # Does compiler simultaneously support -c and -o options?
11982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11983
11984 # Must we lock files when doing compilation?
11985 need_locks=$lt_need_locks
11986
11987 # Do we need the lib prefix for modules?
11988 need_lib_prefix=$need_lib_prefix
11989
11990 # Do we need a version for libraries?
11991 need_version=$need_version
11992
11993 # Whether dlopen is supported.
11994 dlopen_support=$enable_dlopen
11995
11996 # Whether dlopen of programs is supported.
11997 dlopen_self=$enable_dlopen_self
11998
11999 # Whether dlopen of statically linked programs is supported.
12000 dlopen_self_static=$enable_dlopen_self_static
12001
12002 # Compiler flag to prevent dynamic linking.
12003 link_static_flag=$lt_lt_prog_compiler_static
12004
12005 # Compiler flag to turn off builtin functions.
12006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12007
12008 # Compiler flag to allow reflexive dlopens.
12009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12010
12011 # Compiler flag to generate shared objects directly from archives.
12012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12013
12014 # Compiler flag to generate thread-safe objects.
12015 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12016
12017 # Library versioning type.
12018 version_type=$version_type
12019
12020 # Format of library name prefix.
12021 libname_spec=$lt_libname_spec
12022
12023 # List of archive names.  First name is the real one, the rest are links.
12024 # The last name is the one that the linker finds with -lNAME.
12025 library_names_spec=$lt_library_names_spec
12026
12027 # The coded name of the library, if different from the real name.
12028 soname_spec=$lt_soname_spec
12029
12030 # Commands used to build and install an old-style archive.
12031 RANLIB=$lt_RANLIB
12032 old_archive_cmds=$lt_old_archive_cmds
12033 old_postinstall_cmds=$lt_old_postinstall_cmds
12034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12035
12036 # Create an old-style archive from a shared archive.
12037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12038
12039 # Create a temporary old-style archive to link instead of a shared archive.
12040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12041
12042 # Commands used to build and install a shared archive.
12043 archive_cmds=$lt_archive_cmds
12044 archive_expsym_cmds=$lt_archive_expsym_cmds
12045 postinstall_cmds=$lt_postinstall_cmds
12046 postuninstall_cmds=$lt_postuninstall_cmds
12047
12048 # Commands used to build a loadable module (assumed same as above if empty)
12049 module_cmds=$lt_module_cmds
12050 module_expsym_cmds=$lt_module_expsym_cmds
12051
12052 # Commands to strip libraries.
12053 old_striplib=$lt_old_striplib
12054 striplib=$lt_striplib
12055
12056 # Dependencies to place before the objects being linked to create a
12057 # shared library.
12058 predep_objects=$lt_predep_objects
12059
12060 # Dependencies to place after the objects being linked to create a
12061 # shared library.
12062 postdep_objects=$lt_postdep_objects
12063
12064 # Dependencies to place before the objects being linked to create a
12065 # shared library.
12066 predeps=$lt_predeps
12067
12068 # Dependencies to place after the objects being linked to create a
12069 # shared library.
12070 postdeps=$lt_postdeps
12071
12072 # The library search path used internally by the compiler when linking
12073 # a shared library.
12074 compiler_lib_search_path=$lt_compiler_lib_search_path
12075
12076 # Method to check whether dependent libraries are shared objects.
12077 deplibs_check_method=$lt_deplibs_check_method
12078
12079 # Command to use when deplibs_check_method == file_magic.
12080 file_magic_cmd=$lt_file_magic_cmd
12081
12082 # Flag that allows shared libraries with undefined symbols to be built.
12083 allow_undefined_flag=$lt_allow_undefined_flag
12084
12085 # Flag that forces no undefined symbols.
12086 no_undefined_flag=$lt_no_undefined_flag
12087
12088 # Commands used to finish a libtool library installation in a directory.
12089 finish_cmds=$lt_finish_cmds
12090
12091 # Same as above, but a single script fragment to be evaled but not shown.
12092 finish_eval=$lt_finish_eval
12093
12094 # Take the output of nm and produce a listing of raw symbols and C names.
12095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12096
12097 # Transform the output of nm in a proper C declaration
12098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12099
12100 # Transform the output of nm in a C name address pair
12101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12102
12103 # This is the shared library runtime path variable.
12104 runpath_var=$runpath_var
12105
12106 # This is the shared library path variable.
12107 shlibpath_var=$shlibpath_var
12108
12109 # Is shlibpath searched before the hard-coded library search path?
12110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12111
12112 # How to hardcode a shared library path into an executable.
12113 hardcode_action=$hardcode_action
12114
12115 # Whether we should hardcode library paths into libraries.
12116 hardcode_into_libs=$hardcode_into_libs
12117
12118 # Flag to hardcode \$libdir into a binary during linking.
12119 # This must work even if \$libdir does not exist.
12120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12121
12122 # If ld is used when linking, flag to hardcode \$libdir into
12123 # a binary during linking. This must work even if \$libdir does
12124 # not exist.
12125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12126
12127 # Whether we need a single -rpath flag with a separated argument.
12128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12129
12130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12131 # resulting binary.
12132 hardcode_direct=$hardcode_direct
12133
12134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12135 # resulting binary.
12136 hardcode_minus_L=$hardcode_minus_L
12137
12138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12139 # the resulting binary.
12140 hardcode_shlibpath_var=$hardcode_shlibpath_var
12141
12142 # Set to yes if building a shared library automatically hardcodes DIR into the library
12143 # and all subsequent libraries and executables linked against it.
12144 hardcode_automatic=$hardcode_automatic
12145
12146 # Variables whose values should be saved in libtool wrapper scripts and
12147 # restored at relink time.
12148 variables_saved_for_relink="$variables_saved_for_relink"
12149
12150 # Whether libtool must link a program against all its dependency libraries.
12151 link_all_deplibs=$link_all_deplibs
12152
12153 # Compile-time system search path for libraries
12154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12155
12156 # Run-time system search path for libraries
12157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12158
12159 # Fix the shell variable \$srcfile for the compiler.
12160 fix_srcfile_path=$lt_fix_srcfile_path
12161
12162 # Set to yes if exported symbols are required.
12163 always_export_symbols=$always_export_symbols
12164
12165 # The commands to list exported symbols.
12166 export_symbols_cmds=$lt_export_symbols_cmds
12167
12168 # The commands to extract the exported symbol list from a shared archive.
12169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12170
12171 # Symbols that should not be listed in the preloaded symbols.
12172 exclude_expsyms=$lt_exclude_expsyms
12173
12174 # Symbols that must always be exported.
12175 include_expsyms=$lt_include_expsyms
12176
12177 # ### END LIBTOOL CONFIG
12178
12179 __EOF__
12180
12181
12182   case $host_os in
12183   aix3*)
12184     cat <<\EOF >> "$cfgfile"
12185
12186 # AIX sometimes has problems with the GCC collect2 program.  For some
12187 # reason, if we set the COLLECT_NAMES environment variable, the problems
12188 # vanish in a puff of smoke.
12189 if test "X${COLLECT_NAMES+set}" != Xset; then
12190   COLLECT_NAMES=
12191   export COLLECT_NAMES
12192 fi
12193 EOF
12194     ;;
12195   esac
12196
12197   # We use sed instead of cat because bash on DJGPP gets confused if
12198   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12199   # text mode, it properly converts lines to CR/LF.  This bash problem
12200   # is reportedly fixed, but why not run on old versions too?
12201   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12202
12203   mv -f "$cfgfile" "$ofile" || \
12204     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12205   chmod +x "$ofile"
12206
12207 else
12208   # If there is no Makefile yet, we rely on a make rule to execute
12209   # `config.status --recheck' to rerun these tests and create the
12210   # libtool script then.
12211   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12212   if test -f "$ltmain_in"; then
12213     test -f Makefile && make "$ltmain"
12214   fi
12215 fi
12216
12217
12218 ac_ext=c
12219 ac_cpp='$CPP $CPPFLAGS'
12220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12223
12224 CC="$lt_save_CC"
12225
12226
12227 # Check whether --with-tags was given.
12228 if test "${with_tags+set}" = set; then
12229   withval=$with_tags; tagnames="$withval"
12230 fi
12231
12232
12233 if test -f "$ltmain" && test -n "$tagnames"; then
12234   if test ! -f "${ofile}"; then
12235     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12236 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12237   fi
12238
12239   if test -z "$LTCC"; then
12240     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12241     if test -z "$LTCC"; then
12242       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12243 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12244     else
12245       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12246 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12247     fi
12248   fi
12249   if test -z "$LTCFLAGS"; then
12250     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12251   fi
12252
12253   # Extract list of available tagged configurations in $ofile.
12254   # Note that this assumes the entire list is on one line.
12255   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12256
12257   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12258   for tagname in $tagnames; do
12259     IFS="$lt_save_ifs"
12260     # Check whether tagname contains only valid characters
12261     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12262     "") ;;
12263     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12264 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12265    { (exit 1); exit 1; }; }
12266         ;;
12267     esac
12268
12269     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12270     then
12271       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12272 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12273    { (exit 1); exit 1; }; }
12274     fi
12275
12276     # Update the list of available tags.
12277     if test -n "$tagname"; then
12278       echo appending configuration tag \"$tagname\" to $ofile
12279
12280       case $tagname in
12281       CXX)
12282         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12283             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12284             (test "X$CXX" != "Xg++"))) ; then
12285           ac_ext=cpp
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12290
12291
12292
12293
12294 archive_cmds_need_lc_CXX=no
12295 allow_undefined_flag_CXX=
12296 always_export_symbols_CXX=no
12297 archive_expsym_cmds_CXX=
12298 export_dynamic_flag_spec_CXX=
12299 hardcode_direct_CXX=no
12300 hardcode_libdir_flag_spec_CXX=
12301 hardcode_libdir_flag_spec_ld_CXX=
12302 hardcode_libdir_separator_CXX=
12303 hardcode_minus_L_CXX=no
12304 hardcode_shlibpath_var_CXX=unsupported
12305 hardcode_automatic_CXX=no
12306 module_cmds_CXX=
12307 module_expsym_cmds_CXX=
12308 link_all_deplibs_CXX=unknown
12309 old_archive_cmds_CXX=$old_archive_cmds
12310 no_undefined_flag_CXX=
12311 whole_archive_flag_spec_CXX=
12312 enable_shared_with_static_runtimes_CXX=no
12313
12314 # Dependencies to place before and after the object being linked:
12315 predep_objects_CXX=
12316 postdep_objects_CXX=
12317 predeps_CXX=
12318 postdeps_CXX=
12319 compiler_lib_search_path_CXX=
12320
12321 # Source file extension for C++ test sources.
12322 ac_ext=cpp
12323
12324 # Object file extension for compiled C++ test sources.
12325 objext=o
12326 objext_CXX=$objext
12327
12328 # Code to be used in simple compile tests
12329 lt_simple_compile_test_code="int some_variable = 0;"
12330
12331 # Code to be used in simple link tests
12332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12333
12334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12335
12336 # If no C compiler was specified, use CC.
12337 LTCC=${LTCC-"$CC"}
12338
12339 # If no C compiler flags were specified, use CFLAGS.
12340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12341
12342 # Allow CC to be a program name with arguments.
12343 compiler=$CC
12344
12345
12346 # save warnings/boilerplate of simple test code
12347 ac_outfile=conftest.$ac_objext
12348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12350 _lt_compiler_boilerplate=`cat conftest.err`
12351 $rm conftest*
12352
12353 ac_outfile=conftest.$ac_objext
12354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12356 _lt_linker_boilerplate=`cat conftest.err`
12357 $rm conftest*
12358
12359
12360 # Allow CC to be a program name with arguments.
12361 lt_save_CC=$CC
12362 lt_save_LD=$LD
12363 lt_save_GCC=$GCC
12364 GCC=$GXX
12365 lt_save_with_gnu_ld=$with_gnu_ld
12366 lt_save_path_LD=$lt_cv_path_LD
12367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12368   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12369 else
12370   $as_unset lt_cv_prog_gnu_ld
12371 fi
12372 if test -n "${lt_cv_path_LDCXX+set}"; then
12373   lt_cv_path_LD=$lt_cv_path_LDCXX
12374 else
12375   $as_unset lt_cv_path_LD
12376 fi
12377 test -z "${LDCXX+set}" || LD=$LDCXX
12378 CC=${CXX-"c++"}
12379 compiler=$CC
12380 compiler_CXX=$CC
12381 for cc_temp in $compiler""; do
12382   case $cc_temp in
12383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12385     \-*) ;;
12386     *) break;;
12387   esac
12388 done
12389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12390
12391
12392 # We don't want -fno-exception wen compiling C++ code, so set the
12393 # no_builtin_flag separately
12394 if test "$GXX" = yes; then
12395   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12396 else
12397   lt_prog_compiler_no_builtin_flag_CXX=
12398 fi
12399
12400 if test "$GXX" = yes; then
12401   # Set up default GNU C++ configuration
12402
12403
12404 # Check whether --with-gnu-ld was given.
12405 if test "${with_gnu_ld+set}" = set; then
12406   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12407 else
12408   with_gnu_ld=no
12409 fi
12410
12411 ac_prog=ld
12412 if test "$GCC" = yes; then
12413   # Check if gcc -print-prog-name=ld gives a path.
12414   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12415 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12416   case $host in
12417   *-*-mingw*)
12418     # gcc leaves a trailing carriage return which upsets mingw
12419     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12420   *)
12421     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12422   esac
12423   case $ac_prog in
12424     # Accept absolute paths.
12425     [\\/]* | ?:[\\/]*)
12426       re_direlt='/[^/][^/]*/\.\./'
12427       # Canonicalize the pathname of ld
12428       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12429       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12430         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12431       done
12432       test -z "$LD" && LD="$ac_prog"
12433       ;;
12434   "")
12435     # If it fails, then pretend we aren't using GCC.
12436     ac_prog=ld
12437     ;;
12438   *)
12439     # If it is relative, then search for the first ld in PATH.
12440     with_gnu_ld=unknown
12441     ;;
12442   esac
12443 elif test "$with_gnu_ld" = yes; then
12444   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12446 else
12447   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12449 fi
12450 if test "${lt_cv_path_LD+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   if test -z "$LD"; then
12454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12455   for ac_dir in $PATH; do
12456     IFS="$lt_save_ifs"
12457     test -z "$ac_dir" && ac_dir=.
12458     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12459       lt_cv_path_LD="$ac_dir/$ac_prog"
12460       # Check to see if the program is GNU ld.  I'd rather use --version,
12461       # but apparently some variants of GNU ld only accept -v.
12462       # Break only if it was the GNU/non-GNU ld that we prefer.
12463       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12464       *GNU* | *'with BFD'*)
12465         test "$with_gnu_ld" != no && break
12466         ;;
12467       *)
12468         test "$with_gnu_ld" != yes && break
12469         ;;
12470       esac
12471     fi
12472   done
12473   IFS="$lt_save_ifs"
12474 else
12475   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12476 fi
12477 fi
12478
12479 LD="$lt_cv_path_LD"
12480 if test -n "$LD"; then
12481   { echo "$as_me:$LINENO: result: $LD" >&5
12482 echo "${ECHO_T}$LD" >&6; }
12483 else
12484   { echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6; }
12486 fi
12487 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12488 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12489    { (exit 1); exit 1; }; }
12490 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12491 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12492 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12496 case `$LD -v 2>&1 </dev/null` in
12497 *GNU* | *'with BFD'*)
12498   lt_cv_prog_gnu_ld=yes
12499   ;;
12500 *)
12501   lt_cv_prog_gnu_ld=no
12502   ;;
12503 esac
12504 fi
12505 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12507 with_gnu_ld=$lt_cv_prog_gnu_ld
12508
12509
12510
12511   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12512   # archiving commands below assume that GNU ld is being used.
12513   if test "$with_gnu_ld" = yes; then
12514     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12515     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'
12516
12517     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12518     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12519
12520     # If archive_cmds runs LD, not CC, wlarc should be empty
12521     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12522     #     investigate it a little bit more. (MM)
12523     wlarc='${wl}'
12524
12525     # ancient GNU ld didn't support --whole-archive et. al.
12526     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12527         grep 'no-whole-archive' > /dev/null; then
12528       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12529     else
12530       whole_archive_flag_spec_CXX=
12531     fi
12532   else
12533     with_gnu_ld=no
12534     wlarc=
12535
12536     # A generic and very simple default shared library creation
12537     # command for GNU C++ for the case where it uses the native
12538     # linker, instead of GNU ld.  If possible, this setting should
12539     # overridden to take advantage of the native linker features on
12540     # the platform it is being used on.
12541     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12542   fi
12543
12544   # Commands to make compiler produce verbose output that lists
12545   # what "hidden" libraries, object files and flags are used when
12546   # linking a shared library.
12547   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12548
12549 else
12550   GXX=no
12551   with_gnu_ld=no
12552   wlarc=
12553 fi
12554
12555 # PORTME: fill in a description of your system's C++ link characteristics
12556 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12558 ld_shlibs_CXX=yes
12559 case $host_os in
12560   aix3*)
12561     # FIXME: insert proper C++ library support
12562     ld_shlibs_CXX=no
12563     ;;
12564   aix4* | aix5*)
12565     if test "$host_cpu" = ia64; then
12566       # On IA64, the linker does run time linking by default, so we don't
12567       # have to do anything special.
12568       aix_use_runtimelinking=no
12569       exp_sym_flag='-Bexport'
12570       no_entry_flag=""
12571     else
12572       aix_use_runtimelinking=no
12573
12574       # Test if we are trying to use run time linking or normal
12575       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12576       # need to do runtime linking.
12577       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12578         for ld_flag in $LDFLAGS; do
12579           case $ld_flag in
12580           *-brtl*)
12581             aix_use_runtimelinking=yes
12582             break
12583             ;;
12584           esac
12585         done
12586         ;;
12587       esac
12588
12589       exp_sym_flag='-bexport'
12590       no_entry_flag='-bnoentry'
12591     fi
12592
12593     # When large executables or shared objects are built, AIX ld can
12594     # have problems creating the table of contents.  If linking a library
12595     # or program results in "error TOC overflow" add -mminimal-toc to
12596     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12597     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12598
12599     archive_cmds_CXX=''
12600     hardcode_direct_CXX=yes
12601     hardcode_libdir_separator_CXX=':'
12602     link_all_deplibs_CXX=yes
12603
12604     if test "$GXX" = yes; then
12605       case $host_os in aix4.[012]|aix4.[012].*)
12606       # We only want to do this on AIX 4.2 and lower, the check
12607       # below for broken collect2 doesn't work under 4.3+
12608         collect2name=`${CC} -print-prog-name=collect2`
12609         if test -f "$collect2name" && \
12610            strings "$collect2name" | grep resolve_lib_name >/dev/null
12611         then
12612           # We have reworked collect2
12613           :
12614         else
12615           # We have old collect2
12616           hardcode_direct_CXX=unsupported
12617           # It fails to find uninstalled libraries when the uninstalled
12618           # path is not listed in the libpath.  Setting hardcode_minus_L
12619           # to unsupported forces relinking
12620           hardcode_minus_L_CXX=yes
12621           hardcode_libdir_flag_spec_CXX='-L$libdir'
12622           hardcode_libdir_separator_CXX=
12623         fi
12624         ;;
12625       esac
12626       shared_flag='-shared'
12627       if test "$aix_use_runtimelinking" = yes; then
12628         shared_flag="$shared_flag "'${wl}-G'
12629       fi
12630     else
12631       # not using gcc
12632       if test "$host_cpu" = ia64; then
12633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12634         # chokes on -Wl,-G. The following line is correct:
12635         shared_flag='-G'
12636       else
12637         if test "$aix_use_runtimelinking" = yes; then
12638           shared_flag='${wl}-G'
12639         else
12640           shared_flag='${wl}-bM:SRE'
12641         fi
12642       fi
12643     fi
12644
12645     # It seems that -bexpall does not export symbols beginning with
12646     # underscore (_), so it is better to generate a list of symbols to export.
12647     always_export_symbols_CXX=yes
12648     if test "$aix_use_runtimelinking" = yes; then
12649       # Warning - without using the other runtime loading flags (-brtl),
12650       # -berok will link without error, but may produce a broken library.
12651       allow_undefined_flag_CXX='-berok'
12652       # Determine the default libpath from the value encoded in an empty executable.
12653       cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659
12660 int
12661 main ()
12662 {
12663
12664   ;
12665   return 0;
12666 }
12667 _ACEOF
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672   *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675   (eval "$ac_link") 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } && {
12682          test -z "$ac_cxx_werror_flag" ||
12683          test ! -s conftest.err
12684        } && test -s conftest$ac_exeext &&
12685        $as_test_x conftest$ac_exeext; then
12686
12687 lt_aix_libpath_sed='
12688     /Import File Strings/,/^$/ {
12689         /^0/ {
12690             s/^0  *\(.*\)$/\1/
12691             p
12692         }
12693     }'
12694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12695 # Check for a 64-bit object if we didn't find anything.
12696 if test -z "$aix_libpath"; then
12697   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12698 fi
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703
12704 fi
12705
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707       conftest$ac_exeext conftest.$ac_ext
12708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12709
12710       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12711
12712       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"
12713      else
12714       if test "$host_cpu" = ia64; then
12715         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12716         allow_undefined_flag_CXX="-z nodefs"
12717         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"
12718       else
12719         # Determine the default libpath from the value encoded in an empty executable.
12720         cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726
12727 int
12728 main ()
12729 {
12730
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_link") 2>conftest.er1
12743   ac_status=$?
12744   grep -v '^ *+' conftest.er1 >conftest.err
12745   rm -f conftest.er1
12746   cat conftest.err >&5
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } && {
12749          test -z "$ac_cxx_werror_flag" ||
12750          test ! -s conftest.err
12751        } && test -s conftest$ac_exeext &&
12752        $as_test_x conftest$ac_exeext; then
12753
12754 lt_aix_libpath_sed='
12755     /Import File Strings/,/^$/ {
12756         /^0/ {
12757             s/^0  *\(.*\)$/\1/
12758             p
12759         }
12760     }'
12761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12762 # Check for a 64-bit object if we didn't find anything.
12763 if test -z "$aix_libpath"; then
12764   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12765 fi
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774       conftest$ac_exeext conftest.$ac_ext
12775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12776
12777         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12778         # Warning - without using the other run time loading flags,
12779         # -berok will link without error, but may produce a broken library.
12780         no_undefined_flag_CXX=' ${wl}-bernotok'
12781         allow_undefined_flag_CXX=' ${wl}-berok'
12782         # Exported symbols can be pulled into shared objects from archives
12783         whole_archive_flag_spec_CXX='$convenience'
12784         archive_cmds_need_lc_CXX=yes
12785         # This is similar to how AIX traditionally builds its shared libraries.
12786         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'
12787       fi
12788     fi
12789     ;;
12790
12791   beos*)
12792     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12793       allow_undefined_flag_CXX=unsupported
12794       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12795       # support --undefined.  This deserves some investigation.  FIXME
12796       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797     else
12798       ld_shlibs_CXX=no
12799     fi
12800     ;;
12801
12802   chorus*)
12803     case $cc_basename in
12804       *)
12805         # FIXME: insert proper C++ library support
12806         ld_shlibs_CXX=no
12807         ;;
12808     esac
12809     ;;
12810
12811   cygwin* | mingw* | pw32*)
12812     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12813     # as there is no search path for DLLs.
12814     hardcode_libdir_flag_spec_CXX='-L$libdir'
12815     allow_undefined_flag_CXX=unsupported
12816     always_export_symbols_CXX=no
12817     enable_shared_with_static_runtimes_CXX=yes
12818
12819     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12820       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'
12821       # If the export-symbols file already is a .def file (1st line
12822       # is EXPORTS), use it as is; otherwise, prepend...
12823       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12824         cp $export_symbols $output_objdir/$soname.def;
12825       else
12826         echo EXPORTS > $output_objdir/$soname.def;
12827         cat $export_symbols >> $output_objdir/$soname.def;
12828       fi~
12829       $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'
12830     else
12831       ld_shlibs_CXX=no
12832     fi
12833   ;;
12834       darwin* | rhapsody*)
12835         case $host_os in
12836         rhapsody* | darwin1.[012])
12837          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12838          ;;
12839        *) # Darwin 1.3 on
12840          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12841            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12842          else
12843            case ${MACOSX_DEPLOYMENT_TARGET} in
12844              10.[012])
12845                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12846                ;;
12847              10.*)
12848                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12849                ;;
12850            esac
12851          fi
12852          ;;
12853         esac
12854       archive_cmds_need_lc_CXX=no
12855       hardcode_direct_CXX=no
12856       hardcode_automatic_CXX=yes
12857       hardcode_shlibpath_var_CXX=unsupported
12858       whole_archive_flag_spec_CXX=''
12859       link_all_deplibs_CXX=yes
12860
12861     if test "$GXX" = yes ; then
12862       lt_int_apple_cc_single_mod=no
12863       output_verbose_link_cmd='echo'
12864       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12865        lt_int_apple_cc_single_mod=yes
12866       fi
12867       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12868        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12869       else
12870           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'
12871         fi
12872         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12873         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12874           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12875             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12876           else
12877             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12878           fi
12879             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}'
12880       else
12881       case $cc_basename in
12882         xlc*)
12883          output_verbose_link_cmd='echo'
12884           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'
12885           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12886           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12887           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}'
12888           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}'
12889           ;;
12890        *)
12891          ld_shlibs_CXX=no
12892           ;;
12893       esac
12894       fi
12895         ;;
12896
12897   dgux*)
12898     case $cc_basename in
12899       ec++*)
12900         # FIXME: insert proper C++ library support
12901         ld_shlibs_CXX=no
12902         ;;
12903       ghcx*)
12904         # Green Hills C++ Compiler
12905         # FIXME: insert proper C++ library support
12906         ld_shlibs_CXX=no
12907         ;;
12908       *)
12909         # FIXME: insert proper C++ library support
12910         ld_shlibs_CXX=no
12911         ;;
12912     esac
12913     ;;
12914   freebsd[12]*)
12915     # C++ shared libraries reported to be fairly broken before switch to ELF
12916     ld_shlibs_CXX=no
12917     ;;
12918   freebsd-elf*)
12919     archive_cmds_need_lc_CXX=no
12920     ;;
12921   freebsd* | dragonfly*)
12922     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12923     # conventions
12924     ld_shlibs_CXX=yes
12925     ;;
12926   gnu*)
12927     ;;
12928   hpux9*)
12929     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12930     hardcode_libdir_separator_CXX=:
12931     export_dynamic_flag_spec_CXX='${wl}-E'
12932     hardcode_direct_CXX=yes
12933     hardcode_minus_L_CXX=yes # Not in the search PATH,
12934                                 # but as the default
12935                                 # location of the library.
12936
12937     case $cc_basename in
12938     CC*)
12939       # FIXME: insert proper C++ library support
12940       ld_shlibs_CXX=no
12941       ;;
12942     aCC*)
12943       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'
12944       # Commands to make compiler produce verbose output that lists
12945       # what "hidden" libraries, object files and flags are used when
12946       # linking a shared library.
12947       #
12948       # There doesn't appear to be a way to prevent this compiler from
12949       # explicitly linking system object files so we need to strip them
12950       # from the output so that they don't get included in the library
12951       # dependencies.
12952       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'
12953       ;;
12954     *)
12955       if test "$GXX" = yes; then
12956         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'
12957       else
12958         # FIXME: insert proper C++ library support
12959         ld_shlibs_CXX=no
12960       fi
12961       ;;
12962     esac
12963     ;;
12964   hpux10*|hpux11*)
12965     if test $with_gnu_ld = no; then
12966       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12967       hardcode_libdir_separator_CXX=:
12968
12969       case $host_cpu in
12970       hppa*64*|ia64*) ;;
12971       *)
12972         export_dynamic_flag_spec_CXX='${wl}-E'
12973         ;;
12974       esac
12975     fi
12976     case $host_cpu in
12977     hppa*64*|ia64*)
12978       hardcode_direct_CXX=no
12979       hardcode_shlibpath_var_CXX=no
12980       ;;
12981     *)
12982       hardcode_direct_CXX=yes
12983       hardcode_minus_L_CXX=yes # Not in the search PATH,
12984                                               # but as the default
12985                                               # location of the library.
12986       ;;
12987     esac
12988
12989     case $cc_basename in
12990       CC*)
12991         # FIXME: insert proper C++ library support
12992         ld_shlibs_CXX=no
12993         ;;
12994       aCC*)
12995         case $host_cpu in
12996         hppa*64*)
12997           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998           ;;
12999         ia64*)
13000           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001           ;;
13002         *)
13003           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004           ;;
13005         esac
13006         # Commands to make compiler produce verbose output that lists
13007         # what "hidden" libraries, object files and flags are used when
13008         # linking a shared library.
13009         #
13010         # There doesn't appear to be a way to prevent this compiler from
13011         # explicitly linking system object files so we need to strip them
13012         # from the output so that they don't get included in the library
13013         # dependencies.
13014         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'
13015         ;;
13016       *)
13017         if test "$GXX" = yes; then
13018           if test $with_gnu_ld = no; then
13019             case $host_cpu in
13020             hppa*64*)
13021               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022               ;;
13023             ia64*)
13024               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025               ;;
13026             *)
13027               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'
13028               ;;
13029             esac
13030           fi
13031         else
13032           # FIXME: insert proper C++ library support
13033           ld_shlibs_CXX=no
13034         fi
13035         ;;
13036     esac
13037     ;;
13038   interix[3-9]*)
13039     hardcode_direct_CXX=no
13040     hardcode_shlibpath_var_CXX=no
13041     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13042     export_dynamic_flag_spec_CXX='${wl}-E'
13043     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13044     # Instead, shared libraries are loaded at an image base (0x10000000 by
13045     # default) and relocated if they conflict, which is a slow very memory
13046     # consuming and fragmenting process.  To avoid this, we pick a random,
13047     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13048     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13049     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'
13050     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'
13051     ;;
13052   irix5* | irix6*)
13053     case $cc_basename in
13054       CC*)
13055         # SGI C++
13056         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'
13057
13058         # Archives containing C++ object files must be created using
13059         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13060         # necessary to make sure instantiated templates are included
13061         # in the archive.
13062         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13063         ;;
13064       *)
13065         if test "$GXX" = yes; then
13066           if test "$with_gnu_ld" = no; then
13067             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'
13068           else
13069             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'
13070           fi
13071         fi
13072         link_all_deplibs_CXX=yes
13073         ;;
13074     esac
13075     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13076     hardcode_libdir_separator_CXX=:
13077     ;;
13078   linux* | k*bsd*-gnu)
13079     case $cc_basename in
13080       KCC*)
13081         # Kuck and Associates, Inc. (KAI) C++ Compiler
13082
13083         # KCC will only create a shared library if the output file
13084         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13085         # to its proper name (with version) after linking.
13086         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'
13087         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'
13088         # Commands to make compiler produce verbose output that lists
13089         # what "hidden" libraries, object files and flags are used when
13090         # linking a shared library.
13091         #
13092         # There doesn't appear to be a way to prevent this compiler from
13093         # explicitly linking system object files so we need to strip them
13094         # from the output so that they don't get included in the library
13095         # dependencies.
13096         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'
13097
13098         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13099         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13100
13101         # Archives containing C++ object files must be created using
13102         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13103         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13104         ;;
13105       icpc*)
13106         # Intel C++
13107         with_gnu_ld=yes
13108         # version 8.0 and above of icpc choke on multiply defined symbols
13109         # if we add $predep_objects and $postdep_objects, however 7.1 and
13110         # earlier do not add the objects themselves.
13111         case `$CC -V 2>&1` in
13112         *"Version 7."*)
13113           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114           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'
13115           ;;
13116         *)  # Version 8.0 or newer
13117           tmp_idyn=
13118           case $host_cpu in
13119             ia64*) tmp_idyn=' -i_dynamic';;
13120           esac
13121           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122           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'
13123           ;;
13124         esac
13125         archive_cmds_need_lc_CXX=no
13126         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13127         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13128         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13129         ;;
13130       pgCC*)
13131         # Portland Group C++ compiler
13132         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13133         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'
13134
13135         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13136         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13137         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'
13138         ;;
13139       cxx*)
13140         # Compaq C++
13141         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142         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'
13143
13144         runpath_var=LD_RUN_PATH
13145         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13146         hardcode_libdir_separator_CXX=:
13147
13148         # Commands to make compiler produce verbose output that lists
13149         # what "hidden" libraries, object files and flags are used when
13150         # linking a shared library.
13151         #
13152         # There doesn't appear to be a way to prevent this compiler from
13153         # explicitly linking system object files so we need to strip them
13154         # from the output so that they don't get included in the library
13155         # dependencies.
13156         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'
13157         ;;
13158       *)
13159         case `$CC -V 2>&1 | sed 5q` in
13160         *Sun\ C*)
13161           # Sun C++ 5.9
13162           no_undefined_flag_CXX=' -zdefs'
13163           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164           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'
13165           hardcode_libdir_flag_spec_CXX='-R$libdir'
13166           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'
13167
13168           # Not sure whether something based on
13169           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13170           # would be better.
13171           output_verbose_link_cmd='echo'
13172
13173           # Archives containing C++ object files must be created using
13174           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13175           # necessary to make sure instantiated templates are included
13176           # in the archive.
13177           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13178           ;;
13179         esac
13180         ;;
13181     esac
13182     ;;
13183   lynxos*)
13184     # FIXME: insert proper C++ library support
13185     ld_shlibs_CXX=no
13186     ;;
13187   m88k*)
13188     # FIXME: insert proper C++ library support
13189     ld_shlibs_CXX=no
13190     ;;
13191   mvs*)
13192     case $cc_basename in
13193       cxx*)
13194         # FIXME: insert proper C++ library support
13195         ld_shlibs_CXX=no
13196         ;;
13197       *)
13198         # FIXME: insert proper C++ library support
13199         ld_shlibs_CXX=no
13200         ;;
13201     esac
13202     ;;
13203   netbsd*)
13204     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13205       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13206       wlarc=
13207       hardcode_libdir_flag_spec_CXX='-R$libdir'
13208       hardcode_direct_CXX=yes
13209       hardcode_shlibpath_var_CXX=no
13210     fi
13211     # Workaround some broken pre-1.5 toolchains
13212     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13213     ;;
13214   openbsd2*)
13215     # C++ shared libraries are fairly broken
13216     ld_shlibs_CXX=no
13217     ;;
13218   openbsd*)
13219     if test -f /usr/libexec/ld.so; then
13220       hardcode_direct_CXX=yes
13221       hardcode_shlibpath_var_CXX=no
13222       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13223       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13224       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13225         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13226         export_dynamic_flag_spec_CXX='${wl}-E'
13227         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13228       fi
13229       output_verbose_link_cmd='echo'
13230     else
13231       ld_shlibs_CXX=no
13232     fi
13233     ;;
13234   osf3*)
13235     case $cc_basename in
13236       KCC*)
13237         # Kuck and Associates, Inc. (KAI) C++ Compiler
13238
13239         # KCC will only create a shared library if the output file
13240         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13241         # to its proper name (with version) after linking.
13242         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'
13243
13244         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13245         hardcode_libdir_separator_CXX=:
13246
13247         # Archives containing C++ object files must be created using
13248         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13249         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13250
13251         ;;
13252       RCC*)
13253         # Rational C++ 2.4.1
13254         # FIXME: insert proper C++ library support
13255         ld_shlibs_CXX=no
13256         ;;
13257       cxx*)
13258         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13259         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'
13260
13261         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13262         hardcode_libdir_separator_CXX=:
13263
13264         # Commands to make compiler produce verbose output that lists
13265         # what "hidden" libraries, object files and flags are used when
13266         # linking a shared library.
13267         #
13268         # There doesn't appear to be a way to prevent this compiler from
13269         # explicitly linking system object files so we need to strip them
13270         # from the output so that they don't get included in the library
13271         # dependencies.
13272         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'
13273         ;;
13274       *)
13275         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13276           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13277           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'
13278
13279           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13280           hardcode_libdir_separator_CXX=:
13281
13282           # Commands to make compiler produce verbose output that lists
13283           # what "hidden" libraries, object files and flags are used when
13284           # linking a shared library.
13285           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13286
13287         else
13288           # FIXME: insert proper C++ library support
13289           ld_shlibs_CXX=no
13290         fi
13291         ;;
13292     esac
13293     ;;
13294   osf4* | osf5*)
13295     case $cc_basename in
13296       KCC*)
13297         # Kuck and Associates, Inc. (KAI) C++ Compiler
13298
13299         # KCC will only create a shared library if the output file
13300         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13301         # to its proper name (with version) after linking.
13302         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'
13303
13304         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305         hardcode_libdir_separator_CXX=:
13306
13307         # Archives containing C++ object files must be created using
13308         # the KAI C++ compiler.
13309         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13310         ;;
13311       RCC*)
13312         # Rational C++ 2.4.1
13313         # FIXME: insert proper C++ library support
13314         ld_shlibs_CXX=no
13315         ;;
13316       cxx*)
13317         allow_undefined_flag_CXX=' -expect_unresolved \*'
13318         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'
13319         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13320           echo "-hidden">> $lib.exp~
13321           $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~
13322           $rm $lib.exp'
13323
13324         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13325         hardcode_libdir_separator_CXX=:
13326
13327         # Commands to make compiler produce verbose output that lists
13328         # what "hidden" libraries, object files and flags are used when
13329         # linking a shared library.
13330         #
13331         # There doesn't appear to be a way to prevent this compiler from
13332         # explicitly linking system object files so we need to strip them
13333         # from the output so that they don't get included in the library
13334         # dependencies.
13335         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'
13336         ;;
13337       *)
13338         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13339           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13340          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'
13341
13342           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13343           hardcode_libdir_separator_CXX=:
13344
13345           # Commands to make compiler produce verbose output that lists
13346           # what "hidden" libraries, object files and flags are used when
13347           # linking a shared library.
13348           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13349
13350         else
13351           # FIXME: insert proper C++ library support
13352           ld_shlibs_CXX=no
13353         fi
13354         ;;
13355     esac
13356     ;;
13357   psos*)
13358     # FIXME: insert proper C++ library support
13359     ld_shlibs_CXX=no
13360     ;;
13361   sunos4*)
13362     case $cc_basename in
13363       CC*)
13364         # Sun C++ 4.x
13365         # FIXME: insert proper C++ library support
13366         ld_shlibs_CXX=no
13367         ;;
13368       lcc*)
13369         # Lucid
13370         # FIXME: insert proper C++ library support
13371         ld_shlibs_CXX=no
13372         ;;
13373       *)
13374         # FIXME: insert proper C++ library support
13375         ld_shlibs_CXX=no
13376         ;;
13377     esac
13378     ;;
13379   solaris*)
13380     case $cc_basename in
13381       CC*)
13382         # Sun C++ 4.2, 5.x and Centerline C++
13383         archive_cmds_need_lc_CXX=yes
13384         no_undefined_flag_CXX=' -zdefs'
13385         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13387         $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'
13388
13389         hardcode_libdir_flag_spec_CXX='-R$libdir'
13390         hardcode_shlibpath_var_CXX=no
13391         case $host_os in
13392           solaris2.[0-5] | solaris2.[0-5].*) ;;
13393           *)
13394             # The compiler driver will combine and reorder linker options,
13395             # but understands `-z linker_flag'.
13396             # Supported since Solaris 2.6 (maybe 2.5.1?)
13397             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13398             ;;
13399         esac
13400         link_all_deplibs_CXX=yes
13401
13402         output_verbose_link_cmd='echo'
13403
13404         # Archives containing C++ object files must be created using
13405         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13406         # necessary to make sure instantiated templates are included
13407         # in the archive.
13408         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13409         ;;
13410       gcx*)
13411         # Green Hills C++ Compiler
13412         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13413
13414         # The C++ compiler must be used to create the archive.
13415         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13416         ;;
13417       *)
13418         # GNU C++ compiler with Solaris linker
13419         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13420           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13421           if $CC --version | grep -v '^2\.7' > /dev/null; then
13422             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13423             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13424                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13425
13426             # Commands to make compiler produce verbose output that lists
13427             # what "hidden" libraries, object files and flags are used when
13428             # linking a shared library.
13429             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13430           else
13431             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13432             # platform.
13433             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13434             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13436
13437             # Commands to make compiler produce verbose output that lists
13438             # what "hidden" libraries, object files and flags are used when
13439             # linking a shared library.
13440             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13441           fi
13442
13443           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13444           case $host_os in
13445           solaris2.[0-5] | solaris2.[0-5].*) ;;
13446           *)
13447             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13448             ;;
13449           esac
13450         fi
13451         ;;
13452     esac
13453     ;;
13454   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13455     no_undefined_flag_CXX='${wl}-z,text'
13456     archive_cmds_need_lc_CXX=no
13457     hardcode_shlibpath_var_CXX=no
13458     runpath_var='LD_RUN_PATH'
13459
13460     case $cc_basename in
13461       CC*)
13462         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464         ;;
13465       *)
13466         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468         ;;
13469     esac
13470     ;;
13471   sysv5* | sco3.2v5* | sco5v6*)
13472     # Note: We can NOT use -z defs as we might desire, because we do not
13473     # link with -lc, and that would cause any symbols used from libc to
13474     # always be unresolved, which means just about no library would
13475     # ever link correctly.  If we're not using GNU ld we use -z text
13476     # though, which does catch some bad symbols but isn't as heavy-handed
13477     # as -z defs.
13478     # For security reasons, it is highly recommended that you always
13479     # use absolute paths for naming shared libraries, and exclude the
13480     # DT_RUNPATH tag from executables and libraries.  But doing so
13481     # requires that you compile everything twice, which is a pain.
13482     # So that behaviour is only enabled if SCOABSPATH is set to a
13483     # non-empty value in the environment.  Most likely only useful for
13484     # creating official distributions of packages.
13485     # This is a hack until libtool officially supports absolute path
13486     # names for shared libraries.
13487     no_undefined_flag_CXX='${wl}-z,text'
13488     allow_undefined_flag_CXX='${wl}-z,nodefs'
13489     archive_cmds_need_lc_CXX=no
13490     hardcode_shlibpath_var_CXX=no
13491     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13492     hardcode_libdir_separator_CXX=':'
13493     link_all_deplibs_CXX=yes
13494     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13495     runpath_var='LD_RUN_PATH'
13496
13497     case $cc_basename in
13498       CC*)
13499         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501         ;;
13502       *)
13503         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13505         ;;
13506     esac
13507     ;;
13508   tandem*)
13509     case $cc_basename in
13510       NCC*)
13511         # NonStop-UX NCC 3.20
13512         # FIXME: insert proper C++ library support
13513         ld_shlibs_CXX=no
13514         ;;
13515       *)
13516         # FIXME: insert proper C++ library support
13517         ld_shlibs_CXX=no
13518         ;;
13519     esac
13520     ;;
13521   vxworks*)
13522     # FIXME: insert proper C++ library support
13523     ld_shlibs_CXX=no
13524     ;;
13525   *)
13526     # FIXME: insert proper C++ library support
13527     ld_shlibs_CXX=no
13528     ;;
13529 esac
13530 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13531 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13532 test "$ld_shlibs_CXX" = no && can_build_shared=no
13533
13534 GCC_CXX="$GXX"
13535 LD_CXX="$LD"
13536
13537
13538 cat > conftest.$ac_ext <<EOF
13539 class Foo
13540 {
13541 public:
13542   Foo (void) { a = 0; }
13543 private:
13544   int a;
13545 };
13546 EOF
13547
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549   (eval $ac_compile) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; then
13553   # Parse the compiler output and extract the necessary
13554   # objects, libraries and library flags.
13555
13556   # Sentinel used to keep track of whether or not we are before
13557   # the conftest object file.
13558   pre_test_object_deps_done=no
13559
13560   # The `*' in the case matches for architectures that use `case' in
13561   # $output_verbose_cmd can trigger glob expansion during the loop
13562   # eval without this substitution.
13563   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13564
13565   for p in `eval $output_verbose_link_cmd`; do
13566     case $p in
13567
13568     -L* | -R* | -l*)
13569        # Some compilers place space between "-{L,R}" and the path.
13570        # Remove the space.
13571        if test $p = "-L" \
13572           || test $p = "-R"; then
13573          prev=$p
13574          continue
13575        else
13576          prev=
13577        fi
13578
13579        if test "$pre_test_object_deps_done" = no; then
13580          case $p in
13581          -L* | -R*)
13582            # Internal compiler library paths should come after those
13583            # provided the user.  The postdeps already come after the
13584            # user supplied libs so there is no need to process them.
13585            if test -z "$compiler_lib_search_path_CXX"; then
13586              compiler_lib_search_path_CXX="${prev}${p}"
13587            else
13588              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13589            fi
13590            ;;
13591          # The "-l" case would never come before the object being
13592          # linked, so don't bother handling this case.
13593          esac
13594        else
13595          if test -z "$postdeps_CXX"; then
13596            postdeps_CXX="${prev}${p}"
13597          else
13598            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13599          fi
13600        fi
13601        ;;
13602
13603     *.$objext)
13604        # This assumes that the test object file only shows up
13605        # once in the compiler output.
13606        if test "$p" = "conftest.$objext"; then
13607          pre_test_object_deps_done=yes
13608          continue
13609        fi
13610
13611        if test "$pre_test_object_deps_done" = no; then
13612          if test -z "$predep_objects_CXX"; then
13613            predep_objects_CXX="$p"
13614          else
13615            predep_objects_CXX="$predep_objects_CXX $p"
13616          fi
13617        else
13618          if test -z "$postdep_objects_CXX"; then
13619            postdep_objects_CXX="$p"
13620          else
13621            postdep_objects_CXX="$postdep_objects_CXX $p"
13622          fi
13623        fi
13624        ;;
13625
13626     *) ;; # Ignore the rest.
13627
13628     esac
13629   done
13630
13631   # Clean up.
13632   rm -f a.out a.exe
13633 else
13634   echo "libtool.m4: error: problem compiling CXX test program"
13635 fi
13636
13637 $rm -f confest.$objext
13638
13639 # PORTME: override above test on systems where it is broken
13640 case $host_os in
13641 interix[3-9]*)
13642   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13643   # hack all around it, let's just trust "g++" to DTRT.
13644   predep_objects_CXX=
13645   postdep_objects_CXX=
13646   postdeps_CXX=
13647   ;;
13648
13649 linux*)
13650   case `$CC -V 2>&1 | sed 5q` in
13651   *Sun\ C*)
13652     # Sun C++ 5.9
13653     #
13654     # The more standards-conforming stlport4 library is
13655     # incompatible with the Cstd library. Avoid specifying
13656     # it if it's in CXXFLAGS. Ignore libCrun as
13657     # -library=stlport4 depends on it.
13658     case " $CXX $CXXFLAGS " in
13659     *" -library=stlport4 "*)
13660       solaris_use_stlport4=yes
13661       ;;
13662     esac
13663     if test "$solaris_use_stlport4" != yes; then
13664       postdeps_CXX='-library=Cstd -library=Crun'
13665     fi
13666     ;;
13667   esac
13668   ;;
13669
13670 solaris*)
13671   case $cc_basename in
13672   CC*)
13673     # The more standards-conforming stlport4 library is
13674     # incompatible with the Cstd library. Avoid specifying
13675     # it if it's in CXXFLAGS. Ignore libCrun as
13676     # -library=stlport4 depends on it.
13677     case " $CXX $CXXFLAGS " in
13678     *" -library=stlport4 "*)
13679       solaris_use_stlport4=yes
13680       ;;
13681     esac
13682
13683     # Adding this requires a known-good setup of shared libraries for
13684     # Sun compiler versions before 5.6, else PIC objects from an old
13685     # archive will be linked into the output, leading to subtle bugs.
13686     if test "$solaris_use_stlport4" != yes; then
13687       postdeps_CXX='-library=Cstd -library=Crun'
13688     fi
13689     ;;
13690   esac
13691   ;;
13692 esac
13693
13694
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13697 esac
13698
13699 lt_prog_compiler_wl_CXX=
13700 lt_prog_compiler_pic_CXX=
13701 lt_prog_compiler_static_CXX=
13702
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13705
13706   # C++ specific cases for pic, static, wl, etc.
13707   if test "$GXX" = yes; then
13708     lt_prog_compiler_wl_CXX='-Wl,'
13709     lt_prog_compiler_static_CXX='-static'
13710
13711     case $host_os in
13712     aix*)
13713       # All AIX code is PIC.
13714       if test "$host_cpu" = ia64; then
13715         # AIX 5 now supports IA64 processor
13716         lt_prog_compiler_static_CXX='-Bstatic'
13717       fi
13718       ;;
13719     amigaos*)
13720       # FIXME: we need at least 68020 code to build shared libraries, but
13721       # adding the `-m68020' flag to GCC prevents building anything better,
13722       # like `-m68040'.
13723       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13724       ;;
13725     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13726       # PIC is the default for these OSes.
13727       ;;
13728     mingw* | cygwin* | os2* | pw32*)
13729       # This hack is so that the source file can tell whether it is being
13730       # built for inclusion in a dll (and should export symbols for example).
13731       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13732       # (--disable-auto-import) libraries
13733       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13734       ;;
13735     darwin* | rhapsody*)
13736       # PIC is the default on this platform
13737       # Common symbols not allowed in MH_DYLIB files
13738       lt_prog_compiler_pic_CXX='-fno-common'
13739       ;;
13740     *djgpp*)
13741       # DJGPP does not support shared libraries at all
13742       lt_prog_compiler_pic_CXX=
13743       ;;
13744     interix[3-9]*)
13745       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746       # Instead, we relocate shared libraries at runtime.
13747       ;;
13748     sysv4*MP*)
13749       if test -d /usr/nec; then
13750         lt_prog_compiler_pic_CXX=-Kconform_pic
13751       fi
13752       ;;
13753     hpux*)
13754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755       # not for PA HP-UX.
13756       case $host_cpu in
13757       hppa*64*|ia64*)
13758         ;;
13759       *)
13760         lt_prog_compiler_pic_CXX='-fPIC'
13761         ;;
13762       esac
13763       ;;
13764     *)
13765       lt_prog_compiler_pic_CXX='-fPIC'
13766       ;;
13767     esac
13768   else
13769     case $host_os in
13770       aix4* | aix5*)
13771         # All AIX code is PIC.
13772         if test "$host_cpu" = ia64; then
13773           # AIX 5 now supports IA64 processor
13774           lt_prog_compiler_static_CXX='-Bstatic'
13775         else
13776           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13777         fi
13778         ;;
13779       chorus*)
13780         case $cc_basename in
13781         cxch68*)
13782           # Green Hills C++ Compiler
13783           # _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"
13784           ;;
13785         esac
13786         ;;
13787        darwin*)
13788          # PIC is the default on this platform
13789          # Common symbols not allowed in MH_DYLIB files
13790          case $cc_basename in
13791            xlc*)
13792            lt_prog_compiler_pic_CXX='-qnocommon'
13793            lt_prog_compiler_wl_CXX='-Wl,'
13794            ;;
13795          esac
13796        ;;
13797       dgux*)
13798         case $cc_basename in
13799           ec++*)
13800             lt_prog_compiler_pic_CXX='-KPIC'
13801             ;;
13802           ghcx*)
13803             # Green Hills C++ Compiler
13804             lt_prog_compiler_pic_CXX='-pic'
13805             ;;
13806           *)
13807             ;;
13808         esac
13809         ;;
13810       freebsd* | dragonfly*)
13811         # FreeBSD uses GNU C++
13812         ;;
13813       hpux9* | hpux10* | hpux11*)
13814         case $cc_basename in
13815           CC*)
13816             lt_prog_compiler_wl_CXX='-Wl,'
13817             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818             if test "$host_cpu" != ia64; then
13819               lt_prog_compiler_pic_CXX='+Z'
13820             fi
13821             ;;
13822           aCC*)
13823             lt_prog_compiler_wl_CXX='-Wl,'
13824             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13825             case $host_cpu in
13826             hppa*64*|ia64*)
13827               # +Z the default
13828               ;;
13829             *)
13830               lt_prog_compiler_pic_CXX='+Z'
13831               ;;
13832             esac
13833             ;;
13834           *)
13835             ;;
13836         esac
13837         ;;
13838       interix*)
13839         # This is c89, which is MS Visual C++ (no shared libs)
13840         # Anyone wants to do a port?
13841         ;;
13842       irix5* | irix6* | nonstopux*)
13843         case $cc_basename in
13844           CC*)
13845             lt_prog_compiler_wl_CXX='-Wl,'
13846             lt_prog_compiler_static_CXX='-non_shared'
13847             # CC pic flag -KPIC is the default.
13848             ;;
13849           *)
13850             ;;
13851         esac
13852         ;;
13853       linux* | k*bsd*-gnu)
13854         case $cc_basename in
13855           KCC*)
13856             # KAI C++ Compiler
13857             lt_prog_compiler_wl_CXX='--backend -Wl,'
13858             lt_prog_compiler_pic_CXX='-fPIC'
13859             ;;
13860           icpc* | ecpc*)
13861             # Intel C++
13862             lt_prog_compiler_wl_CXX='-Wl,'
13863             lt_prog_compiler_pic_CXX='-KPIC'
13864             lt_prog_compiler_static_CXX='-static'
13865             ;;
13866           pgCC*)
13867             # Portland Group C++ compiler.
13868             lt_prog_compiler_wl_CXX='-Wl,'
13869             lt_prog_compiler_pic_CXX='-fpic'
13870             lt_prog_compiler_static_CXX='-Bstatic'
13871             ;;
13872           cxx*)
13873             # Compaq C++
13874             # Make sure the PIC flag is empty.  It appears that all Alpha
13875             # Linux and Compaq Tru64 Unix objects are PIC.
13876             lt_prog_compiler_pic_CXX=
13877             lt_prog_compiler_static_CXX='-non_shared'
13878             ;;
13879           *)
13880             case `$CC -V 2>&1 | sed 5q` in
13881             *Sun\ C*)
13882               # Sun C++ 5.9
13883               lt_prog_compiler_pic_CXX='-KPIC'
13884               lt_prog_compiler_static_CXX='-Bstatic'
13885               lt_prog_compiler_wl_CXX='-Qoption ld '
13886               ;;
13887             esac
13888             ;;
13889         esac
13890         ;;
13891       lynxos*)
13892         ;;
13893       m88k*)
13894         ;;
13895       mvs*)
13896         case $cc_basename in
13897           cxx*)
13898             lt_prog_compiler_pic_CXX='-W c,exportall'
13899             ;;
13900           *)
13901             ;;
13902         esac
13903         ;;
13904       netbsd*)
13905         ;;
13906       osf3* | osf4* | osf5*)
13907         case $cc_basename in
13908           KCC*)
13909             lt_prog_compiler_wl_CXX='--backend -Wl,'
13910             ;;
13911           RCC*)
13912             # Rational C++ 2.4.1
13913             lt_prog_compiler_pic_CXX='-pic'
13914             ;;
13915           cxx*)
13916             # Digital/Compaq C++
13917             lt_prog_compiler_wl_CXX='-Wl,'
13918             # Make sure the PIC flag is empty.  It appears that all Alpha
13919             # Linux and Compaq Tru64 Unix objects are PIC.
13920             lt_prog_compiler_pic_CXX=
13921             lt_prog_compiler_static_CXX='-non_shared'
13922             ;;
13923           *)
13924             ;;
13925         esac
13926         ;;
13927       psos*)
13928         ;;
13929       solaris*)
13930         case $cc_basename in
13931           CC*)
13932             # Sun C++ 4.2, 5.x and Centerline C++
13933             lt_prog_compiler_pic_CXX='-KPIC'
13934             lt_prog_compiler_static_CXX='-Bstatic'
13935             lt_prog_compiler_wl_CXX='-Qoption ld '
13936             ;;
13937           gcx*)
13938             # Green Hills C++ Compiler
13939             lt_prog_compiler_pic_CXX='-PIC'
13940             ;;
13941           *)
13942             ;;
13943         esac
13944         ;;
13945       sunos4*)
13946         case $cc_basename in
13947           CC*)
13948             # Sun C++ 4.x
13949             lt_prog_compiler_pic_CXX='-pic'
13950             lt_prog_compiler_static_CXX='-Bstatic'
13951             ;;
13952           lcc*)
13953             # Lucid
13954             lt_prog_compiler_pic_CXX='-pic'
13955             ;;
13956           *)
13957             ;;
13958         esac
13959         ;;
13960       tandem*)
13961         case $cc_basename in
13962           NCC*)
13963             # NonStop-UX NCC 3.20
13964             lt_prog_compiler_pic_CXX='-KPIC'
13965             ;;
13966           *)
13967             ;;
13968         esac
13969         ;;
13970       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13971         case $cc_basename in
13972           CC*)
13973             lt_prog_compiler_wl_CXX='-Wl,'
13974             lt_prog_compiler_pic_CXX='-KPIC'
13975             lt_prog_compiler_static_CXX='-Bstatic'
13976             ;;
13977         esac
13978         ;;
13979       vxworks*)
13980         ;;
13981       *)
13982         lt_prog_compiler_can_build_shared_CXX=no
13983         ;;
13984     esac
13985   fi
13986
13987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13989
13990 #
13991 # Check to make sure the PIC flag actually works.
13992 #
13993 if test -n "$lt_prog_compiler_pic_CXX"; then
13994
13995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13997 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   lt_prog_compiler_pic_works_CXX=no
14001   ac_outfile=conftest.$ac_objext
14002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14003    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14004    # Insert the option either (1) after the last *FLAGS variable, or
14005    # (2) before a word containing "conftest.", or (3) at the end.
14006    # Note that $ac_compile itself does not contain backslashes and begins
14007    # with a dollar sign (not a hyphen), so the echo should work correctly.
14008    # The option is referenced via a variable to avoid confusing sed.
14009    lt_compile=`echo "$ac_compile" | $SED \
14010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14012    -e 's:$: $lt_compiler_flag:'`
14013    (eval echo "\"\$as_me:14013: $lt_compile\"" >&5)
14014    (eval "$lt_compile" 2>conftest.err)
14015    ac_status=$?
14016    cat conftest.err >&5
14017    echo "$as_me:14017: \$? = $ac_status" >&5
14018    if (exit $ac_status) && test -s "$ac_outfile"; then
14019      # The compiler can only warn and ignore the option if not recognized
14020      # So say no if there are warnings other than the usual output.
14021      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14024        lt_prog_compiler_pic_works_CXX=yes
14025      fi
14026    fi
14027    $rm conftest*
14028
14029 fi
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14032
14033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14034     case $lt_prog_compiler_pic_CXX in
14035      "" | " "*) ;;
14036      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14037      esac
14038 else
14039     lt_prog_compiler_pic_CXX=
14040      lt_prog_compiler_can_build_shared_CXX=no
14041 fi
14042
14043 fi
14044 case $host_os in
14045   # For platforms which do not support PIC, -DPIC is meaningless:
14046   *djgpp*)
14047     lt_prog_compiler_pic_CXX=
14048     ;;
14049   *)
14050     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14051     ;;
14052 esac
14053
14054 #
14055 # Check to make sure the static flag actually works.
14056 #
14057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14060 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14061   echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063   lt_prog_compiler_static_works_CXX=no
14064    save_LDFLAGS="$LDFLAGS"
14065    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14068      # The linker can only warn and ignore the option if not recognized
14069      # So say no if there are warnings
14070      if test -s conftest.err; then
14071        # Append any errors to the config.log.
14072        cat conftest.err 1>&5
14073        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14075        if diff conftest.exp conftest.er2 >/dev/null; then
14076          lt_prog_compiler_static_works_CXX=yes
14077        fi
14078      else
14079        lt_prog_compiler_static_works_CXX=yes
14080      fi
14081    fi
14082    $rm conftest*
14083    LDFLAGS="$save_LDFLAGS"
14084
14085 fi
14086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14087 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14088
14089 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14090     :
14091 else
14092     lt_prog_compiler_static_CXX=
14093 fi
14094
14095
14096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14098 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   lt_cv_prog_compiler_c_o_CXX=no
14102    $rm -r conftest 2>/dev/null
14103    mkdir conftest
14104    cd conftest
14105    mkdir out
14106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14107
14108    lt_compiler_flag="-o out/conftest2.$ac_objext"
14109    # Insert the option either (1) after the last *FLAGS variable, or
14110    # (2) before a word containing "conftest.", or (3) at the end.
14111    # Note that $ac_compile itself does not contain backslashes and begins
14112    # with a dollar sign (not a hyphen), so the echo should work correctly.
14113    lt_compile=`echo "$ac_compile" | $SED \
14114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14116    -e 's:$: $lt_compiler_flag:'`
14117    (eval echo "\"\$as_me:14117: $lt_compile\"" >&5)
14118    (eval "$lt_compile" 2>out/conftest.err)
14119    ac_status=$?
14120    cat out/conftest.err >&5
14121    echo "$as_me:14121: \$? = $ac_status" >&5
14122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14123    then
14124      # The compiler can only warn and ignore the option if not recognized
14125      # So say no if there are warnings
14126      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14129        lt_cv_prog_compiler_c_o_CXX=yes
14130      fi
14131    fi
14132    chmod u+w . 2>&5
14133    $rm conftest*
14134    # SGI C++ compiler will create directory out/ii_files/ for
14135    # template instantiation
14136    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14137    $rm out/* && rmdir out
14138    cd ..
14139    rmdir conftest
14140    $rm conftest*
14141
14142 fi
14143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14145
14146
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149   # do not overwrite the value of need_locks provided by the user
14150   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14152   hard_links=yes
14153   $rm conftest*
14154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155   touch conftest.a
14156   ln conftest.a conftest.b 2>&5 || hard_links=no
14157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158   { echo "$as_me:$LINENO: result: $hard_links" >&5
14159 echo "${ECHO_T}$hard_links" >&6; }
14160   if test "$hard_links" = no; then
14161     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163     need_locks=warn
14164   fi
14165 else
14166   need_locks=no
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14171
14172   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14173   case $host_os in
14174   aix4* | aix5*)
14175     # If we're using GNU nm, then we don't want the "-C" option.
14176     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14177     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14178       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'
14179     else
14180       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'
14181     fi
14182     ;;
14183   pw32*)
14184     export_symbols_cmds_CXX="$ltdll_cmds"
14185   ;;
14186   cygwin* | mingw*)
14187     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'
14188   ;;
14189   *)
14190     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191   ;;
14192   esac
14193
14194 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14195 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14196 test "$ld_shlibs_CXX" = no && can_build_shared=no
14197
14198 #
14199 # Do we need to explicitly link libc?
14200 #
14201 case "x$archive_cmds_need_lc_CXX" in
14202 x|xyes)
14203   # Assume -lc should be added
14204   archive_cmds_need_lc_CXX=yes
14205
14206   if test "$enable_shared" = yes && test "$GCC" = yes; then
14207     case $archive_cmds_CXX in
14208     *'~'*)
14209       # FIXME: we may have to deal with multi-command sequences.
14210       ;;
14211     '$CC '*)
14212       # Test whether the compiler implicitly links with -lc since on some
14213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14214       # to ld, don't add -lc before -lgcc.
14215       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14217       $rm conftest*
14218       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14219
14220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221   (eval $ac_compile) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } 2>conftest.err; then
14225         soname=conftest
14226         lib=conftest
14227         libobjs=conftest.$ac_objext
14228         deplibs=
14229         wl=$lt_prog_compiler_wl_CXX
14230         pic_flag=$lt_prog_compiler_pic_CXX
14231         compiler_flags=-v
14232         linker_flags=-v
14233         verstring=
14234         output_objdir=.
14235         libname=conftest
14236         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14237         allow_undefined_flag_CXX=
14238         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14239   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }
14243         then
14244           archive_cmds_need_lc_CXX=no
14245         else
14246           archive_cmds_need_lc_CXX=yes
14247         fi
14248         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14249       else
14250         cat conftest.err 1>&5
14251       fi
14252       $rm conftest*
14253       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14254 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14255       ;;
14256     esac
14257   fi
14258   ;;
14259 esac
14260
14261 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14263 library_names_spec=
14264 libname_spec='lib$name'
14265 soname_spec=
14266 shrext_cmds=".so"
14267 postinstall_cmds=
14268 postuninstall_cmds=
14269 finish_cmds=
14270 finish_eval=
14271 shlibpath_var=
14272 shlibpath_overrides_runpath=unknown
14273 version_type=none
14274 dynamic_linker="$host_os ld.so"
14275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14276
14277 need_lib_prefix=unknown
14278 hardcode_into_libs=no
14279
14280 # when you set need_version to no, make sure it does not cause -set_version
14281 # flags to be left without arguments
14282 need_version=unknown
14283
14284 case $host_os in
14285 aix3*)
14286   version_type=linux
14287   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14288   shlibpath_var=LIBPATH
14289
14290   # AIX 3 has no versioning support, so we append a major version to the name.
14291   soname_spec='${libname}${release}${shared_ext}$major'
14292   ;;
14293
14294 aix4* | aix5*)
14295   version_type=linux
14296   need_lib_prefix=no
14297   need_version=no
14298   hardcode_into_libs=yes
14299   if test "$host_cpu" = ia64; then
14300     # AIX 5 supports IA64
14301     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14302     shlibpath_var=LD_LIBRARY_PATH
14303   else
14304     # With GCC up to 2.95.x, collect2 would create an import file
14305     # for dependence libraries.  The import file would start with
14306     # the line `#! .'.  This would cause the generated library to
14307     # depend on `.', always an invalid library.  This was fixed in
14308     # development snapshots of GCC prior to 3.0.
14309     case $host_os in
14310       aix4 | aix4.[01] | aix4.[01].*)
14311       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14312            echo ' yes '
14313            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14314         :
14315       else
14316         can_build_shared=no
14317       fi
14318       ;;
14319     esac
14320     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14321     # soname into executable. Probably we can add versioning support to
14322     # collect2, so additional links can be useful in future.
14323     if test "$aix_use_runtimelinking" = yes; then
14324       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14325       # instead of lib<name>.a to let people know that these are not
14326       # typical AIX shared libraries.
14327       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328     else
14329       # We preserve .a as extension for shared libraries through AIX4.2
14330       # and later when we are not doing run time linking.
14331       library_names_spec='${libname}${release}.a $libname.a'
14332       soname_spec='${libname}${release}${shared_ext}$major'
14333     fi
14334     shlibpath_var=LIBPATH
14335   fi
14336   ;;
14337
14338 amigaos*)
14339   library_names_spec='$libname.ixlibrary $libname.a'
14340   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14341   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'
14342   ;;
14343
14344 beos*)
14345   library_names_spec='${libname}${shared_ext}'
14346   dynamic_linker="$host_os ld.so"
14347   shlibpath_var=LIBRARY_PATH
14348   ;;
14349
14350 bsdi[45]*)
14351   version_type=linux
14352   need_version=no
14353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354   soname_spec='${libname}${release}${shared_ext}$major'
14355   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14356   shlibpath_var=LD_LIBRARY_PATH
14357   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14358   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14359   # the default ld.so.conf also contains /usr/contrib/lib and
14360   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14361   # libtool to hard-code these into programs
14362   ;;
14363
14364 cygwin* | mingw* | pw32*)
14365   version_type=windows
14366   shrext_cmds=".dll"
14367   need_version=no
14368   need_lib_prefix=no
14369
14370   case $GCC,$host_os in
14371   yes,cygwin* | yes,mingw* | yes,pw32*)
14372     library_names_spec='$libname.dll.a'
14373     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14374     postinstall_cmds='base_file=`basename \${file}`~
14375       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14376       dldir=$destdir/`dirname \$dlpath`~
14377       test -d \$dldir || mkdir -p \$dldir~
14378       $install_prog $dir/$dlname \$dldir/$dlname~
14379       chmod a+x \$dldir/$dlname'
14380     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14381       dlpath=$dir/\$dldll~
14382        $rm \$dlpath'
14383     shlibpath_overrides_runpath=yes
14384
14385     case $host_os in
14386     cygwin*)
14387       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14388       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14389       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14390       ;;
14391     mingw*)
14392       # MinGW DLLs use traditional 'lib' prefix
14393       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14394       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14395       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14396         # It is most probably a Windows format PATH printed by
14397         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14398         # path with ; separators, and with drive letters. We can handle the
14399         # drive letters (cygwin fileutils understands them), so leave them,
14400         # especially as we might pass files found there to a mingw objdump,
14401         # which wouldn't understand a cygwinified path. Ahh.
14402         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14403       else
14404         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14405       fi
14406       ;;
14407     pw32*)
14408       # pw32 DLLs use 'pw' prefix rather than 'lib'
14409       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14410       ;;
14411     esac
14412     ;;
14413
14414   *)
14415     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14416     ;;
14417   esac
14418   dynamic_linker='Win32 ld.exe'
14419   # FIXME: first we should search . and the directory the executable is in
14420   shlibpath_var=PATH
14421   ;;
14422
14423 darwin* | rhapsody*)
14424   dynamic_linker="$host_os dyld"
14425   version_type=darwin
14426   need_lib_prefix=no
14427   need_version=no
14428   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14429   soname_spec='${libname}${release}${major}$shared_ext'
14430   shlibpath_overrides_runpath=yes
14431   shlibpath_var=DYLD_LIBRARY_PATH
14432   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14433
14434   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14435   ;;
14436
14437 dgux*)
14438   version_type=linux
14439   need_lib_prefix=no
14440   need_version=no
14441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14442   soname_spec='${libname}${release}${shared_ext}$major'
14443   shlibpath_var=LD_LIBRARY_PATH
14444   ;;
14445
14446 freebsd1*)
14447   dynamic_linker=no
14448   ;;
14449
14450 freebsd* | dragonfly*)
14451   # DragonFly does not have aout.  When/if they implement a new
14452   # versioning mechanism, adjust this.
14453   if test -x /usr/bin/objformat; then
14454     objformat=`/usr/bin/objformat`
14455   else
14456     case $host_os in
14457     freebsd[123]*) objformat=aout ;;
14458     *) objformat=elf ;;
14459     esac
14460   fi
14461   version_type=freebsd-$objformat
14462   case $version_type in
14463     freebsd-elf*)
14464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14465       need_version=no
14466       need_lib_prefix=no
14467       ;;
14468     freebsd-*)
14469       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14470       need_version=yes
14471       ;;
14472   esac
14473   shlibpath_var=LD_LIBRARY_PATH
14474   case $host_os in
14475   freebsd2*)
14476     shlibpath_overrides_runpath=yes
14477     ;;
14478   freebsd3.[01]* | freebsdelf3.[01]*)
14479     shlibpath_overrides_runpath=yes
14480     hardcode_into_libs=yes
14481     ;;
14482   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14483   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14484     shlibpath_overrides_runpath=no
14485     hardcode_into_libs=yes
14486     ;;
14487   *) # from 4.6 on, and DragonFly
14488     shlibpath_overrides_runpath=yes
14489     hardcode_into_libs=yes
14490     ;;
14491   esac
14492   ;;
14493
14494 gnu*)
14495   version_type=linux
14496   need_lib_prefix=no
14497   need_version=no
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   hardcode_into_libs=yes
14502   ;;
14503
14504 hpux9* | hpux10* | hpux11*)
14505   # Give a soname corresponding to the major version so that dld.sl refuses to
14506   # link against other versions.
14507   version_type=sunos
14508   need_lib_prefix=no
14509   need_version=no
14510   case $host_cpu in
14511   ia64*)
14512     shrext_cmds='.so'
14513     hardcode_into_libs=yes
14514     dynamic_linker="$host_os dld.so"
14515     shlibpath_var=LD_LIBRARY_PATH
14516     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518     soname_spec='${libname}${release}${shared_ext}$major'
14519     if test "X$HPUX_IA64_MODE" = X32; then
14520       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14521     else
14522       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14523     fi
14524     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525     ;;
14526    hppa*64*)
14527      shrext_cmds='.sl'
14528      hardcode_into_libs=yes
14529      dynamic_linker="$host_os dld.sl"
14530      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14531      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533      soname_spec='${libname}${release}${shared_ext}$major'
14534      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14535      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14536      ;;
14537    *)
14538     shrext_cmds='.sl'
14539     dynamic_linker="$host_os dld.sl"
14540     shlibpath_var=SHLIB_PATH
14541     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543     soname_spec='${libname}${release}${shared_ext}$major'
14544     ;;
14545   esac
14546   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14547   postinstall_cmds='chmod 555 $lib'
14548   ;;
14549
14550 interix[3-9]*)
14551   version_type=linux
14552   need_lib_prefix=no
14553   need_version=no
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   shlibpath_overrides_runpath=no
14559   hardcode_into_libs=yes
14560   ;;
14561
14562 irix5* | irix6* | nonstopux*)
14563   case $host_os in
14564     nonstopux*) version_type=nonstopux ;;
14565     *)
14566         if test "$lt_cv_prog_gnu_ld" = yes; then
14567                 version_type=linux
14568         else
14569                 version_type=irix
14570         fi ;;
14571   esac
14572   need_lib_prefix=no
14573   need_version=no
14574   soname_spec='${libname}${release}${shared_ext}$major'
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14576   case $host_os in
14577   irix5* | nonstopux*)
14578     libsuff= shlibsuff=
14579     ;;
14580   *)
14581     case $LD in # libtool.m4 will add one of these switches to LD
14582     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14583       libsuff= shlibsuff= libmagic=32-bit;;
14584     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14585       libsuff=32 shlibsuff=N32 libmagic=N32;;
14586     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14587       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14588     *) libsuff= shlibsuff= libmagic=never-match;;
14589     esac
14590     ;;
14591   esac
14592   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14593   shlibpath_overrides_runpath=no
14594   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14595   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14596   hardcode_into_libs=yes
14597   ;;
14598
14599 # No shared lib support for Linux oldld, aout, or coff.
14600 linux*oldld* | linux*aout* | linux*coff*)
14601   dynamic_linker=no
14602   ;;
14603
14604 # This must be Linux ELF.
14605 linux* | k*bsd*-gnu)
14606   version_type=linux
14607   need_lib_prefix=no
14608   need_version=no
14609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610   soname_spec='${libname}${release}${shared_ext}$major'
14611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14612   shlibpath_var=LD_LIBRARY_PATH
14613   shlibpath_overrides_runpath=no
14614   # This implies no fast_install, which is unacceptable.
14615   # Some rework will be needed to allow for fast_install
14616   # before this can be enabled.
14617   hardcode_into_libs=yes
14618   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14619   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14620
14621   # Append ld.so.conf contents to the search path
14622   if test -f /etc/ld.so.conf; then
14623     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' ' '`
14624     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14625   fi
14626
14627   # We used to test for /lib/ld.so.1 and disable shared libraries on
14628   # powerpc, because MkLinux only supported shared libraries with the
14629   # GNU dynamic linker.  Since this was broken with cross compilers,
14630   # most powerpc-linux boxes support dynamic linking these days and
14631   # people can always --disable-shared, the test was removed, and we
14632   # assume the GNU/Linux dynamic linker is in use.
14633   dynamic_linker='GNU/Linux ld.so'
14634   ;;
14635
14636 netbsd*)
14637   version_type=sunos
14638   need_lib_prefix=no
14639   need_version=no
14640   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14643     dynamic_linker='NetBSD (a.out) ld.so'
14644   else
14645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646     soname_spec='${libname}${release}${shared_ext}$major'
14647     dynamic_linker='NetBSD ld.elf_so'
14648   fi
14649   shlibpath_var=LD_LIBRARY_PATH
14650   shlibpath_overrides_runpath=yes
14651   hardcode_into_libs=yes
14652   ;;
14653
14654 newsos6)
14655   version_type=linux
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657   shlibpath_var=LD_LIBRARY_PATH
14658   shlibpath_overrides_runpath=yes
14659   ;;
14660
14661 nto-qnx*)
14662   version_type=linux
14663   need_lib_prefix=no
14664   need_version=no
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666   soname_spec='${libname}${release}${shared_ext}$major'
14667   shlibpath_var=LD_LIBRARY_PATH
14668   shlibpath_overrides_runpath=yes
14669   ;;
14670
14671 openbsd*)
14672   version_type=sunos
14673   sys_lib_dlsearch_path_spec="/usr/lib"
14674   need_lib_prefix=no
14675   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14676   case $host_os in
14677     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14678     *)                         need_version=no  ;;
14679   esac
14680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682   shlibpath_var=LD_LIBRARY_PATH
14683   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14684     case $host_os in
14685       openbsd2.[89] | openbsd2.[89].*)
14686         shlibpath_overrides_runpath=no
14687         ;;
14688       *)
14689         shlibpath_overrides_runpath=yes
14690         ;;
14691       esac
14692   else
14693     shlibpath_overrides_runpath=yes
14694   fi
14695   ;;
14696
14697 os2*)
14698   libname_spec='$name'
14699   shrext_cmds=".dll"
14700   need_lib_prefix=no
14701   library_names_spec='$libname${shared_ext} $libname.a'
14702   dynamic_linker='OS/2 ld.exe'
14703   shlibpath_var=LIBPATH
14704   ;;
14705
14706 osf3* | osf4* | osf5*)
14707   version_type=osf
14708   need_lib_prefix=no
14709   need_version=no
14710   soname_spec='${libname}${release}${shared_ext}$major'
14711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712   shlibpath_var=LD_LIBRARY_PATH
14713   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14714   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14715   ;;
14716
14717 rdos*)
14718   dynamic_linker=no
14719   ;;
14720
14721 solaris*)
14722   version_type=linux
14723   need_lib_prefix=no
14724   need_version=no
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   soname_spec='${libname}${release}${shared_ext}$major'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   shlibpath_overrides_runpath=yes
14729   hardcode_into_libs=yes
14730   # ldd complains unless libraries are executable
14731   postinstall_cmds='chmod +x $lib'
14732   ;;
14733
14734 sunos4*)
14735   version_type=sunos
14736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14737   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14738   shlibpath_var=LD_LIBRARY_PATH
14739   shlibpath_overrides_runpath=yes
14740   if test "$with_gnu_ld" = yes; then
14741     need_lib_prefix=no
14742   fi
14743   need_version=yes
14744   ;;
14745
14746 sysv4 | sysv4.3*)
14747   version_type=linux
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   shlibpath_var=LD_LIBRARY_PATH
14751   case $host_vendor in
14752     sni)
14753       shlibpath_overrides_runpath=no
14754       need_lib_prefix=no
14755       export_dynamic_flag_spec='${wl}-Blargedynsym'
14756       runpath_var=LD_RUN_PATH
14757       ;;
14758     siemens)
14759       need_lib_prefix=no
14760       ;;
14761     motorola)
14762       need_lib_prefix=no
14763       need_version=no
14764       shlibpath_overrides_runpath=no
14765       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14766       ;;
14767   esac
14768   ;;
14769
14770 sysv4*MP*)
14771   if test -d /usr/nec ;then
14772     version_type=linux
14773     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14774     soname_spec='$libname${shared_ext}.$major'
14775     shlibpath_var=LD_LIBRARY_PATH
14776   fi
14777   ;;
14778
14779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14780   version_type=freebsd-elf
14781   need_lib_prefix=no
14782   need_version=no
14783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14784   soname_spec='${libname}${release}${shared_ext}$major'
14785   shlibpath_var=LD_LIBRARY_PATH
14786   hardcode_into_libs=yes
14787   if test "$with_gnu_ld" = yes; then
14788     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14789     shlibpath_overrides_runpath=no
14790   else
14791     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14792     shlibpath_overrides_runpath=yes
14793     case $host_os in
14794       sco3.2v5*)
14795         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14796         ;;
14797     esac
14798   fi
14799   sys_lib_dlsearch_path_spec='/usr/lib'
14800   ;;
14801
14802 uts4*)
14803   version_type=linux
14804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805   soname_spec='${libname}${release}${shared_ext}$major'
14806   shlibpath_var=LD_LIBRARY_PATH
14807   ;;
14808
14809 *)
14810   dynamic_linker=no
14811   ;;
14812 esac
14813 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14814 echo "${ECHO_T}$dynamic_linker" >&6; }
14815 test "$dynamic_linker" = no && can_build_shared=no
14816
14817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14818 if test "$GCC" = yes; then
14819   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14820 fi
14821
14822 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14823 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14824 hardcode_action_CXX=
14825 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14826    test -n "$runpath_var_CXX" || \
14827    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14828
14829   # We can hardcode non-existant directories.
14830   if test "$hardcode_direct_CXX" != no &&
14831      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14832      # have to relink, otherwise we might link with an installed library
14833      # when we should be linking with a yet-to-be-installed one
14834      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14835      test "$hardcode_minus_L_CXX" != no; then
14836     # Linking always hardcodes the temporary library directory.
14837     hardcode_action_CXX=relink
14838   else
14839     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14840     hardcode_action_CXX=immediate
14841   fi
14842 else
14843   # We cannot hardcode anything, or else we can only hardcode existing
14844   # directories.
14845   hardcode_action_CXX=unsupported
14846 fi
14847 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14848 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14849
14850 if test "$hardcode_action_CXX" = relink; then
14851   # Fast installation is not supported
14852   enable_fast_install=no
14853 elif test "$shlibpath_overrides_runpath" = yes ||
14854      test "$enable_shared" = no; then
14855   # Fast installation is not necessary
14856   enable_fast_install=needless
14857 fi
14858
14859
14860 # The else clause should only fire when bootstrapping the
14861 # libtool distribution, otherwise you forgot to ship ltmain.sh
14862 # with your package, and you will get complaints that there are
14863 # no rules to generate ltmain.sh.
14864 if test -f "$ltmain"; then
14865   # See if we are running on zsh, and set the options which allow our commands through
14866   # without removal of \ escapes.
14867   if test -n "${ZSH_VERSION+set}" ; then
14868     setopt NO_GLOB_SUBST
14869   fi
14870   # Now quote all the things that may contain metacharacters while being
14871   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14872   # variables and quote the copies for generation of the libtool script.
14873   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14874     SED SHELL STRIP \
14875     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14876     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14877     deplibs_check_method reload_flag reload_cmds need_locks \
14878     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14879     lt_cv_sys_global_symbol_to_c_name_address \
14880     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14881     old_postinstall_cmds old_postuninstall_cmds \
14882     compiler_CXX \
14883     CC_CXX \
14884     LD_CXX \
14885     lt_prog_compiler_wl_CXX \
14886     lt_prog_compiler_pic_CXX \
14887     lt_prog_compiler_static_CXX \
14888     lt_prog_compiler_no_builtin_flag_CXX \
14889     export_dynamic_flag_spec_CXX \
14890     thread_safe_flag_spec_CXX \
14891     whole_archive_flag_spec_CXX \
14892     enable_shared_with_static_runtimes_CXX \
14893     old_archive_cmds_CXX \
14894     old_archive_from_new_cmds_CXX \
14895     predep_objects_CXX \
14896     postdep_objects_CXX \
14897     predeps_CXX \
14898     postdeps_CXX \
14899     compiler_lib_search_path_CXX \
14900     archive_cmds_CXX \
14901     archive_expsym_cmds_CXX \
14902     postinstall_cmds_CXX \
14903     postuninstall_cmds_CXX \
14904     old_archive_from_expsyms_cmds_CXX \
14905     allow_undefined_flag_CXX \
14906     no_undefined_flag_CXX \
14907     export_symbols_cmds_CXX \
14908     hardcode_libdir_flag_spec_CXX \
14909     hardcode_libdir_flag_spec_ld_CXX \
14910     hardcode_libdir_separator_CXX \
14911     hardcode_automatic_CXX \
14912     module_cmds_CXX \
14913     module_expsym_cmds_CXX \
14914     lt_cv_prog_compiler_c_o_CXX \
14915     fix_srcfile_path_CXX \
14916     exclude_expsyms_CXX \
14917     include_expsyms_CXX; do
14918
14919     case $var in
14920     old_archive_cmds_CXX | \
14921     old_archive_from_new_cmds_CXX | \
14922     archive_cmds_CXX | \
14923     archive_expsym_cmds_CXX | \
14924     module_cmds_CXX | \
14925     module_expsym_cmds_CXX | \
14926     old_archive_from_expsyms_cmds_CXX | \
14927     export_symbols_cmds_CXX | \
14928     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14929     postinstall_cmds | postuninstall_cmds | \
14930     old_postinstall_cmds | old_postuninstall_cmds | \
14931     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14932       # Double-quote double-evaled strings.
14933       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14934       ;;
14935     *)
14936       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14937       ;;
14938     esac
14939   done
14940
14941   case $lt_echo in
14942   *'\$0 --fallback-echo"')
14943     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14944     ;;
14945   esac
14946
14947 cfgfile="$ofile"
14948
14949   cat <<__EOF__ >> "$cfgfile"
14950 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14951
14952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14953
14954 # Shell to use when invoking shell scripts.
14955 SHELL=$lt_SHELL
14956
14957 # Whether or not to build shared libraries.
14958 build_libtool_libs=$enable_shared
14959
14960 # Whether or not to build static libraries.
14961 build_old_libs=$enable_static
14962
14963 # Whether or not to add -lc for building shared libraries.
14964 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14965
14966 # Whether or not to disallow shared libs when runtime libs are static
14967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14968
14969 # Whether or not to optimize for fast installation.
14970 fast_install=$enable_fast_install
14971
14972 # The host system.
14973 host_alias=$host_alias
14974 host=$host
14975 host_os=$host_os
14976
14977 # The build system.
14978 build_alias=$build_alias
14979 build=$build
14980 build_os=$build_os
14981
14982 # An echo program that does not interpret backslashes.
14983 echo=$lt_echo
14984
14985 # The archiver.
14986 AR=$lt_AR
14987 AR_FLAGS=$lt_AR_FLAGS
14988
14989 # A C compiler.
14990 LTCC=$lt_LTCC
14991
14992 # LTCC compiler flags.
14993 LTCFLAGS=$lt_LTCFLAGS
14994
14995 # A language-specific compiler.
14996 CC=$lt_compiler_CXX
14997
14998 # Is the compiler the GNU C compiler?
14999 with_gcc=$GCC_CXX
15000
15001 # An ERE matcher.
15002 EGREP=$lt_EGREP
15003
15004 # The linker used to build libraries.
15005 LD=$lt_LD_CXX
15006
15007 # Whether we need hard or soft links.
15008 LN_S=$lt_LN_S
15009
15010 # A BSD-compatible nm program.
15011 NM=$lt_NM
15012
15013 # A symbol stripping program
15014 STRIP=$lt_STRIP
15015
15016 # Used to examine libraries when file_magic_cmd begins "file"
15017 MAGIC_CMD=$MAGIC_CMD
15018
15019 # Used on cygwin: DLL creation program.
15020 DLLTOOL="$DLLTOOL"
15021
15022 # Used on cygwin: object dumper.
15023 OBJDUMP="$OBJDUMP"
15024
15025 # Used on cygwin: assembler.
15026 AS="$AS"
15027
15028 # The name of the directory that contains temporary libtool files.
15029 objdir=$objdir
15030
15031 # How to create reloadable object files.
15032 reload_flag=$lt_reload_flag
15033 reload_cmds=$lt_reload_cmds
15034
15035 # How to pass a linker flag through the compiler.
15036 wl=$lt_lt_prog_compiler_wl_CXX
15037
15038 # Object file suffix (normally "o").
15039 objext="$ac_objext"
15040
15041 # Old archive suffix (normally "a").
15042 libext="$libext"
15043
15044 # Shared library suffix (normally ".so").
15045 shrext_cmds='$shrext_cmds'
15046
15047 # Executable file suffix (normally "").
15048 exeext="$exeext"
15049
15050 # Additional compiler flags for building library objects.
15051 pic_flag=$lt_lt_prog_compiler_pic_CXX
15052 pic_mode=$pic_mode
15053
15054 # What is the maximum length of a command?
15055 max_cmd_len=$lt_cv_sys_max_cmd_len
15056
15057 # Does compiler simultaneously support -c and -o options?
15058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15059
15060 # Must we lock files when doing compilation?
15061 need_locks=$lt_need_locks
15062
15063 # Do we need the lib prefix for modules?
15064 need_lib_prefix=$need_lib_prefix
15065
15066 # Do we need a version for libraries?
15067 need_version=$need_version
15068
15069 # Whether dlopen is supported.
15070 dlopen_support=$enable_dlopen
15071
15072 # Whether dlopen of programs is supported.
15073 dlopen_self=$enable_dlopen_self
15074
15075 # Whether dlopen of statically linked programs is supported.
15076 dlopen_self_static=$enable_dlopen_self_static
15077
15078 # Compiler flag to prevent dynamic linking.
15079 link_static_flag=$lt_lt_prog_compiler_static_CXX
15080
15081 # Compiler flag to turn off builtin functions.
15082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15083
15084 # Compiler flag to allow reflexive dlopens.
15085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15086
15087 # Compiler flag to generate shared objects directly from archives.
15088 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15089
15090 # Compiler flag to generate thread-safe objects.
15091 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15092
15093 # Library versioning type.
15094 version_type=$version_type
15095
15096 # Format of library name prefix.
15097 libname_spec=$lt_libname_spec
15098
15099 # List of archive names.  First name is the real one, the rest are links.
15100 # The last name is the one that the linker finds with -lNAME.
15101 library_names_spec=$lt_library_names_spec
15102
15103 # The coded name of the library, if different from the real name.
15104 soname_spec=$lt_soname_spec
15105
15106 # Commands used to build and install an old-style archive.
15107 RANLIB=$lt_RANLIB
15108 old_archive_cmds=$lt_old_archive_cmds_CXX
15109 old_postinstall_cmds=$lt_old_postinstall_cmds
15110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15111
15112 # Create an old-style archive from a shared archive.
15113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15114
15115 # Create a temporary old-style archive to link instead of a shared archive.
15116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15117
15118 # Commands used to build and install a shared archive.
15119 archive_cmds=$lt_archive_cmds_CXX
15120 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15121 postinstall_cmds=$lt_postinstall_cmds
15122 postuninstall_cmds=$lt_postuninstall_cmds
15123
15124 # Commands used to build a loadable module (assumed same as above if empty)
15125 module_cmds=$lt_module_cmds_CXX
15126 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15127
15128 # Commands to strip libraries.
15129 old_striplib=$lt_old_striplib
15130 striplib=$lt_striplib
15131
15132 # Dependencies to place before the objects being linked to create a
15133 # shared library.
15134 predep_objects=$lt_predep_objects_CXX
15135
15136 # Dependencies to place after the objects being linked to create a
15137 # shared library.
15138 postdep_objects=$lt_postdep_objects_CXX
15139
15140 # Dependencies to place before the objects being linked to create a
15141 # shared library.
15142 predeps=$lt_predeps_CXX
15143
15144 # Dependencies to place after the objects being linked to create a
15145 # shared library.
15146 postdeps=$lt_postdeps_CXX
15147
15148 # The library search path used internally by the compiler when linking
15149 # a shared library.
15150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15151
15152 # Method to check whether dependent libraries are shared objects.
15153 deplibs_check_method=$lt_deplibs_check_method
15154
15155 # Command to use when deplibs_check_method == file_magic.
15156 file_magic_cmd=$lt_file_magic_cmd
15157
15158 # Flag that allows shared libraries with undefined symbols to be built.
15159 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15160
15161 # Flag that forces no undefined symbols.
15162 no_undefined_flag=$lt_no_undefined_flag_CXX
15163
15164 # Commands used to finish a libtool library installation in a directory.
15165 finish_cmds=$lt_finish_cmds
15166
15167 # Same as above, but a single script fragment to be evaled but not shown.
15168 finish_eval=$lt_finish_eval
15169
15170 # Take the output of nm and produce a listing of raw symbols and C names.
15171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15172
15173 # Transform the output of nm in a proper C declaration
15174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15175
15176 # Transform the output of nm in a C name address pair
15177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15178
15179 # This is the shared library runtime path variable.
15180 runpath_var=$runpath_var
15181
15182 # This is the shared library path variable.
15183 shlibpath_var=$shlibpath_var
15184
15185 # Is shlibpath searched before the hard-coded library search path?
15186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15187
15188 # How to hardcode a shared library path into an executable.
15189 hardcode_action=$hardcode_action_CXX
15190
15191 # Whether we should hardcode library paths into libraries.
15192 hardcode_into_libs=$hardcode_into_libs
15193
15194 # Flag to hardcode \$libdir into a binary during linking.
15195 # This must work even if \$libdir does not exist.
15196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15197
15198 # If ld is used when linking, flag to hardcode \$libdir into
15199 # a binary during linking. This must work even if \$libdir does
15200 # not exist.
15201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15202
15203 # Whether we need a single -rpath flag with a separated argument.
15204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15205
15206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15207 # resulting binary.
15208 hardcode_direct=$hardcode_direct_CXX
15209
15210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15211 # resulting binary.
15212 hardcode_minus_L=$hardcode_minus_L_CXX
15213
15214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15215 # the resulting binary.
15216 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15217
15218 # Set to yes if building a shared library automatically hardcodes DIR into the library
15219 # and all subsequent libraries and executables linked against it.
15220 hardcode_automatic=$hardcode_automatic_CXX
15221
15222 # Variables whose values should be saved in libtool wrapper scripts and
15223 # restored at relink time.
15224 variables_saved_for_relink="$variables_saved_for_relink"
15225
15226 # Whether libtool must link a program against all its dependency libraries.
15227 link_all_deplibs=$link_all_deplibs_CXX
15228
15229 # Compile-time system search path for libraries
15230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15231
15232 # Run-time system search path for libraries
15233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15234
15235 # Fix the shell variable \$srcfile for the compiler.
15236 fix_srcfile_path=$lt_fix_srcfile_path
15237
15238 # Set to yes if exported symbols are required.
15239 always_export_symbols=$always_export_symbols_CXX
15240
15241 # The commands to list exported symbols.
15242 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15243
15244 # The commands to extract the exported symbol list from a shared archive.
15245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15246
15247 # Symbols that should not be listed in the preloaded symbols.
15248 exclude_expsyms=$lt_exclude_expsyms_CXX
15249
15250 # Symbols that must always be exported.
15251 include_expsyms=$lt_include_expsyms_CXX
15252
15253 # ### END LIBTOOL TAG CONFIG: $tagname
15254
15255 __EOF__
15256
15257
15258 else
15259   # If there is no Makefile yet, we rely on a make rule to execute
15260   # `config.status --recheck' to rerun these tests and create the
15261   # libtool script then.
15262   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15263   if test -f "$ltmain_in"; then
15264     test -f Makefile && make "$ltmain"
15265   fi
15266 fi
15267
15268
15269 ac_ext=c
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15274
15275 CC=$lt_save_CC
15276 LDCXX=$LD
15277 LD=$lt_save_LD
15278 GCC=$lt_save_GCC
15279 with_gnu_ldcxx=$with_gnu_ld
15280 with_gnu_ld=$lt_save_with_gnu_ld
15281 lt_cv_path_LDCXX=$lt_cv_path_LD
15282 lt_cv_path_LD=$lt_save_path_LD
15283 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15284 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15285
15286         else
15287           tagname=""
15288         fi
15289         ;;
15290
15291       F77)
15292         if test -n "$F77" && test "X$F77" != "Xno"; then
15293
15294 ac_ext=f
15295 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15296 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15298
15299
15300 archive_cmds_need_lc_F77=no
15301 allow_undefined_flag_F77=
15302 always_export_symbols_F77=no
15303 archive_expsym_cmds_F77=
15304 export_dynamic_flag_spec_F77=
15305 hardcode_direct_F77=no
15306 hardcode_libdir_flag_spec_F77=
15307 hardcode_libdir_flag_spec_ld_F77=
15308 hardcode_libdir_separator_F77=
15309 hardcode_minus_L_F77=no
15310 hardcode_automatic_F77=no
15311 module_cmds_F77=
15312 module_expsym_cmds_F77=
15313 link_all_deplibs_F77=unknown
15314 old_archive_cmds_F77=$old_archive_cmds
15315 no_undefined_flag_F77=
15316 whole_archive_flag_spec_F77=
15317 enable_shared_with_static_runtimes_F77=no
15318
15319 # Source file extension for f77 test sources.
15320 ac_ext=f
15321
15322 # Object file extension for compiled f77 test sources.
15323 objext=o
15324 objext_F77=$objext
15325
15326 # Code to be used in simple compile tests
15327 lt_simple_compile_test_code="\
15328       subroutine t
15329       return
15330       end
15331 "
15332
15333 # Code to be used in simple link tests
15334 lt_simple_link_test_code="\
15335       program t
15336       end
15337 "
15338
15339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15340
15341 # If no C compiler was specified, use CC.
15342 LTCC=${LTCC-"$CC"}
15343
15344 # If no C compiler flags were specified, use CFLAGS.
15345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15346
15347 # Allow CC to be a program name with arguments.
15348 compiler=$CC
15349
15350
15351 # save warnings/boilerplate of simple test code
15352 ac_outfile=conftest.$ac_objext
15353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15355 _lt_compiler_boilerplate=`cat conftest.err`
15356 $rm conftest*
15357
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_linker_boilerplate=`cat conftest.err`
15362 $rm conftest*
15363
15364
15365 # Allow CC to be a program name with arguments.
15366 lt_save_CC="$CC"
15367 CC=${F77-"f77"}
15368 compiler=$CC
15369 compiler_F77=$CC
15370 for cc_temp in $compiler""; do
15371   case $cc_temp in
15372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15374     \-*) ;;
15375     *) break;;
15376   esac
15377 done
15378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15379
15380
15381 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15382 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15383 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15384 echo "${ECHO_T}$can_build_shared" >&6; }
15385
15386 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15387 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15388 test "$can_build_shared" = "no" && enable_shared=no
15389
15390 # On AIX, shared libraries and static libraries use the same namespace, and
15391 # are all built from PIC.
15392 case $host_os in
15393 aix3*)
15394   test "$enable_shared" = yes && enable_static=no
15395   if test -n "$RANLIB"; then
15396     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15397     postinstall_cmds='$RANLIB $lib'
15398   fi
15399   ;;
15400 aix4* | aix5*)
15401   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15402     test "$enable_shared" = yes && enable_static=no
15403   fi
15404   ;;
15405 esac
15406 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15407 echo "${ECHO_T}$enable_shared" >&6; }
15408
15409 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15410 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15411 # Make sure either enable_shared or enable_static is yes.
15412 test "$enable_shared" = yes || enable_static=yes
15413 { echo "$as_me:$LINENO: result: $enable_static" >&5
15414 echo "${ECHO_T}$enable_static" >&6; }
15415
15416 GCC_F77="$G77"
15417 LD_F77="$LD"
15418
15419 lt_prog_compiler_wl_F77=
15420 lt_prog_compiler_pic_F77=
15421 lt_prog_compiler_static_F77=
15422
15423 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15424 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15425
15426   if test "$GCC" = yes; then
15427     lt_prog_compiler_wl_F77='-Wl,'
15428     lt_prog_compiler_static_F77='-static'
15429
15430     case $host_os in
15431       aix*)
15432       # All AIX code is PIC.
15433       if test "$host_cpu" = ia64; then
15434         # AIX 5 now supports IA64 processor
15435         lt_prog_compiler_static_F77='-Bstatic'
15436       fi
15437       ;;
15438
15439     amigaos*)
15440       # FIXME: we need at least 68020 code to build shared libraries, but
15441       # adding the `-m68020' flag to GCC prevents building anything better,
15442       # like `-m68040'.
15443       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15444       ;;
15445
15446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15447       # PIC is the default for these OSes.
15448       ;;
15449
15450     mingw* | cygwin* | pw32* | os2*)
15451       # This hack is so that the source file can tell whether it is being
15452       # built for inclusion in a dll (and should export symbols for example).
15453       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15454       # (--disable-auto-import) libraries
15455       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15456       ;;
15457
15458     darwin* | rhapsody*)
15459       # PIC is the default on this platform
15460       # Common symbols not allowed in MH_DYLIB files
15461       lt_prog_compiler_pic_F77='-fno-common'
15462       ;;
15463
15464     interix[3-9]*)
15465       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15466       # Instead, we relocate shared libraries at runtime.
15467       ;;
15468
15469     msdosdjgpp*)
15470       # Just because we use GCC doesn't mean we suddenly get shared libraries
15471       # on systems that don't support them.
15472       lt_prog_compiler_can_build_shared_F77=no
15473       enable_shared=no
15474       ;;
15475
15476     sysv4*MP*)
15477       if test -d /usr/nec; then
15478         lt_prog_compiler_pic_F77=-Kconform_pic
15479       fi
15480       ;;
15481
15482     hpux*)
15483       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15484       # not for PA HP-UX.
15485       case $host_cpu in
15486       hppa*64*|ia64*)
15487         # +Z the default
15488         ;;
15489       *)
15490         lt_prog_compiler_pic_F77='-fPIC'
15491         ;;
15492       esac
15493       ;;
15494
15495     *)
15496       lt_prog_compiler_pic_F77='-fPIC'
15497       ;;
15498     esac
15499   else
15500     # PORTME Check for flag to pass linker flags through the system compiler.
15501     case $host_os in
15502     aix*)
15503       lt_prog_compiler_wl_F77='-Wl,'
15504       if test "$host_cpu" = ia64; then
15505         # AIX 5 now supports IA64 processor
15506         lt_prog_compiler_static_F77='-Bstatic'
15507       else
15508         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15509       fi
15510       ;;
15511       darwin*)
15512         # PIC is the default on this platform
15513         # Common symbols not allowed in MH_DYLIB files
15514        case $cc_basename in
15515          xlc*)
15516          lt_prog_compiler_pic_F77='-qnocommon'
15517          lt_prog_compiler_wl_F77='-Wl,'
15518          ;;
15519        esac
15520        ;;
15521
15522     mingw* | cygwin* | pw32* | os2*)
15523       # This hack is so that the source file can tell whether it is being
15524       # built for inclusion in a dll (and should export symbols for example).
15525       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15526       ;;
15527
15528     hpux9* | hpux10* | hpux11*)
15529       lt_prog_compiler_wl_F77='-Wl,'
15530       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15531       # not for PA HP-UX.
15532       case $host_cpu in
15533       hppa*64*|ia64*)
15534         # +Z the default
15535         ;;
15536       *)
15537         lt_prog_compiler_pic_F77='+Z'
15538         ;;
15539       esac
15540       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15541       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15542       ;;
15543
15544     irix5* | irix6* | nonstopux*)
15545       lt_prog_compiler_wl_F77='-Wl,'
15546       # PIC (with -KPIC) is the default.
15547       lt_prog_compiler_static_F77='-non_shared'
15548       ;;
15549
15550     newsos6)
15551       lt_prog_compiler_pic_F77='-KPIC'
15552       lt_prog_compiler_static_F77='-Bstatic'
15553       ;;
15554
15555     linux* | k*bsd*-gnu)
15556       case $cc_basename in
15557       icc* | ecc*)
15558         lt_prog_compiler_wl_F77='-Wl,'
15559         lt_prog_compiler_pic_F77='-KPIC'
15560         lt_prog_compiler_static_F77='-static'
15561         ;;
15562       pgcc* | pgf77* | pgf90* | pgf95*)
15563         # Portland Group compilers (*not* the Pentium gcc compiler,
15564         # which looks to be a dead project)
15565         lt_prog_compiler_wl_F77='-Wl,'
15566         lt_prog_compiler_pic_F77='-fpic'
15567         lt_prog_compiler_static_F77='-Bstatic'
15568         ;;
15569       ccc*)
15570         lt_prog_compiler_wl_F77='-Wl,'
15571         # All Alpha code is PIC.
15572         lt_prog_compiler_static_F77='-non_shared'
15573         ;;
15574       *)
15575         case `$CC -V 2>&1 | sed 5q` in
15576         *Sun\ C*)
15577           # Sun C 5.9
15578           lt_prog_compiler_pic_F77='-KPIC'
15579           lt_prog_compiler_static_F77='-Bstatic'
15580           lt_prog_compiler_wl_F77='-Wl,'
15581           ;;
15582         *Sun\ F*)
15583           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15584           lt_prog_compiler_pic_F77='-KPIC'
15585           lt_prog_compiler_static_F77='-Bstatic'
15586           lt_prog_compiler_wl_F77=''
15587           ;;
15588         esac
15589         ;;
15590       esac
15591       ;;
15592
15593     osf3* | osf4* | osf5*)
15594       lt_prog_compiler_wl_F77='-Wl,'
15595       # All OSF/1 code is PIC.
15596       lt_prog_compiler_static_F77='-non_shared'
15597       ;;
15598
15599     rdos*)
15600       lt_prog_compiler_static_F77='-non_shared'
15601       ;;
15602
15603     solaris*)
15604       lt_prog_compiler_pic_F77='-KPIC'
15605       lt_prog_compiler_static_F77='-Bstatic'
15606       case $cc_basename in
15607       f77* | f90* | f95*)
15608         lt_prog_compiler_wl_F77='-Qoption ld ';;
15609       *)
15610         lt_prog_compiler_wl_F77='-Wl,';;
15611       esac
15612       ;;
15613
15614     sunos4*)
15615       lt_prog_compiler_wl_F77='-Qoption ld '
15616       lt_prog_compiler_pic_F77='-PIC'
15617       lt_prog_compiler_static_F77='-Bstatic'
15618       ;;
15619
15620     sysv4 | sysv4.2uw2* | sysv4.3*)
15621       lt_prog_compiler_wl_F77='-Wl,'
15622       lt_prog_compiler_pic_F77='-KPIC'
15623       lt_prog_compiler_static_F77='-Bstatic'
15624       ;;
15625
15626     sysv4*MP*)
15627       if test -d /usr/nec ;then
15628         lt_prog_compiler_pic_F77='-Kconform_pic'
15629         lt_prog_compiler_static_F77='-Bstatic'
15630       fi
15631       ;;
15632
15633     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15634       lt_prog_compiler_wl_F77='-Wl,'
15635       lt_prog_compiler_pic_F77='-KPIC'
15636       lt_prog_compiler_static_F77='-Bstatic'
15637       ;;
15638
15639     unicos*)
15640       lt_prog_compiler_wl_F77='-Wl,'
15641       lt_prog_compiler_can_build_shared_F77=no
15642       ;;
15643
15644     uts4*)
15645       lt_prog_compiler_pic_F77='-pic'
15646       lt_prog_compiler_static_F77='-Bstatic'
15647       ;;
15648
15649     *)
15650       lt_prog_compiler_can_build_shared_F77=no
15651       ;;
15652     esac
15653   fi
15654
15655 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15656 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15657
15658 #
15659 # Check to make sure the PIC flag actually works.
15660 #
15661 if test -n "$lt_prog_compiler_pic_F77"; then
15662
15663 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15664 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15665 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15666   echo $ECHO_N "(cached) $ECHO_C" >&6
15667 else
15668   lt_prog_compiler_pic_works_F77=no
15669   ac_outfile=conftest.$ac_objext
15670    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15671    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15672    # Insert the option either (1) after the last *FLAGS variable, or
15673    # (2) before a word containing "conftest.", or (3) at the end.
15674    # Note that $ac_compile itself does not contain backslashes and begins
15675    # with a dollar sign (not a hyphen), so the echo should work correctly.
15676    # The option is referenced via a variable to avoid confusing sed.
15677    lt_compile=`echo "$ac_compile" | $SED \
15678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15680    -e 's:$: $lt_compiler_flag:'`
15681    (eval echo "\"\$as_me:15681: $lt_compile\"" >&5)
15682    (eval "$lt_compile" 2>conftest.err)
15683    ac_status=$?
15684    cat conftest.err >&5
15685    echo "$as_me:15685: \$? = $ac_status" >&5
15686    if (exit $ac_status) && test -s "$ac_outfile"; then
15687      # The compiler can only warn and ignore the option if not recognized
15688      # So say no if there are warnings other than the usual output.
15689      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15690      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15691      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15692        lt_prog_compiler_pic_works_F77=yes
15693      fi
15694    fi
15695    $rm conftest*
15696
15697 fi
15698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15699 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15700
15701 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15702     case $lt_prog_compiler_pic_F77 in
15703      "" | " "*) ;;
15704      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15705      esac
15706 else
15707     lt_prog_compiler_pic_F77=
15708      lt_prog_compiler_can_build_shared_F77=no
15709 fi
15710
15711 fi
15712 case $host_os in
15713   # For platforms which do not support PIC, -DPIC is meaningless:
15714   *djgpp*)
15715     lt_prog_compiler_pic_F77=
15716     ;;
15717   *)
15718     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15719     ;;
15720 esac
15721
15722 #
15723 # Check to make sure the static flag actually works.
15724 #
15725 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15726 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15727 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15728 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   lt_prog_compiler_static_works_F77=no
15732    save_LDFLAGS="$LDFLAGS"
15733    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15734    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15735    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15736      # The linker can only warn and ignore the option if not recognized
15737      # So say no if there are warnings
15738      if test -s conftest.err; then
15739        # Append any errors to the config.log.
15740        cat conftest.err 1>&5
15741        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15742        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15743        if diff conftest.exp conftest.er2 >/dev/null; then
15744          lt_prog_compiler_static_works_F77=yes
15745        fi
15746      else
15747        lt_prog_compiler_static_works_F77=yes
15748      fi
15749    fi
15750    $rm conftest*
15751    LDFLAGS="$save_LDFLAGS"
15752
15753 fi
15754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15756
15757 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15758     :
15759 else
15760     lt_prog_compiler_static_F77=
15761 fi
15762
15763
15764 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15766 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   lt_cv_prog_compiler_c_o_F77=no
15770    $rm -r conftest 2>/dev/null
15771    mkdir conftest
15772    cd conftest
15773    mkdir out
15774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15775
15776    lt_compiler_flag="-o out/conftest2.$ac_objext"
15777    # Insert the option either (1) after the last *FLAGS variable, or
15778    # (2) before a word containing "conftest.", or (3) at the end.
15779    # Note that $ac_compile itself does not contain backslashes and begins
15780    # with a dollar sign (not a hyphen), so the echo should work correctly.
15781    lt_compile=`echo "$ac_compile" | $SED \
15782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15784    -e 's:$: $lt_compiler_flag:'`
15785    (eval echo "\"\$as_me:15785: $lt_compile\"" >&5)
15786    (eval "$lt_compile" 2>out/conftest.err)
15787    ac_status=$?
15788    cat out/conftest.err >&5
15789    echo "$as_me:15789: \$? = $ac_status" >&5
15790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15791    then
15792      # The compiler can only warn and ignore the option if not recognized
15793      # So say no if there are warnings
15794      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15797        lt_cv_prog_compiler_c_o_F77=yes
15798      fi
15799    fi
15800    chmod u+w . 2>&5
15801    $rm conftest*
15802    # SGI C++ compiler will create directory out/ii_files/ for
15803    # template instantiation
15804    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15805    $rm out/* && rmdir out
15806    cd ..
15807    rmdir conftest
15808    $rm conftest*
15809
15810 fi
15811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15813
15814
15815 hard_links="nottested"
15816 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15817   # do not overwrite the value of need_locks provided by the user
15818   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15820   hard_links=yes
15821   $rm conftest*
15822   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15823   touch conftest.a
15824   ln conftest.a conftest.b 2>&5 || hard_links=no
15825   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15826   { echo "$as_me:$LINENO: result: $hard_links" >&5
15827 echo "${ECHO_T}$hard_links" >&6; }
15828   if test "$hard_links" = no; then
15829     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15831     need_locks=warn
15832   fi
15833 else
15834   need_locks=no
15835 fi
15836
15837 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15839
15840   runpath_var=
15841   allow_undefined_flag_F77=
15842   enable_shared_with_static_runtimes_F77=no
15843   archive_cmds_F77=
15844   archive_expsym_cmds_F77=
15845   old_archive_From_new_cmds_F77=
15846   old_archive_from_expsyms_cmds_F77=
15847   export_dynamic_flag_spec_F77=
15848   whole_archive_flag_spec_F77=
15849   thread_safe_flag_spec_F77=
15850   hardcode_libdir_flag_spec_F77=
15851   hardcode_libdir_flag_spec_ld_F77=
15852   hardcode_libdir_separator_F77=
15853   hardcode_direct_F77=no
15854   hardcode_minus_L_F77=no
15855   hardcode_shlibpath_var_F77=unsupported
15856   link_all_deplibs_F77=unknown
15857   hardcode_automatic_F77=no
15858   module_cmds_F77=
15859   module_expsym_cmds_F77=
15860   always_export_symbols_F77=no
15861   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15862   # include_expsyms should be a list of space-separated symbols to be *always*
15863   # included in the symbol list
15864   include_expsyms_F77=
15865   # exclude_expsyms can be an extended regexp of symbols to exclude
15866   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15867   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15868   # as well as any symbol that contains `d'.
15869   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15870   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15871   # platforms (ab)use it in PIC code, but their linkers get confused if
15872   # the symbol is explicitly referenced.  Since portable code cannot
15873   # rely on this symbol name, it's probably fine to never include it in
15874   # preloaded symbol tables.
15875   extract_expsyms_cmds=
15876   # Just being paranoid about ensuring that cc_basename is set.
15877   for cc_temp in $compiler""; do
15878   case $cc_temp in
15879     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15880     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15881     \-*) ;;
15882     *) break;;
15883   esac
15884 done
15885 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15886
15887   case $host_os in
15888   cygwin* | mingw* | pw32*)
15889     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15890     # When not using gcc, we currently assume that we are using
15891     # Microsoft Visual C++.
15892     if test "$GCC" != yes; then
15893       with_gnu_ld=no
15894     fi
15895     ;;
15896   interix*)
15897     # we just hope/assume this is gcc and not c89 (= MSVC++)
15898     with_gnu_ld=yes
15899     ;;
15900   openbsd*)
15901     with_gnu_ld=no
15902     ;;
15903   esac
15904
15905   ld_shlibs_F77=yes
15906   if test "$with_gnu_ld" = yes; then
15907     # If archive_cmds runs LD, not CC, wlarc should be empty
15908     wlarc='${wl}'
15909
15910     # Set some defaults for GNU ld with shared library support. These
15911     # are reset later if shared libraries are not supported. Putting them
15912     # here allows them to be overridden if necessary.
15913     runpath_var=LD_RUN_PATH
15914     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15915     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15916     # ancient GNU ld didn't support --whole-archive et. al.
15917     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15918         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15919       else
15920         whole_archive_flag_spec_F77=
15921     fi
15922     supports_anon_versioning=no
15923     case `$LD -v 2>/dev/null` in
15924       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15925       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15926       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15927       *\ 2.11.*) ;; # other 2.11 versions
15928       *) supports_anon_versioning=yes ;;
15929     esac
15930
15931     # See if GNU ld supports shared libraries.
15932     case $host_os in
15933     aix3* | aix4* | aix5*)
15934       # On AIX/PPC, the GNU linker is very broken
15935       if test "$host_cpu" != ia64; then
15936         ld_shlibs_F77=no
15937         cat <<EOF 1>&2
15938
15939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15940 *** to be unable to reliably create shared libraries on AIX.
15941 *** Therefore, libtool is disabling shared libraries support.  If you
15942 *** really care for shared libraries, you may want to modify your PATH
15943 *** so that a non-GNU linker is found, and then restart.
15944
15945 EOF
15946       fi
15947       ;;
15948
15949     amigaos*)
15950       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)'
15951       hardcode_libdir_flag_spec_F77='-L$libdir'
15952       hardcode_minus_L_F77=yes
15953
15954       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15955       # that the semantics of dynamic libraries on AmigaOS, at least up
15956       # to version 4, is to share data among multiple programs linked
15957       # with the same dynamic library.  Since this doesn't match the
15958       # behavior of shared libraries on other platforms, we can't use
15959       # them.
15960       ld_shlibs_F77=no
15961       ;;
15962
15963     beos*)
15964       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15965         allow_undefined_flag_F77=unsupported
15966         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15967         # support --undefined.  This deserves some investigation.  FIXME
15968         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15969       else
15970         ld_shlibs_F77=no
15971       fi
15972       ;;
15973
15974     cygwin* | mingw* | pw32*)
15975       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15976       # as there is no search path for DLLs.
15977       hardcode_libdir_flag_spec_F77='-L$libdir'
15978       allow_undefined_flag_F77=unsupported
15979       always_export_symbols_F77=no
15980       enable_shared_with_static_runtimes_F77=yes
15981       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15982
15983       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15984         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15985         # If the export-symbols file already is a .def file (1st line
15986         # is EXPORTS), use it as is; otherwise, prepend...
15987         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15988           cp $export_symbols $output_objdir/$soname.def;
15989         else
15990           echo EXPORTS > $output_objdir/$soname.def;
15991           cat $export_symbols >> $output_objdir/$soname.def;
15992         fi~
15993         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15994       else
15995         ld_shlibs_F77=no
15996       fi
15997       ;;
15998
15999     interix[3-9]*)
16000       hardcode_direct_F77=no
16001       hardcode_shlibpath_var_F77=no
16002       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16003       export_dynamic_flag_spec_F77='${wl}-E'
16004       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16005       # Instead, shared libraries are loaded at an image base (0x10000000 by
16006       # default) and relocated if they conflict, which is a slow very memory
16007       # consuming and fragmenting process.  To avoid this, we pick a random,
16008       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16009       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16010       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'
16011       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'
16012       ;;
16013
16014     gnu* | linux* | k*bsd*-gnu)
16015       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16016         tmp_addflag=
16017         case $cc_basename,$host_cpu in
16018         pgcc*)                          # Portland Group C compiler
16019           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'
16020           tmp_addflag=' $pic_flag'
16021           ;;
16022         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16023           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'
16024           tmp_addflag=' $pic_flag -Mnomain' ;;
16025         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16026           tmp_addflag=' -i_dynamic' ;;
16027         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16028           tmp_addflag=' -i_dynamic -nofor_main' ;;
16029         ifc* | ifort*)                  # Intel Fortran compiler
16030           tmp_addflag=' -nofor_main' ;;
16031         esac
16032         case `$CC -V 2>&1 | sed 5q` in
16033         *Sun\ C*)                       # Sun C 5.9
16034           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'
16035           tmp_sharedflag='-G' ;;
16036         *Sun\ F*)                       # Sun Fortran 8.3
16037           tmp_sharedflag='-G' ;;
16038         *)
16039           tmp_sharedflag='-shared' ;;
16040         esac
16041         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042
16043         if test $supports_anon_versioning = yes; then
16044           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16045   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16046   $echo "local: *; };" >> $output_objdir/$libname.ver~
16047           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16048         fi
16049       else
16050         ld_shlibs_F77=no
16051       fi
16052       ;;
16053
16054     netbsd*)
16055       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16056         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16057         wlarc=
16058       else
16059         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16061       fi
16062       ;;
16063
16064     solaris*)
16065       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16066         ld_shlibs_F77=no
16067         cat <<EOF 1>&2
16068
16069 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16070 *** create shared libraries on Solaris systems.  Therefore, libtool
16071 *** is disabling shared libraries support.  We urge you to upgrade GNU
16072 *** binutils to release 2.9.1 or newer.  Another option is to modify
16073 *** your PATH or compiler configuration so that the native linker is
16074 *** used, and then restart.
16075
16076 EOF
16077       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16078         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080       else
16081         ld_shlibs_F77=no
16082       fi
16083       ;;
16084
16085     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16086       case `$LD -v 2>&1` in
16087         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16088         ld_shlibs_F77=no
16089         cat <<_LT_EOF 1>&2
16090
16091 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16092 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16093 *** is disabling shared libraries support.  We urge you to upgrade GNU
16094 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16095 *** your PATH or compiler configuration so that the native linker is
16096 *** used, and then restart.
16097
16098 _LT_EOF
16099         ;;
16100         *)
16101           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16103             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16104             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16105           else
16106             ld_shlibs_F77=no
16107           fi
16108         ;;
16109       esac
16110       ;;
16111
16112     sunos4*)
16113       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16114       wlarc=
16115       hardcode_direct_F77=yes
16116       hardcode_shlibpath_var_F77=no
16117       ;;
16118
16119     *)
16120       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16121         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16123       else
16124         ld_shlibs_F77=no
16125       fi
16126       ;;
16127     esac
16128
16129     if test "$ld_shlibs_F77" = no; then
16130       runpath_var=
16131       hardcode_libdir_flag_spec_F77=
16132       export_dynamic_flag_spec_F77=
16133       whole_archive_flag_spec_F77=
16134     fi
16135   else
16136     # PORTME fill in a description of your system's linker (not GNU ld)
16137     case $host_os in
16138     aix3*)
16139       allow_undefined_flag_F77=unsupported
16140       always_export_symbols_F77=yes
16141       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'
16142       # Note: this linker hardcodes the directories in LIBPATH if there
16143       # are no directories specified by -L.
16144       hardcode_minus_L_F77=yes
16145       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16146         # Neither direct hardcoding nor static linking is supported with a
16147         # broken collect2.
16148         hardcode_direct_F77=unsupported
16149       fi
16150       ;;
16151
16152     aix4* | aix5*)
16153       if test "$host_cpu" = ia64; then
16154         # On IA64, the linker does run time linking by default, so we don't
16155         # have to do anything special.
16156         aix_use_runtimelinking=no
16157         exp_sym_flag='-Bexport'
16158         no_entry_flag=""
16159       else
16160         # If we're using GNU nm, then we don't want the "-C" option.
16161         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16162         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16163           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'
16164         else
16165           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'
16166         fi
16167         aix_use_runtimelinking=no
16168
16169         # Test if we are trying to use run time linking or normal
16170         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16171         # need to do runtime linking.
16172         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16173           for ld_flag in $LDFLAGS; do
16174           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16175             aix_use_runtimelinking=yes
16176             break
16177           fi
16178           done
16179           ;;
16180         esac
16181
16182         exp_sym_flag='-bexport'
16183         no_entry_flag='-bnoentry'
16184       fi
16185
16186       # When large executables or shared objects are built, AIX ld can
16187       # have problems creating the table of contents.  If linking a library
16188       # or program results in "error TOC overflow" add -mminimal-toc to
16189       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16190       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16191
16192       archive_cmds_F77=''
16193       hardcode_direct_F77=yes
16194       hardcode_libdir_separator_F77=':'
16195       link_all_deplibs_F77=yes
16196
16197       if test "$GCC" = yes; then
16198         case $host_os in aix4.[012]|aix4.[012].*)
16199         # We only want to do this on AIX 4.2 and lower, the check
16200         # below for broken collect2 doesn't work under 4.3+
16201           collect2name=`${CC} -print-prog-name=collect2`
16202           if test -f "$collect2name" && \
16203            strings "$collect2name" | grep resolve_lib_name >/dev/null
16204           then
16205           # We have reworked collect2
16206           :
16207           else
16208           # We have old collect2
16209           hardcode_direct_F77=unsupported
16210           # It fails to find uninstalled libraries when the uninstalled
16211           # path is not listed in the libpath.  Setting hardcode_minus_L
16212           # to unsupported forces relinking
16213           hardcode_minus_L_F77=yes
16214           hardcode_libdir_flag_spec_F77='-L$libdir'
16215           hardcode_libdir_separator_F77=
16216           fi
16217           ;;
16218         esac
16219         shared_flag='-shared'
16220         if test "$aix_use_runtimelinking" = yes; then
16221           shared_flag="$shared_flag "'${wl}-G'
16222         fi
16223       else
16224         # not using gcc
16225         if test "$host_cpu" = ia64; then
16226         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16227         # chokes on -Wl,-G. The following line is correct:
16228           shared_flag='-G'
16229         else
16230           if test "$aix_use_runtimelinking" = yes; then
16231             shared_flag='${wl}-G'
16232           else
16233             shared_flag='${wl}-bM:SRE'
16234           fi
16235         fi
16236       fi
16237
16238       # It seems that -bexpall does not export symbols beginning with
16239       # underscore (_), so it is better to generate a list of symbols to export.
16240       always_export_symbols_F77=yes
16241       if test "$aix_use_runtimelinking" = yes; then
16242         # Warning - without using the other runtime loading flags (-brtl),
16243         # -berok will link without error, but may produce a broken library.
16244         allow_undefined_flag_F77='-berok'
16245        # Determine the default libpath from the value encoded in an empty executable.
16246        cat >conftest.$ac_ext <<_ACEOF
16247       program main
16248
16249       end
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_link") 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } && {
16265          test -z "$ac_f77_werror_flag" ||
16266          test ! -s conftest.err
16267        } && test -s conftest$ac_exeext &&
16268        $as_test_x conftest$ac_exeext; then
16269
16270 lt_aix_libpath_sed='
16271     /Import File Strings/,/^$/ {
16272         /^0/ {
16273             s/^0  *\(.*\)$/\1/
16274             p
16275         }
16276     }'
16277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16278 # Check for a 64-bit object if we didn't find anything.
16279 if test -z "$aix_libpath"; then
16280   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16281 fi
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286
16287 fi
16288
16289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16290       conftest$ac_exeext conftest.$ac_ext
16291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16292
16293        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16294         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"
16295        else
16296         if test "$host_cpu" = ia64; then
16297           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16298           allow_undefined_flag_F77="-z nodefs"
16299           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"
16300         else
16301          # Determine the default libpath from the value encoded in an empty executable.
16302          cat >conftest.$ac_ext <<_ACEOF
16303       program main
16304
16305       end
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311   *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314   (eval "$ac_link") 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } && {
16321          test -z "$ac_f77_werror_flag" ||
16322          test ! -s conftest.err
16323        } && test -s conftest$ac_exeext &&
16324        $as_test_x conftest$ac_exeext; then
16325
16326 lt_aix_libpath_sed='
16327     /Import File Strings/,/^$/ {
16328         /^0/ {
16329             s/^0  *\(.*\)$/\1/
16330             p
16331         }
16332     }'
16333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16334 # Check for a 64-bit object if we didn't find anything.
16335 if test -z "$aix_libpath"; then
16336   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16337 fi
16338 else
16339   echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16341
16342
16343 fi
16344
16345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16346       conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16348
16349          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16350           # Warning - without using the other run time loading flags,
16351           # -berok will link without error, but may produce a broken library.
16352           no_undefined_flag_F77=' ${wl}-bernotok'
16353           allow_undefined_flag_F77=' ${wl}-berok'
16354           # Exported symbols can be pulled into shared objects from archives
16355           whole_archive_flag_spec_F77='$convenience'
16356           archive_cmds_need_lc_F77=yes
16357           # This is similar to how AIX traditionally builds its shared libraries.
16358           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'
16359         fi
16360       fi
16361       ;;
16362
16363     amigaos*)
16364       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)'
16365       hardcode_libdir_flag_spec_F77='-L$libdir'
16366       hardcode_minus_L_F77=yes
16367       # see comment about different semantics on the GNU ld section
16368       ld_shlibs_F77=no
16369       ;;
16370
16371     bsdi[45]*)
16372       export_dynamic_flag_spec_F77=-rdynamic
16373       ;;
16374
16375     cygwin* | mingw* | pw32*)
16376       # When not using gcc, we currently assume that we are using
16377       # Microsoft Visual C++.
16378       # hardcode_libdir_flag_spec is actually meaningless, as there is
16379       # no search path for DLLs.
16380       hardcode_libdir_flag_spec_F77=' '
16381       allow_undefined_flag_F77=unsupported
16382       # Tell ltmain to make .lib files, not .a files.
16383       libext=lib
16384       # Tell ltmain to make .dll files, not .so files.
16385       shrext_cmds=".dll"
16386       # FIXME: Setting linknames here is a bad hack.
16387       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16388       # The linker will automatically build a .lib file if we build a DLL.
16389       old_archive_From_new_cmds_F77='true'
16390       # FIXME: Should let the user specify the lib program.
16391       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16392       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16393       enable_shared_with_static_runtimes_F77=yes
16394       ;;
16395
16396     darwin* | rhapsody*)
16397       case $host_os in
16398         rhapsody* | darwin1.[012])
16399          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16400          ;;
16401        *) # Darwin 1.3 on
16402          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16403            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16404          else
16405            case ${MACOSX_DEPLOYMENT_TARGET} in
16406              10.[012])
16407                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16408                ;;
16409              10.*)
16410                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16411                ;;
16412            esac
16413          fi
16414          ;;
16415       esac
16416       archive_cmds_need_lc_F77=no
16417       hardcode_direct_F77=no
16418       hardcode_automatic_F77=yes
16419       hardcode_shlibpath_var_F77=unsupported
16420       whole_archive_flag_spec_F77=''
16421       link_all_deplibs_F77=yes
16422     if test "$GCC" = yes ; then
16423         output_verbose_link_cmd='echo'
16424         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16425       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16426       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16427       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16428       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}'
16429     else
16430       case $cc_basename in
16431         xlc*)
16432          output_verbose_link_cmd='echo'
16433          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16434          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16435           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16436          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}'
16437           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}'
16438           ;;
16439        *)
16440          ld_shlibs_F77=no
16441           ;;
16442       esac
16443     fi
16444       ;;
16445
16446     dgux*)
16447       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16448       hardcode_libdir_flag_spec_F77='-L$libdir'
16449       hardcode_shlibpath_var_F77=no
16450       ;;
16451
16452     freebsd1*)
16453       ld_shlibs_F77=no
16454       ;;
16455
16456     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16457     # support.  Future versions do this automatically, but an explicit c++rt0.o
16458     # does not break anything, and helps significantly (at the cost of a little
16459     # extra space).
16460     freebsd2.2*)
16461       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16462       hardcode_libdir_flag_spec_F77='-R$libdir'
16463       hardcode_direct_F77=yes
16464       hardcode_shlibpath_var_F77=no
16465       ;;
16466
16467     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16468     freebsd2*)
16469       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16470       hardcode_direct_F77=yes
16471       hardcode_minus_L_F77=yes
16472       hardcode_shlibpath_var_F77=no
16473       ;;
16474
16475     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16476     freebsd* | dragonfly*)
16477       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16478       hardcode_libdir_flag_spec_F77='-R$libdir'
16479       hardcode_direct_F77=yes
16480       hardcode_shlibpath_var_F77=no
16481       ;;
16482
16483     hpux9*)
16484       if test "$GCC" = yes; then
16485         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'
16486       else
16487         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'
16488       fi
16489       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16490       hardcode_libdir_separator_F77=:
16491       hardcode_direct_F77=yes
16492
16493       # hardcode_minus_L: Not really in the search PATH,
16494       # but as the default location of the library.
16495       hardcode_minus_L_F77=yes
16496       export_dynamic_flag_spec_F77='${wl}-E'
16497       ;;
16498
16499     hpux10*)
16500       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16501         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16502       else
16503         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16504       fi
16505       if test "$with_gnu_ld" = no; then
16506         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507         hardcode_libdir_separator_F77=:
16508
16509         hardcode_direct_F77=yes
16510         export_dynamic_flag_spec_F77='${wl}-E'
16511
16512         # hardcode_minus_L: Not really in the search PATH,
16513         # but as the default location of the library.
16514         hardcode_minus_L_F77=yes
16515       fi
16516       ;;
16517
16518     hpux11*)
16519       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16520         case $host_cpu in
16521         hppa*64*)
16522           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16523           ;;
16524         ia64*)
16525           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16526           ;;
16527         *)
16528           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16529           ;;
16530         esac
16531       else
16532         case $host_cpu in
16533         hppa*64*)
16534           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16535           ;;
16536         ia64*)
16537           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16538           ;;
16539         *)
16540           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16541           ;;
16542         esac
16543       fi
16544       if test "$with_gnu_ld" = no; then
16545         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16546         hardcode_libdir_separator_F77=:
16547
16548         case $host_cpu in
16549         hppa*64*|ia64*)
16550           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16551           hardcode_direct_F77=no
16552           hardcode_shlibpath_var_F77=no
16553           ;;
16554         *)
16555           hardcode_direct_F77=yes
16556           export_dynamic_flag_spec_F77='${wl}-E'
16557
16558           # hardcode_minus_L: Not really in the search PATH,
16559           # but as the default location of the library.
16560           hardcode_minus_L_F77=yes
16561           ;;
16562         esac
16563       fi
16564       ;;
16565
16566     irix5* | irix6* | nonstopux*)
16567       if test "$GCC" = yes; then
16568         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'
16569       else
16570         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'
16571         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16572       fi
16573       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16574       hardcode_libdir_separator_F77=:
16575       link_all_deplibs_F77=yes
16576       ;;
16577
16578     netbsd*)
16579       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16580         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16581       else
16582         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16583       fi
16584       hardcode_libdir_flag_spec_F77='-R$libdir'
16585       hardcode_direct_F77=yes
16586       hardcode_shlibpath_var_F77=no
16587       ;;
16588
16589     newsos6)
16590       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16591       hardcode_direct_F77=yes
16592       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16593       hardcode_libdir_separator_F77=:
16594       hardcode_shlibpath_var_F77=no
16595       ;;
16596
16597     openbsd*)
16598       if test -f /usr/libexec/ld.so; then
16599         hardcode_direct_F77=yes
16600         hardcode_shlibpath_var_F77=no
16601         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16602           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16603           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16604           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16605           export_dynamic_flag_spec_F77='${wl}-E'
16606         else
16607           case $host_os in
16608            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16609              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16610              hardcode_libdir_flag_spec_F77='-R$libdir'
16611              ;;
16612            *)
16613              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16614              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16615              ;;
16616           esac
16617         fi
16618       else
16619         ld_shlibs_F77=no
16620       fi
16621       ;;
16622
16623     os2*)
16624       hardcode_libdir_flag_spec_F77='-L$libdir'
16625       hardcode_minus_L_F77=yes
16626       allow_undefined_flag_F77=unsupported
16627       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'
16628       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16629       ;;
16630
16631     osf3*)
16632       if test "$GCC" = yes; then
16633         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16634         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'
16635       else
16636         allow_undefined_flag_F77=' -expect_unresolved \*'
16637         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'
16638       fi
16639       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16640       hardcode_libdir_separator_F77=:
16641       ;;
16642
16643     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16644       if test "$GCC" = yes; then
16645         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16646         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'
16647         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16648       else
16649         allow_undefined_flag_F77=' -expect_unresolved \*'
16650         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'
16651         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~
16652         $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'
16653
16654         # Both c and cxx compiler support -rpath directly
16655         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16656       fi
16657       hardcode_libdir_separator_F77=:
16658       ;;
16659
16660     solaris*)
16661       no_undefined_flag_F77=' -z text'
16662       if test "$GCC" = yes; then
16663         wlarc='${wl}'
16664         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16667       else
16668         wlarc=''
16669         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16672       fi
16673       hardcode_libdir_flag_spec_F77='-R$libdir'
16674       hardcode_shlibpath_var_F77=no
16675       case $host_os in
16676       solaris2.[0-5] | solaris2.[0-5].*) ;;
16677       *)
16678         # The compiler driver will combine and reorder linker options,
16679         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16680         # but is careful enough not to reorder.
16681         # Supported since Solaris 2.6 (maybe 2.5.1?)
16682         if test "$GCC" = yes; then
16683           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16684         else
16685           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16686         fi
16687         ;;
16688       esac
16689       link_all_deplibs_F77=yes
16690       ;;
16691
16692     sunos4*)
16693       if test "x$host_vendor" = xsequent; then
16694         # Use $CC to link under sequent, because it throws in some extra .o
16695         # files that make .init and .fini sections work.
16696         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16697       else
16698         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16699       fi
16700       hardcode_libdir_flag_spec_F77='-L$libdir'
16701       hardcode_direct_F77=yes
16702       hardcode_minus_L_F77=yes
16703       hardcode_shlibpath_var_F77=no
16704       ;;
16705
16706     sysv4)
16707       case $host_vendor in
16708         sni)
16709           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710           hardcode_direct_F77=yes # is this really true???
16711         ;;
16712         siemens)
16713           ## LD is ld it makes a PLAMLIB
16714           ## CC just makes a GrossModule.
16715           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716           reload_cmds_F77='$CC -r -o $output$reload_objs'
16717           hardcode_direct_F77=no
16718         ;;
16719         motorola)
16720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16722         ;;
16723       esac
16724       runpath_var='LD_RUN_PATH'
16725       hardcode_shlibpath_var_F77=no
16726       ;;
16727
16728     sysv4.3*)
16729       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730       hardcode_shlibpath_var_F77=no
16731       export_dynamic_flag_spec_F77='-Bexport'
16732       ;;
16733
16734     sysv4*MP*)
16735       if test -d /usr/nec; then
16736         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737         hardcode_shlibpath_var_F77=no
16738         runpath_var=LD_RUN_PATH
16739         hardcode_runpath_var=yes
16740         ld_shlibs_F77=yes
16741       fi
16742       ;;
16743
16744     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16745       no_undefined_flag_F77='${wl}-z,text'
16746       archive_cmds_need_lc_F77=no
16747       hardcode_shlibpath_var_F77=no
16748       runpath_var='LD_RUN_PATH'
16749
16750       if test "$GCC" = yes; then
16751         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16753       else
16754         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16756       fi
16757       ;;
16758
16759     sysv5* | sco3.2v5* | sco5v6*)
16760       # Note: We can NOT use -z defs as we might desire, because we do not
16761       # link with -lc, and that would cause any symbols used from libc to
16762       # always be unresolved, which means just about no library would
16763       # ever link correctly.  If we're not using GNU ld we use -z text
16764       # though, which does catch some bad symbols but isn't as heavy-handed
16765       # as -z defs.
16766       no_undefined_flag_F77='${wl}-z,text'
16767       allow_undefined_flag_F77='${wl}-z,nodefs'
16768       archive_cmds_need_lc_F77=no
16769       hardcode_shlibpath_var_F77=no
16770       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16771       hardcode_libdir_separator_F77=':'
16772       link_all_deplibs_F77=yes
16773       export_dynamic_flag_spec_F77='${wl}-Bexport'
16774       runpath_var='LD_RUN_PATH'
16775
16776       if test "$GCC" = yes; then
16777         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16778         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16779       else
16780         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16781         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16782       fi
16783       ;;
16784
16785     uts4*)
16786       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16787       hardcode_libdir_flag_spec_F77='-L$libdir'
16788       hardcode_shlibpath_var_F77=no
16789       ;;
16790
16791     *)
16792       ld_shlibs_F77=no
16793       ;;
16794     esac
16795   fi
16796
16797 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16798 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16799 test "$ld_shlibs_F77" = no && can_build_shared=no
16800
16801 #
16802 # Do we need to explicitly link libc?
16803 #
16804 case "x$archive_cmds_need_lc_F77" in
16805 x|xyes)
16806   # Assume -lc should be added
16807   archive_cmds_need_lc_F77=yes
16808
16809   if test "$enable_shared" = yes && test "$GCC" = yes; then
16810     case $archive_cmds_F77 in
16811     *'~'*)
16812       # FIXME: we may have to deal with multi-command sequences.
16813       ;;
16814     '$CC '*)
16815       # Test whether the compiler implicitly links with -lc since on some
16816       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16817       # to ld, don't add -lc before -lgcc.
16818       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16819 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16820       $rm conftest*
16821       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16822
16823       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824   (eval $ac_compile) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } 2>conftest.err; then
16828         soname=conftest
16829         lib=conftest
16830         libobjs=conftest.$ac_objext
16831         deplibs=
16832         wl=$lt_prog_compiler_wl_F77
16833         pic_flag=$lt_prog_compiler_pic_F77
16834         compiler_flags=-v
16835         linker_flags=-v
16836         verstring=
16837         output_objdir=.
16838         libname=conftest
16839         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16840         allow_undefined_flag_F77=
16841         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16842   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }
16846         then
16847           archive_cmds_need_lc_F77=no
16848         else
16849           archive_cmds_need_lc_F77=yes
16850         fi
16851         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16852       else
16853         cat conftest.err 1>&5
16854       fi
16855       $rm conftest*
16856       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16857 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16858       ;;
16859     esac
16860   fi
16861   ;;
16862 esac
16863
16864 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16865 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16866 library_names_spec=
16867 libname_spec='lib$name'
16868 soname_spec=
16869 shrext_cmds=".so"
16870 postinstall_cmds=
16871 postuninstall_cmds=
16872 finish_cmds=
16873 finish_eval=
16874 shlibpath_var=
16875 shlibpath_overrides_runpath=unknown
16876 version_type=none
16877 dynamic_linker="$host_os ld.so"
16878 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16879
16880 need_lib_prefix=unknown
16881 hardcode_into_libs=no
16882
16883 # when you set need_version to no, make sure it does not cause -set_version
16884 # flags to be left without arguments
16885 need_version=unknown
16886
16887 case $host_os in
16888 aix3*)
16889   version_type=linux
16890   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16891   shlibpath_var=LIBPATH
16892
16893   # AIX 3 has no versioning support, so we append a major version to the name.
16894   soname_spec='${libname}${release}${shared_ext}$major'
16895   ;;
16896
16897 aix4* | aix5*)
16898   version_type=linux
16899   need_lib_prefix=no
16900   need_version=no
16901   hardcode_into_libs=yes
16902   if test "$host_cpu" = ia64; then
16903     # AIX 5 supports IA64
16904     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16905     shlibpath_var=LD_LIBRARY_PATH
16906   else
16907     # With GCC up to 2.95.x, collect2 would create an import file
16908     # for dependence libraries.  The import file would start with
16909     # the line `#! .'.  This would cause the generated library to
16910     # depend on `.', always an invalid library.  This was fixed in
16911     # development snapshots of GCC prior to 3.0.
16912     case $host_os in
16913       aix4 | aix4.[01] | aix4.[01].*)
16914       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16915            echo ' yes '
16916            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16917         :
16918       else
16919         can_build_shared=no
16920       fi
16921       ;;
16922     esac
16923     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16924     # soname into executable. Probably we can add versioning support to
16925     # collect2, so additional links can be useful in future.
16926     if test "$aix_use_runtimelinking" = yes; then
16927       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16928       # instead of lib<name>.a to let people know that these are not
16929       # typical AIX shared libraries.
16930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931     else
16932       # We preserve .a as extension for shared libraries through AIX4.2
16933       # and later when we are not doing run time linking.
16934       library_names_spec='${libname}${release}.a $libname.a'
16935       soname_spec='${libname}${release}${shared_ext}$major'
16936     fi
16937     shlibpath_var=LIBPATH
16938   fi
16939   ;;
16940
16941 amigaos*)
16942   library_names_spec='$libname.ixlibrary $libname.a'
16943   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16944   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'
16945   ;;
16946
16947 beos*)
16948   library_names_spec='${libname}${shared_ext}'
16949   dynamic_linker="$host_os ld.so"
16950   shlibpath_var=LIBRARY_PATH
16951   ;;
16952
16953 bsdi[45]*)
16954   version_type=linux
16955   need_version=no
16956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957   soname_spec='${libname}${release}${shared_ext}$major'
16958   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16959   shlibpath_var=LD_LIBRARY_PATH
16960   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16961   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16962   # the default ld.so.conf also contains /usr/contrib/lib and
16963   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16964   # libtool to hard-code these into programs
16965   ;;
16966
16967 cygwin* | mingw* | pw32*)
16968   version_type=windows
16969   shrext_cmds=".dll"
16970   need_version=no
16971   need_lib_prefix=no
16972
16973   case $GCC,$host_os in
16974   yes,cygwin* | yes,mingw* | yes,pw32*)
16975     library_names_spec='$libname.dll.a'
16976     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16977     postinstall_cmds='base_file=`basename \${file}`~
16978       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16979       dldir=$destdir/`dirname \$dlpath`~
16980       test -d \$dldir || mkdir -p \$dldir~
16981       $install_prog $dir/$dlname \$dldir/$dlname~
16982       chmod a+x \$dldir/$dlname'
16983     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16984       dlpath=$dir/\$dldll~
16985        $rm \$dlpath'
16986     shlibpath_overrides_runpath=yes
16987
16988     case $host_os in
16989     cygwin*)
16990       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16991       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16993       ;;
16994     mingw*)
16995       # MinGW DLLs use traditional 'lib' prefix
16996       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16997       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16998       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16999         # It is most probably a Windows format PATH printed by
17000         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17001         # path with ; separators, and with drive letters. We can handle the
17002         # drive letters (cygwin fileutils understands them), so leave them,
17003         # especially as we might pass files found there to a mingw objdump,
17004         # which wouldn't understand a cygwinified path. Ahh.
17005         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17006       else
17007         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17008       fi
17009       ;;
17010     pw32*)
17011       # pw32 DLLs use 'pw' prefix rather than 'lib'
17012       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013       ;;
17014     esac
17015     ;;
17016
17017   *)
17018     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17019     ;;
17020   esac
17021   dynamic_linker='Win32 ld.exe'
17022   # FIXME: first we should search . and the directory the executable is in
17023   shlibpath_var=PATH
17024   ;;
17025
17026 darwin* | rhapsody*)
17027   dynamic_linker="$host_os dyld"
17028   version_type=darwin
17029   need_lib_prefix=no
17030   need_version=no
17031   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17032   soname_spec='${libname}${release}${major}$shared_ext'
17033   shlibpath_overrides_runpath=yes
17034   shlibpath_var=DYLD_LIBRARY_PATH
17035   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17036
17037   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17038   ;;
17039
17040 dgux*)
17041   version_type=linux
17042   need_lib_prefix=no
17043   need_version=no
17044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17045   soname_spec='${libname}${release}${shared_ext}$major'
17046   shlibpath_var=LD_LIBRARY_PATH
17047   ;;
17048
17049 freebsd1*)
17050   dynamic_linker=no
17051   ;;
17052
17053 freebsd* | dragonfly*)
17054   # DragonFly does not have aout.  When/if they implement a new
17055   # versioning mechanism, adjust this.
17056   if test -x /usr/bin/objformat; then
17057     objformat=`/usr/bin/objformat`
17058   else
17059     case $host_os in
17060     freebsd[123]*) objformat=aout ;;
17061     *) objformat=elf ;;
17062     esac
17063   fi
17064   version_type=freebsd-$objformat
17065   case $version_type in
17066     freebsd-elf*)
17067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17068       need_version=no
17069       need_lib_prefix=no
17070       ;;
17071     freebsd-*)
17072       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17073       need_version=yes
17074       ;;
17075   esac
17076   shlibpath_var=LD_LIBRARY_PATH
17077   case $host_os in
17078   freebsd2*)
17079     shlibpath_overrides_runpath=yes
17080     ;;
17081   freebsd3.[01]* | freebsdelf3.[01]*)
17082     shlibpath_overrides_runpath=yes
17083     hardcode_into_libs=yes
17084     ;;
17085   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17086   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17087     shlibpath_overrides_runpath=no
17088     hardcode_into_libs=yes
17089     ;;
17090   *) # from 4.6 on, and DragonFly
17091     shlibpath_overrides_runpath=yes
17092     hardcode_into_libs=yes
17093     ;;
17094   esac
17095   ;;
17096
17097 gnu*)
17098   version_type=linux
17099   need_lib_prefix=no
17100   need_version=no
17101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17102   soname_spec='${libname}${release}${shared_ext}$major'
17103   shlibpath_var=LD_LIBRARY_PATH
17104   hardcode_into_libs=yes
17105   ;;
17106
17107 hpux9* | hpux10* | hpux11*)
17108   # Give a soname corresponding to the major version so that dld.sl refuses to
17109   # link against other versions.
17110   version_type=sunos
17111   need_lib_prefix=no
17112   need_version=no
17113   case $host_cpu in
17114   ia64*)
17115     shrext_cmds='.so'
17116     hardcode_into_libs=yes
17117     dynamic_linker="$host_os dld.so"
17118     shlibpath_var=LD_LIBRARY_PATH
17119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121     soname_spec='${libname}${release}${shared_ext}$major'
17122     if test "X$HPUX_IA64_MODE" = X32; then
17123       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17124     else
17125       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17126     fi
17127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17128     ;;
17129    hppa*64*)
17130      shrext_cmds='.sl'
17131      hardcode_into_libs=yes
17132      dynamic_linker="$host_os dld.sl"
17133      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17134      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136      soname_spec='${libname}${release}${shared_ext}$major'
17137      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17138      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17139      ;;
17140    *)
17141     shrext_cmds='.sl'
17142     dynamic_linker="$host_os dld.sl"
17143     shlibpath_var=SHLIB_PATH
17144     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146     soname_spec='${libname}${release}${shared_ext}$major'
17147     ;;
17148   esac
17149   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17150   postinstall_cmds='chmod 555 $lib'
17151   ;;
17152
17153 interix[3-9]*)
17154   version_type=linux
17155   need_lib_prefix=no
17156   need_version=no
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158   soname_spec='${libname}${release}${shared_ext}$major'
17159   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17160   shlibpath_var=LD_LIBRARY_PATH
17161   shlibpath_overrides_runpath=no
17162   hardcode_into_libs=yes
17163   ;;
17164
17165 irix5* | irix6* | nonstopux*)
17166   case $host_os in
17167     nonstopux*) version_type=nonstopux ;;
17168     *)
17169         if test "$lt_cv_prog_gnu_ld" = yes; then
17170                 version_type=linux
17171         else
17172                 version_type=irix
17173         fi ;;
17174   esac
17175   need_lib_prefix=no
17176   need_version=no
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17179   case $host_os in
17180   irix5* | nonstopux*)
17181     libsuff= shlibsuff=
17182     ;;
17183   *)
17184     case $LD in # libtool.m4 will add one of these switches to LD
17185     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186       libsuff= shlibsuff= libmagic=32-bit;;
17187     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188       libsuff=32 shlibsuff=N32 libmagic=N32;;
17189     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191     *) libsuff= shlibsuff= libmagic=never-match;;
17192     esac
17193     ;;
17194   esac
17195   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196   shlibpath_overrides_runpath=no
17197   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199   hardcode_into_libs=yes
17200   ;;
17201
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17204   dynamic_linker=no
17205   ;;
17206
17207 # This must be Linux ELF.
17208 linux* | k*bsd*-gnu)
17209   version_type=linux
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=no
17217   # This implies no fast_install, which is unacceptable.
17218   # Some rework will be needed to allow for fast_install
17219   # before this can be enabled.
17220   hardcode_into_libs=yes
17221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17223
17224   # Append ld.so.conf contents to the search path
17225   if test -f /etc/ld.so.conf; then
17226     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' ' '`
17227     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17228   fi
17229
17230   # We used to test for /lib/ld.so.1 and disable shared libraries on
17231   # powerpc, because MkLinux only supported shared libraries with the
17232   # GNU dynamic linker.  Since this was broken with cross compilers,
17233   # most powerpc-linux boxes support dynamic linking these days and
17234   # people can always --disable-shared, the test was removed, and we
17235   # assume the GNU/Linux dynamic linker is in use.
17236   dynamic_linker='GNU/Linux ld.so'
17237   ;;
17238
17239 netbsd*)
17240   version_type=sunos
17241   need_lib_prefix=no
17242   need_version=no
17243   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17245     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17246     dynamic_linker='NetBSD (a.out) ld.so'
17247   else
17248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17249     soname_spec='${libname}${release}${shared_ext}$major'
17250     dynamic_linker='NetBSD ld.elf_so'
17251   fi
17252   shlibpath_var=LD_LIBRARY_PATH
17253   shlibpath_overrides_runpath=yes
17254   hardcode_into_libs=yes
17255   ;;
17256
17257 newsos6)
17258   version_type=linux
17259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260   shlibpath_var=LD_LIBRARY_PATH
17261   shlibpath_overrides_runpath=yes
17262   ;;
17263
17264 nto-qnx*)
17265   version_type=linux
17266   need_lib_prefix=no
17267   need_version=no
17268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269   soname_spec='${libname}${release}${shared_ext}$major'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   shlibpath_overrides_runpath=yes
17272   ;;
17273
17274 openbsd*)
17275   version_type=sunos
17276   sys_lib_dlsearch_path_spec="/usr/lib"
17277   need_lib_prefix=no
17278   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17279   case $host_os in
17280     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17281     *)                         need_version=no  ;;
17282   esac
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17287     case $host_os in
17288       openbsd2.[89] | openbsd2.[89].*)
17289         shlibpath_overrides_runpath=no
17290         ;;
17291       *)
17292         shlibpath_overrides_runpath=yes
17293         ;;
17294       esac
17295   else
17296     shlibpath_overrides_runpath=yes
17297   fi
17298   ;;
17299
17300 os2*)
17301   libname_spec='$name'
17302   shrext_cmds=".dll"
17303   need_lib_prefix=no
17304   library_names_spec='$libname${shared_ext} $libname.a'
17305   dynamic_linker='OS/2 ld.exe'
17306   shlibpath_var=LIBPATH
17307   ;;
17308
17309 osf3* | osf4* | osf5*)
17310   version_type=osf
17311   need_lib_prefix=no
17312   need_version=no
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315   shlibpath_var=LD_LIBRARY_PATH
17316   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17317   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17318   ;;
17319
17320 rdos*)
17321   dynamic_linker=no
17322   ;;
17323
17324 solaris*)
17325   version_type=linux
17326   need_lib_prefix=no
17327   need_version=no
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   shlibpath_overrides_runpath=yes
17332   hardcode_into_libs=yes
17333   # ldd complains unless libraries are executable
17334   postinstall_cmds='chmod +x $lib'
17335   ;;
17336
17337 sunos4*)
17338   version_type=sunos
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17340   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   shlibpath_overrides_runpath=yes
17343   if test "$with_gnu_ld" = yes; then
17344     need_lib_prefix=no
17345   fi
17346   need_version=yes
17347   ;;
17348
17349 sysv4 | sysv4.3*)
17350   version_type=linux
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   case $host_vendor in
17355     sni)
17356       shlibpath_overrides_runpath=no
17357       need_lib_prefix=no
17358       export_dynamic_flag_spec='${wl}-Blargedynsym'
17359       runpath_var=LD_RUN_PATH
17360       ;;
17361     siemens)
17362       need_lib_prefix=no
17363       ;;
17364     motorola)
17365       need_lib_prefix=no
17366       need_version=no
17367       shlibpath_overrides_runpath=no
17368       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17369       ;;
17370   esac
17371   ;;
17372
17373 sysv4*MP*)
17374   if test -d /usr/nec ;then
17375     version_type=linux
17376     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17377     soname_spec='$libname${shared_ext}.$major'
17378     shlibpath_var=LD_LIBRARY_PATH
17379   fi
17380   ;;
17381
17382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17383   version_type=freebsd-elf
17384   need_lib_prefix=no
17385   need_version=no
17386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17387   soname_spec='${libname}${release}${shared_ext}$major'
17388   shlibpath_var=LD_LIBRARY_PATH
17389   hardcode_into_libs=yes
17390   if test "$with_gnu_ld" = yes; then
17391     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17392     shlibpath_overrides_runpath=no
17393   else
17394     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17395     shlibpath_overrides_runpath=yes
17396     case $host_os in
17397       sco3.2v5*)
17398         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17399         ;;
17400     esac
17401   fi
17402   sys_lib_dlsearch_path_spec='/usr/lib'
17403   ;;
17404
17405 uts4*)
17406   version_type=linux
17407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   ;;
17411
17412 *)
17413   dynamic_linker=no
17414   ;;
17415 esac
17416 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17417 echo "${ECHO_T}$dynamic_linker" >&6; }
17418 test "$dynamic_linker" = no && can_build_shared=no
17419
17420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17421 if test "$GCC" = yes; then
17422   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17423 fi
17424
17425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17427 hardcode_action_F77=
17428 if test -n "$hardcode_libdir_flag_spec_F77" || \
17429    test -n "$runpath_var_F77" || \
17430    test "X$hardcode_automatic_F77" = "Xyes" ; then
17431
17432   # We can hardcode non-existant directories.
17433   if test "$hardcode_direct_F77" != no &&
17434      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17435      # have to relink, otherwise we might link with an installed library
17436      # when we should be linking with a yet-to-be-installed one
17437      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17438      test "$hardcode_minus_L_F77" != no; then
17439     # Linking always hardcodes the temporary library directory.
17440     hardcode_action_F77=relink
17441   else
17442     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17443     hardcode_action_F77=immediate
17444   fi
17445 else
17446   # We cannot hardcode anything, or else we can only hardcode existing
17447   # directories.
17448   hardcode_action_F77=unsupported
17449 fi
17450 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17451 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17452
17453 if test "$hardcode_action_F77" = relink; then
17454   # Fast installation is not supported
17455   enable_fast_install=no
17456 elif test "$shlibpath_overrides_runpath" = yes ||
17457      test "$enable_shared" = no; then
17458   # Fast installation is not necessary
17459   enable_fast_install=needless
17460 fi
17461
17462
17463 # The else clause should only fire when bootstrapping the
17464 # libtool distribution, otherwise you forgot to ship ltmain.sh
17465 # with your package, and you will get complaints that there are
17466 # no rules to generate ltmain.sh.
17467 if test -f "$ltmain"; then
17468   # See if we are running on zsh, and set the options which allow our commands through
17469   # without removal of \ escapes.
17470   if test -n "${ZSH_VERSION+set}" ; then
17471     setopt NO_GLOB_SUBST
17472   fi
17473   # Now quote all the things that may contain metacharacters while being
17474   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17475   # variables and quote the copies for generation of the libtool script.
17476   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17477     SED SHELL STRIP \
17478     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17479     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17480     deplibs_check_method reload_flag reload_cmds need_locks \
17481     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17482     lt_cv_sys_global_symbol_to_c_name_address \
17483     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17484     old_postinstall_cmds old_postuninstall_cmds \
17485     compiler_F77 \
17486     CC_F77 \
17487     LD_F77 \
17488     lt_prog_compiler_wl_F77 \
17489     lt_prog_compiler_pic_F77 \
17490     lt_prog_compiler_static_F77 \
17491     lt_prog_compiler_no_builtin_flag_F77 \
17492     export_dynamic_flag_spec_F77 \
17493     thread_safe_flag_spec_F77 \
17494     whole_archive_flag_spec_F77 \
17495     enable_shared_with_static_runtimes_F77 \
17496     old_archive_cmds_F77 \
17497     old_archive_from_new_cmds_F77 \
17498     predep_objects_F77 \
17499     postdep_objects_F77 \
17500     predeps_F77 \
17501     postdeps_F77 \
17502     compiler_lib_search_path_F77 \
17503     archive_cmds_F77 \
17504     archive_expsym_cmds_F77 \
17505     postinstall_cmds_F77 \
17506     postuninstall_cmds_F77 \
17507     old_archive_from_expsyms_cmds_F77 \
17508     allow_undefined_flag_F77 \
17509     no_undefined_flag_F77 \
17510     export_symbols_cmds_F77 \
17511     hardcode_libdir_flag_spec_F77 \
17512     hardcode_libdir_flag_spec_ld_F77 \
17513     hardcode_libdir_separator_F77 \
17514     hardcode_automatic_F77 \
17515     module_cmds_F77 \
17516     module_expsym_cmds_F77 \
17517     lt_cv_prog_compiler_c_o_F77 \
17518     fix_srcfile_path_F77 \
17519     exclude_expsyms_F77 \
17520     include_expsyms_F77; do
17521
17522     case $var in
17523     old_archive_cmds_F77 | \
17524     old_archive_from_new_cmds_F77 | \
17525     archive_cmds_F77 | \
17526     archive_expsym_cmds_F77 | \
17527     module_cmds_F77 | \
17528     module_expsym_cmds_F77 | \
17529     old_archive_from_expsyms_cmds_F77 | \
17530     export_symbols_cmds_F77 | \
17531     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17532     postinstall_cmds | postuninstall_cmds | \
17533     old_postinstall_cmds | old_postuninstall_cmds | \
17534     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17535       # Double-quote double-evaled strings.
17536       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17537       ;;
17538     *)
17539       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17540       ;;
17541     esac
17542   done
17543
17544   case $lt_echo in
17545   *'\$0 --fallback-echo"')
17546     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17547     ;;
17548   esac
17549
17550 cfgfile="$ofile"
17551
17552   cat <<__EOF__ >> "$cfgfile"
17553 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17554
17555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17556
17557 # Shell to use when invoking shell scripts.
17558 SHELL=$lt_SHELL
17559
17560 # Whether or not to build shared libraries.
17561 build_libtool_libs=$enable_shared
17562
17563 # Whether or not to build static libraries.
17564 build_old_libs=$enable_static
17565
17566 # Whether or not to add -lc for building shared libraries.
17567 build_libtool_need_lc=$archive_cmds_need_lc_F77
17568
17569 # Whether or not to disallow shared libs when runtime libs are static
17570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17571
17572 # Whether or not to optimize for fast installation.
17573 fast_install=$enable_fast_install
17574
17575 # The host system.
17576 host_alias=$host_alias
17577 host=$host
17578 host_os=$host_os
17579
17580 # The build system.
17581 build_alias=$build_alias
17582 build=$build
17583 build_os=$build_os
17584
17585 # An echo program that does not interpret backslashes.
17586 echo=$lt_echo
17587
17588 # The archiver.
17589 AR=$lt_AR
17590 AR_FLAGS=$lt_AR_FLAGS
17591
17592 # A C compiler.
17593 LTCC=$lt_LTCC
17594
17595 # LTCC compiler flags.
17596 LTCFLAGS=$lt_LTCFLAGS
17597
17598 # A language-specific compiler.
17599 CC=$lt_compiler_F77
17600
17601 # Is the compiler the GNU C compiler?
17602 with_gcc=$GCC_F77
17603
17604 # An ERE matcher.
17605 EGREP=$lt_EGREP
17606
17607 # The linker used to build libraries.
17608 LD=$lt_LD_F77
17609
17610 # Whether we need hard or soft links.
17611 LN_S=$lt_LN_S
17612
17613 # A BSD-compatible nm program.
17614 NM=$lt_NM
17615
17616 # A symbol stripping program
17617 STRIP=$lt_STRIP
17618
17619 # Used to examine libraries when file_magic_cmd begins "file"
17620 MAGIC_CMD=$MAGIC_CMD
17621
17622 # Used on cygwin: DLL creation program.
17623 DLLTOOL="$DLLTOOL"
17624
17625 # Used on cygwin: object dumper.
17626 OBJDUMP="$OBJDUMP"
17627
17628 # Used on cygwin: assembler.
17629 AS="$AS"
17630
17631 # The name of the directory that contains temporary libtool files.
17632 objdir=$objdir
17633
17634 # How to create reloadable object files.
17635 reload_flag=$lt_reload_flag
17636 reload_cmds=$lt_reload_cmds
17637
17638 # How to pass a linker flag through the compiler.
17639 wl=$lt_lt_prog_compiler_wl_F77
17640
17641 # Object file suffix (normally "o").
17642 objext="$ac_objext"
17643
17644 # Old archive suffix (normally "a").
17645 libext="$libext"
17646
17647 # Shared library suffix (normally ".so").
17648 shrext_cmds='$shrext_cmds'
17649
17650 # Executable file suffix (normally "").
17651 exeext="$exeext"
17652
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic_F77
17655 pic_mode=$pic_mode
17656
17657 # What is the maximum length of a command?
17658 max_cmd_len=$lt_cv_sys_max_cmd_len
17659
17660 # Does compiler simultaneously support -c and -o options?
17661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17662
17663 # Must we lock files when doing compilation?
17664 need_locks=$lt_need_locks
17665
17666 # Do we need the lib prefix for modules?
17667 need_lib_prefix=$need_lib_prefix
17668
17669 # Do we need a version for libraries?
17670 need_version=$need_version
17671
17672 # Whether dlopen is supported.
17673 dlopen_support=$enable_dlopen
17674
17675 # Whether dlopen of programs is supported.
17676 dlopen_self=$enable_dlopen_self
17677
17678 # Whether dlopen of statically linked programs is supported.
17679 dlopen_self_static=$enable_dlopen_self_static
17680
17681 # Compiler flag to prevent dynamic linking.
17682 link_static_flag=$lt_lt_prog_compiler_static_F77
17683
17684 # Compiler flag to turn off builtin functions.
17685 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17686
17687 # Compiler flag to allow reflexive dlopens.
17688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17689
17690 # Compiler flag to generate shared objects directly from archives.
17691 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17692
17693 # Compiler flag to generate thread-safe objects.
17694 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17695
17696 # Library versioning type.
17697 version_type=$version_type
17698
17699 # Format of library name prefix.
17700 libname_spec=$lt_libname_spec
17701
17702 # List of archive names.  First name is the real one, the rest are links.
17703 # The last name is the one that the linker finds with -lNAME.
17704 library_names_spec=$lt_library_names_spec
17705
17706 # The coded name of the library, if different from the real name.
17707 soname_spec=$lt_soname_spec
17708
17709 # Commands used to build and install an old-style archive.
17710 RANLIB=$lt_RANLIB
17711 old_archive_cmds=$lt_old_archive_cmds_F77
17712 old_postinstall_cmds=$lt_old_postinstall_cmds
17713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17714
17715 # Create an old-style archive from a shared archive.
17716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17717
17718 # Create a temporary old-style archive to link instead of a shared archive.
17719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17720
17721 # Commands used to build and install a shared archive.
17722 archive_cmds=$lt_archive_cmds_F77
17723 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17724 postinstall_cmds=$lt_postinstall_cmds
17725 postuninstall_cmds=$lt_postuninstall_cmds
17726
17727 # Commands used to build a loadable module (assumed same as above if empty)
17728 module_cmds=$lt_module_cmds_F77
17729 module_expsym_cmds=$lt_module_expsym_cmds_F77
17730
17731 # Commands to strip libraries.
17732 old_striplib=$lt_old_striplib
17733 striplib=$lt_striplib
17734
17735 # Dependencies to place before the objects being linked to create a
17736 # shared library.
17737 predep_objects=$lt_predep_objects_F77
17738
17739 # Dependencies to place after the objects being linked to create a
17740 # shared library.
17741 postdep_objects=$lt_postdep_objects_F77
17742
17743 # Dependencies to place before the objects being linked to create a
17744 # shared library.
17745 predeps=$lt_predeps_F77
17746
17747 # Dependencies to place after the objects being linked to create a
17748 # shared library.
17749 postdeps=$lt_postdeps_F77
17750
17751 # The library search path used internally by the compiler when linking
17752 # a shared library.
17753 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17754
17755 # Method to check whether dependent libraries are shared objects.
17756 deplibs_check_method=$lt_deplibs_check_method
17757
17758 # Command to use when deplibs_check_method == file_magic.
17759 file_magic_cmd=$lt_file_magic_cmd
17760
17761 # Flag that allows shared libraries with undefined symbols to be built.
17762 allow_undefined_flag=$lt_allow_undefined_flag_F77
17763
17764 # Flag that forces no undefined symbols.
17765 no_undefined_flag=$lt_no_undefined_flag_F77
17766
17767 # Commands used to finish a libtool library installation in a directory.
17768 finish_cmds=$lt_finish_cmds
17769
17770 # Same as above, but a single script fragment to be evaled but not shown.
17771 finish_eval=$lt_finish_eval
17772
17773 # Take the output of nm and produce a listing of raw symbols and C names.
17774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17775
17776 # Transform the output of nm in a proper C declaration
17777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17778
17779 # Transform the output of nm in a C name address pair
17780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17781
17782 # This is the shared library runtime path variable.
17783 runpath_var=$runpath_var
17784
17785 # This is the shared library path variable.
17786 shlibpath_var=$shlibpath_var
17787
17788 # Is shlibpath searched before the hard-coded library search path?
17789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17790
17791 # How to hardcode a shared library path into an executable.
17792 hardcode_action=$hardcode_action_F77
17793
17794 # Whether we should hardcode library paths into libraries.
17795 hardcode_into_libs=$hardcode_into_libs
17796
17797 # Flag to hardcode \$libdir into a binary during linking.
17798 # This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17800
17801 # If ld is used when linking, flag to hardcode \$libdir into
17802 # a binary during linking. This must work even if \$libdir does
17803 # not exist.
17804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17805
17806 # Whether we need a single -rpath flag with a separated argument.
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17808
17809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_direct=$hardcode_direct_F77
17812
17813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17814 # resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_F77
17816
17817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17818 # the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17820
17821 # Set to yes if building a shared library automatically hardcodes DIR into the library
17822 # and all subsequent libraries and executables linked against it.
17823 hardcode_automatic=$hardcode_automatic_F77
17824
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at relink time.
17827 variables_saved_for_relink="$variables_saved_for_relink"
17828
17829 # Whether libtool must link a program against all its dependency libraries.
17830 link_all_deplibs=$link_all_deplibs_F77
17831
17832 # Compile-time system search path for libraries
17833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17834
17835 # Run-time system search path for libraries
17836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17837
17838 # Fix the shell variable \$srcfile for the compiler.
17839 fix_srcfile_path=$lt_fix_srcfile_path
17840
17841 # Set to yes if exported symbols are required.
17842 always_export_symbols=$always_export_symbols_F77
17843
17844 # The commands to list exported symbols.
17845 export_symbols_cmds=$lt_export_symbols_cmds_F77
17846
17847 # The commands to extract the exported symbol list from a shared archive.
17848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17849
17850 # Symbols that should not be listed in the preloaded symbols.
17851 exclude_expsyms=$lt_exclude_expsyms_F77
17852
17853 # Symbols that must always be exported.
17854 include_expsyms=$lt_include_expsyms_F77
17855
17856 # ### END LIBTOOL TAG CONFIG: $tagname
17857
17858 __EOF__
17859
17860
17861 else
17862   # If there is no Makefile yet, we rely on a make rule to execute
17863   # `config.status --recheck' to rerun these tests and create the
17864   # libtool script then.
17865   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17866   if test -f "$ltmain_in"; then
17867     test -f Makefile && make "$ltmain"
17868   fi
17869 fi
17870
17871
17872 ac_ext=c
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878 CC="$lt_save_CC"
17879
17880         else
17881           tagname=""
17882         fi
17883         ;;
17884
17885       GCJ)
17886         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17887
17888
17889 # Source file extension for Java test sources.
17890 ac_ext=java
17891
17892 # Object file extension for compiled Java test sources.
17893 objext=o
17894 objext_GCJ=$objext
17895
17896 # Code to be used in simple compile tests
17897 lt_simple_compile_test_code="class foo {}"
17898
17899 # Code to be used in simple link tests
17900 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17901
17902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17903
17904 # If no C compiler was specified, use CC.
17905 LTCC=${LTCC-"$CC"}
17906
17907 # If no C compiler flags were specified, use CFLAGS.
17908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17909
17910 # Allow CC to be a program name with arguments.
17911 compiler=$CC
17912
17913
17914 # save warnings/boilerplate of simple test code
17915 ac_outfile=conftest.$ac_objext
17916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17918 _lt_compiler_boilerplate=`cat conftest.err`
17919 $rm conftest*
17920
17921 ac_outfile=conftest.$ac_objext
17922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17924 _lt_linker_boilerplate=`cat conftest.err`
17925 $rm conftest*
17926
17927
17928 # Allow CC to be a program name with arguments.
17929 lt_save_CC="$CC"
17930 CC=${GCJ-"gcj"}
17931 compiler=$CC
17932 compiler_GCJ=$CC
17933 for cc_temp in $compiler""; do
17934   case $cc_temp in
17935     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17936     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17937     \-*) ;;
17938     *) break;;
17939   esac
17940 done
17941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17942
17943
17944 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17945 archive_cmds_need_lc_GCJ=no
17946
17947 old_archive_cmds_GCJ=$old_archive_cmds
17948
17949
17950 lt_prog_compiler_no_builtin_flag_GCJ=
17951
17952 if test "$GCC" = yes; then
17953   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17954
17955
17956 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17957 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   lt_cv_prog_compiler_rtti_exceptions=no
17962   ac_outfile=conftest.$ac_objext
17963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17964    lt_compiler_flag="-fno-rtti -fno-exceptions"
17965    # Insert the option either (1) after the last *FLAGS variable, or
17966    # (2) before a word containing "conftest.", or (3) at the end.
17967    # Note that $ac_compile itself does not contain backslashes and begins
17968    # with a dollar sign (not a hyphen), so the echo should work correctly.
17969    # The option is referenced via a variable to avoid confusing sed.
17970    lt_compile=`echo "$ac_compile" | $SED \
17971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17973    -e 's:$: $lt_compiler_flag:'`
17974    (eval echo "\"\$as_me:17974: $lt_compile\"" >&5)
17975    (eval "$lt_compile" 2>conftest.err)
17976    ac_status=$?
17977    cat conftest.err >&5
17978    echo "$as_me:17978: \$? = $ac_status" >&5
17979    if (exit $ac_status) && test -s "$ac_outfile"; then
17980      # The compiler can only warn and ignore the option if not recognized
17981      # So say no if there are warnings other than the usual output.
17982      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17983      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17984      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17985        lt_cv_prog_compiler_rtti_exceptions=yes
17986      fi
17987    fi
17988    $rm conftest*
17989
17990 fi
17991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17992 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17993
17994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17995     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17996 else
17997     :
17998 fi
17999
18000 fi
18001
18002 lt_prog_compiler_wl_GCJ=
18003 lt_prog_compiler_pic_GCJ=
18004 lt_prog_compiler_static_GCJ=
18005
18006 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18008
18009   if test "$GCC" = yes; then
18010     lt_prog_compiler_wl_GCJ='-Wl,'
18011     lt_prog_compiler_static_GCJ='-static'
18012
18013     case $host_os in
18014       aix*)
18015       # All AIX code is PIC.
18016       if test "$host_cpu" = ia64; then
18017         # AIX 5 now supports IA64 processor
18018         lt_prog_compiler_static_GCJ='-Bstatic'
18019       fi
18020       ;;
18021
18022     amigaos*)
18023       # FIXME: we need at least 68020 code to build shared libraries, but
18024       # adding the `-m68020' flag to GCC prevents building anything better,
18025       # like `-m68040'.
18026       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18027       ;;
18028
18029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18030       # PIC is the default for these OSes.
18031       ;;
18032
18033     mingw* | cygwin* | pw32* | os2*)
18034       # This hack is so that the source file can tell whether it is being
18035       # built for inclusion in a dll (and should export symbols for example).
18036       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18037       # (--disable-auto-import) libraries
18038       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18039       ;;
18040
18041     darwin* | rhapsody*)
18042       # PIC is the default on this platform
18043       # Common symbols not allowed in MH_DYLIB files
18044       lt_prog_compiler_pic_GCJ='-fno-common'
18045       ;;
18046
18047     interix[3-9]*)
18048       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18049       # Instead, we relocate shared libraries at runtime.
18050       ;;
18051
18052     msdosdjgpp*)
18053       # Just because we use GCC doesn't mean we suddenly get shared libraries
18054       # on systems that don't support them.
18055       lt_prog_compiler_can_build_shared_GCJ=no
18056       enable_shared=no
18057       ;;
18058
18059     sysv4*MP*)
18060       if test -d /usr/nec; then
18061         lt_prog_compiler_pic_GCJ=-Kconform_pic
18062       fi
18063       ;;
18064
18065     hpux*)
18066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18067       # not for PA HP-UX.
18068       case $host_cpu in
18069       hppa*64*|ia64*)
18070         # +Z the default
18071         ;;
18072       *)
18073         lt_prog_compiler_pic_GCJ='-fPIC'
18074         ;;
18075       esac
18076       ;;
18077
18078     *)
18079       lt_prog_compiler_pic_GCJ='-fPIC'
18080       ;;
18081     esac
18082   else
18083     # PORTME Check for flag to pass linker flags through the system compiler.
18084     case $host_os in
18085     aix*)
18086       lt_prog_compiler_wl_GCJ='-Wl,'
18087       if test "$host_cpu" = ia64; then
18088         # AIX 5 now supports IA64 processor
18089         lt_prog_compiler_static_GCJ='-Bstatic'
18090       else
18091         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18092       fi
18093       ;;
18094       darwin*)
18095         # PIC is the default on this platform
18096         # Common symbols not allowed in MH_DYLIB files
18097        case $cc_basename in
18098          xlc*)
18099          lt_prog_compiler_pic_GCJ='-qnocommon'
18100          lt_prog_compiler_wl_GCJ='-Wl,'
18101          ;;
18102        esac
18103        ;;
18104
18105     mingw* | cygwin* | pw32* | os2*)
18106       # This hack is so that the source file can tell whether it is being
18107       # built for inclusion in a dll (and should export symbols for example).
18108       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18109       ;;
18110
18111     hpux9* | hpux10* | hpux11*)
18112       lt_prog_compiler_wl_GCJ='-Wl,'
18113       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18114       # not for PA HP-UX.
18115       case $host_cpu in
18116       hppa*64*|ia64*)
18117         # +Z the default
18118         ;;
18119       *)
18120         lt_prog_compiler_pic_GCJ='+Z'
18121         ;;
18122       esac
18123       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18124       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18125       ;;
18126
18127     irix5* | irix6* | nonstopux*)
18128       lt_prog_compiler_wl_GCJ='-Wl,'
18129       # PIC (with -KPIC) is the default.
18130       lt_prog_compiler_static_GCJ='-non_shared'
18131       ;;
18132
18133     newsos6)
18134       lt_prog_compiler_pic_GCJ='-KPIC'
18135       lt_prog_compiler_static_GCJ='-Bstatic'
18136       ;;
18137
18138     linux* | k*bsd*-gnu)
18139       case $cc_basename in
18140       icc* | ecc*)
18141         lt_prog_compiler_wl_GCJ='-Wl,'
18142         lt_prog_compiler_pic_GCJ='-KPIC'
18143         lt_prog_compiler_static_GCJ='-static'
18144         ;;
18145       pgcc* | pgf77* | pgf90* | pgf95*)
18146         # Portland Group compilers (*not* the Pentium gcc compiler,
18147         # which looks to be a dead project)
18148         lt_prog_compiler_wl_GCJ='-Wl,'
18149         lt_prog_compiler_pic_GCJ='-fpic'
18150         lt_prog_compiler_static_GCJ='-Bstatic'
18151         ;;
18152       ccc*)
18153         lt_prog_compiler_wl_GCJ='-Wl,'
18154         # All Alpha code is PIC.
18155         lt_prog_compiler_static_GCJ='-non_shared'
18156         ;;
18157       *)
18158         case `$CC -V 2>&1 | sed 5q` in
18159         *Sun\ C*)
18160           # Sun C 5.9
18161           lt_prog_compiler_pic_GCJ='-KPIC'
18162           lt_prog_compiler_static_GCJ='-Bstatic'
18163           lt_prog_compiler_wl_GCJ='-Wl,'
18164           ;;
18165         *Sun\ F*)
18166           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18167           lt_prog_compiler_pic_GCJ='-KPIC'
18168           lt_prog_compiler_static_GCJ='-Bstatic'
18169           lt_prog_compiler_wl_GCJ=''
18170           ;;
18171         esac
18172         ;;
18173       esac
18174       ;;
18175
18176     osf3* | osf4* | osf5*)
18177       lt_prog_compiler_wl_GCJ='-Wl,'
18178       # All OSF/1 code is PIC.
18179       lt_prog_compiler_static_GCJ='-non_shared'
18180       ;;
18181
18182     rdos*)
18183       lt_prog_compiler_static_GCJ='-non_shared'
18184       ;;
18185
18186     solaris*)
18187       lt_prog_compiler_pic_GCJ='-KPIC'
18188       lt_prog_compiler_static_GCJ='-Bstatic'
18189       case $cc_basename in
18190       f77* | f90* | f95*)
18191         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18192       *)
18193         lt_prog_compiler_wl_GCJ='-Wl,';;
18194       esac
18195       ;;
18196
18197     sunos4*)
18198       lt_prog_compiler_wl_GCJ='-Qoption ld '
18199       lt_prog_compiler_pic_GCJ='-PIC'
18200       lt_prog_compiler_static_GCJ='-Bstatic'
18201       ;;
18202
18203     sysv4 | sysv4.2uw2* | sysv4.3*)
18204       lt_prog_compiler_wl_GCJ='-Wl,'
18205       lt_prog_compiler_pic_GCJ='-KPIC'
18206       lt_prog_compiler_static_GCJ='-Bstatic'
18207       ;;
18208
18209     sysv4*MP*)
18210       if test -d /usr/nec ;then
18211         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18212         lt_prog_compiler_static_GCJ='-Bstatic'
18213       fi
18214       ;;
18215
18216     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18217       lt_prog_compiler_wl_GCJ='-Wl,'
18218       lt_prog_compiler_pic_GCJ='-KPIC'
18219       lt_prog_compiler_static_GCJ='-Bstatic'
18220       ;;
18221
18222     unicos*)
18223       lt_prog_compiler_wl_GCJ='-Wl,'
18224       lt_prog_compiler_can_build_shared_GCJ=no
18225       ;;
18226
18227     uts4*)
18228       lt_prog_compiler_pic_GCJ='-pic'
18229       lt_prog_compiler_static_GCJ='-Bstatic'
18230       ;;
18231
18232     *)
18233       lt_prog_compiler_can_build_shared_GCJ=no
18234       ;;
18235     esac
18236   fi
18237
18238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18240
18241 #
18242 # Check to make sure the PIC flag actually works.
18243 #
18244 if test -n "$lt_prog_compiler_pic_GCJ"; then
18245
18246 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18248 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   lt_prog_compiler_pic_works_GCJ=no
18252   ac_outfile=conftest.$ac_objext
18253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18254    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18255    # Insert the option either (1) after the last *FLAGS variable, or
18256    # (2) before a word containing "conftest.", or (3) at the end.
18257    # Note that $ac_compile itself does not contain backslashes and begins
18258    # with a dollar sign (not a hyphen), so the echo should work correctly.
18259    # The option is referenced via a variable to avoid confusing sed.
18260    lt_compile=`echo "$ac_compile" | $SED \
18261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18263    -e 's:$: $lt_compiler_flag:'`
18264    (eval echo "\"\$as_me:18264: $lt_compile\"" >&5)
18265    (eval "$lt_compile" 2>conftest.err)
18266    ac_status=$?
18267    cat conftest.err >&5
18268    echo "$as_me:18268: \$? = $ac_status" >&5
18269    if (exit $ac_status) && test -s "$ac_outfile"; then
18270      # The compiler can only warn and ignore the option if not recognized
18271      # So say no if there are warnings other than the usual output.
18272      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18273      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18274      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18275        lt_prog_compiler_pic_works_GCJ=yes
18276      fi
18277    fi
18278    $rm conftest*
18279
18280 fi
18281 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18282 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18283
18284 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18285     case $lt_prog_compiler_pic_GCJ in
18286      "" | " "*) ;;
18287      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18288      esac
18289 else
18290     lt_prog_compiler_pic_GCJ=
18291      lt_prog_compiler_can_build_shared_GCJ=no
18292 fi
18293
18294 fi
18295 case $host_os in
18296   # For platforms which do not support PIC, -DPIC is meaningless:
18297   *djgpp*)
18298     lt_prog_compiler_pic_GCJ=
18299     ;;
18300   *)
18301     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18302     ;;
18303 esac
18304
18305 #
18306 # Check to make sure the static flag actually works.
18307 #
18308 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18309 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18310 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18311 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18312   echo $ECHO_N "(cached) $ECHO_C" >&6
18313 else
18314   lt_prog_compiler_static_works_GCJ=no
18315    save_LDFLAGS="$LDFLAGS"
18316    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18317    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18318    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18319      # The linker can only warn and ignore the option if not recognized
18320      # So say no if there are warnings
18321      if test -s conftest.err; then
18322        # Append any errors to the config.log.
18323        cat conftest.err 1>&5
18324        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18325        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18326        if diff conftest.exp conftest.er2 >/dev/null; then
18327          lt_prog_compiler_static_works_GCJ=yes
18328        fi
18329      else
18330        lt_prog_compiler_static_works_GCJ=yes
18331      fi
18332    fi
18333    $rm conftest*
18334    LDFLAGS="$save_LDFLAGS"
18335
18336 fi
18337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18338 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18339
18340 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18341     :
18342 else
18343     lt_prog_compiler_static_GCJ=
18344 fi
18345
18346
18347 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18349 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352   lt_cv_prog_compiler_c_o_GCJ=no
18353    $rm -r conftest 2>/dev/null
18354    mkdir conftest
18355    cd conftest
18356    mkdir out
18357    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18358
18359    lt_compiler_flag="-o out/conftest2.$ac_objext"
18360    # Insert the option either (1) after the last *FLAGS variable, or
18361    # (2) before a word containing "conftest.", or (3) at the end.
18362    # Note that $ac_compile itself does not contain backslashes and begins
18363    # with a dollar sign (not a hyphen), so the echo should work correctly.
18364    lt_compile=`echo "$ac_compile" | $SED \
18365    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18366    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18367    -e 's:$: $lt_compiler_flag:'`
18368    (eval echo "\"\$as_me:18368: $lt_compile\"" >&5)
18369    (eval "$lt_compile" 2>out/conftest.err)
18370    ac_status=$?
18371    cat out/conftest.err >&5
18372    echo "$as_me:18372: \$? = $ac_status" >&5
18373    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18374    then
18375      # The compiler can only warn and ignore the option if not recognized
18376      # So say no if there are warnings
18377      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18378      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18379      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18380        lt_cv_prog_compiler_c_o_GCJ=yes
18381      fi
18382    fi
18383    chmod u+w . 2>&5
18384    $rm conftest*
18385    # SGI C++ compiler will create directory out/ii_files/ for
18386    # template instantiation
18387    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18388    $rm out/* && rmdir out
18389    cd ..
18390    rmdir conftest
18391    $rm conftest*
18392
18393 fi
18394 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18396
18397
18398 hard_links="nottested"
18399 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18400   # do not overwrite the value of need_locks provided by the user
18401   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18402 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18403   hard_links=yes
18404   $rm conftest*
18405   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18406   touch conftest.a
18407   ln conftest.a conftest.b 2>&5 || hard_links=no
18408   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18409   { echo "$as_me:$LINENO: result: $hard_links" >&5
18410 echo "${ECHO_T}$hard_links" >&6; }
18411   if test "$hard_links" = no; then
18412     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18413 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18414     need_locks=warn
18415   fi
18416 else
18417   need_locks=no
18418 fi
18419
18420 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18422
18423   runpath_var=
18424   allow_undefined_flag_GCJ=
18425   enable_shared_with_static_runtimes_GCJ=no
18426   archive_cmds_GCJ=
18427   archive_expsym_cmds_GCJ=
18428   old_archive_From_new_cmds_GCJ=
18429   old_archive_from_expsyms_cmds_GCJ=
18430   export_dynamic_flag_spec_GCJ=
18431   whole_archive_flag_spec_GCJ=
18432   thread_safe_flag_spec_GCJ=
18433   hardcode_libdir_flag_spec_GCJ=
18434   hardcode_libdir_flag_spec_ld_GCJ=
18435   hardcode_libdir_separator_GCJ=
18436   hardcode_direct_GCJ=no
18437   hardcode_minus_L_GCJ=no
18438   hardcode_shlibpath_var_GCJ=unsupported
18439   link_all_deplibs_GCJ=unknown
18440   hardcode_automatic_GCJ=no
18441   module_cmds_GCJ=
18442   module_expsym_cmds_GCJ=
18443   always_export_symbols_GCJ=no
18444   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18445   # include_expsyms should be a list of space-separated symbols to be *always*
18446   # included in the symbol list
18447   include_expsyms_GCJ=
18448   # exclude_expsyms can be an extended regexp of symbols to exclude
18449   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18450   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18451   # as well as any symbol that contains `d'.
18452   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18453   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18454   # platforms (ab)use it in PIC code, but their linkers get confused if
18455   # the symbol is explicitly referenced.  Since portable code cannot
18456   # rely on this symbol name, it's probably fine to never include it in
18457   # preloaded symbol tables.
18458   extract_expsyms_cmds=
18459   # Just being paranoid about ensuring that cc_basename is set.
18460   for cc_temp in $compiler""; do
18461   case $cc_temp in
18462     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18463     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18464     \-*) ;;
18465     *) break;;
18466   esac
18467 done
18468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18469
18470   case $host_os in
18471   cygwin* | mingw* | pw32*)
18472     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18473     # When not using gcc, we currently assume that we are using
18474     # Microsoft Visual C++.
18475     if test "$GCC" != yes; then
18476       with_gnu_ld=no
18477     fi
18478     ;;
18479   interix*)
18480     # we just hope/assume this is gcc and not c89 (= MSVC++)
18481     with_gnu_ld=yes
18482     ;;
18483   openbsd*)
18484     with_gnu_ld=no
18485     ;;
18486   esac
18487
18488   ld_shlibs_GCJ=yes
18489   if test "$with_gnu_ld" = yes; then
18490     # If archive_cmds runs LD, not CC, wlarc should be empty
18491     wlarc='${wl}'
18492
18493     # Set some defaults for GNU ld with shared library support. These
18494     # are reset later if shared libraries are not supported. Putting them
18495     # here allows them to be overridden if necessary.
18496     runpath_var=LD_RUN_PATH
18497     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18498     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18499     # ancient GNU ld didn't support --whole-archive et. al.
18500     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18501         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18502       else
18503         whole_archive_flag_spec_GCJ=
18504     fi
18505     supports_anon_versioning=no
18506     case `$LD -v 2>/dev/null` in
18507       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18508       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18509       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18510       *\ 2.11.*) ;; # other 2.11 versions
18511       *) supports_anon_versioning=yes ;;
18512     esac
18513
18514     # See if GNU ld supports shared libraries.
18515     case $host_os in
18516     aix3* | aix4* | aix5*)
18517       # On AIX/PPC, the GNU linker is very broken
18518       if test "$host_cpu" != ia64; then
18519         ld_shlibs_GCJ=no
18520         cat <<EOF 1>&2
18521
18522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18523 *** to be unable to reliably create shared libraries on AIX.
18524 *** Therefore, libtool is disabling shared libraries support.  If you
18525 *** really care for shared libraries, you may want to modify your PATH
18526 *** so that a non-GNU linker is found, and then restart.
18527
18528 EOF
18529       fi
18530       ;;
18531
18532     amigaos*)
18533       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)'
18534       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18535       hardcode_minus_L_GCJ=yes
18536
18537       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18538       # that the semantics of dynamic libraries on AmigaOS, at least up
18539       # to version 4, is to share data among multiple programs linked
18540       # with the same dynamic library.  Since this doesn't match the
18541       # behavior of shared libraries on other platforms, we can't use
18542       # them.
18543       ld_shlibs_GCJ=no
18544       ;;
18545
18546     beos*)
18547       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18548         allow_undefined_flag_GCJ=unsupported
18549         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18550         # support --undefined.  This deserves some investigation.  FIXME
18551         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18552       else
18553         ld_shlibs_GCJ=no
18554       fi
18555       ;;
18556
18557     cygwin* | mingw* | pw32*)
18558       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18559       # as there is no search path for DLLs.
18560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18561       allow_undefined_flag_GCJ=unsupported
18562       always_export_symbols_GCJ=no
18563       enable_shared_with_static_runtimes_GCJ=yes
18564       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18565
18566       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18567         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18568         # If the export-symbols file already is a .def file (1st line
18569         # is EXPORTS), use it as is; otherwise, prepend...
18570         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18571           cp $export_symbols $output_objdir/$soname.def;
18572         else
18573           echo EXPORTS > $output_objdir/$soname.def;
18574           cat $export_symbols >> $output_objdir/$soname.def;
18575         fi~
18576         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18577       else
18578         ld_shlibs_GCJ=no
18579       fi
18580       ;;
18581
18582     interix[3-9]*)
18583       hardcode_direct_GCJ=no
18584       hardcode_shlibpath_var_GCJ=no
18585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18586       export_dynamic_flag_spec_GCJ='${wl}-E'
18587       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18588       # Instead, shared libraries are loaded at an image base (0x10000000 by
18589       # default) and relocated if they conflict, which is a slow very memory
18590       # consuming and fragmenting process.  To avoid this, we pick a random,
18591       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18592       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18593       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'
18594       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'
18595       ;;
18596
18597     gnu* | linux* | k*bsd*-gnu)
18598       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18599         tmp_addflag=
18600         case $cc_basename,$host_cpu in
18601         pgcc*)                          # Portland Group C compiler
18602           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'
18603           tmp_addflag=' $pic_flag'
18604           ;;
18605         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18606           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'
18607           tmp_addflag=' $pic_flag -Mnomain' ;;
18608         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18609           tmp_addflag=' -i_dynamic' ;;
18610         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18611           tmp_addflag=' -i_dynamic -nofor_main' ;;
18612         ifc* | ifort*)                  # Intel Fortran compiler
18613           tmp_addflag=' -nofor_main' ;;
18614         esac
18615         case `$CC -V 2>&1 | sed 5q` in
18616         *Sun\ C*)                       # Sun C 5.9
18617           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'
18618           tmp_sharedflag='-G' ;;
18619         *Sun\ F*)                       # Sun Fortran 8.3
18620           tmp_sharedflag='-G' ;;
18621         *)
18622           tmp_sharedflag='-shared' ;;
18623         esac
18624         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625
18626         if test $supports_anon_versioning = yes; then
18627           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18628   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18629   $echo "local: *; };" >> $output_objdir/$libname.ver~
18630           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18631         fi
18632       else
18633         ld_shlibs_GCJ=no
18634       fi
18635       ;;
18636
18637     netbsd*)
18638       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18639         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18640         wlarc=
18641       else
18642         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18644       fi
18645       ;;
18646
18647     solaris*)
18648       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18649         ld_shlibs_GCJ=no
18650         cat <<EOF 1>&2
18651
18652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18653 *** create shared libraries on Solaris systems.  Therefore, libtool
18654 *** is disabling shared libraries support.  We urge you to upgrade GNU
18655 *** binutils to release 2.9.1 or newer.  Another option is to modify
18656 *** your PATH or compiler configuration so that the native linker is
18657 *** used, and then restart.
18658
18659 EOF
18660       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18661         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18663       else
18664         ld_shlibs_GCJ=no
18665       fi
18666       ;;
18667
18668     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18669       case `$LD -v 2>&1` in
18670         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18671         ld_shlibs_GCJ=no
18672         cat <<_LT_EOF 1>&2
18673
18674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18675 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18676 *** is disabling shared libraries support.  We urge you to upgrade GNU
18677 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18678 *** your PATH or compiler configuration so that the native linker is
18679 *** used, and then restart.
18680
18681 _LT_EOF
18682         ;;
18683         *)
18684           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18685             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18686             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18687             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18688           else
18689             ld_shlibs_GCJ=no
18690           fi
18691         ;;
18692       esac
18693       ;;
18694
18695     sunos4*)
18696       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18697       wlarc=
18698       hardcode_direct_GCJ=yes
18699       hardcode_shlibpath_var_GCJ=no
18700       ;;
18701
18702     *)
18703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18704         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18706       else
18707         ld_shlibs_GCJ=no
18708       fi
18709       ;;
18710     esac
18711
18712     if test "$ld_shlibs_GCJ" = no; then
18713       runpath_var=
18714       hardcode_libdir_flag_spec_GCJ=
18715       export_dynamic_flag_spec_GCJ=
18716       whole_archive_flag_spec_GCJ=
18717     fi
18718   else
18719     # PORTME fill in a description of your system's linker (not GNU ld)
18720     case $host_os in
18721     aix3*)
18722       allow_undefined_flag_GCJ=unsupported
18723       always_export_symbols_GCJ=yes
18724       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'
18725       # Note: this linker hardcodes the directories in LIBPATH if there
18726       # are no directories specified by -L.
18727       hardcode_minus_L_GCJ=yes
18728       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18729         # Neither direct hardcoding nor static linking is supported with a
18730         # broken collect2.
18731         hardcode_direct_GCJ=unsupported
18732       fi
18733       ;;
18734
18735     aix4* | aix5*)
18736       if test "$host_cpu" = ia64; then
18737         # On IA64, the linker does run time linking by default, so we don't
18738         # have to do anything special.
18739         aix_use_runtimelinking=no
18740         exp_sym_flag='-Bexport'
18741         no_entry_flag=""
18742       else
18743         # If we're using GNU nm, then we don't want the "-C" option.
18744         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18745         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18746           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'
18747         else
18748           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'
18749         fi
18750         aix_use_runtimelinking=no
18751
18752         # Test if we are trying to use run time linking or normal
18753         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18754         # need to do runtime linking.
18755         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18756           for ld_flag in $LDFLAGS; do
18757           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18758             aix_use_runtimelinking=yes
18759             break
18760           fi
18761           done
18762           ;;
18763         esac
18764
18765         exp_sym_flag='-bexport'
18766         no_entry_flag='-bnoentry'
18767       fi
18768
18769       # When large executables or shared objects are built, AIX ld can
18770       # have problems creating the table of contents.  If linking a library
18771       # or program results in "error TOC overflow" add -mminimal-toc to
18772       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18773       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18774
18775       archive_cmds_GCJ=''
18776       hardcode_direct_GCJ=yes
18777       hardcode_libdir_separator_GCJ=':'
18778       link_all_deplibs_GCJ=yes
18779
18780       if test "$GCC" = yes; then
18781         case $host_os in aix4.[012]|aix4.[012].*)
18782         # We only want to do this on AIX 4.2 and lower, the check
18783         # below for broken collect2 doesn't work under 4.3+
18784           collect2name=`${CC} -print-prog-name=collect2`
18785           if test -f "$collect2name" && \
18786            strings "$collect2name" | grep resolve_lib_name >/dev/null
18787           then
18788           # We have reworked collect2
18789           :
18790           else
18791           # We have old collect2
18792           hardcode_direct_GCJ=unsupported
18793           # It fails to find uninstalled libraries when the uninstalled
18794           # path is not listed in the libpath.  Setting hardcode_minus_L
18795           # to unsupported forces relinking
18796           hardcode_minus_L_GCJ=yes
18797           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18798           hardcode_libdir_separator_GCJ=
18799           fi
18800           ;;
18801         esac
18802         shared_flag='-shared'
18803         if test "$aix_use_runtimelinking" = yes; then
18804           shared_flag="$shared_flag "'${wl}-G'
18805         fi
18806       else
18807         # not using gcc
18808         if test "$host_cpu" = ia64; then
18809         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18810         # chokes on -Wl,-G. The following line is correct:
18811           shared_flag='-G'
18812         else
18813           if test "$aix_use_runtimelinking" = yes; then
18814             shared_flag='${wl}-G'
18815           else
18816             shared_flag='${wl}-bM:SRE'
18817           fi
18818         fi
18819       fi
18820
18821       # It seems that -bexpall does not export symbols beginning with
18822       # underscore (_), so it is better to generate a list of symbols to export.
18823       always_export_symbols_GCJ=yes
18824       if test "$aix_use_runtimelinking" = yes; then
18825         # Warning - without using the other runtime loading flags (-brtl),
18826         # -berok will link without error, but may produce a broken library.
18827         allow_undefined_flag_GCJ='-berok'
18828        # Determine the default libpath from the value encoded in an empty executable.
18829        cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836 int
18837 main ()
18838 {
18839
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851   (eval "$ac_link") 2>conftest.er1
18852   ac_status=$?
18853   grep -v '^ *+' conftest.er1 >conftest.err
18854   rm -f conftest.er1
18855   cat conftest.err >&5
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); } && {
18858          test -z "$ac_c_werror_flag" ||
18859          test ! -s conftest.err
18860        } && test -s conftest$ac_exeext &&
18861        $as_test_x conftest$ac_exeext; then
18862
18863 lt_aix_libpath_sed='
18864     /Import File Strings/,/^$/ {
18865         /^0/ {
18866             s/^0  *\(.*\)$/\1/
18867             p
18868         }
18869     }'
18870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18871 # Check for a 64-bit object if we didn't find anything.
18872 if test -z "$aix_libpath"; then
18873   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18874 fi
18875 else
18876   echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879
18880 fi
18881
18882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18883       conftest$ac_exeext conftest.$ac_ext
18884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18885
18886        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18887         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"
18888        else
18889         if test "$host_cpu" = ia64; then
18890           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18891           allow_undefined_flag_GCJ="-z nodefs"
18892           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"
18893         else
18894          # Determine the default libpath from the value encoded in an empty executable.
18895          cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902 int
18903 main ()
18904 {
18905
18906   ;
18907   return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_link") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } && {
18924          test -z "$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        } && test -s conftest$ac_exeext &&
18927        $as_test_x conftest$ac_exeext; then
18928
18929 lt_aix_libpath_sed='
18930     /Import File Strings/,/^$/ {
18931         /^0/ {
18932             s/^0  *\(.*\)$/\1/
18933             p
18934         }
18935     }'
18936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18937 # Check for a 64-bit object if we didn't find anything.
18938 if test -z "$aix_libpath"; then
18939   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18940 fi
18941 else
18942   echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945
18946 fi
18947
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949       conftest$ac_exeext conftest.$ac_ext
18950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18951
18952          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18953           # Warning - without using the other run time loading flags,
18954           # -berok will link without error, but may produce a broken library.
18955           no_undefined_flag_GCJ=' ${wl}-bernotok'
18956           allow_undefined_flag_GCJ=' ${wl}-berok'
18957           # Exported symbols can be pulled into shared objects from archives
18958           whole_archive_flag_spec_GCJ='$convenience'
18959           archive_cmds_need_lc_GCJ=yes
18960           # This is similar to how AIX traditionally builds its shared libraries.
18961           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'
18962         fi
18963       fi
18964       ;;
18965
18966     amigaos*)
18967       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)'
18968       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18969       hardcode_minus_L_GCJ=yes
18970       # see comment about different semantics on the GNU ld section
18971       ld_shlibs_GCJ=no
18972       ;;
18973
18974     bsdi[45]*)
18975       export_dynamic_flag_spec_GCJ=-rdynamic
18976       ;;
18977
18978     cygwin* | mingw* | pw32*)
18979       # When not using gcc, we currently assume that we are using
18980       # Microsoft Visual C++.
18981       # hardcode_libdir_flag_spec is actually meaningless, as there is
18982       # no search path for DLLs.
18983       hardcode_libdir_flag_spec_GCJ=' '
18984       allow_undefined_flag_GCJ=unsupported
18985       # Tell ltmain to make .lib files, not .a files.
18986       libext=lib
18987       # Tell ltmain to make .dll files, not .so files.
18988       shrext_cmds=".dll"
18989       # FIXME: Setting linknames here is a bad hack.
18990       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18991       # The linker will automatically build a .lib file if we build a DLL.
18992       old_archive_From_new_cmds_GCJ='true'
18993       # FIXME: Should let the user specify the lib program.
18994       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18995       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18996       enable_shared_with_static_runtimes_GCJ=yes
18997       ;;
18998
18999     darwin* | rhapsody*)
19000       case $host_os in
19001         rhapsody* | darwin1.[012])
19002          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19003          ;;
19004        *) # Darwin 1.3 on
19005          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19006            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19007          else
19008            case ${MACOSX_DEPLOYMENT_TARGET} in
19009              10.[012])
19010                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19011                ;;
19012              10.*)
19013                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19014                ;;
19015            esac
19016          fi
19017          ;;
19018       esac
19019       archive_cmds_need_lc_GCJ=no
19020       hardcode_direct_GCJ=no
19021       hardcode_automatic_GCJ=yes
19022       hardcode_shlibpath_var_GCJ=unsupported
19023       whole_archive_flag_spec_GCJ=''
19024       link_all_deplibs_GCJ=yes
19025     if test "$GCC" = yes ; then
19026         output_verbose_link_cmd='echo'
19027         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19028       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19029       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19030       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19031       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}'
19032     else
19033       case $cc_basename in
19034         xlc*)
19035          output_verbose_link_cmd='echo'
19036          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19037          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19038           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19039          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}'
19040           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}'
19041           ;;
19042        *)
19043          ld_shlibs_GCJ=no
19044           ;;
19045       esac
19046     fi
19047       ;;
19048
19049     dgux*)
19050       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19051       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19052       hardcode_shlibpath_var_GCJ=no
19053       ;;
19054
19055     freebsd1*)
19056       ld_shlibs_GCJ=no
19057       ;;
19058
19059     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19060     # support.  Future versions do this automatically, but an explicit c++rt0.o
19061     # does not break anything, and helps significantly (at the cost of a little
19062     # extra space).
19063     freebsd2.2*)
19064       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19065       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19066       hardcode_direct_GCJ=yes
19067       hardcode_shlibpath_var_GCJ=no
19068       ;;
19069
19070     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19071     freebsd2*)
19072       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19073       hardcode_direct_GCJ=yes
19074       hardcode_minus_L_GCJ=yes
19075       hardcode_shlibpath_var_GCJ=no
19076       ;;
19077
19078     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19079     freebsd* | dragonfly*)
19080       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19081       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19082       hardcode_direct_GCJ=yes
19083       hardcode_shlibpath_var_GCJ=no
19084       ;;
19085
19086     hpux9*)
19087       if test "$GCC" = yes; then
19088         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'
19089       else
19090         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'
19091       fi
19092       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19093       hardcode_libdir_separator_GCJ=:
19094       hardcode_direct_GCJ=yes
19095
19096       # hardcode_minus_L: Not really in the search PATH,
19097       # but as the default location of the library.
19098       hardcode_minus_L_GCJ=yes
19099       export_dynamic_flag_spec_GCJ='${wl}-E'
19100       ;;
19101
19102     hpux10*)
19103       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19104         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19105       else
19106         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19107       fi
19108       if test "$with_gnu_ld" = no; then
19109         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110         hardcode_libdir_separator_GCJ=:
19111
19112         hardcode_direct_GCJ=yes
19113         export_dynamic_flag_spec_GCJ='${wl}-E'
19114
19115         # hardcode_minus_L: Not really in the search PATH,
19116         # but as the default location of the library.
19117         hardcode_minus_L_GCJ=yes
19118       fi
19119       ;;
19120
19121     hpux11*)
19122       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19123         case $host_cpu in
19124         hppa*64*)
19125           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19126           ;;
19127         ia64*)
19128           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19129           ;;
19130         *)
19131           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19132           ;;
19133         esac
19134       else
19135         case $host_cpu in
19136         hppa*64*)
19137           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138           ;;
19139         ia64*)
19140           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19141           ;;
19142         *)
19143           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19144           ;;
19145         esac
19146       fi
19147       if test "$with_gnu_ld" = no; then
19148         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19149         hardcode_libdir_separator_GCJ=:
19150
19151         case $host_cpu in
19152         hppa*64*|ia64*)
19153           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19154           hardcode_direct_GCJ=no
19155           hardcode_shlibpath_var_GCJ=no
19156           ;;
19157         *)
19158           hardcode_direct_GCJ=yes
19159           export_dynamic_flag_spec_GCJ='${wl}-E'
19160
19161           # hardcode_minus_L: Not really in the search PATH,
19162           # but as the default location of the library.
19163           hardcode_minus_L_GCJ=yes
19164           ;;
19165         esac
19166       fi
19167       ;;
19168
19169     irix5* | irix6* | nonstopux*)
19170       if test "$GCC" = yes; then
19171         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'
19172       else
19173         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'
19174         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19175       fi
19176       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19177       hardcode_libdir_separator_GCJ=:
19178       link_all_deplibs_GCJ=yes
19179       ;;
19180
19181     netbsd*)
19182       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19183         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19184       else
19185         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19186       fi
19187       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19188       hardcode_direct_GCJ=yes
19189       hardcode_shlibpath_var_GCJ=no
19190       ;;
19191
19192     newsos6)
19193       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19194       hardcode_direct_GCJ=yes
19195       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19196       hardcode_libdir_separator_GCJ=:
19197       hardcode_shlibpath_var_GCJ=no
19198       ;;
19199
19200     openbsd*)
19201       if test -f /usr/libexec/ld.so; then
19202         hardcode_direct_GCJ=yes
19203         hardcode_shlibpath_var_GCJ=no
19204         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19205           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19206           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19207           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19208           export_dynamic_flag_spec_GCJ='${wl}-E'
19209         else
19210           case $host_os in
19211            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19212              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19213              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19214              ;;
19215            *)
19216              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19217              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19218              ;;
19219           esac
19220         fi
19221       else
19222         ld_shlibs_GCJ=no
19223       fi
19224       ;;
19225
19226     os2*)
19227       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19228       hardcode_minus_L_GCJ=yes
19229       allow_undefined_flag_GCJ=unsupported
19230       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'
19231       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19232       ;;
19233
19234     osf3*)
19235       if test "$GCC" = yes; then
19236         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19237         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'
19238       else
19239         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19240         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'
19241       fi
19242       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19243       hardcode_libdir_separator_GCJ=:
19244       ;;
19245
19246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19247       if test "$GCC" = yes; then
19248         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19249         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'
19250         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19251       else
19252         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19253         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'
19254         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~
19255         $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'
19256
19257         # Both c and cxx compiler support -rpath directly
19258         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19259       fi
19260       hardcode_libdir_separator_GCJ=:
19261       ;;
19262
19263     solaris*)
19264       no_undefined_flag_GCJ=' -z text'
19265       if test "$GCC" = yes; then
19266         wlarc='${wl}'
19267         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19268         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19269           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19270       else
19271         wlarc=''
19272         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19273         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19274         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19275       fi
19276       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19277       hardcode_shlibpath_var_GCJ=no
19278       case $host_os in
19279       solaris2.[0-5] | solaris2.[0-5].*) ;;
19280       *)
19281         # The compiler driver will combine and reorder linker options,
19282         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19283         # but is careful enough not to reorder.
19284         # Supported since Solaris 2.6 (maybe 2.5.1?)
19285         if test "$GCC" = yes; then
19286           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19287         else
19288           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19289         fi
19290         ;;
19291       esac
19292       link_all_deplibs_GCJ=yes
19293       ;;
19294
19295     sunos4*)
19296       if test "x$host_vendor" = xsequent; then
19297         # Use $CC to link under sequent, because it throws in some extra .o
19298         # files that make .init and .fini sections work.
19299         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19300       else
19301         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19302       fi
19303       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19304       hardcode_direct_GCJ=yes
19305       hardcode_minus_L_GCJ=yes
19306       hardcode_shlibpath_var_GCJ=no
19307       ;;
19308
19309     sysv4)
19310       case $host_vendor in
19311         sni)
19312           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19313           hardcode_direct_GCJ=yes # is this really true???
19314         ;;
19315         siemens)
19316           ## LD is ld it makes a PLAMLIB
19317           ## CC just makes a GrossModule.
19318           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19319           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19320           hardcode_direct_GCJ=no
19321         ;;
19322         motorola)
19323           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19324           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19325         ;;
19326       esac
19327       runpath_var='LD_RUN_PATH'
19328       hardcode_shlibpath_var_GCJ=no
19329       ;;
19330
19331     sysv4.3*)
19332       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19333       hardcode_shlibpath_var_GCJ=no
19334       export_dynamic_flag_spec_GCJ='-Bexport'
19335       ;;
19336
19337     sysv4*MP*)
19338       if test -d /usr/nec; then
19339         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19340         hardcode_shlibpath_var_GCJ=no
19341         runpath_var=LD_RUN_PATH
19342         hardcode_runpath_var=yes
19343         ld_shlibs_GCJ=yes
19344       fi
19345       ;;
19346
19347     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19348       no_undefined_flag_GCJ='${wl}-z,text'
19349       archive_cmds_need_lc_GCJ=no
19350       hardcode_shlibpath_var_GCJ=no
19351       runpath_var='LD_RUN_PATH'
19352
19353       if test "$GCC" = yes; then
19354         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19355         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19356       else
19357         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19358         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19359       fi
19360       ;;
19361
19362     sysv5* | sco3.2v5* | sco5v6*)
19363       # Note: We can NOT use -z defs as we might desire, because we do not
19364       # link with -lc, and that would cause any symbols used from libc to
19365       # always be unresolved, which means just about no library would
19366       # ever link correctly.  If we're not using GNU ld we use -z text
19367       # though, which does catch some bad symbols but isn't as heavy-handed
19368       # as -z defs.
19369       no_undefined_flag_GCJ='${wl}-z,text'
19370       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19371       archive_cmds_need_lc_GCJ=no
19372       hardcode_shlibpath_var_GCJ=no
19373       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19374       hardcode_libdir_separator_GCJ=':'
19375       link_all_deplibs_GCJ=yes
19376       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19377       runpath_var='LD_RUN_PATH'
19378
19379       if test "$GCC" = yes; then
19380         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19381         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19382       else
19383         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19384         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19385       fi
19386       ;;
19387
19388     uts4*)
19389       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19390       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19391       hardcode_shlibpath_var_GCJ=no
19392       ;;
19393
19394     *)
19395       ld_shlibs_GCJ=no
19396       ;;
19397     esac
19398   fi
19399
19400 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19401 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19402 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19403
19404 #
19405 # Do we need to explicitly link libc?
19406 #
19407 case "x$archive_cmds_need_lc_GCJ" in
19408 x|xyes)
19409   # Assume -lc should be added
19410   archive_cmds_need_lc_GCJ=yes
19411
19412   if test "$enable_shared" = yes && test "$GCC" = yes; then
19413     case $archive_cmds_GCJ in
19414     *'~'*)
19415       # FIXME: we may have to deal with multi-command sequences.
19416       ;;
19417     '$CC '*)
19418       # Test whether the compiler implicitly links with -lc since on some
19419       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19420       # to ld, don't add -lc before -lgcc.
19421       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19422 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19423       $rm conftest*
19424       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19425
19426       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427   (eval $ac_compile) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } 2>conftest.err; then
19431         soname=conftest
19432         lib=conftest
19433         libobjs=conftest.$ac_objext
19434         deplibs=
19435         wl=$lt_prog_compiler_wl_GCJ
19436         pic_flag=$lt_prog_compiler_pic_GCJ
19437         compiler_flags=-v
19438         linker_flags=-v
19439         verstring=
19440         output_objdir=.
19441         libname=conftest
19442         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19443         allow_undefined_flag_GCJ=
19444         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19445   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); }
19449         then
19450           archive_cmds_need_lc_GCJ=no
19451         else
19452           archive_cmds_need_lc_GCJ=yes
19453         fi
19454         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19455       else
19456         cat conftest.err 1>&5
19457       fi
19458       $rm conftest*
19459       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19460 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19461       ;;
19462     esac
19463   fi
19464   ;;
19465 esac
19466
19467 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19468 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19469 library_names_spec=
19470 libname_spec='lib$name'
19471 soname_spec=
19472 shrext_cmds=".so"
19473 postinstall_cmds=
19474 postuninstall_cmds=
19475 finish_cmds=
19476 finish_eval=
19477 shlibpath_var=
19478 shlibpath_overrides_runpath=unknown
19479 version_type=none
19480 dynamic_linker="$host_os ld.so"
19481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19482
19483 need_lib_prefix=unknown
19484 hardcode_into_libs=no
19485
19486 # when you set need_version to no, make sure it does not cause -set_version
19487 # flags to be left without arguments
19488 need_version=unknown
19489
19490 case $host_os in
19491 aix3*)
19492   version_type=linux
19493   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19494   shlibpath_var=LIBPATH
19495
19496   # AIX 3 has no versioning support, so we append a major version to the name.
19497   soname_spec='${libname}${release}${shared_ext}$major'
19498   ;;
19499
19500 aix4* | aix5*)
19501   version_type=linux
19502   need_lib_prefix=no
19503   need_version=no
19504   hardcode_into_libs=yes
19505   if test "$host_cpu" = ia64; then
19506     # AIX 5 supports IA64
19507     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19508     shlibpath_var=LD_LIBRARY_PATH
19509   else
19510     # With GCC up to 2.95.x, collect2 would create an import file
19511     # for dependence libraries.  The import file would start with
19512     # the line `#! .'.  This would cause the generated library to
19513     # depend on `.', always an invalid library.  This was fixed in
19514     # development snapshots of GCC prior to 3.0.
19515     case $host_os in
19516       aix4 | aix4.[01] | aix4.[01].*)
19517       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19518            echo ' yes '
19519            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19520         :
19521       else
19522         can_build_shared=no
19523       fi
19524       ;;
19525     esac
19526     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19527     # soname into executable. Probably we can add versioning support to
19528     # collect2, so additional links can be useful in future.
19529     if test "$aix_use_runtimelinking" = yes; then
19530       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19531       # instead of lib<name>.a to let people know that these are not
19532       # typical AIX shared libraries.
19533       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534     else
19535       # We preserve .a as extension for shared libraries through AIX4.2
19536       # and later when we are not doing run time linking.
19537       library_names_spec='${libname}${release}.a $libname.a'
19538       soname_spec='${libname}${release}${shared_ext}$major'
19539     fi
19540     shlibpath_var=LIBPATH
19541   fi
19542   ;;
19543
19544 amigaos*)
19545   library_names_spec='$libname.ixlibrary $libname.a'
19546   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19547   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'
19548   ;;
19549
19550 beos*)
19551   library_names_spec='${libname}${shared_ext}'
19552   dynamic_linker="$host_os ld.so"
19553   shlibpath_var=LIBRARY_PATH
19554   ;;
19555
19556 bsdi[45]*)
19557   version_type=linux
19558   need_version=no
19559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19560   soname_spec='${libname}${release}${shared_ext}$major'
19561   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19562   shlibpath_var=LD_LIBRARY_PATH
19563   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19564   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19565   # the default ld.so.conf also contains /usr/contrib/lib and
19566   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19567   # libtool to hard-code these into programs
19568   ;;
19569
19570 cygwin* | mingw* | pw32*)
19571   version_type=windows
19572   shrext_cmds=".dll"
19573   need_version=no
19574   need_lib_prefix=no
19575
19576   case $GCC,$host_os in
19577   yes,cygwin* | yes,mingw* | yes,pw32*)
19578     library_names_spec='$libname.dll.a'
19579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19580     postinstall_cmds='base_file=`basename \${file}`~
19581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19582       dldir=$destdir/`dirname \$dlpath`~
19583       test -d \$dldir || mkdir -p \$dldir~
19584       $install_prog $dir/$dlname \$dldir/$dlname~
19585       chmod a+x \$dldir/$dlname'
19586     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19587       dlpath=$dir/\$dldll~
19588        $rm \$dlpath'
19589     shlibpath_overrides_runpath=yes
19590
19591     case $host_os in
19592     cygwin*)
19593       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19594       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19595       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19596       ;;
19597     mingw*)
19598       # MinGW DLLs use traditional 'lib' prefix
19599       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19600       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19601       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19602         # It is most probably a Windows format PATH printed by
19603         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19604         # path with ; separators, and with drive letters. We can handle the
19605         # drive letters (cygwin fileutils understands them), so leave them,
19606         # especially as we might pass files found there to a mingw objdump,
19607         # which wouldn't understand a cygwinified path. Ahh.
19608         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19609       else
19610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19611       fi
19612       ;;
19613     pw32*)
19614       # pw32 DLLs use 'pw' prefix rather than 'lib'
19615       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19616       ;;
19617     esac
19618     ;;
19619
19620   *)
19621     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19622     ;;
19623   esac
19624   dynamic_linker='Win32 ld.exe'
19625   # FIXME: first we should search . and the directory the executable is in
19626   shlibpath_var=PATH
19627   ;;
19628
19629 darwin* | rhapsody*)
19630   dynamic_linker="$host_os dyld"
19631   version_type=darwin
19632   need_lib_prefix=no
19633   need_version=no
19634   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19635   soname_spec='${libname}${release}${major}$shared_ext'
19636   shlibpath_overrides_runpath=yes
19637   shlibpath_var=DYLD_LIBRARY_PATH
19638   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19639
19640   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19641   ;;
19642
19643 dgux*)
19644   version_type=linux
19645   need_lib_prefix=no
19646   need_version=no
19647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19648   soname_spec='${libname}${release}${shared_ext}$major'
19649   shlibpath_var=LD_LIBRARY_PATH
19650   ;;
19651
19652 freebsd1*)
19653   dynamic_linker=no
19654   ;;
19655
19656 freebsd* | dragonfly*)
19657   # DragonFly does not have aout.  When/if they implement a new
19658   # versioning mechanism, adjust this.
19659   if test -x /usr/bin/objformat; then
19660     objformat=`/usr/bin/objformat`
19661   else
19662     case $host_os in
19663     freebsd[123]*) objformat=aout ;;
19664     *) objformat=elf ;;
19665     esac
19666   fi
19667   version_type=freebsd-$objformat
19668   case $version_type in
19669     freebsd-elf*)
19670       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19671       need_version=no
19672       need_lib_prefix=no
19673       ;;
19674     freebsd-*)
19675       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19676       need_version=yes
19677       ;;
19678   esac
19679   shlibpath_var=LD_LIBRARY_PATH
19680   case $host_os in
19681   freebsd2*)
19682     shlibpath_overrides_runpath=yes
19683     ;;
19684   freebsd3.[01]* | freebsdelf3.[01]*)
19685     shlibpath_overrides_runpath=yes
19686     hardcode_into_libs=yes
19687     ;;
19688   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19689   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19690     shlibpath_overrides_runpath=no
19691     hardcode_into_libs=yes
19692     ;;
19693   *) # from 4.6 on, and DragonFly
19694     shlibpath_overrides_runpath=yes
19695     hardcode_into_libs=yes
19696     ;;
19697   esac
19698   ;;
19699
19700 gnu*)
19701   version_type=linux
19702   need_lib_prefix=no
19703   need_version=no
19704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19705   soname_spec='${libname}${release}${shared_ext}$major'
19706   shlibpath_var=LD_LIBRARY_PATH
19707   hardcode_into_libs=yes
19708   ;;
19709
19710 hpux9* | hpux10* | hpux11*)
19711   # Give a soname corresponding to the major version so that dld.sl refuses to
19712   # link against other versions.
19713   version_type=sunos
19714   need_lib_prefix=no
19715   need_version=no
19716   case $host_cpu in
19717   ia64*)
19718     shrext_cmds='.so'
19719     hardcode_into_libs=yes
19720     dynamic_linker="$host_os dld.so"
19721     shlibpath_var=LD_LIBRARY_PATH
19722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724     soname_spec='${libname}${release}${shared_ext}$major'
19725     if test "X$HPUX_IA64_MODE" = X32; then
19726       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19727     else
19728       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19729     fi
19730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19731     ;;
19732    hppa*64*)
19733      shrext_cmds='.sl'
19734      hardcode_into_libs=yes
19735      dynamic_linker="$host_os dld.sl"
19736      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19737      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19739      soname_spec='${libname}${release}${shared_ext}$major'
19740      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19741      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19742      ;;
19743    *)
19744     shrext_cmds='.sl'
19745     dynamic_linker="$host_os dld.sl"
19746     shlibpath_var=SHLIB_PATH
19747     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19749     soname_spec='${libname}${release}${shared_ext}$major'
19750     ;;
19751   esac
19752   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19753   postinstall_cmds='chmod 555 $lib'
19754   ;;
19755
19756 interix[3-9]*)
19757   version_type=linux
19758   need_lib_prefix=no
19759   need_version=no
19760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19761   soname_spec='${libname}${release}${shared_ext}$major'
19762   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19763   shlibpath_var=LD_LIBRARY_PATH
19764   shlibpath_overrides_runpath=no
19765   hardcode_into_libs=yes
19766   ;;
19767
19768 irix5* | irix6* | nonstopux*)
19769   case $host_os in
19770     nonstopux*) version_type=nonstopux ;;
19771     *)
19772         if test "$lt_cv_prog_gnu_ld" = yes; then
19773                 version_type=linux
19774         else
19775                 version_type=irix
19776         fi ;;
19777   esac
19778   need_lib_prefix=no
19779   need_version=no
19780   soname_spec='${libname}${release}${shared_ext}$major'
19781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19782   case $host_os in
19783   irix5* | nonstopux*)
19784     libsuff= shlibsuff=
19785     ;;
19786   *)
19787     case $LD in # libtool.m4 will add one of these switches to LD
19788     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19789       libsuff= shlibsuff= libmagic=32-bit;;
19790     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19791       libsuff=32 shlibsuff=N32 libmagic=N32;;
19792     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19793       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19794     *) libsuff= shlibsuff= libmagic=never-match;;
19795     esac
19796     ;;
19797   esac
19798   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19799   shlibpath_overrides_runpath=no
19800   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19801   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19802   hardcode_into_libs=yes
19803   ;;
19804
19805 # No shared lib support for Linux oldld, aout, or coff.
19806 linux*oldld* | linux*aout* | linux*coff*)
19807   dynamic_linker=no
19808   ;;
19809
19810 # This must be Linux ELF.
19811 linux* | k*bsd*-gnu)
19812   version_type=linux
19813   need_lib_prefix=no
19814   need_version=no
19815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816   soname_spec='${libname}${release}${shared_ext}$major'
19817   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19818   shlibpath_var=LD_LIBRARY_PATH
19819   shlibpath_overrides_runpath=no
19820   # This implies no fast_install, which is unacceptable.
19821   # Some rework will be needed to allow for fast_install
19822   # before this can be enabled.
19823   hardcode_into_libs=yes
19824   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19825   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19826
19827   # Append ld.so.conf contents to the search path
19828   if test -f /etc/ld.so.conf; then
19829     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' ' '`
19830     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19831   fi
19832
19833   # We used to test for /lib/ld.so.1 and disable shared libraries on
19834   # powerpc, because MkLinux only supported shared libraries with the
19835   # GNU dynamic linker.  Since this was broken with cross compilers,
19836   # most powerpc-linux boxes support dynamic linking these days and
19837   # people can always --disable-shared, the test was removed, and we
19838   # assume the GNU/Linux dynamic linker is in use.
19839   dynamic_linker='GNU/Linux ld.so'
19840   ;;
19841
19842 netbsd*)
19843   version_type=sunos
19844   need_lib_prefix=no
19845   need_version=no
19846   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19849     dynamic_linker='NetBSD (a.out) ld.so'
19850   else
19851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19852     soname_spec='${libname}${release}${shared_ext}$major'
19853     dynamic_linker='NetBSD ld.elf_so'
19854   fi
19855   shlibpath_var=LD_LIBRARY_PATH
19856   shlibpath_overrides_runpath=yes
19857   hardcode_into_libs=yes
19858   ;;
19859
19860 newsos6)
19861   version_type=linux
19862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863   shlibpath_var=LD_LIBRARY_PATH
19864   shlibpath_overrides_runpath=yes
19865   ;;
19866
19867 nto-qnx*)
19868   version_type=linux
19869   need_lib_prefix=no
19870   need_version=no
19871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872   soname_spec='${libname}${release}${shared_ext}$major'
19873   shlibpath_var=LD_LIBRARY_PATH
19874   shlibpath_overrides_runpath=yes
19875   ;;
19876
19877 openbsd*)
19878   version_type=sunos
19879   sys_lib_dlsearch_path_spec="/usr/lib"
19880   need_lib_prefix=no
19881   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19882   case $host_os in
19883     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19884     *)                         need_version=no  ;;
19885   esac
19886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19888   shlibpath_var=LD_LIBRARY_PATH
19889   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19890     case $host_os in
19891       openbsd2.[89] | openbsd2.[89].*)
19892         shlibpath_overrides_runpath=no
19893         ;;
19894       *)
19895         shlibpath_overrides_runpath=yes
19896         ;;
19897       esac
19898   else
19899     shlibpath_overrides_runpath=yes
19900   fi
19901   ;;
19902
19903 os2*)
19904   libname_spec='$name'
19905   shrext_cmds=".dll"
19906   need_lib_prefix=no
19907   library_names_spec='$libname${shared_ext} $libname.a'
19908   dynamic_linker='OS/2 ld.exe'
19909   shlibpath_var=LIBPATH
19910   ;;
19911
19912 osf3* | osf4* | osf5*)
19913   version_type=osf
19914   need_lib_prefix=no
19915   need_version=no
19916   soname_spec='${libname}${release}${shared_ext}$major'
19917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19918   shlibpath_var=LD_LIBRARY_PATH
19919   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19920   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19921   ;;
19922
19923 rdos*)
19924   dynamic_linker=no
19925   ;;
19926
19927 solaris*)
19928   version_type=linux
19929   need_lib_prefix=no
19930   need_version=no
19931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19932   soname_spec='${libname}${release}${shared_ext}$major'
19933   shlibpath_var=LD_LIBRARY_PATH
19934   shlibpath_overrides_runpath=yes
19935   hardcode_into_libs=yes
19936   # ldd complains unless libraries are executable
19937   postinstall_cmds='chmod +x $lib'
19938   ;;
19939
19940 sunos4*)
19941   version_type=sunos
19942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19943   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19944   shlibpath_var=LD_LIBRARY_PATH
19945   shlibpath_overrides_runpath=yes
19946   if test "$with_gnu_ld" = yes; then
19947     need_lib_prefix=no
19948   fi
19949   need_version=yes
19950   ;;
19951
19952 sysv4 | sysv4.3*)
19953   version_type=linux
19954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19955   soname_spec='${libname}${release}${shared_ext}$major'
19956   shlibpath_var=LD_LIBRARY_PATH
19957   case $host_vendor in
19958     sni)
19959       shlibpath_overrides_runpath=no
19960       need_lib_prefix=no
19961       export_dynamic_flag_spec='${wl}-Blargedynsym'
19962       runpath_var=LD_RUN_PATH
19963       ;;
19964     siemens)
19965       need_lib_prefix=no
19966       ;;
19967     motorola)
19968       need_lib_prefix=no
19969       need_version=no
19970       shlibpath_overrides_runpath=no
19971       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19972       ;;
19973   esac
19974   ;;
19975
19976 sysv4*MP*)
19977   if test -d /usr/nec ;then
19978     version_type=linux
19979     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19980     soname_spec='$libname${shared_ext}.$major'
19981     shlibpath_var=LD_LIBRARY_PATH
19982   fi
19983   ;;
19984
19985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19986   version_type=freebsd-elf
19987   need_lib_prefix=no
19988   need_version=no
19989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19990   soname_spec='${libname}${release}${shared_ext}$major'
19991   shlibpath_var=LD_LIBRARY_PATH
19992   hardcode_into_libs=yes
19993   if test "$with_gnu_ld" = yes; then
19994     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19995     shlibpath_overrides_runpath=no
19996   else
19997     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19998     shlibpath_overrides_runpath=yes
19999     case $host_os in
20000       sco3.2v5*)
20001         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20002         ;;
20003     esac
20004   fi
20005   sys_lib_dlsearch_path_spec='/usr/lib'
20006   ;;
20007
20008 uts4*)
20009   version_type=linux
20010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011   soname_spec='${libname}${release}${shared_ext}$major'
20012   shlibpath_var=LD_LIBRARY_PATH
20013   ;;
20014
20015 *)
20016   dynamic_linker=no
20017   ;;
20018 esac
20019 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20020 echo "${ECHO_T}$dynamic_linker" >&6; }
20021 test "$dynamic_linker" = no && can_build_shared=no
20022
20023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20024 if test "$GCC" = yes; then
20025   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20026 fi
20027
20028 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20029 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20030 hardcode_action_GCJ=
20031 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20032    test -n "$runpath_var_GCJ" || \
20033    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20034
20035   # We can hardcode non-existant directories.
20036   if test "$hardcode_direct_GCJ" != no &&
20037      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20038      # have to relink, otherwise we might link with an installed library
20039      # when we should be linking with a yet-to-be-installed one
20040      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20041      test "$hardcode_minus_L_GCJ" != no; then
20042     # Linking always hardcodes the temporary library directory.
20043     hardcode_action_GCJ=relink
20044   else
20045     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20046     hardcode_action_GCJ=immediate
20047   fi
20048 else
20049   # We cannot hardcode anything, or else we can only hardcode existing
20050   # directories.
20051   hardcode_action_GCJ=unsupported
20052 fi
20053 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20054 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20055
20056 if test "$hardcode_action_GCJ" = relink; then
20057   # Fast installation is not supported
20058   enable_fast_install=no
20059 elif test "$shlibpath_overrides_runpath" = yes ||
20060      test "$enable_shared" = no; then
20061   # Fast installation is not necessary
20062   enable_fast_install=needless
20063 fi
20064
20065
20066 # The else clause should only fire when bootstrapping the
20067 # libtool distribution, otherwise you forgot to ship ltmain.sh
20068 # with your package, and you will get complaints that there are
20069 # no rules to generate ltmain.sh.
20070 if test -f "$ltmain"; then
20071   # See if we are running on zsh, and set the options which allow our commands through
20072   # without removal of \ escapes.
20073   if test -n "${ZSH_VERSION+set}" ; then
20074     setopt NO_GLOB_SUBST
20075   fi
20076   # Now quote all the things that may contain metacharacters while being
20077   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20078   # variables and quote the copies for generation of the libtool script.
20079   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20080     SED SHELL STRIP \
20081     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20082     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20083     deplibs_check_method reload_flag reload_cmds need_locks \
20084     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20085     lt_cv_sys_global_symbol_to_c_name_address \
20086     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20087     old_postinstall_cmds old_postuninstall_cmds \
20088     compiler_GCJ \
20089     CC_GCJ \
20090     LD_GCJ \
20091     lt_prog_compiler_wl_GCJ \
20092     lt_prog_compiler_pic_GCJ \
20093     lt_prog_compiler_static_GCJ \
20094     lt_prog_compiler_no_builtin_flag_GCJ \
20095     export_dynamic_flag_spec_GCJ \
20096     thread_safe_flag_spec_GCJ \
20097     whole_archive_flag_spec_GCJ \
20098     enable_shared_with_static_runtimes_GCJ \
20099     old_archive_cmds_GCJ \
20100     old_archive_from_new_cmds_GCJ \
20101     predep_objects_GCJ \
20102     postdep_objects_GCJ \
20103     predeps_GCJ \
20104     postdeps_GCJ \
20105     compiler_lib_search_path_GCJ \
20106     archive_cmds_GCJ \
20107     archive_expsym_cmds_GCJ \
20108     postinstall_cmds_GCJ \
20109     postuninstall_cmds_GCJ \
20110     old_archive_from_expsyms_cmds_GCJ \
20111     allow_undefined_flag_GCJ \
20112     no_undefined_flag_GCJ \
20113     export_symbols_cmds_GCJ \
20114     hardcode_libdir_flag_spec_GCJ \
20115     hardcode_libdir_flag_spec_ld_GCJ \
20116     hardcode_libdir_separator_GCJ \
20117     hardcode_automatic_GCJ \
20118     module_cmds_GCJ \
20119     module_expsym_cmds_GCJ \
20120     lt_cv_prog_compiler_c_o_GCJ \
20121     fix_srcfile_path_GCJ \
20122     exclude_expsyms_GCJ \
20123     include_expsyms_GCJ; do
20124
20125     case $var in
20126     old_archive_cmds_GCJ | \
20127     old_archive_from_new_cmds_GCJ | \
20128     archive_cmds_GCJ | \
20129     archive_expsym_cmds_GCJ | \
20130     module_cmds_GCJ | \
20131     module_expsym_cmds_GCJ | \
20132     old_archive_from_expsyms_cmds_GCJ | \
20133     export_symbols_cmds_GCJ | \
20134     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20135     postinstall_cmds | postuninstall_cmds | \
20136     old_postinstall_cmds | old_postuninstall_cmds | \
20137     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20138       # Double-quote double-evaled strings.
20139       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20140       ;;
20141     *)
20142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20143       ;;
20144     esac
20145   done
20146
20147   case $lt_echo in
20148   *'\$0 --fallback-echo"')
20149     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20150     ;;
20151   esac
20152
20153 cfgfile="$ofile"
20154
20155   cat <<__EOF__ >> "$cfgfile"
20156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20157
20158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20159
20160 # Shell to use when invoking shell scripts.
20161 SHELL=$lt_SHELL
20162
20163 # Whether or not to build shared libraries.
20164 build_libtool_libs=$enable_shared
20165
20166 # Whether or not to build static libraries.
20167 build_old_libs=$enable_static
20168
20169 # Whether or not to add -lc for building shared libraries.
20170 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20171
20172 # Whether or not to disallow shared libs when runtime libs are static
20173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20174
20175 # Whether or not to optimize for fast installation.
20176 fast_install=$enable_fast_install
20177
20178 # The host system.
20179 host_alias=$host_alias
20180 host=$host
20181 host_os=$host_os
20182
20183 # The build system.
20184 build_alias=$build_alias
20185 build=$build
20186 build_os=$build_os
20187
20188 # An echo program that does not interpret backslashes.
20189 echo=$lt_echo
20190
20191 # The archiver.
20192 AR=$lt_AR
20193 AR_FLAGS=$lt_AR_FLAGS
20194
20195 # A C compiler.
20196 LTCC=$lt_LTCC
20197
20198 # LTCC compiler flags.
20199 LTCFLAGS=$lt_LTCFLAGS
20200
20201 # A language-specific compiler.
20202 CC=$lt_compiler_GCJ
20203
20204 # Is the compiler the GNU C compiler?
20205 with_gcc=$GCC_GCJ
20206
20207 # An ERE matcher.
20208 EGREP=$lt_EGREP
20209
20210 # The linker used to build libraries.
20211 LD=$lt_LD_GCJ
20212
20213 # Whether we need hard or soft links.
20214 LN_S=$lt_LN_S
20215
20216 # A BSD-compatible nm program.
20217 NM=$lt_NM
20218
20219 # A symbol stripping program
20220 STRIP=$lt_STRIP
20221
20222 # Used to examine libraries when file_magic_cmd begins "file"
20223 MAGIC_CMD=$MAGIC_CMD
20224
20225 # Used on cygwin: DLL creation program.
20226 DLLTOOL="$DLLTOOL"
20227
20228 # Used on cygwin: object dumper.
20229 OBJDUMP="$OBJDUMP"
20230
20231 # Used on cygwin: assembler.
20232 AS="$AS"
20233
20234 # The name of the directory that contains temporary libtool files.
20235 objdir=$objdir
20236
20237 # How to create reloadable object files.
20238 reload_flag=$lt_reload_flag
20239 reload_cmds=$lt_reload_cmds
20240
20241 # How to pass a linker flag through the compiler.
20242 wl=$lt_lt_prog_compiler_wl_GCJ
20243
20244 # Object file suffix (normally "o").
20245 objext="$ac_objext"
20246
20247 # Old archive suffix (normally "a").
20248 libext="$libext"
20249
20250 # Shared library suffix (normally ".so").
20251 shrext_cmds='$shrext_cmds'
20252
20253 # Executable file suffix (normally "").
20254 exeext="$exeext"
20255
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20258 pic_mode=$pic_mode
20259
20260 # What is the maximum length of a command?
20261 max_cmd_len=$lt_cv_sys_max_cmd_len
20262
20263 # Does compiler simultaneously support -c and -o options?
20264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20265
20266 # Must we lock files when doing compilation?
20267 need_locks=$lt_need_locks
20268
20269 # Do we need the lib prefix for modules?
20270 need_lib_prefix=$need_lib_prefix
20271
20272 # Do we need a version for libraries?
20273 need_version=$need_version
20274
20275 # Whether dlopen is supported.
20276 dlopen_support=$enable_dlopen
20277
20278 # Whether dlopen of programs is supported.
20279 dlopen_self=$enable_dlopen_self
20280
20281 # Whether dlopen of statically linked programs is supported.
20282 dlopen_self_static=$enable_dlopen_self_static
20283
20284 # Compiler flag to prevent dynamic linking.
20285 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20286
20287 # Compiler flag to turn off builtin functions.
20288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20289
20290 # Compiler flag to allow reflexive dlopens.
20291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20292
20293 # Compiler flag to generate shared objects directly from archives.
20294 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20295
20296 # Compiler flag to generate thread-safe objects.
20297 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20298
20299 # Library versioning type.
20300 version_type=$version_type
20301
20302 # Format of library name prefix.
20303 libname_spec=$lt_libname_spec
20304
20305 # List of archive names.  First name is the real one, the rest are links.
20306 # The last name is the one that the linker finds with -lNAME.
20307 library_names_spec=$lt_library_names_spec
20308
20309 # The coded name of the library, if different from the real name.
20310 soname_spec=$lt_soname_spec
20311
20312 # Commands used to build and install an old-style archive.
20313 RANLIB=$lt_RANLIB
20314 old_archive_cmds=$lt_old_archive_cmds_GCJ
20315 old_postinstall_cmds=$lt_old_postinstall_cmds
20316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20317
20318 # Create an old-style archive from a shared archive.
20319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20320
20321 # Create a temporary old-style archive to link instead of a shared archive.
20322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20323
20324 # Commands used to build and install a shared archive.
20325 archive_cmds=$lt_archive_cmds_GCJ
20326 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20327 postinstall_cmds=$lt_postinstall_cmds
20328 postuninstall_cmds=$lt_postuninstall_cmds
20329
20330 # Commands used to build a loadable module (assumed same as above if empty)
20331 module_cmds=$lt_module_cmds_GCJ
20332 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20333
20334 # Commands to strip libraries.
20335 old_striplib=$lt_old_striplib
20336 striplib=$lt_striplib
20337
20338 # Dependencies to place before the objects being linked to create a
20339 # shared library.
20340 predep_objects=$lt_predep_objects_GCJ
20341
20342 # Dependencies to place after the objects being linked to create a
20343 # shared library.
20344 postdep_objects=$lt_postdep_objects_GCJ
20345
20346 # Dependencies to place before the objects being linked to create a
20347 # shared library.
20348 predeps=$lt_predeps_GCJ
20349
20350 # Dependencies to place after the objects being linked to create a
20351 # shared library.
20352 postdeps=$lt_postdeps_GCJ
20353
20354 # The library search path used internally by the compiler when linking
20355 # a shared library.
20356 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20357
20358 # Method to check whether dependent libraries are shared objects.
20359 deplibs_check_method=$lt_deplibs_check_method
20360
20361 # Command to use when deplibs_check_method == file_magic.
20362 file_magic_cmd=$lt_file_magic_cmd
20363
20364 # Flag that allows shared libraries with undefined symbols to be built.
20365 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20366
20367 # Flag that forces no undefined symbols.
20368 no_undefined_flag=$lt_no_undefined_flag_GCJ
20369
20370 # Commands used to finish a libtool library installation in a directory.
20371 finish_cmds=$lt_finish_cmds
20372
20373 # Same as above, but a single script fragment to be evaled but not shown.
20374 finish_eval=$lt_finish_eval
20375
20376 # Take the output of nm and produce a listing of raw symbols and C names.
20377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20378
20379 # Transform the output of nm in a proper C declaration
20380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20381
20382 # Transform the output of nm in a C name address pair
20383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20384
20385 # This is the shared library runtime path variable.
20386 runpath_var=$runpath_var
20387
20388 # This is the shared library path variable.
20389 shlibpath_var=$shlibpath_var
20390
20391 # Is shlibpath searched before the hard-coded library search path?
20392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20393
20394 # How to hardcode a shared library path into an executable.
20395 hardcode_action=$hardcode_action_GCJ
20396
20397 # Whether we should hardcode library paths into libraries.
20398 hardcode_into_libs=$hardcode_into_libs
20399
20400 # Flag to hardcode \$libdir into a binary during linking.
20401 # This must work even if \$libdir does not exist.
20402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20403
20404 # If ld is used when linking, flag to hardcode \$libdir into
20405 # a binary during linking. This must work even if \$libdir does
20406 # not exist.
20407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20408
20409 # Whether we need a single -rpath flag with a separated argument.
20410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20411
20412 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20413 # resulting binary.
20414 hardcode_direct=$hardcode_direct_GCJ
20415
20416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20417 # resulting binary.
20418 hardcode_minus_L=$hardcode_minus_L_GCJ
20419
20420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20421 # the resulting binary.
20422 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20423
20424 # Set to yes if building a shared library automatically hardcodes DIR into the library
20425 # and all subsequent libraries and executables linked against it.
20426 hardcode_automatic=$hardcode_automatic_GCJ
20427
20428 # Variables whose values should be saved in libtool wrapper scripts and
20429 # restored at relink time.
20430 variables_saved_for_relink="$variables_saved_for_relink"
20431
20432 # Whether libtool must link a program against all its dependency libraries.
20433 link_all_deplibs=$link_all_deplibs_GCJ
20434
20435 # Compile-time system search path for libraries
20436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20437
20438 # Run-time system search path for libraries
20439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20440
20441 # Fix the shell variable \$srcfile for the compiler.
20442 fix_srcfile_path=$lt_fix_srcfile_path
20443
20444 # Set to yes if exported symbols are required.
20445 always_export_symbols=$always_export_symbols_GCJ
20446
20447 # The commands to list exported symbols.
20448 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20449
20450 # The commands to extract the exported symbol list from a shared archive.
20451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20452
20453 # Symbols that should not be listed in the preloaded symbols.
20454 exclude_expsyms=$lt_exclude_expsyms_GCJ
20455
20456 # Symbols that must always be exported.
20457 include_expsyms=$lt_include_expsyms_GCJ
20458
20459 # ### END LIBTOOL TAG CONFIG: $tagname
20460
20461 __EOF__
20462
20463
20464 else
20465   # If there is no Makefile yet, we rely on a make rule to execute
20466   # `config.status --recheck' to rerun these tests and create the
20467   # libtool script then.
20468   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20469   if test -f "$ltmain_in"; then
20470     test -f Makefile && make "$ltmain"
20471   fi
20472 fi
20473
20474
20475 ac_ext=c
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
20481 CC="$lt_save_CC"
20482
20483         else
20484           tagname=""
20485         fi
20486         ;;
20487
20488       RC)
20489
20490
20491 # Source file extension for RC test sources.
20492 ac_ext=rc
20493
20494 # Object file extension for compiled RC test sources.
20495 objext=o
20496 objext_RC=$objext
20497
20498 # Code to be used in simple compile tests
20499 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20500
20501 # Code to be used in simple link tests
20502 lt_simple_link_test_code="$lt_simple_compile_test_code"
20503
20504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20505
20506 # If no C compiler was specified, use CC.
20507 LTCC=${LTCC-"$CC"}
20508
20509 # If no C compiler flags were specified, use CFLAGS.
20510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20511
20512 # Allow CC to be a program name with arguments.
20513 compiler=$CC
20514
20515
20516 # save warnings/boilerplate of simple test code
20517 ac_outfile=conftest.$ac_objext
20518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20520 _lt_compiler_boilerplate=`cat conftest.err`
20521 $rm conftest*
20522
20523 ac_outfile=conftest.$ac_objext
20524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20526 _lt_linker_boilerplate=`cat conftest.err`
20527 $rm conftest*
20528
20529
20530 # Allow CC to be a program name with arguments.
20531 lt_save_CC="$CC"
20532 CC=${RC-"windres"}
20533 compiler=$CC
20534 compiler_RC=$CC
20535 for cc_temp in $compiler""; do
20536   case $cc_temp in
20537     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20538     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20539     \-*) ;;
20540     *) break;;
20541   esac
20542 done
20543 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20544
20545 lt_cv_prog_compiler_c_o_RC=yes
20546
20547 # The else clause should only fire when bootstrapping the
20548 # libtool distribution, otherwise you forgot to ship ltmain.sh
20549 # with your package, and you will get complaints that there are
20550 # no rules to generate ltmain.sh.
20551 if test -f "$ltmain"; then
20552   # See if we are running on zsh, and set the options which allow our commands through
20553   # without removal of \ escapes.
20554   if test -n "${ZSH_VERSION+set}" ; then
20555     setopt NO_GLOB_SUBST
20556   fi
20557   # Now quote all the things that may contain metacharacters while being
20558   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20559   # variables and quote the copies for generation of the libtool script.
20560   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20561     SED SHELL STRIP \
20562     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20563     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20564     deplibs_check_method reload_flag reload_cmds need_locks \
20565     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20566     lt_cv_sys_global_symbol_to_c_name_address \
20567     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20568     old_postinstall_cmds old_postuninstall_cmds \
20569     compiler_RC \
20570     CC_RC \
20571     LD_RC \
20572     lt_prog_compiler_wl_RC \
20573     lt_prog_compiler_pic_RC \
20574     lt_prog_compiler_static_RC \
20575     lt_prog_compiler_no_builtin_flag_RC \
20576     export_dynamic_flag_spec_RC \
20577     thread_safe_flag_spec_RC \
20578     whole_archive_flag_spec_RC \
20579     enable_shared_with_static_runtimes_RC \
20580     old_archive_cmds_RC \
20581     old_archive_from_new_cmds_RC \
20582     predep_objects_RC \
20583     postdep_objects_RC \
20584     predeps_RC \
20585     postdeps_RC \
20586     compiler_lib_search_path_RC \
20587     archive_cmds_RC \
20588     archive_expsym_cmds_RC \
20589     postinstall_cmds_RC \
20590     postuninstall_cmds_RC \
20591     old_archive_from_expsyms_cmds_RC \
20592     allow_undefined_flag_RC \
20593     no_undefined_flag_RC \
20594     export_symbols_cmds_RC \
20595     hardcode_libdir_flag_spec_RC \
20596     hardcode_libdir_flag_spec_ld_RC \
20597     hardcode_libdir_separator_RC \
20598     hardcode_automatic_RC \
20599     module_cmds_RC \
20600     module_expsym_cmds_RC \
20601     lt_cv_prog_compiler_c_o_RC \
20602     fix_srcfile_path_RC \
20603     exclude_expsyms_RC \
20604     include_expsyms_RC; do
20605
20606     case $var in
20607     old_archive_cmds_RC | \
20608     old_archive_from_new_cmds_RC | \
20609     archive_cmds_RC | \
20610     archive_expsym_cmds_RC | \
20611     module_cmds_RC | \
20612     module_expsym_cmds_RC | \
20613     old_archive_from_expsyms_cmds_RC | \
20614     export_symbols_cmds_RC | \
20615     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20616     postinstall_cmds | postuninstall_cmds | \
20617     old_postinstall_cmds | old_postuninstall_cmds | \
20618     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20619       # Double-quote double-evaled strings.
20620       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20621       ;;
20622     *)
20623       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20624       ;;
20625     esac
20626   done
20627
20628   case $lt_echo in
20629   *'\$0 --fallback-echo"')
20630     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20631     ;;
20632   esac
20633
20634 cfgfile="$ofile"
20635
20636   cat <<__EOF__ >> "$cfgfile"
20637 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20638
20639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20640
20641 # Shell to use when invoking shell scripts.
20642 SHELL=$lt_SHELL
20643
20644 # Whether or not to build shared libraries.
20645 build_libtool_libs=$enable_shared
20646
20647 # Whether or not to build static libraries.
20648 build_old_libs=$enable_static
20649
20650 # Whether or not to add -lc for building shared libraries.
20651 build_libtool_need_lc=$archive_cmds_need_lc_RC
20652
20653 # Whether or not to disallow shared libs when runtime libs are static
20654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20655
20656 # Whether or not to optimize for fast installation.
20657 fast_install=$enable_fast_install
20658
20659 # The host system.
20660 host_alias=$host_alias
20661 host=$host
20662 host_os=$host_os
20663
20664 # The build system.
20665 build_alias=$build_alias
20666 build=$build
20667 build_os=$build_os
20668
20669 # An echo program that does not interpret backslashes.
20670 echo=$lt_echo
20671
20672 # The archiver.
20673 AR=$lt_AR
20674 AR_FLAGS=$lt_AR_FLAGS
20675
20676 # A C compiler.
20677 LTCC=$lt_LTCC
20678
20679 # LTCC compiler flags.
20680 LTCFLAGS=$lt_LTCFLAGS
20681
20682 # A language-specific compiler.
20683 CC=$lt_compiler_RC
20684
20685 # Is the compiler the GNU C compiler?
20686 with_gcc=$GCC_RC
20687
20688 # An ERE matcher.
20689 EGREP=$lt_EGREP
20690
20691 # The linker used to build libraries.
20692 LD=$lt_LD_RC
20693
20694 # Whether we need hard or soft links.
20695 LN_S=$lt_LN_S
20696
20697 # A BSD-compatible nm program.
20698 NM=$lt_NM
20699
20700 # A symbol stripping program
20701 STRIP=$lt_STRIP
20702
20703 # Used to examine libraries when file_magic_cmd begins "file"
20704 MAGIC_CMD=$MAGIC_CMD
20705
20706 # Used on cygwin: DLL creation program.
20707 DLLTOOL="$DLLTOOL"
20708
20709 # Used on cygwin: object dumper.
20710 OBJDUMP="$OBJDUMP"
20711
20712 # Used on cygwin: assembler.
20713 AS="$AS"
20714
20715 # The name of the directory that contains temporary libtool files.
20716 objdir=$objdir
20717
20718 # How to create reloadable object files.
20719 reload_flag=$lt_reload_flag
20720 reload_cmds=$lt_reload_cmds
20721
20722 # How to pass a linker flag through the compiler.
20723 wl=$lt_lt_prog_compiler_wl_RC
20724
20725 # Object file suffix (normally "o").
20726 objext="$ac_objext"
20727
20728 # Old archive suffix (normally "a").
20729 libext="$libext"
20730
20731 # Shared library suffix (normally ".so").
20732 shrext_cmds='$shrext_cmds'
20733
20734 # Executable file suffix (normally "").
20735 exeext="$exeext"
20736
20737 # Additional compiler flags for building library objects.
20738 pic_flag=$lt_lt_prog_compiler_pic_RC
20739 pic_mode=$pic_mode
20740
20741 # What is the maximum length of a command?
20742 max_cmd_len=$lt_cv_sys_max_cmd_len
20743
20744 # Does compiler simultaneously support -c and -o options?
20745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20746
20747 # Must we lock files when doing compilation?
20748 need_locks=$lt_need_locks
20749
20750 # Do we need the lib prefix for modules?
20751 need_lib_prefix=$need_lib_prefix
20752
20753 # Do we need a version for libraries?
20754 need_version=$need_version
20755
20756 # Whether dlopen is supported.
20757 dlopen_support=$enable_dlopen
20758
20759 # Whether dlopen of programs is supported.
20760 dlopen_self=$enable_dlopen_self
20761
20762 # Whether dlopen of statically linked programs is supported.
20763 dlopen_self_static=$enable_dlopen_self_static
20764
20765 # Compiler flag to prevent dynamic linking.
20766 link_static_flag=$lt_lt_prog_compiler_static_RC
20767
20768 # Compiler flag to turn off builtin functions.
20769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20770
20771 # Compiler flag to allow reflexive dlopens.
20772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20773
20774 # Compiler flag to generate shared objects directly from archives.
20775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20776
20777 # Compiler flag to generate thread-safe objects.
20778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20779
20780 # Library versioning type.
20781 version_type=$version_type
20782
20783 # Format of library name prefix.
20784 libname_spec=$lt_libname_spec
20785
20786 # List of archive names.  First name is the real one, the rest are links.
20787 # The last name is the one that the linker finds with -lNAME.
20788 library_names_spec=$lt_library_names_spec
20789
20790 # The coded name of the library, if different from the real name.
20791 soname_spec=$lt_soname_spec
20792
20793 # Commands used to build and install an old-style archive.
20794 RANLIB=$lt_RANLIB
20795 old_archive_cmds=$lt_old_archive_cmds_RC
20796 old_postinstall_cmds=$lt_old_postinstall_cmds
20797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20798
20799 # Create an old-style archive from a shared archive.
20800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20801
20802 # Create a temporary old-style archive to link instead of a shared archive.
20803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20804
20805 # Commands used to build and install a shared archive.
20806 archive_cmds=$lt_archive_cmds_RC
20807 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20808 postinstall_cmds=$lt_postinstall_cmds
20809 postuninstall_cmds=$lt_postuninstall_cmds
20810
20811 # Commands used to build a loadable module (assumed same as above if empty)
20812 module_cmds=$lt_module_cmds_RC
20813 module_expsym_cmds=$lt_module_expsym_cmds_RC
20814
20815 # Commands to strip libraries.
20816 old_striplib=$lt_old_striplib
20817 striplib=$lt_striplib
20818
20819 # Dependencies to place before the objects being linked to create a
20820 # shared library.
20821 predep_objects=$lt_predep_objects_RC
20822
20823 # Dependencies to place after the objects being linked to create a
20824 # shared library.
20825 postdep_objects=$lt_postdep_objects_RC
20826
20827 # Dependencies to place before the objects being linked to create a
20828 # shared library.
20829 predeps=$lt_predeps_RC
20830
20831 # Dependencies to place after the objects being linked to create a
20832 # shared library.
20833 postdeps=$lt_postdeps_RC
20834
20835 # The library search path used internally by the compiler when linking
20836 # a shared library.
20837 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20838
20839 # Method to check whether dependent libraries are shared objects.
20840 deplibs_check_method=$lt_deplibs_check_method
20841
20842 # Command to use when deplibs_check_method == file_magic.
20843 file_magic_cmd=$lt_file_magic_cmd
20844
20845 # Flag that allows shared libraries with undefined symbols to be built.
20846 allow_undefined_flag=$lt_allow_undefined_flag_RC
20847
20848 # Flag that forces no undefined symbols.
20849 no_undefined_flag=$lt_no_undefined_flag_RC
20850
20851 # Commands used to finish a libtool library installation in a directory.
20852 finish_cmds=$lt_finish_cmds
20853
20854 # Same as above, but a single script fragment to be evaled but not shown.
20855 finish_eval=$lt_finish_eval
20856
20857 # Take the output of nm and produce a listing of raw symbols and C names.
20858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20859
20860 # Transform the output of nm in a proper C declaration
20861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20862
20863 # Transform the output of nm in a C name address pair
20864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20865
20866 # This is the shared library runtime path variable.
20867 runpath_var=$runpath_var
20868
20869 # This is the shared library path variable.
20870 shlibpath_var=$shlibpath_var
20871
20872 # Is shlibpath searched before the hard-coded library search path?
20873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20874
20875 # How to hardcode a shared library path into an executable.
20876 hardcode_action=$hardcode_action_RC
20877
20878 # Whether we should hardcode library paths into libraries.
20879 hardcode_into_libs=$hardcode_into_libs
20880
20881 # Flag to hardcode \$libdir into a binary during linking.
20882 # This must work even if \$libdir does not exist.
20883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20884
20885 # If ld is used when linking, flag to hardcode \$libdir into
20886 # a binary during linking. This must work even if \$libdir does
20887 # not exist.
20888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20889
20890 # Whether we need a single -rpath flag with a separated argument.
20891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20892
20893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20894 # resulting binary.
20895 hardcode_direct=$hardcode_direct_RC
20896
20897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20898 # resulting binary.
20899 hardcode_minus_L=$hardcode_minus_L_RC
20900
20901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20902 # the resulting binary.
20903 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20904
20905 # Set to yes if building a shared library automatically hardcodes DIR into the library
20906 # and all subsequent libraries and executables linked against it.
20907 hardcode_automatic=$hardcode_automatic_RC
20908
20909 # Variables whose values should be saved in libtool wrapper scripts and
20910 # restored at relink time.
20911 variables_saved_for_relink="$variables_saved_for_relink"
20912
20913 # Whether libtool must link a program against all its dependency libraries.
20914 link_all_deplibs=$link_all_deplibs_RC
20915
20916 # Compile-time system search path for libraries
20917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20918
20919 # Run-time system search path for libraries
20920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20921
20922 # Fix the shell variable \$srcfile for the compiler.
20923 fix_srcfile_path=$lt_fix_srcfile_path
20924
20925 # Set to yes if exported symbols are required.
20926 always_export_symbols=$always_export_symbols_RC
20927
20928 # The commands to list exported symbols.
20929 export_symbols_cmds=$lt_export_symbols_cmds_RC
20930
20931 # The commands to extract the exported symbol list from a shared archive.
20932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20933
20934 # Symbols that should not be listed in the preloaded symbols.
20935 exclude_expsyms=$lt_exclude_expsyms_RC
20936
20937 # Symbols that must always be exported.
20938 include_expsyms=$lt_include_expsyms_RC
20939
20940 # ### END LIBTOOL TAG CONFIG: $tagname
20941
20942 __EOF__
20943
20944
20945 else
20946   # If there is no Makefile yet, we rely on a make rule to execute
20947   # `config.status --recheck' to rerun these tests and create the
20948   # libtool script then.
20949   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20950   if test -f "$ltmain_in"; then
20951     test -f Makefile && make "$ltmain"
20952   fi
20953 fi
20954
20955
20956 ac_ext=c
20957 ac_cpp='$CPP $CPPFLAGS'
20958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961
20962 CC="$lt_save_CC"
20963
20964         ;;
20965
20966       *)
20967         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20968 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20969    { (exit 1); exit 1; }; }
20970         ;;
20971       esac
20972
20973       # Append the new tag name to the list of available tags.
20974       if test -n "$tagname" ; then
20975       available_tags="$available_tags $tagname"
20976     fi
20977     fi
20978   done
20979   IFS="$lt_save_ifs"
20980
20981   # Now substitute the updated list of available tags.
20982   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20983     mv "${ofile}T" "$ofile"
20984     chmod +x "$ofile"
20985   else
20986     rm -f "${ofile}T"
20987     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20988 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20989    { (exit 1); exit 1; }; }
20990   fi
20991 fi
20992
20993
20994
20995 # This can be used to rebuild libtool when needed
20996 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20997
20998 # Always use our own libtool.
20999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21000
21001 # Prevent multiple expansion
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022 if test "x$CC" != xcc; then
21023   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21024 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21025 else
21026   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21027 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21028 fi
21029 set dummy $CC; ac_cc=`echo $2 |
21030                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21031 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21032   echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034   cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040
21041 int
21042 main ()
21043 {
21044
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 # Make sure it works both with $CC and with simple cc.
21050 # We do the test twice because some compilers refuse to overwrite an
21051 # existing .o file with -o, though they will create one.
21052 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21053 rm -f conftest2.*
21054 if { (case "(($ac_try" in
21055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056   *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059   (eval "$ac_try") 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } &&
21063    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068   (eval "$ac_try") 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); };
21072 then
21073   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21074   if test "x$CC" != xcc; then
21075     # Test first that cc exists at all.
21076     if { ac_try='cc -c conftest.$ac_ext >&5'
21077   { (case "(($ac_try" in
21078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079   *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082   (eval "$ac_try") 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; }; then
21086       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21087       rm -f conftest2.*
21088       if { (case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093   (eval "$ac_try") 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } &&
21097          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099   *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102   (eval "$ac_try") 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); };
21106       then
21107         # cc works too.
21108         :
21109       else
21110         # cc exists but doesn't like -o.
21111         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21112       fi
21113     fi
21114   fi
21115 else
21116   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21117 fi
21118 rm -f core conftest*
21119
21120 fi
21121 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21122   { echo "$as_me:$LINENO: result: yes" >&5
21123 echo "${ECHO_T}yes" >&6; }
21124 else
21125   { echo "$as_me:$LINENO: result: no" >&5
21126 echo "${ECHO_T}no" >&6; }
21127
21128 cat >>confdefs.h <<\_ACEOF
21129 #define NO_MINUS_C_MINUS_O 1
21130 _ACEOF
21131
21132 fi
21133
21134 # FIXME: we rely on the cache variable name because
21135 # there is no other way.
21136 set dummy $CC
21137 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21138 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21139    # Losing compiler, so override with the script.
21140    # FIXME: It is wrong to rewrite CC.
21141    # But if we don't then we get into trouble of one sort or another.
21142    # A longer-term fix would be to have automake use am__CC in this case,
21143    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21144    CC="$am_aux_dir/compile $CC"
21145 fi
21146
21147
21148
21149 if test "x$cross_compiling" = "xno"; then
21150         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21151 else
21152         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21153 fi
21154
21155
21156
21157 if test -n "$ac_tool_prefix"; then
21158   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21159 set dummy ${ac_tool_prefix}ar; ac_word=$2
21160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21162 if test "${ac_cv_prog_AR+set}" = set; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   if test -n "$AR"; then
21166   ac_cv_prog_AR="$AR" # Let the user override the test.
21167 else
21168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21169 for as_dir in $PATH
21170 do
21171   IFS=$as_save_IFS
21172   test -z "$as_dir" && as_dir=.
21173   for ac_exec_ext in '' $ac_executable_extensions; do
21174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21175     ac_cv_prog_AR="${ac_tool_prefix}ar"
21176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21177     break 2
21178   fi
21179 done
21180 done
21181 IFS=$as_save_IFS
21182
21183 fi
21184 fi
21185 AR=$ac_cv_prog_AR
21186 if test -n "$AR"; then
21187   { echo "$as_me:$LINENO: result: $AR" >&5
21188 echo "${ECHO_T}$AR" >&6; }
21189 else
21190   { echo "$as_me:$LINENO: result: no" >&5
21191 echo "${ECHO_T}no" >&6; }
21192 fi
21193
21194
21195 fi
21196 if test -z "$ac_cv_prog_AR"; then
21197   ac_ct_AR=$AR
21198   # Extract the first word of "ar", so it can be a program name with args.
21199 set dummy ar; ac_word=$2
21200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   if test -n "$ac_ct_AR"; then
21206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21207 else
21208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21209 for as_dir in $PATH
21210 do
21211   IFS=$as_save_IFS
21212   test -z "$as_dir" && as_dir=.
21213   for ac_exec_ext in '' $ac_executable_extensions; do
21214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21215     ac_cv_prog_ac_ct_AR="ar"
21216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21217     break 2
21218   fi
21219 done
21220 done
21221 IFS=$as_save_IFS
21222
21223 fi
21224 fi
21225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21226 if test -n "$ac_ct_AR"; then
21227   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21228 echo "${ECHO_T}$ac_ct_AR" >&6; }
21229 else
21230   { echo "$as_me:$LINENO: result: no" >&5
21231 echo "${ECHO_T}no" >&6; }
21232 fi
21233
21234   if test "x$ac_ct_AR" = x; then
21235     AR=""
21236   else
21237     case $cross_compiling:$ac_tool_warned in
21238 yes:)
21239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21240 whose name does not start with the host triplet.  If you think this
21241 configuration is useful to you, please write to autoconf@gnu.org." >&5
21242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21243 whose name does not start with the host triplet.  If you think this
21244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21245 ac_tool_warned=yes ;;
21246 esac
21247     AR=$ac_ct_AR
21248   fi
21249 else
21250   AR="$ac_cv_prog_AR"
21251 fi
21252
21253 if test -n "$ac_tool_prefix"; then
21254   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21255 set dummy ${ac_tool_prefix}ld; ac_word=$2
21256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21258 if test "${ac_cv_prog_LD+set}" = set; then
21259   echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261   if test -n "$LD"; then
21262   ac_cv_prog_LD="$LD" # Let the user override the test.
21263 else
21264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21265 for as_dir in $PATH
21266 do
21267   IFS=$as_save_IFS
21268   test -z "$as_dir" && as_dir=.
21269   for ac_exec_ext in '' $ac_executable_extensions; do
21270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21271     ac_cv_prog_LD="${ac_tool_prefix}ld"
21272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21273     break 2
21274   fi
21275 done
21276 done
21277 IFS=$as_save_IFS
21278
21279 fi
21280 fi
21281 LD=$ac_cv_prog_LD
21282 if test -n "$LD"; then
21283   { echo "$as_me:$LINENO: result: $LD" >&5
21284 echo "${ECHO_T}$LD" >&6; }
21285 else
21286   { echo "$as_me:$LINENO: result: no" >&5
21287 echo "${ECHO_T}no" >&6; }
21288 fi
21289
21290
21291 fi
21292 if test -z "$ac_cv_prog_LD"; then
21293   ac_ct_LD=$LD
21294   # Extract the first word of "ld", so it can be a program name with args.
21295 set dummy ld; ac_word=$2
21296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21298 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21299   echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301   if test -n "$ac_ct_LD"; then
21302   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21303 else
21304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21305 for as_dir in $PATH
21306 do
21307   IFS=$as_save_IFS
21308   test -z "$as_dir" && as_dir=.
21309   for ac_exec_ext in '' $ac_executable_extensions; do
21310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21311     ac_cv_prog_ac_ct_LD="ld"
21312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21313     break 2
21314   fi
21315 done
21316 done
21317 IFS=$as_save_IFS
21318
21319 fi
21320 fi
21321 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21322 if test -n "$ac_ct_LD"; then
21323   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21324 echo "${ECHO_T}$ac_ct_LD" >&6; }
21325 else
21326   { echo "$as_me:$LINENO: result: no" >&5
21327 echo "${ECHO_T}no" >&6; }
21328 fi
21329
21330   if test "x$ac_ct_LD" = x; then
21331     LD=""
21332   else
21333     case $cross_compiling:$ac_tool_warned in
21334 yes:)
21335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21336 whose name does not start with the host triplet.  If you think this
21337 configuration is useful to you, please write to autoconf@gnu.org." >&5
21338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21339 whose name does not start with the host triplet.  If you think this
21340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21341 ac_tool_warned=yes ;;
21342 esac
21343     LD=$ac_ct_LD
21344   fi
21345 else
21346   LD="$ac_cv_prog_LD"
21347 fi
21348
21349
21350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21352 if test "${ac_cv_header_stdc+set}" = set; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355   cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 #include <stdlib.h>
21362 #include <stdarg.h>
21363 #include <string.h>
21364 #include <float.h>
21365
21366 int
21367 main ()
21368 {
21369
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_compile") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest.$ac_objext; then
21391   ac_cv_header_stdc=yes
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         ac_cv_header_stdc=no
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400
21401 if test $ac_cv_header_stdc = yes; then
21402   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 #include <string.h>
21410
21411 _ACEOF
21412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413   $EGREP "memchr" >/dev/null 2>&1; then
21414   :
21415 else
21416   ac_cv_header_stdc=no
21417 fi
21418 rm -f conftest*
21419
21420 fi
21421
21422 if test $ac_cv_header_stdc = yes; then
21423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21424   cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430 #include <stdlib.h>
21431
21432 _ACEOF
21433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21434   $EGREP "free" >/dev/null 2>&1; then
21435   :
21436 else
21437   ac_cv_header_stdc=no
21438 fi
21439 rm -f conftest*
21440
21441 fi
21442
21443 if test $ac_cv_header_stdc = yes; then
21444   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21445   if test "$cross_compiling" = yes; then
21446   :
21447 else
21448   cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 #include <ctype.h>
21455 #include <stdlib.h>
21456 #if ((' ' & 0x0FF) == 0x020)
21457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21459 #else
21460 # define ISLOWER(c) \
21461                    (('a' <= (c) && (c) <= 'i') \
21462                      || ('j' <= (c) && (c) <= 'r') \
21463                      || ('s' <= (c) && (c) <= 'z'))
21464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21465 #endif
21466
21467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21468 int
21469 main ()
21470 {
21471   int i;
21472   for (i = 0; i < 256; i++)
21473     if (XOR (islower (i), ISLOWER (i))
21474         || toupper (i) != TOUPPER (i))
21475       return 2;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483   *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486   (eval "$ac_link") 2>&5
21487   ac_status=$?
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21490   { (case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_try") 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   :
21500 else
21501   echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 ( exit $ac_status )
21506 ac_cv_header_stdc=no
21507 fi
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21509 fi
21510
21511
21512 fi
21513 fi
21514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21516 if test $ac_cv_header_stdc = yes; then
21517
21518 cat >>confdefs.h <<\_ACEOF
21519 #define STDC_HEADERS 1
21520 _ACEOF
21521
21522 fi
21523
21524
21525   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21526 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21527   if test "${knfsd_cv_glibc2+set}" = set; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h.  */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h.  */
21536
21537       #include <features.h>
21538       #if !defined(__GLIBC__)
21539       # error Nope
21540       #endif
21541
21542 _ACEOF
21543 if { (ac_try="$ac_cpp conftest.$ac_ext"
21544 case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } >/dev/null && {
21556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21557          test ! -s conftest.err
21558        }; then
21559   knfsd_cv_glibc2=yes
21560 else
21561   echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564   knfsd_cv_glibc2=no
21565 fi
21566
21567 rm -f conftest.err conftest.$ac_ext
21568 fi
21569
21570   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21571 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21572   if test $knfsd_cv_glibc2 = yes; then
21573     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21574     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21575   fi
21576
21577
21578   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21579 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21580   if test "${knfsd_cv_bsd_signals+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   if test "$cross_compiling" = yes; then
21584
21585       case "$host_os" in
21586         *linux*) knfsd_cv_bsd_signals=no;;
21587         *bsd*)   knfsd_cv_bsd_signals=yes;;
21588         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21589 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21590    { (exit 1); exit 1; }; };;
21591       esac
21592
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600
21601         #include <signal.h>
21602         #include <unistd.h>
21603         #include <sys/wait.h>
21604
21605         static int counter = 0;
21606         static RETSIGTYPE handler(int num) { counter++; }
21607
21608         int main()
21609         {
21610                 int     s;
21611                 if ((s = fork()) < 0) return 1;
21612                 if (s != 0) {
21613                         if (wait(&s) < 0) return 1;
21614                         return WIFSIGNALED(s)? 1 : 0;
21615                 }
21616
21617                 signal(SIGHUP, handler);
21618                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21619                 return (counter == 2)? 0 : 1;
21620         }
21621
21622 _ACEOF
21623 rm -f conftest$ac_exeext
21624 if { (ac_try="$ac_link"
21625 case "(($ac_try" in
21626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627   *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630   (eval "$ac_link") 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21634   { (case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_try") 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; }; then
21643   knfsd_cv_bsd_signals=yes
21644 else
21645   echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ( exit $ac_status )
21650 knfsd_cv_bsd_signals=no
21651 fi
21652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21653 fi
21654
21655
21656 fi
21657      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21658 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21659     test $knfsd_cv_bsd_signals = yes &&
21660 cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_BSD_SIGNALS 1
21662 _ACEOF
21663
21664
21665
21666 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21667 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21668 if test "${ac_cv_func_gethostbyname+set}" = set; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21679 #define gethostbyname innocuous_gethostbyname
21680
21681 /* System header to define __stub macros and hopefully few prototypes,
21682     which can conflict with char gethostbyname (); below.
21683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684     <limits.h> exists even on freestanding compilers.  */
21685
21686 #ifdef __STDC__
21687 # include <limits.h>
21688 #else
21689 # include <assert.h>
21690 #endif
21691
21692 #undef gethostbyname
21693
21694 /* Override any GCC internal prototype to avoid an error.
21695    Use char because int might match the return type of a GCC
21696    builtin and then its argument prototype would still apply.  */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 char gethostbyname ();
21701 /* The GNU C library defines this for functions which it implements
21702     to always fail with ENOSYS.  Some functions are actually named
21703     something starting with __ and the normal name is an alias.  */
21704 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21705 choke me
21706 #endif
21707
21708 int
21709 main ()
21710 {
21711 return gethostbyname ();
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723   (eval "$ac_link") 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } && {
21730          test -z "$ac_c_werror_flag" ||
21731          test ! -s conftest.err
21732        } && test -s conftest$ac_exeext &&
21733        $as_test_x conftest$ac_exeext; then
21734   ac_cv_func_gethostbyname=yes
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739         ac_cv_func_gethostbyname=no
21740 fi
21741
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743       conftest$ac_exeext conftest.$ac_ext
21744 fi
21745 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21746 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21747 if test $ac_cv_func_gethostbyname = yes; then
21748   :
21749 else
21750   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21751 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21752 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21753   echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
21755   ac_check_lib_save_LIBS=$LIBS
21756 LIBS="-lnsl  $LIBS"
21757 cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h.  */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h.  */
21763
21764 /* Override any GCC internal prototype to avoid an error.
21765    Use char because int might match the return type of a GCC
21766    builtin and then its argument prototype would still apply.  */
21767 #ifdef __cplusplus
21768 extern "C"
21769 #endif
21770 char gethostbyname ();
21771 int
21772 main ()
21773 {
21774 return gethostbyname ();
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest.$ac_objext conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_link") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } && {
21793          test -z "$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        } && test -s conftest$ac_exeext &&
21796        $as_test_x conftest$ac_exeext; then
21797   ac_cv_lib_nsl_gethostbyname=yes
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802         ac_cv_lib_nsl_gethostbyname=no
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21806       conftest$ac_exeext conftest.$ac_ext
21807 LIBS=$ac_check_lib_save_LIBS
21808 fi
21809 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21810 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21811 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21812   LIBNSL="-lnsl"
21813 fi
21814
21815 fi
21816
21817
21818
21819 { echo "$as_me:$LINENO: checking for connect" >&5
21820 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21821 if test "${ac_cv_func_connect+set}" = set; then
21822   echo $ECHO_N "(cached) $ECHO_C" >&6
21823 else
21824   cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21832 #define connect innocuous_connect
21833
21834 /* System header to define __stub macros and hopefully few prototypes,
21835     which can conflict with char connect (); below.
21836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21837     <limits.h> exists even on freestanding compilers.  */
21838
21839 #ifdef __STDC__
21840 # include <limits.h>
21841 #else
21842 # include <assert.h>
21843 #endif
21844
21845 #undef connect
21846
21847 /* Override any GCC internal prototype to avoid an error.
21848    Use char because int might match the return type of a GCC
21849    builtin and then its argument prototype would still apply.  */
21850 #ifdef __cplusplus
21851 extern "C"
21852 #endif
21853 char connect ();
21854 /* The GNU C library defines this for functions which it implements
21855     to always fail with ENOSYS.  Some functions are actually named
21856     something starting with __ and the normal name is an alias.  */
21857 #if defined __stub_connect || defined __stub___connect
21858 choke me
21859 #endif
21860
21861 int
21862 main ()
21863 {
21864 return connect ();
21865   ;
21866   return 0;
21867 }
21868 _ACEOF
21869 rm -f conftest.$ac_objext conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_link") 2>conftest.er1
21877   ac_status=$?
21878   grep -v '^ *+' conftest.er1 >conftest.err
21879   rm -f conftest.er1
21880   cat conftest.err >&5
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); } && {
21883          test -z "$ac_c_werror_flag" ||
21884          test ! -s conftest.err
21885        } && test -s conftest$ac_exeext &&
21886        $as_test_x conftest$ac_exeext; then
21887   ac_cv_func_connect=yes
21888 else
21889   echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892         ac_cv_func_connect=no
21893 fi
21894
21895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21896       conftest$ac_exeext conftest.$ac_ext
21897 fi
21898 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21899 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21900 if test $ac_cv_func_connect = yes; then
21901   :
21902 else
21903   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21904 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21905 if test "${ac_cv_lib_socket_connect+set}" = set; then
21906   echo $ECHO_N "(cached) $ECHO_C" >&6
21907 else
21908   ac_check_lib_save_LIBS=$LIBS
21909 LIBS="-lsocket $LIBNSL $LIBS"
21910 cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916
21917 /* Override any GCC internal prototype to avoid an error.
21918    Use char because int might match the return type of a GCC
21919    builtin and then its argument prototype would still apply.  */
21920 #ifdef __cplusplus
21921 extern "C"
21922 #endif
21923 char connect ();
21924 int
21925 main ()
21926 {
21927 return connect ();
21928   ;
21929   return 0;
21930 }
21931 _ACEOF
21932 rm -f conftest.$ac_objext conftest$ac_exeext
21933 if { (ac_try="$ac_link"
21934 case "(($ac_try" in
21935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936   *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939   (eval "$ac_link") 2>conftest.er1
21940   ac_status=$?
21941   grep -v '^ *+' conftest.er1 >conftest.err
21942   rm -f conftest.er1
21943   cat conftest.err >&5
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } && {
21946          test -z "$ac_c_werror_flag" ||
21947          test ! -s conftest.err
21948        } && test -s conftest$ac_exeext &&
21949        $as_test_x conftest$ac_exeext; then
21950   ac_cv_lib_socket_connect=yes
21951 else
21952   echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955         ac_cv_lib_socket_connect=no
21956 fi
21957
21958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21959       conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21961 fi
21962 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21963 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21964 if test $ac_cv_lib_socket_connect = yes; then
21965   LIBSOCKET="-lsocket"
21966 else
21967   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21968 echo "$as_me: error: Function 'socket' not found." >&2;}
21969    { (exit 1); exit 1; }; }
21970 fi
21971
21972 fi
21973
21974
21975 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21976 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21977 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21988 #define getaddrinfo innocuous_getaddrinfo
21989
21990 /* System header to define __stub macros and hopefully few prototypes,
21991     which can conflict with char getaddrinfo (); below.
21992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21993     <limits.h> exists even on freestanding compilers.  */
21994
21995 #ifdef __STDC__
21996 # include <limits.h>
21997 #else
21998 # include <assert.h>
21999 #endif
22000
22001 #undef getaddrinfo
22002
22003 /* Override any GCC internal prototype to avoid an error.
22004    Use char because int might match the return type of a GCC
22005    builtin and then its argument prototype would still apply.  */
22006 #ifdef __cplusplus
22007 extern "C"
22008 #endif
22009 char getaddrinfo ();
22010 /* The GNU C library defines this for functions which it implements
22011     to always fail with ENOSYS.  Some functions are actually named
22012     something starting with __ and the normal name is an alias.  */
22013 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22014 choke me
22015 #endif
22016
22017 int
22018 main ()
22019 {
22020 return getaddrinfo ();
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_link") 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } && {
22039          test -z "$ac_c_werror_flag" ||
22040          test ! -s conftest.err
22041        } && test -s conftest$ac_exeext &&
22042        $as_test_x conftest$ac_exeext; then
22043   ac_cv_func_getaddrinfo=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048         ac_cv_func_getaddrinfo=no
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22052       conftest$ac_exeext conftest.$ac_ext
22053 fi
22054 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22055 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
22056
22057
22058 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22059 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22060 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22061   echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063   ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lcrypt  $LIBS"
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071
22072 /* Override any GCC internal prototype to avoid an error.
22073    Use char because int might match the return type of a GCC
22074    builtin and then its argument prototype would still apply.  */
22075 #ifdef __cplusplus
22076 extern "C"
22077 #endif
22078 char crypt ();
22079 int
22080 main ()
22081 {
22082 return crypt ();
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_link") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } && {
22101          test -z "$ac_c_werror_flag" ||
22102          test ! -s conftest.err
22103        } && test -s conftest$ac_exeext &&
22104        $as_test_x conftest$ac_exeext; then
22105   ac_cv_lib_crypt_crypt=yes
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110         ac_cv_lib_crypt_crypt=no
22111 fi
22112
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114       conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22116 fi
22117 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22118 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22119 if test $ac_cv_lib_crypt_crypt = yes; then
22120   LIBCRYPT="-lcrypt"
22121 fi
22122
22123 if test "$enable_nfsv4" = yes; then
22124     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22125 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22126 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22127   echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129   ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-levent  $LIBS"
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137
22138 /* Override any GCC internal prototype to avoid an error.
22139    Use char because int might match the return type of a GCC
22140    builtin and then its argument prototype would still apply.  */
22141 #ifdef __cplusplus
22142 extern "C"
22143 #endif
22144 char event_dispatch ();
22145 int
22146 main ()
22147 {
22148 return event_dispatch ();
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157   *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160   (eval "$ac_link") 2>conftest.er1
22161   ac_status=$?
22162   grep -v '^ *+' conftest.er1 >conftest.err
22163   rm -f conftest.er1
22164   cat conftest.err >&5
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); } && {
22167          test -z "$ac_c_werror_flag" ||
22168          test ! -s conftest.err
22169        } && test -s conftest$ac_exeext &&
22170        $as_test_x conftest$ac_exeext; then
22171   ac_cv_lib_event_event_dispatch=yes
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         ac_cv_lib_event_event_dispatch=no
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180       conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22182 fi
22183 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22184 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22185 if test $ac_cv_lib_event_event_dispatch = yes; then
22186   libevent=1
22187 else
22188   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22189 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22190    { (exit 1); exit 1; }; }
22191 fi
22192
22193     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22194 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22195 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   ac_check_lib_save_LIBS=$LIBS
22199 LIBS="-lnfsidmap  $LIBS"
22200 cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206
22207 /* Override any GCC internal prototype to avoid an error.
22208    Use char because int might match the return type of a GCC
22209    builtin and then its argument prototype would still apply.  */
22210 #ifdef __cplusplus
22211 extern "C"
22212 #endif
22213 char nfs4_init_name_mapping ();
22214 int
22215 main ()
22216 {
22217 return nfs4_init_name_mapping ();
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 rm -f conftest.$ac_objext conftest$ac_exeext
22223 if { (ac_try="$ac_link"
22224 case "(($ac_try" in
22225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226   *) ac_try_echo=$ac_try;;
22227 esac
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229   (eval "$ac_link") 2>conftest.er1
22230   ac_status=$?
22231   grep -v '^ *+' conftest.er1 >conftest.err
22232   rm -f conftest.er1
22233   cat conftest.err >&5
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } && {
22236          test -z "$ac_c_werror_flag" ||
22237          test ! -s conftest.err
22238        } && test -s conftest$ac_exeext &&
22239        $as_test_x conftest$ac_exeext; then
22240   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22246 fi
22247
22248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22249       conftest$ac_exeext conftest.$ac_ext
22250 LIBS=$ac_check_lib_save_LIBS
22251 fi
22252 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22253 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22254 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22255   libnfsidmap=1
22256 else
22257   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22258 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22259    { (exit 1); exit 1; }; }
22260 fi
22261
22262
22263 for ac_header in event.h
22264 do
22265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270   echo $ECHO_N "(cached) $ECHO_C" >&6
22271 fi
22272 ac_res=`eval echo '${'$as_ac_Header'}'`
22273                { echo "$as_me:$LINENO: result: $ac_res" >&5
22274 echo "${ECHO_T}$ac_res" >&6; }
22275 else
22276   # Is the header compilable?
22277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22279 cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h.  */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h.  */
22285 $ac_includes_default
22286 #include <$ac_header>
22287 _ACEOF
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_compile") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } && {
22302          test -z "$ac_c_werror_flag" ||
22303          test ! -s conftest.err
22304        } && test -s conftest.$ac_objext; then
22305   ac_header_compiler=yes
22306 else
22307   echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310         ac_header_compiler=no
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22315 echo "${ECHO_T}$ac_header_compiler" >&6; }
22316
22317 # Is the header present?
22318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22320 cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #include <$ac_header>
22327 _ACEOF
22328 if { (ac_try="$ac_cpp conftest.$ac_ext"
22329 case "(($ac_try" in
22330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331   *) ac_try_echo=$ac_try;;
22332 esac
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } >/dev/null && {
22341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22342          test ! -s conftest.err
22343        }; then
22344   ac_header_preproc=yes
22345 else
22346   echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349   ac_header_preproc=no
22350 fi
22351
22352 rm -f conftest.err conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22354 echo "${ECHO_T}$ac_header_preproc" >&6; }
22355
22356 # So?  What about this header?
22357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22358   yes:no: )
22359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22363     ac_header_preproc=yes
22364     ;;
22365   no:yes:* )
22366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22378     ( cat <<\_ASBOX
22379 ## ---------------------------------------- ##
22380 ## Report this to linux-nfs@vger.kernel.org ##
22381 ## ---------------------------------------- ##
22382 _ASBOX
22383      ) | sed "s/^/$as_me: WARNING:     /" >&2
22384     ;;
22385 esac
22386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   eval "$as_ac_Header=\$ac_header_preproc"
22392 fi
22393 ac_res=`eval echo '${'$as_ac_Header'}'`
22394                { echo "$as_me:$LINENO: result: $ac_res" >&5
22395 echo "${ECHO_T}$ac_res" >&6; }
22396
22397 fi
22398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22399   cat >>confdefs.h <<_ACEOF
22400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22401 _ACEOF
22402
22403 else
22404   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22405 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22406    { (exit 1); exit 1; }; }
22407 fi
22408
22409 done
22410
22411
22412 for ac_header in nfsidmap.h
22413 do
22414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22419   echo $ECHO_N "(cached) $ECHO_C" >&6
22420 fi
22421 ac_res=`eval echo '${'$as_ac_Header'}'`
22422                { echo "$as_me:$LINENO: result: $ac_res" >&5
22423 echo "${ECHO_T}$ac_res" >&6; }
22424 else
22425   # Is the header compilable?
22426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22428 cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434 $ac_includes_default
22435 #include <$ac_header>
22436 _ACEOF
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441   *) ac_try_echo=$ac_try;;
22442 esac
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444   (eval "$ac_compile") 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } && {
22451          test -z "$ac_c_werror_flag" ||
22452          test ! -s conftest.err
22453        } && test -s conftest.$ac_objext; then
22454   ac_header_compiler=yes
22455 else
22456   echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22458
22459         ac_header_compiler=no
22460 fi
22461
22462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22464 echo "${ECHO_T}$ac_header_compiler" >&6; }
22465
22466 # Is the header present?
22467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22469 cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 #include <$ac_header>
22476 _ACEOF
22477 if { (ac_try="$ac_cpp conftest.$ac_ext"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } >/dev/null && {
22490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22491          test ! -s conftest.err
22492        }; then
22493   ac_header_preproc=yes
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498   ac_header_preproc=no
22499 fi
22500
22501 rm -f conftest.err conftest.$ac_ext
22502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 echo "${ECHO_T}$ac_header_preproc" >&6; }
22504
22505 # So?  What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22507   yes:no: )
22508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512     ac_header_preproc=yes
22513     ;;
22514   no:yes:* )
22515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22527     ( cat <<\_ASBOX
22528 ## ---------------------------------------- ##
22529 ## Report this to linux-nfs@vger.kernel.org ##
22530 ## ---------------------------------------- ##
22531 _ASBOX
22532      ) | sed "s/^/$as_me: WARNING:     /" >&2
22533     ;;
22534 esac
22535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540   eval "$as_ac_Header=\$ac_header_preproc"
22541 fi
22542 ac_res=`eval echo '${'$as_ac_Header'}'`
22543                { echo "$as_me:$LINENO: result: $ac_res" >&5
22544 echo "${ECHO_T}$ac_res" >&6; }
22545
22546 fi
22547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22548   cat >>confdefs.h <<_ACEOF
22549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22550 _ACEOF
22551
22552 else
22553   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22554 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22555    { (exit 1); exit 1; }; }
22556 fi
22557
22558 done
22559
22560             if test "$enable_gss" = yes; then
22561
22562
22563 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22564         if test -n "$ac_tool_prefix"; then
22565   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22566 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572   case $PKG_CONFIG in
22573   [\\/]* | ?:[\\/]*)
22574   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22575   ;;
22576   *)
22577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22579 do
22580   IFS=$as_save_IFS
22581   test -z "$as_dir" && as_dir=.
22582   for ac_exec_ext in '' $ac_executable_extensions; do
22583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22584     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22586     break 2
22587   fi
22588 done
22589 done
22590 IFS=$as_save_IFS
22591
22592   ;;
22593 esac
22594 fi
22595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22596 if test -n "$PKG_CONFIG"; then
22597   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22598 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22599 else
22600   { echo "$as_me:$LINENO: result: no" >&5
22601 echo "${ECHO_T}no" >&6; }
22602 fi
22603
22604
22605 fi
22606 if test -z "$ac_cv_path_PKG_CONFIG"; then
22607   ac_pt_PKG_CONFIG=$PKG_CONFIG
22608   # Extract the first word of "pkg-config", so it can be a program name with args.
22609 set dummy pkg-config; ac_word=$2
22610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22612 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22613   echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615   case $ac_pt_PKG_CONFIG in
22616   [\\/]* | ?:[\\/]*)
22617   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22618   ;;
22619   *)
22620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22622 do
22623   IFS=$as_save_IFS
22624   test -z "$as_dir" && as_dir=.
22625   for ac_exec_ext in '' $ac_executable_extensions; do
22626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22627     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22629     break 2
22630   fi
22631 done
22632 done
22633 IFS=$as_save_IFS
22634
22635   ;;
22636 esac
22637 fi
22638 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22639 if test -n "$ac_pt_PKG_CONFIG"; then
22640   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22641 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22642 else
22643   { echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6; }
22645 fi
22646
22647   if test "x$ac_pt_PKG_CONFIG" = x; then
22648     PKG_CONFIG=""
22649   else
22650     case $cross_compiling:$ac_tool_warned in
22651 yes:)
22652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22653 whose name does not start with the host triplet.  If you think this
22654 configuration is useful to you, please write to autoconf@gnu.org." >&5
22655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22656 whose name does not start with the host triplet.  If you think this
22657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22658 ac_tool_warned=yes ;;
22659 esac
22660     PKG_CONFIG=$ac_pt_PKG_CONFIG
22661   fi
22662 else
22663   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22664 fi
22665
22666 fi
22667 if test -n "$PKG_CONFIG"; then
22668         _pkg_min_version=0.9.0
22669         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22670 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22671         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22672                 { echo "$as_me:$LINENO: result: yes" >&5
22673 echo "${ECHO_T}yes" >&6; }
22674         else
22675                 { echo "$as_me:$LINENO: result: no" >&5
22676 echo "${ECHO_T}no" >&6; }
22677                 PKG_CONFIG=""
22678         fi
22679
22680 fi
22681
22682 pkg_failed=no
22683 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22684 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22685
22686 if test -n "$RPCSECGSS_CFLAGS"; then
22687     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22688  elif test -n "$PKG_CONFIG"; then
22689     if test -n "$PKG_CONFIG" && \
22690     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22691   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; then
22695   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22696 else
22697   pkg_failed=yes
22698 fi
22699  else
22700     pkg_failed=untried
22701 fi
22702 if test -n "$RPCSECGSS_LIBS"; then
22703     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22704  elif test -n "$PKG_CONFIG"; then
22705     if test -n "$PKG_CONFIG" && \
22706     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22707   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22708   ac_status=$?
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); }; then
22711   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22712 else
22713   pkg_failed=yes
22714 fi
22715  else
22716     pkg_failed=untried
22717 fi
22718
22719
22720
22721 if test $pkg_failed = yes; then
22722
22723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22724         _pkg_short_errors_supported=yes
22725 else
22726         _pkg_short_errors_supported=no
22727 fi
22728         if test $_pkg_short_errors_supported = yes; then
22729                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
22730         else
22731                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
22732         fi
22733         # Put the nasty error message in config.log where it belongs
22734         echo "$RPCSECGSS_PKG_ERRORS" >&5
22735
22736         { echo "$as_me:$LINENO: result: no" >&5
22737 echo "${ECHO_T}no" >&6; }
22738                 { { 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
22739 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;}
22740    { (exit 1); exit 1; }; }
22741
22742
22743 elif test $pkg_failed = untried; then
22744         { { 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
22745 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;}
22746    { (exit 1); exit 1; }; }
22747
22748
22749 else
22750         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22751         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22752         { echo "$as_me:$LINENO: result: yes" >&5
22753 echo "${ECHO_T}yes" >&6; }
22754         :
22755 fi
22756
22757 pkg_failed=no
22758 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22759 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22760
22761 if test -n "$GSSGLUE_CFLAGS"; then
22762     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22763  elif test -n "$PKG_CONFIG"; then
22764     if test -n "$PKG_CONFIG" && \
22765     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22766   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; then
22770   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22771 else
22772   pkg_failed=yes
22773 fi
22774  else
22775     pkg_failed=untried
22776 fi
22777 if test -n "$GSSGLUE_LIBS"; then
22778     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22779  elif test -n "$PKG_CONFIG"; then
22780     if test -n "$PKG_CONFIG" && \
22781     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22782   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; then
22786   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22787 else
22788   pkg_failed=yes
22789 fi
22790  else
22791     pkg_failed=untried
22792 fi
22793
22794
22795
22796 if test $pkg_failed = yes; then
22797
22798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22799         _pkg_short_errors_supported=yes
22800 else
22801         _pkg_short_errors_supported=no
22802 fi
22803         if test $_pkg_short_errors_supported = yes; then
22804                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
22805         else
22806                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
22807         fi
22808         # Put the nasty error message in config.log where it belongs
22809         echo "$GSSGLUE_PKG_ERRORS" >&5
22810
22811         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22812
22813 $GSSGLUE_PKG_ERRORS
22814
22815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22816 installed software in a non-standard prefix.
22817
22818 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22819 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22820 See the pkg-config man page for more details.
22821 " >&5
22822 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22823
22824 $GSSGLUE_PKG_ERRORS
22825
22826 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22827 installed software in a non-standard prefix.
22828
22829 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22830 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22831 See the pkg-config man page for more details.
22832 " >&2;}
22833    { (exit 1); exit 1; }; }
22834 elif test $pkg_failed = untried; then
22835         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22836 is in your PATH or set the PKG_CONFIG environment variable to the full
22837 path to pkg-config.
22838
22839 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22840 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22841 See the pkg-config man page for more details.
22842
22843 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22844 See \`config.log' for more details." >&5
22845 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22846 is in your PATH or set the PKG_CONFIG environment variable to the full
22847 path to pkg-config.
22848
22849 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22850 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22851 See the pkg-config man page for more details.
22852
22853 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22854 See \`config.log' for more details." >&2;}
22855    { (exit 1); exit 1; }; }
22856 else
22857         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22858         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22859         { echo "$as_me:$LINENO: result: yes" >&5
22860 echo "${ECHO_T}yes" >&6; }
22861         :
22862 fi
22863     fi
22864
22865 fi
22866 if test "$knfsd_cv_glibc2" = no; then
22867     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22868 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22869 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22870   echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872   ac_check_lib_save_LIBS=$LIBS
22873 LIBS="-lbsd  $LIBS"
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* Override any GCC internal prototype to avoid an error.
22882    Use char because int might match the return type of a GCC
22883    builtin and then its argument prototype would still apply.  */
22884 #ifdef __cplusplus
22885 extern "C"
22886 #endif
22887 char daemon ();
22888 int
22889 main ()
22890 {
22891 return daemon ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900   *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903   (eval "$ac_link") 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && {
22910          test -z "$ac_c_werror_flag" ||
22911          test ! -s conftest.err
22912        } && test -s conftest$ac_exeext &&
22913        $as_test_x conftest$ac_exeext; then
22914   ac_cv_lib_bsd_daemon=yes
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919         ac_cv_lib_bsd_daemon=no
22920 fi
22921
22922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22923       conftest$ac_exeext conftest.$ac_ext
22924 LIBS=$ac_check_lib_save_LIBS
22925 fi
22926 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22927 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22928 if test $ac_cv_lib_bsd_daemon = yes; then
22929   LIBBSD="-lbsd"
22930 fi
22931
22932 fi
22933
22934 if test "$choose_blkid" != no; then
22935    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22936 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22937 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940   ac_check_lib_save_LIBS=$LIBS
22941 LIBS="-lblkid  $LIBS"
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h.  */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h.  */
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950    Use char because int might match the return type of a GCC
22951    builtin and then its argument prototype would still apply.  */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char blkid_get_library_version ();
22956 int
22957 main ()
22958 {
22959 return blkid_get_library_version ();
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext conftest$ac_exeext
22965 if { (ac_try="$ac_link"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_link") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } && {
22978          test -z "$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        } && test -s conftest$ac_exeext &&
22981        $as_test_x conftest$ac_exeext; then
22982   ac_cv_lib_blkid_blkid_get_library_version=yes
22983 else
22984   echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987         ac_cv_lib_blkid_blkid_get_library_version=no
22988 fi
22989
22990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22991       conftest$ac_exeext conftest.$ac_ext
22992 LIBS=$ac_check_lib_save_LIBS
22993 fi
22994 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22995 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22996 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22997   LIBBLKID="-lblkid"
22998 else
22999   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
23000 echo "$as_me: error: libblkid needed" >&2;}
23001    { (exit 1); exit 1; }; }
23002 fi
23003
23004    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23005   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23006 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23007 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 fi
23010 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23011 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23012 else
23013   # Is the header compilable?
23014 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
23015 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
23016 cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h.  */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h.  */
23022 $ac_includes_default
23023 #include <blkid/blkid.h>
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (ac_try="$ac_compile"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032   (eval "$ac_compile") 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } && {
23039          test -z "$ac_c_werror_flag" ||
23040          test ! -s conftest.err
23041        } && test -s conftest.$ac_objext; then
23042   ac_header_compiler=yes
23043 else
23044   echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047         ac_header_compiler=no
23048 fi
23049
23050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23052 echo "${ECHO_T}$ac_header_compiler" >&6; }
23053
23054 # Is the header present?
23055 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23056 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23057 cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063 #include <blkid/blkid.h>
23064 _ACEOF
23065 if { (ac_try="$ac_cpp conftest.$ac_ext"
23066 case "(($ac_try" in
23067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068   *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } >/dev/null && {
23078          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23079          test ! -s conftest.err
23080        }; then
23081   ac_header_preproc=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086   ac_header_preproc=no
23087 fi
23088
23089 rm -f conftest.err conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23091 echo "${ECHO_T}$ac_header_preproc" >&6; }
23092
23093 # So?  What about this header?
23094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23095   yes:no: )
23096     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23097 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23098     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23099 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23100     ac_header_preproc=yes
23101     ;;
23102   no:yes:* )
23103     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23104 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23105     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23106 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23107     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23108 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23109     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23110 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23111     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23112 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23114 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23115     ( cat <<\_ASBOX
23116 ## ---------------------------------------- ##
23117 ## Report this to linux-nfs@vger.kernel.org ##
23118 ## ---------------------------------------- ##
23119 _ASBOX
23120      ) | sed "s/^/$as_me: WARNING:     /" >&2
23121     ;;
23122 esac
23123 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23124 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23125 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23129 fi
23130 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23131 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23132
23133 fi
23134 if test $ac_cv_header_blkid_blkid_h = yes; then
23135   :
23136 else
23137   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23138 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23139    { (exit 1); exit 1; }; }
23140 fi
23141
23142
23143
23144   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23145 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23146   if test "${libblkid_is_recent+set}" = set; then
23147   echo $ECHO_N "(cached) $ECHO_C" >&6
23148 else
23149
23150     saved_LIBS="$LIBS"
23151     LIBS=-lblkid
23152     if test "$cross_compiling" = yes; then
23153   libblkid_is_recent=unknown
23154 else
23155   cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h.  */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h.  */
23161
23162         #include <blkid/blkid.h>
23163         int main()
23164         {
23165                 int vers = blkid_get_library_version(0, 0);
23166                 return vers >= 140 ? 0 : 1;
23167         }
23168
23169 _ACEOF
23170 rm -f conftest$ac_exeext
23171 if { (ac_try="$ac_link"
23172 case "(($ac_try" in
23173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174   *) ac_try_echo=$ac_try;;
23175 esac
23176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177   (eval "$ac_link") 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23181   { (case "(($ac_try" in
23182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183   *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186   (eval "$ac_try") 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; }; then
23190   libblkid_is_recent=yes
23191 else
23192   echo "$as_me: program exited with status $ac_status" >&5
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ( exit $ac_status )
23197 libblkid_is_recent=no
23198 fi
23199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23200 fi
23201
23202
23203     LIBS="$saved_LIBS"
23204
23205 fi
23206   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23207 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23208
23209    if test $choose_blkid = yes; then
23210       use_blkid=1
23211       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23212 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23213    else
23214       if test $libblkid_is_recent = yes
23215       then use_blkid=1
23216       else use_blkid=0
23217            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23218 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23219       fi
23220     fi
23221
23222 cat >>confdefs.h <<_ACEOF
23223 #define USE_BLKID $use_blkid
23224 _ACEOF
23225
23226 fi
23227
23228
23229
23230
23231
23232 if test "$enable_gss" = yes; then
23233
23234 for ac_header in nfsidmap.h
23235 do
23236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23238   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 fi
23243 ac_res=`eval echo '${'$as_ac_Header'}'`
23244                { echo "$as_me:$LINENO: result: $ac_res" >&5
23245 echo "${ECHO_T}$ac_res" >&6; }
23246 else
23247   # Is the header compilable?
23248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256 $ac_includes_default
23257 #include <$ac_header>
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263   *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266   (eval "$ac_compile") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } && {
23273          test -z "$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        } && test -s conftest.$ac_objext; then
23276   ac_header_compiler=yes
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281         ac_header_compiler=no
23282 fi
23283
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23286 echo "${ECHO_T}$ac_header_compiler" >&6; }
23287
23288 # Is the header present?
23289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 #include <$ac_header>
23298 _ACEOF
23299 if { (ac_try="$ac_cpp conftest.$ac_ext"
23300 case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } >/dev/null && {
23312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23313          test ! -s conftest.err
23314        }; then
23315   ac_header_preproc=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320   ac_header_preproc=no
23321 fi
23322
23323 rm -f conftest.err conftest.$ac_ext
23324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23325 echo "${ECHO_T}$ac_header_preproc" >&6; }
23326
23327 # So?  What about this header?
23328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23329   yes:no: )
23330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23334     ac_header_preproc=yes
23335     ;;
23336   no:yes:* )
23337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23349     ( cat <<\_ASBOX
23350 ## ---------------------------------------- ##
23351 ## Report this to linux-nfs@vger.kernel.org ##
23352 ## ---------------------------------------- ##
23353 _ASBOX
23354      ) | sed "s/^/$as_me: WARNING:     /" >&2
23355     ;;
23356 esac
23357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23360   echo $ECHO_N "(cached) $ECHO_C" >&6
23361 else
23362   eval "$as_ac_Header=\$ac_header_preproc"
23363 fi
23364 ac_res=`eval echo '${'$as_ac_Header'}'`
23365                { echo "$as_me:$LINENO: result: $ac_res" >&5
23366 echo "${ECHO_T}$ac_res" >&6; }
23367
23368 fi
23369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23370   cat >>confdefs.h <<_ACEOF
23371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23372 _ACEOF
23373
23374 else
23375   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23376 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23377    { (exit 1); exit 1; }; }
23378 fi
23379
23380 done
23381
23382
23383 for ac_header in spkm3.h
23384 do
23385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 fi
23392 ac_res=`eval echo '${'$as_ac_Header'}'`
23393                { echo "$as_me:$LINENO: result: $ac_res" >&5
23394 echo "${ECHO_T}$ac_res" >&6; }
23395 else
23396   # Is the header compilable?
23397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23399 cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406 #include <$ac_header>
23407 _ACEOF
23408 rm -f conftest.$ac_objext
23409 if { (ac_try="$ac_compile"
23410 case "(($ac_try" in
23411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412   *) ac_try_echo=$ac_try;;
23413 esac
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415   (eval "$ac_compile") 2>conftest.er1
23416   ac_status=$?
23417   grep -v '^ *+' conftest.er1 >conftest.err
23418   rm -f conftest.er1
23419   cat conftest.err >&5
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); } && {
23422          test -z "$ac_c_werror_flag" ||
23423          test ! -s conftest.err
23424        } && test -s conftest.$ac_objext; then
23425   ac_header_compiler=yes
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429
23430         ac_header_compiler=no
23431 fi
23432
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23435 echo "${ECHO_T}$ac_header_compiler" >&6; }
23436
23437 # Is the header present?
23438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 #include <$ac_header>
23447 _ACEOF
23448 if { (ac_try="$ac_cpp conftest.$ac_ext"
23449 case "(($ac_try" in
23450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451   *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23455   ac_status=$?
23456   grep -v '^ *+' conftest.er1 >conftest.err
23457   rm -f conftest.er1
23458   cat conftest.err >&5
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); } >/dev/null && {
23461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23462          test ! -s conftest.err
23463        }; then
23464   ac_header_preproc=yes
23465 else
23466   echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469   ac_header_preproc=no
23470 fi
23471
23472 rm -f conftest.err conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23474 echo "${ECHO_T}$ac_header_preproc" >&6; }
23475
23476 # So?  What about this header?
23477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23478   yes:no: )
23479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23483     ac_header_preproc=yes
23484     ;;
23485   no:yes:* )
23486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23498     ( cat <<\_ASBOX
23499 ## ---------------------------------------- ##
23500 ## Report this to linux-nfs@vger.kernel.org ##
23501 ## ---------------------------------------- ##
23502 _ASBOX
23503      ) | sed "s/^/$as_me: WARNING:     /" >&2
23504     ;;
23505 esac
23506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   eval "$as_ac_Header=\$ac_header_preproc"
23512 fi
23513 ac_res=`eval echo '${'$as_ac_Header'}'`
23514                { echo "$as_me:$LINENO: result: $ac_res" >&5
23515 echo "${ECHO_T}$ac_res" >&6; }
23516
23517 fi
23518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23519   cat >>confdefs.h <<_ACEOF
23520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23521 _ACEOF
23522
23523 else
23524   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23525 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23526 fi
23527
23528 done
23529
23530     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23531 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23532 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535   ac_check_lib_save_LIBS=$LIBS
23536 LIBS="-lnfsidmap  $LIBS"
23537 cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543
23544 /* Override any GCC internal prototype to avoid an error.
23545    Use char because int might match the return type of a GCC
23546    builtin and then its argument prototype would still apply.  */
23547 #ifdef __cplusplus
23548 extern "C"
23549 #endif
23550 char nfs4_set_debug ();
23551 int
23552 main ()
23553 {
23554 return nfs4_set_debug ();
23555   ;
23556   return 0;
23557 }
23558 _ACEOF
23559 rm -f conftest.$ac_objext conftest$ac_exeext
23560 if { (ac_try="$ac_link"
23561 case "(($ac_try" in
23562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563   *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566   (eval "$ac_link") 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } && {
23573          test -z "$ac_c_werror_flag" ||
23574          test ! -s conftest.err
23575        } && test -s conftest$ac_exeext &&
23576        $as_test_x conftest$ac_exeext; then
23577   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23578 else
23579   echo "$as_me: failed program was:" >&5
23580 sed 's/^/| /' conftest.$ac_ext >&5
23581
23582         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23583 fi
23584
23585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23586       conftest$ac_exeext conftest.$ac_ext
23587 LIBS=$ac_check_lib_save_LIBS
23588 fi
23589 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23590 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23591 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23592
23593 cat >>confdefs.h <<\_ACEOF
23594 #define HAVE_NFS4_SET_DEBUG 1
23595 _ACEOF
23596
23597 fi
23598
23599
23600
23601   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23602 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23603
23604 # Check whether --with-krb5 was given.
23605 if test "${with_krb5+set}" = set; then
23606   withval=$with_krb5;  case "$withval" in
23607     yes|no)
23608        krb5_with=""
23609        ;;
23610     *)
23611        krb5_with="$withval"
23612        ;;
23613     esac
23614
23615 fi
23616
23617
23618   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23619              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23620             K5CONFIG=""
23621     if test -f $dir/bin/krb5-config; then
23622       K5CONFIG=$dir/bin/krb5-config
23623     elif test -f "/usr/kerberos/bin/krb5-config"; then
23624       K5CONFIG="/usr/kerberos/bin/krb5-config"
23625     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23626       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23627     fi
23628     if test "$K5CONFIG" != ""; then
23629       KRBCFLAGS=`$K5CONFIG --cflags`
23630       KRBLIBS=`$K5CONFIG --libs gssapi`
23631       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23632
23633 cat >>confdefs.h <<_ACEOF
23634 #define KRB5_VERSION $K5VERS
23635 _ACEOF
23636
23637       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23638                 \( -f $dir/lib/libgssapi_krb5.a -o \
23639                    -f $dir/lib64/libgssapi_krb5.a -o \
23640                    -f $dir/lib64/libgssapi_krb5.so -o \
23641                    -f $dir/lib/libgssapi_krb5.so \) ; then
23642
23643 cat >>confdefs.h <<\_ACEOF
23644 #define HAVE_KRB5 1
23645 _ACEOF
23646
23647          KRBDIR="$dir"
23648                      if test $K5VERS -le 131; then
23649
23650 cat >>confdefs.h <<\_ACEOF
23651 #define USE_GSS_KRB5_CCACHE_NAME 1
23652 _ACEOF
23653
23654          fi
23655          gssapi_lib=gssapi_krb5
23656          break
23657                   elif test \( -f $dir/include/heim_err.h -o\
23658                  -f $dir/include/heimdal/heim_err.h \) -a \
23659                 -f $dir/lib/libroken.a; then
23660
23661 cat >>confdefs.h <<\_ACEOF
23662 #define HAVE_HEIMDAL 1
23663 _ACEOF
23664
23665          KRBDIR="$dir"
23666          gssapi_lib=gssapi
23667         break
23668       fi
23669     fi
23670   done
23671     if test "x$KRBDIR" = "x"; then
23672     if test "x$krb5_with" = "x"; then
23673       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23674 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23675    { (exit 1); exit 1; }; }
23676     else
23677       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23678 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23679    { (exit 1); exit 1; }; }
23680     fi
23681   fi
23682   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23683 echo "${ECHO_T}$KRBDIR" >&6; }
23684
23685     echo "The current KRBDIR is $KRBDIR"
23686   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23687        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23688     KRBLDFLAGS="";
23689   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23690     KRBLDFLAGS="";
23691   else
23692     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23693   fi
23694
23695     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23696 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23697 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23698 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23699   echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701   ac_check_lib_save_LIBS=$LIBS
23702 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709
23710 /* Override any GCC internal prototype to avoid an error.
23711    Use char because int might match the return type of a GCC
23712    builtin and then its argument prototype would still apply.  */
23713 #ifdef __cplusplus
23714 extern "C"
23715 #endif
23716 char gss_krb5_export_lucid_sec_context ();
23717 int
23718 main ()
23719 {
23720 return gss_krb5_export_lucid_sec_context ();
23721   ;
23722   return 0;
23723 }
23724 _ACEOF
23725 rm -f conftest.$ac_objext conftest$ac_exeext
23726 if { (ac_try="$ac_link"
23727 case "(($ac_try" in
23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729   *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732   (eval "$ac_link") 2>conftest.er1
23733   ac_status=$?
23734   grep -v '^ *+' conftest.er1 >conftest.err
23735   rm -f conftest.er1
23736   cat conftest.err >&5
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } && {
23739          test -z "$ac_c_werror_flag" ||
23740          test ! -s conftest.err
23741        } && test -s conftest$ac_exeext &&
23742        $as_test_x conftest$ac_exeext; then
23743   eval "$as_ac_Lib=yes"
23744 else
23745   echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748         eval "$as_ac_Lib=no"
23749 fi
23750
23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23752       conftest$ac_exeext conftest.$ac_ext
23753 LIBS=$ac_check_lib_save_LIBS
23754 fi
23755 ac_res=`eval echo '${'$as_ac_Lib'}'`
23756                { echo "$as_me:$LINENO: result: $ac_res" >&5
23757 echo "${ECHO_T}$ac_res" >&6; }
23758 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23759
23760 cat >>confdefs.h <<\_ACEOF
23761 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23762 _ACEOF
23763
23764 fi
23765
23766   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23767 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23768 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23769 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 else
23772   ac_check_lib_save_LIBS=$LIBS
23773 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23774 cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 /* Override any GCC internal prototype to avoid an error.
23782    Use char because int might match the return type of a GCC
23783    builtin and then its argument prototype would still apply.  */
23784 #ifdef __cplusplus
23785 extern "C"
23786 #endif
23787 char gss_krb5_set_allowable_enctypes ();
23788 int
23789 main ()
23790 {
23791 return gss_krb5_set_allowable_enctypes ();
23792   ;
23793   return 0;
23794 }
23795 _ACEOF
23796 rm -f conftest.$ac_objext conftest$ac_exeext
23797 if { (ac_try="$ac_link"
23798 case "(($ac_try" in
23799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800   *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803   (eval "$ac_link") 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } && {
23810          test -z "$ac_c_werror_flag" ||
23811          test ! -s conftest.err
23812        } && test -s conftest$ac_exeext &&
23813        $as_test_x conftest$ac_exeext; then
23814   eval "$as_ac_Lib=yes"
23815 else
23816   echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23818
23819         eval "$as_ac_Lib=no"
23820 fi
23821
23822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23823       conftest$ac_exeext conftest.$ac_ext
23824 LIBS=$ac_check_lib_save_LIBS
23825 fi
23826 ac_res=`eval echo '${'$as_ac_Lib'}'`
23827                { echo "$as_me:$LINENO: result: $ac_res" >&5
23828 echo "${ECHO_T}$ac_res" >&6; }
23829 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23830
23831 cat >>confdefs.h <<\_ACEOF
23832 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23833 _ACEOF
23834
23835 fi
23836
23837   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23838 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23839 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23840 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23841   echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843   ac_check_lib_save_LIBS=$LIBS
23844 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23845 cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851
23852 /* Override any GCC internal prototype to avoid an error.
23853    Use char because int might match the return type of a GCC
23854    builtin and then its argument prototype would still apply.  */
23855 #ifdef __cplusplus
23856 extern "C"
23857 #endif
23858 char gss_krb5_ccache_name ();
23859 int
23860 main ()
23861 {
23862 return gss_krb5_ccache_name ();
23863   ;
23864   return 0;
23865 }
23866 _ACEOF
23867 rm -f conftest.$ac_objext conftest$ac_exeext
23868 if { (ac_try="$ac_link"
23869 case "(($ac_try" in
23870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871   *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874   (eval "$ac_link") 2>conftest.er1
23875   ac_status=$?
23876   grep -v '^ *+' conftest.er1 >conftest.err
23877   rm -f conftest.er1
23878   cat conftest.err >&5
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); } && {
23881          test -z "$ac_c_werror_flag" ||
23882          test ! -s conftest.err
23883        } && test -s conftest$ac_exeext &&
23884        $as_test_x conftest$ac_exeext; then
23885   eval "$as_ac_Lib=yes"
23886 else
23887   echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890         eval "$as_ac_Lib=no"
23891 fi
23892
23893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23894       conftest$ac_exeext conftest.$ac_ext
23895 LIBS=$ac_check_lib_save_LIBS
23896 fi
23897 ac_res=`eval echo '${'$as_ac_Lib'}'`
23898                { echo "$as_me:$LINENO: result: $ac_res" >&5
23899 echo "${ECHO_T}$ac_res" >&6; }
23900 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23901
23902 cat >>confdefs.h <<\_ACEOF
23903 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23904 _ACEOF
23905
23906 fi
23907
23908
23909     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23910 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23911 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23912 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23913   echo $ECHO_N "(cached) $ECHO_C" >&6
23914 else
23915   ac_check_lib_save_LIBS=$LIBS
23916 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23917 cat >conftest.$ac_ext <<_ACEOF
23918 /* confdefs.h.  */
23919 _ACEOF
23920 cat confdefs.h >>conftest.$ac_ext
23921 cat >>conftest.$ac_ext <<_ACEOF
23922 /* end confdefs.h.  */
23923
23924 /* Override any GCC internal prototype to avoid an error.
23925    Use char because int might match the return type of a GCC
23926    builtin and then its argument prototype would still apply.  */
23927 #ifdef __cplusplus
23928 extern "C"
23929 #endif
23930 char krb5_get_error_message ();
23931 int
23932 main ()
23933 {
23934 return krb5_get_error_message ();
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 rm -f conftest.$ac_objext conftest$ac_exeext
23940 if { (ac_try="$ac_link"
23941 case "(($ac_try" in
23942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943   *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946   (eval "$ac_link") 2>conftest.er1
23947   ac_status=$?
23948   grep -v '^ *+' conftest.er1 >conftest.err
23949   rm -f conftest.er1
23950   cat conftest.err >&5
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); } && {
23953          test -z "$ac_c_werror_flag" ||
23954          test ! -s conftest.err
23955        } && test -s conftest$ac_exeext &&
23956        $as_test_x conftest$ac_exeext; then
23957   eval "$as_ac_Lib=yes"
23958 else
23959   echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23961
23962         eval "$as_ac_Lib=no"
23963 fi
23964
23965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23966       conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23968 fi
23969 ac_res=`eval echo '${'$as_ac_Lib'}'`
23970                { echo "$as_me:$LINENO: result: $ac_res" >&5
23971 echo "${ECHO_T}$ac_res" >&6; }
23972 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23973
23974 cat >>confdefs.h <<\_ACEOF
23975 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23976 _ACEOF
23977
23978 fi
23979
23980
23981     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23982 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23983 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23984 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23985   echo $ECHO_N "(cached) $ECHO_C" >&6
23986 else
23987   ac_check_lib_save_LIBS=$LIBS
23988 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h.  */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h.  */
23995
23996 /* Override any GCC internal prototype to avoid an error.
23997    Use char because int might match the return type of a GCC
23998    builtin and then its argument prototype would still apply.  */
23999 #ifdef __cplusplus
24000 extern "C"
24001 #endif
24002 char krb5_get_init_creds_opt_set_addressless ();
24003 int
24004 main ()
24005 {
24006 return krb5_get_init_creds_opt_set_addressless ();
24007   ;
24008   return 0;
24009 }
24010 _ACEOF
24011 rm -f conftest.$ac_objext conftest$ac_exeext
24012 if { (ac_try="$ac_link"
24013 case "(($ac_try" in
24014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015   *) ac_try_echo=$ac_try;;
24016 esac
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018   (eval "$ac_link") 2>conftest.er1
24019   ac_status=$?
24020   grep -v '^ *+' conftest.er1 >conftest.err
24021   rm -f conftest.er1
24022   cat conftest.err >&5
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); } && {
24025          test -z "$ac_c_werror_flag" ||
24026          test ! -s conftest.err
24027        } && test -s conftest$ac_exeext &&
24028        $as_test_x conftest$ac_exeext; then
24029   eval "$as_ac_Lib=yes"
24030 else
24031   echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034         eval "$as_ac_Lib=no"
24035 fi
24036
24037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24038       conftest$ac_exeext conftest.$ac_ext
24039 LIBS=$ac_check_lib_save_LIBS
24040 fi
24041 ac_res=`eval echo '${'$as_ac_Lib'}'`
24042                { echo "$as_me:$LINENO: result: $ac_res" >&5
24043 echo "${ECHO_T}$ac_res" >&6; }
24044 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24045
24046 cat >>confdefs.h <<\_ACEOF
24047 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24048 _ACEOF
24049
24050 fi
24051
24052
24053     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24054     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24055 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24056   fi
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24067 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24068 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24069   echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071   ac_check_lib_save_LIBS=$LIBS
24072 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24073 cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h.  */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h.  */
24079
24080 /* Override any GCC internal prototype to avoid an error.
24081    Use char because int might match the return type of a GCC
24082    builtin and then its argument prototype would still apply.  */
24083 #ifdef __cplusplus
24084 extern "C"
24085 #endif
24086 char authgss_create_default ();
24087 int
24088 main ()
24089 {
24090 return authgss_create_default ();
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099   *) ac_try_echo=$ac_try;;
24100 esac
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102   (eval "$ac_link") 2>conftest.er1
24103   ac_status=$?
24104   grep -v '^ *+' conftest.er1 >conftest.err
24105   rm -f conftest.er1
24106   cat conftest.err >&5
24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108   (exit $ac_status); } && {
24109          test -z "$ac_c_werror_flag" ||
24110          test ! -s conftest.err
24111        } && test -s conftest$ac_exeext &&
24112        $as_test_x conftest$ac_exeext; then
24113   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24114 else
24115   echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118         ac_cv_lib_rpcsecgss_authgss_create_default=no
24119 fi
24120
24121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24122       conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24124 fi
24125 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24126 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24127 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24128   librpcsecgss=1
24129 else
24130   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24131 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24132    { (exit 1); exit 1; }; }
24133 fi
24134
24135   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24136 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24137 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24138   echo $ECHO_N "(cached) $ECHO_C" >&6
24139 else
24140   ac_check_lib_save_LIBS=$LIBS
24141 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24142 cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h.  */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h.  */
24148
24149 /* Override any GCC internal prototype to avoid an error.
24150    Use char because int might match the return type of a GCC
24151    builtin and then its argument prototype would still apply.  */
24152 #ifdef __cplusplus
24153 extern "C"
24154 #endif
24155 char authgss_set_debug_level ();
24156 int
24157 main ()
24158 {
24159 return authgss_set_debug_level ();
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext conftest$ac_exeext
24165 if { (ac_try="$ac_link"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_link") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest$ac_exeext &&
24181        $as_test_x conftest$ac_exeext; then
24182   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24183 else
24184   echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24188 fi
24189
24190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24191       conftest$ac_exeext conftest.$ac_ext
24192 LIBS=$ac_check_lib_save_LIBS
24193 fi
24194 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24195 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24196 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24200 _ACEOF
24201
24202 fi
24203
24204
24205 fi
24206
24207 if test "$enable_ipv6" = yes; then
24208   { echo "$as_me:$LINENO: checking for inet_ntop" >&5
24209 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
24210 if test "${ac_cv_func_inet_ntop+set}" = set; then
24211   echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213   cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
24220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24221 #define inet_ntop innocuous_inet_ntop
24222
24223 /* System header to define __stub macros and hopefully few prototypes,
24224     which can conflict with char inet_ntop (); below.
24225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24226     <limits.h> exists even on freestanding compilers.  */
24227
24228 #ifdef __STDC__
24229 # include <limits.h>
24230 #else
24231 # include <assert.h>
24232 #endif
24233
24234 #undef inet_ntop
24235
24236 /* Override any GCC internal prototype to avoid an error.
24237    Use char because int might match the return type of a GCC
24238    builtin and then its argument prototype would still apply.  */
24239 #ifdef __cplusplus
24240 extern "C"
24241 #endif
24242 char inet_ntop ();
24243 /* The GNU C library defines this for functions which it implements
24244     to always fail with ENOSYS.  Some functions are actually named
24245     something starting with __ and the normal name is an alias.  */
24246 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24247 choke me
24248 #endif
24249
24250 int
24251 main ()
24252 {
24253 return inet_ntop ();
24254   ;
24255   return 0;
24256 }
24257 _ACEOF
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_link") 2>conftest.er1
24266   ac_status=$?
24267   grep -v '^ *+' conftest.er1 >conftest.err
24268   rm -f conftest.er1
24269   cat conftest.err >&5
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } && {
24272          test -z "$ac_c_werror_flag" ||
24273          test ! -s conftest.err
24274        } && test -s conftest$ac_exeext &&
24275        $as_test_x conftest$ac_exeext; then
24276   ac_cv_func_inet_ntop=yes
24277 else
24278   echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24280
24281         ac_cv_func_inet_ntop=no
24282 fi
24283
24284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24285       conftest$ac_exeext conftest.$ac_ext
24286 fi
24287 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
24288 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
24289
24290   { echo "$as_me:$LINENO: checking for getnameinfo" >&5
24291 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
24292 if test "${ac_cv_func_getnameinfo+set}" = set; then
24293   echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295   cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h.  */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h.  */
24301 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24303 #define getnameinfo innocuous_getnameinfo
24304
24305 /* System header to define __stub macros and hopefully few prototypes,
24306     which can conflict with char getnameinfo (); below.
24307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24308     <limits.h> exists even on freestanding compilers.  */
24309
24310 #ifdef __STDC__
24311 # include <limits.h>
24312 #else
24313 # include <assert.h>
24314 #endif
24315
24316 #undef getnameinfo
24317
24318 /* Override any GCC internal prototype to avoid an error.
24319    Use char because int might match the return type of a GCC
24320    builtin and then its argument prototype would still apply.  */
24321 #ifdef __cplusplus
24322 extern "C"
24323 #endif
24324 char getnameinfo ();
24325 /* The GNU C library defines this for functions which it implements
24326     to always fail with ENOSYS.  Some functions are actually named
24327     something starting with __ and the normal name is an alias.  */
24328 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24329 choke me
24330 #endif
24331
24332 int
24333 main ()
24334 {
24335 return getnameinfo ();
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_link") 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } && {
24354          test -z "$ac_c_werror_flag" ||
24355          test ! -s conftest.err
24356        } && test -s conftest$ac_exeext &&
24357        $as_test_x conftest$ac_exeext; then
24358   ac_cv_func_getnameinfo=yes
24359 else
24360   echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363         ac_cv_func_getnameinfo=no
24364 fi
24365
24366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367       conftest$ac_exeext conftest.$ac_ext
24368 fi
24369 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24370 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
24371
24372
24373 { echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
24374 echo $ECHO_N "checking for clnt_tli_create in -ltirpc... $ECHO_C" >&6; }
24375 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
24376   echo $ECHO_N "(cached) $ECHO_C" >&6
24377 else
24378   ac_check_lib_save_LIBS=$LIBS
24379 LIBS="-ltirpc  $LIBS"
24380 cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h.  */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h.  */
24386
24387 /* Override any GCC internal prototype to avoid an error.
24388    Use char because int might match the return type of a GCC
24389    builtin and then its argument prototype would still apply.  */
24390 #ifdef __cplusplus
24391 extern "C"
24392 #endif
24393 char clnt_tli_create ();
24394 int
24395 main ()
24396 {
24397 return clnt_tli_create ();
24398   ;
24399   return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest.$ac_objext conftest$ac_exeext
24403 if { (ac_try="$ac_link"
24404 case "(($ac_try" in
24405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406   *) ac_try_echo=$ac_try;;
24407 esac
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409   (eval "$ac_link") 2>conftest.er1
24410   ac_status=$?
24411   grep -v '^ *+' conftest.er1 >conftest.err
24412   rm -f conftest.er1
24413   cat conftest.err >&5
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); } && {
24416          test -z "$ac_c_werror_flag" ||
24417          test ! -s conftest.err
24418        } && test -s conftest$ac_exeext &&
24419        $as_test_x conftest$ac_exeext; then
24420   ac_cv_lib_tirpc_clnt_tli_create=yes
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425         ac_cv_lib_tirpc_clnt_tli_create=no
24426 fi
24427
24428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24429       conftest$ac_exeext conftest.$ac_ext
24430 LIBS=$ac_check_lib_save_LIBS
24431 fi
24432 { echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
24433 echo "${ECHO_T}$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
24434 if test $ac_cv_lib_tirpc_clnt_tli_create = yes; then
24435   cat >>confdefs.h <<_ACEOF
24436 #define HAVE_LIBTIRPC 1
24437 _ACEOF
24438
24439   LIBS="-ltirpc $LIBS"
24440
24441 else
24442   { { echo "$as_me:$LINENO: error: libtirpc needed for IPv6 support" >&5
24443 echo "$as_me: error: libtirpc needed for IPv6 support" >&2;}
24444    { (exit 1); exit 1; }; }
24445 fi
24446
24447
24448 for ac_header in tirpc/netconfig.h
24449 do
24450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24452   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 fi
24457 ac_res=`eval echo '${'$as_ac_Header'}'`
24458                { echo "$as_me:$LINENO: result: $ac_res" >&5
24459 echo "${ECHO_T}$ac_res" >&6; }
24460 else
24461   # Is the header compilable?
24462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24464 cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 $ac_includes_default
24471 #include <$ac_header>
24472 _ACEOF
24473 rm -f conftest.$ac_objext
24474 if { (ac_try="$ac_compile"
24475 case "(($ac_try" in
24476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477   *) ac_try_echo=$ac_try;;
24478 esac
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480   (eval "$ac_compile") 2>conftest.er1
24481   ac_status=$?
24482   grep -v '^ *+' conftest.er1 >conftest.err
24483   rm -f conftest.er1
24484   cat conftest.err >&5
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); } && {
24487          test -z "$ac_c_werror_flag" ||
24488          test ! -s conftest.err
24489        } && test -s conftest.$ac_objext; then
24490   ac_header_compiler=yes
24491 else
24492   echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495         ac_header_compiler=no
24496 fi
24497
24498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24500 echo "${ECHO_T}$ac_header_compiler" >&6; }
24501
24502 # Is the header present?
24503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24505 cat >conftest.$ac_ext <<_ACEOF
24506 /* confdefs.h.  */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h.  */
24511 #include <$ac_header>
24512 _ACEOF
24513 if { (ac_try="$ac_cpp conftest.$ac_ext"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24520   ac_status=$?
24521   grep -v '^ *+' conftest.er1 >conftest.err
24522   rm -f conftest.er1
24523   cat conftest.err >&5
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } >/dev/null && {
24526          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24527          test ! -s conftest.err
24528        }; then
24529   ac_header_preproc=yes
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534   ac_header_preproc=no
24535 fi
24536
24537 rm -f conftest.err conftest.$ac_ext
24538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24539 echo "${ECHO_T}$ac_header_preproc" >&6; }
24540
24541 # So?  What about this header?
24542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24543   yes:no: )
24544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24548     ac_header_preproc=yes
24549     ;;
24550   no:yes:* )
24551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24563     ( cat <<\_ASBOX
24564 ## ---------------------------------------- ##
24565 ## Report this to linux-nfs@vger.kernel.org ##
24566 ## ---------------------------------------- ##
24567 _ASBOX
24568      ) | sed "s/^/$as_me: WARNING:     /" >&2
24569     ;;
24570 esac
24571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24574   echo $ECHO_N "(cached) $ECHO_C" >&6
24575 else
24576   eval "$as_ac_Header=\$ac_header_preproc"
24577 fi
24578 ac_res=`eval echo '${'$as_ac_Header'}'`
24579                { echo "$as_me:$LINENO: result: $ac_res" >&5
24580 echo "${ECHO_T}$ac_res" >&6; }
24581
24582 fi
24583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24584   cat >>confdefs.h <<_ACEOF
24585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24586 _ACEOF
24587
24588 else
24589   { { echo "$as_me:$LINENO: error: libtirpc-devel needed for IPv6 support" >&5
24590 echo "$as_me: error: libtirpc-devel needed for IPv6 support" >&2;}
24591    { (exit 1); exit 1; }; }
24592 fi
24593
24594 done
24595
24596 fi
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24623                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24624                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24625                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24626                  syslog.h unistd.h com_err.h et/com_err.h \
24627                  ifaddrs.h tirpc/netconfig.h
24628 do
24629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24631   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24634   echo $ECHO_N "(cached) $ECHO_C" >&6
24635 fi
24636 ac_res=`eval echo '${'$as_ac_Header'}'`
24637                { echo "$as_me:$LINENO: result: $ac_res" >&5
24638 echo "${ECHO_T}$ac_res" >&6; }
24639 else
24640   # Is the header compilable?
24641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h.  */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h.  */
24649 $ac_includes_default
24650 #include <$ac_header>
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656   *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659   (eval "$ac_compile") 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } && {
24666          test -z "$ac_c_werror_flag" ||
24667          test ! -s conftest.err
24668        } && test -s conftest.$ac_objext; then
24669   ac_header_compiler=yes
24670 else
24671   echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674         ac_header_compiler=no
24675 fi
24676
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24679 echo "${ECHO_T}$ac_header_compiler" >&6; }
24680
24681 # Is the header present?
24682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h.  */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h.  */
24690 #include <$ac_header>
24691 _ACEOF
24692 if { (ac_try="$ac_cpp conftest.$ac_ext"
24693 case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24699   ac_status=$?
24700   grep -v '^ *+' conftest.er1 >conftest.err
24701   rm -f conftest.er1
24702   cat conftest.err >&5
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); } >/dev/null && {
24705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24706          test ! -s conftest.err
24707        }; then
24708   ac_header_preproc=yes
24709 else
24710   echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24712
24713   ac_header_preproc=no
24714 fi
24715
24716 rm -f conftest.err conftest.$ac_ext
24717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24718 echo "${ECHO_T}$ac_header_preproc" >&6; }
24719
24720 # So?  What about this header?
24721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24722   yes:no: )
24723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24727     ac_header_preproc=yes
24728     ;;
24729   no:yes:* )
24730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24742     ( cat <<\_ASBOX
24743 ## ---------------------------------------- ##
24744 ## Report this to linux-nfs@vger.kernel.org ##
24745 ## ---------------------------------------- ##
24746 _ASBOX
24747      ) | sed "s/^/$as_me: WARNING:     /" >&2
24748     ;;
24749 esac
24750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24753   echo $ECHO_N "(cached) $ECHO_C" >&6
24754 else
24755   eval "$as_ac_Header=\$ac_header_preproc"
24756 fi
24757 ac_res=`eval echo '${'$as_ac_Header'}'`
24758                { echo "$as_me:$LINENO: result: $ac_res" >&5
24759 echo "${ECHO_T}$ac_res" >&6; }
24760
24761 fi
24762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24763   cat >>confdefs.h <<_ACEOF
24764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24765 _ACEOF
24766
24767 fi
24768
24769 done
24770
24771
24772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24774 if test "${ac_cv_c_const+set}" = set; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783
24784 int
24785 main ()
24786 {
24787 /* FIXME: Include the comments suggested by Paul. */
24788 #ifndef __cplusplus
24789   /* Ultrix mips cc rejects this.  */
24790   typedef int charset[2];
24791   const charset cs;
24792   /* SunOS 4.1.1 cc rejects this.  */
24793   char const *const *pcpcc;
24794   char **ppc;
24795   /* NEC SVR4.0.2 mips cc rejects this.  */
24796   struct point {int x, y;};
24797   static struct point const zero = {0,0};
24798   /* AIX XL C 1.02.0.0 rejects this.
24799      It does not let you subtract one const X* pointer from another in
24800      an arm of an if-expression whose if-part is not a constant
24801      expression */
24802   const char *g = "string";
24803   pcpcc = &g + (g ? g-g : 0);
24804   /* HPUX 7.0 cc rejects these. */
24805   ++pcpcc;
24806   ppc = (char**) pcpcc;
24807   pcpcc = (char const *const *) ppc;
24808   { /* SCO 3.2v4 cc rejects this.  */
24809     char *t;
24810     char const *s = 0 ? (char *) 0 : (char const *) 0;
24811
24812     *t++ = 0;
24813     if (s) return 0;
24814   }
24815   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24816     int x[] = {25, 17};
24817     const int *foo = &x[0];
24818     ++foo;
24819   }
24820   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24821     typedef const int *iptr;
24822     iptr p = 0;
24823     ++p;
24824   }
24825   { /* AIX XL C 1.02.0.0 rejects this saying
24826        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24827     struct s { int j; const int *ap[3]; };
24828     struct s *b; b->j = 5;
24829   }
24830   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24831     const int foo = 10;
24832     if (!foo) return 0;
24833   }
24834   return !cs[0] && !zero.x;
24835 #endif
24836
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848   (eval "$ac_compile") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } && {
24855          test -z "$ac_c_werror_flag" ||
24856          test ! -s conftest.err
24857        } && test -s conftest.$ac_objext; then
24858   ac_cv_c_const=yes
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863         ac_cv_c_const=no
24864 fi
24865
24866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867 fi
24868 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24869 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24870 if test $ac_cv_c_const = no; then
24871
24872 cat >>confdefs.h <<\_ACEOF
24873 #define const
24874 _ACEOF
24875
24876 fi
24877
24878 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24879 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24880 if test "${ac_cv_type_uid_t+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h.  */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h.  */
24889 #include <sys/types.h>
24890
24891 _ACEOF
24892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24893   $EGREP "uid_t" >/dev/null 2>&1; then
24894   ac_cv_type_uid_t=yes
24895 else
24896   ac_cv_type_uid_t=no
24897 fi
24898 rm -f conftest*
24899
24900 fi
24901 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24902 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24903 if test $ac_cv_type_uid_t = no; then
24904
24905 cat >>confdefs.h <<\_ACEOF
24906 #define uid_t int
24907 _ACEOF
24908
24909
24910 cat >>confdefs.h <<\_ACEOF
24911 #define gid_t int
24912 _ACEOF
24913
24914 fi
24915
24916 { echo "$as_me:$LINENO: checking for inline" >&5
24917 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24918 if test "${ac_cv_c_inline+set}" = set; then
24919   echo $ECHO_N "(cached) $ECHO_C" >&6
24920 else
24921   ac_cv_c_inline=no
24922 for ac_kw in inline __inline__ __inline; do
24923   cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929 #ifndef __cplusplus
24930 typedef int foo_t;
24931 static $ac_kw foo_t static_foo () {return 0; }
24932 $ac_kw foo_t foo () {return 0; }
24933 #endif
24934
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940   *) ac_try_echo=$ac_try;;
24941 esac
24942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943   (eval "$ac_compile") 2>conftest.er1
24944   ac_status=$?
24945   grep -v '^ *+' conftest.er1 >conftest.err
24946   rm -f conftest.er1
24947   cat conftest.err >&5
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); } && {
24950          test -z "$ac_c_werror_flag" ||
24951          test ! -s conftest.err
24952        } && test -s conftest.$ac_objext; then
24953   ac_cv_c_inline=$ac_kw
24954 else
24955   echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24957
24958
24959 fi
24960
24961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962   test "$ac_cv_c_inline" != no && break
24963 done
24964
24965 fi
24966 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24967 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24968
24969
24970 case $ac_cv_c_inline in
24971   inline | yes) ;;
24972   *)
24973     case $ac_cv_c_inline in
24974       no) ac_val=;;
24975       *) ac_val=$ac_cv_c_inline;;
24976     esac
24977     cat >>confdefs.h <<_ACEOF
24978 #ifndef __cplusplus
24979 #define inline $ac_val
24980 #endif
24981 _ACEOF
24982     ;;
24983 esac
24984
24985 { echo "$as_me:$LINENO: checking for off_t" >&5
24986 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24987 if test "${ac_cv_type_off_t+set}" = set; then
24988   echo $ECHO_N "(cached) $ECHO_C" >&6
24989 else
24990   cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996 $ac_includes_default
24997 typedef off_t ac__type_new_;
24998 int
24999 main ()
25000 {
25001 if ((ac__type_new_ *) 0)
25002   return 0;
25003 if (sizeof (ac__type_new_))
25004   return 0;
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_compile") 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } && {
25023          test -z "$ac_c_werror_flag" ||
25024          test ! -s conftest.err
25025        } && test -s conftest.$ac_objext; then
25026   ac_cv_type_off_t=yes
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031         ac_cv_type_off_t=no
25032 fi
25033
25034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25035 fi
25036 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25037 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25038 if test $ac_cv_type_off_t = yes; then
25039   :
25040 else
25041
25042 cat >>confdefs.h <<_ACEOF
25043 #define off_t long int
25044 _ACEOF
25045
25046 fi
25047
25048 { echo "$as_me:$LINENO: checking for pid_t" >&5
25049 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
25050 if test "${ac_cv_type_pid_t+set}" = set; then
25051   echo $ECHO_N "(cached) $ECHO_C" >&6
25052 else
25053   cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059 $ac_includes_default
25060 typedef pid_t ac__type_new_;
25061 int
25062 main ()
25063 {
25064 if ((ac__type_new_ *) 0)
25065   return 0;
25066 if (sizeof (ac__type_new_))
25067   return 0;
25068   ;
25069   return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076   *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079   (eval "$ac_compile") 2>conftest.er1
25080   ac_status=$?
25081   grep -v '^ *+' conftest.er1 >conftest.err
25082   rm -f conftest.er1
25083   cat conftest.err >&5
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); } && {
25086          test -z "$ac_c_werror_flag" ||
25087          test ! -s conftest.err
25088        } && test -s conftest.$ac_objext; then
25089   ac_cv_type_pid_t=yes
25090 else
25091   echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25093
25094         ac_cv_type_pid_t=no
25095 fi
25096
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25098 fi
25099 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25100 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
25101 if test $ac_cv_type_pid_t = yes; then
25102   :
25103 else
25104
25105 cat >>confdefs.h <<_ACEOF
25106 #define pid_t int
25107 _ACEOF
25108
25109 fi
25110
25111 { echo "$as_me:$LINENO: checking for size_t" >&5
25112 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25113 if test "${ac_cv_type_size_t+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 $ac_includes_default
25123 typedef size_t ac__type_new_;
25124 int
25125 main ()
25126 {
25127 if ((ac__type_new_ *) 0)
25128   return 0;
25129 if (sizeof (ac__type_new_))
25130   return 0;
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139   *) ac_try_echo=$ac_try;;
25140 esac
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142   (eval "$ac_compile") 2>conftest.er1
25143   ac_status=$?
25144   grep -v '^ *+' conftest.er1 >conftest.err
25145   rm -f conftest.er1
25146   cat conftest.err >&5
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); } && {
25149          test -z "$ac_c_werror_flag" ||
25150          test ! -s conftest.err
25151        } && test -s conftest.$ac_objext; then
25152   ac_cv_type_size_t=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157         ac_cv_type_size_t=no
25158 fi
25159
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 fi
25162 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25163 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25164 if test $ac_cv_type_size_t = yes; then
25165   :
25166 else
25167
25168 cat >>confdefs.h <<_ACEOF
25169 #define size_t unsigned int
25170 _ACEOF
25171
25172 fi
25173
25174 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25175 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25176 if test "${ac_cv_header_time+set}" = set; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179   cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h.  */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h.  */
25185 #include <sys/types.h>
25186 #include <sys/time.h>
25187 #include <time.h>
25188
25189 int
25190 main ()
25191 {
25192 if ((struct tm *) 0)
25193 return 0;
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext
25199 if { (ac_try="$ac_compile"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_compile") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest.$ac_objext; then
25215   ac_cv_header_time=yes
25216 else
25217   echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220         ac_cv_header_time=no
25221 fi
25222
25223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25224 fi
25225 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25226 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25227 if test $ac_cv_header_time = yes; then
25228
25229 cat >>confdefs.h <<\_ACEOF
25230 #define TIME_WITH_SYS_TIME 1
25231 _ACEOF
25232
25233 fi
25234
25235 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25236 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25237 if test "${ac_cv_struct_tm+set}" = set; then
25238   echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240   cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246 #include <sys/types.h>
25247 #include <time.h>
25248
25249 int
25250 main ()
25251 {
25252 struct tm tm;
25253                                      int *p = &tm.tm_sec;
25254                                      return !p;
25255   ;
25256   return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263   *) ac_try_echo=$ac_try;;
25264 esac
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266   (eval "$ac_compile") 2>conftest.er1
25267   ac_status=$?
25268   grep -v '^ *+' conftest.er1 >conftest.err
25269   rm -f conftest.er1
25270   cat conftest.err >&5
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); } && {
25273          test -z "$ac_c_werror_flag" ||
25274          test ! -s conftest.err
25275        } && test -s conftest.$ac_objext; then
25276   ac_cv_struct_tm=time.h
25277 else
25278   echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25280
25281         ac_cv_struct_tm=sys/time.h
25282 fi
25283
25284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285 fi
25286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25288 if test $ac_cv_struct_tm = sys/time.h; then
25289
25290 cat >>confdefs.h <<\_ACEOF
25291 #define TM_IN_SYS_TIME 1
25292 _ACEOF
25293
25294 fi
25295
25296
25297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25298 # for constant arguments.  Useless!
25299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25301 if test "${ac_cv_working_alloca_h+set}" = set; then
25302   echo $ECHO_N "(cached) $ECHO_C" >&6
25303 else
25304   cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h.  */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h.  */
25310 #include <alloca.h>
25311 int
25312 main ()
25313 {
25314 char *p = (char *) alloca (2 * sizeof (int));
25315                           if (p) return 0;
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324   *) ac_try_echo=$ac_try;;
25325 esac
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327   (eval "$ac_link") 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } && {
25334          test -z "$ac_c_werror_flag" ||
25335          test ! -s conftest.err
25336        } && test -s conftest$ac_exeext &&
25337        $as_test_x conftest$ac_exeext; then
25338   ac_cv_working_alloca_h=yes
25339 else
25340   echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25342
25343         ac_cv_working_alloca_h=no
25344 fi
25345
25346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25347       conftest$ac_exeext conftest.$ac_ext
25348 fi
25349 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25350 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25351 if test $ac_cv_working_alloca_h = yes; then
25352
25353 cat >>confdefs.h <<\_ACEOF
25354 #define HAVE_ALLOCA_H 1
25355 _ACEOF
25356
25357 fi
25358
25359 { echo "$as_me:$LINENO: checking for alloca" >&5
25360 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25361 if test "${ac_cv_func_alloca_works+set}" = set; then
25362   echo $ECHO_N "(cached) $ECHO_C" >&6
25363 else
25364   cat >conftest.$ac_ext <<_ACEOF
25365 /* confdefs.h.  */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h.  */
25370 #ifdef __GNUC__
25371 # define alloca __builtin_alloca
25372 #else
25373 # ifdef _MSC_VER
25374 #  include <malloc.h>
25375 #  define alloca _alloca
25376 # else
25377 #  ifdef HAVE_ALLOCA_H
25378 #   include <alloca.h>
25379 #  else
25380 #   ifdef _AIX
25381  #pragma alloca
25382 #   else
25383 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25384 char *alloca ();
25385 #    endif
25386 #   endif
25387 #  endif
25388 # endif
25389 #endif
25390
25391 int
25392 main ()
25393 {
25394 char *p = (char *) alloca (1);
25395                                     if (p) return 0;
25396   ;
25397   return 0;
25398 }
25399 _ACEOF
25400 rm -f conftest.$ac_objext conftest$ac_exeext
25401 if { (ac_try="$ac_link"
25402 case "(($ac_try" in
25403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404   *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407   (eval "$ac_link") 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } && {
25414          test -z "$ac_c_werror_flag" ||
25415          test ! -s conftest.err
25416        } && test -s conftest$ac_exeext &&
25417        $as_test_x conftest$ac_exeext; then
25418   ac_cv_func_alloca_works=yes
25419 else
25420   echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25422
25423         ac_cv_func_alloca_works=no
25424 fi
25425
25426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25427       conftest$ac_exeext conftest.$ac_ext
25428 fi
25429 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25430 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25431
25432 if test $ac_cv_func_alloca_works = yes; then
25433
25434 cat >>confdefs.h <<\_ACEOF
25435 #define HAVE_ALLOCA 1
25436 _ACEOF
25437
25438 else
25439   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25440 # that cause trouble.  Some versions do not even contain alloca or
25441 # contain a buggy version.  If you still want to use their alloca,
25442 # use ar to extract alloca.o from them instead of compiling alloca.c.
25443
25444 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25445
25446 cat >>confdefs.h <<\_ACEOF
25447 #define C_ALLOCA 1
25448 _ACEOF
25449
25450
25451 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25452 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25453 if test "${ac_cv_os_cray+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456   cat >conftest.$ac_ext <<_ACEOF
25457 /* confdefs.h.  */
25458 _ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h.  */
25462 #if defined CRAY && ! defined CRAY2
25463 webecray
25464 #else
25465 wenotbecray
25466 #endif
25467
25468 _ACEOF
25469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25470   $EGREP "webecray" >/dev/null 2>&1; then
25471   ac_cv_os_cray=yes
25472 else
25473   ac_cv_os_cray=no
25474 fi
25475 rm -f conftest*
25476
25477 fi
25478 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25479 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25480 if test $ac_cv_os_cray = yes; then
25481   for ac_func in _getb67 GETB67 getb67; do
25482     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25486   echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25488   cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h.  */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h.  */
25494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25496 #define $ac_func innocuous_$ac_func
25497
25498 /* System header to define __stub macros and hopefully few prototypes,
25499     which can conflict with char $ac_func (); below.
25500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25501     <limits.h> exists even on freestanding compilers.  */
25502
25503 #ifdef __STDC__
25504 # include <limits.h>
25505 #else
25506 # include <assert.h>
25507 #endif
25508
25509 #undef $ac_func
25510
25511 /* Override any GCC internal prototype to avoid an error.
25512    Use char because int might match the return type of a GCC
25513    builtin and then its argument prototype would still apply.  */
25514 #ifdef __cplusplus
25515 extern "C"
25516 #endif
25517 char $ac_func ();
25518 /* The GNU C library defines this for functions which it implements
25519     to always fail with ENOSYS.  Some functions are actually named
25520     something starting with __ and the normal name is an alias.  */
25521 #if defined __stub_$ac_func || defined __stub___$ac_func
25522 choke me
25523 #endif
25524
25525 int
25526 main ()
25527 {
25528 return $ac_func ();
25529   ;
25530   return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (ac_try="$ac_link"
25535 case "(($ac_try" in
25536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537   *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540   (eval "$ac_link") 2>conftest.er1
25541   ac_status=$?
25542   grep -v '^ *+' conftest.er1 >conftest.err
25543   rm -f conftest.er1
25544   cat conftest.err >&5
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); } && {
25547          test -z "$ac_c_werror_flag" ||
25548          test ! -s conftest.err
25549        } && test -s conftest$ac_exeext &&
25550        $as_test_x conftest$ac_exeext; then
25551   eval "$as_ac_var=yes"
25552 else
25553   echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25555
25556         eval "$as_ac_var=no"
25557 fi
25558
25559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25560       conftest$ac_exeext conftest.$ac_ext
25561 fi
25562 ac_res=`eval echo '${'$as_ac_var'}'`
25563                { echo "$as_me:$LINENO: result: $ac_res" >&5
25564 echo "${ECHO_T}$ac_res" >&6; }
25565 if test `eval echo '${'$as_ac_var'}'` = yes; then
25566
25567 cat >>confdefs.h <<_ACEOF
25568 #define CRAY_STACKSEG_END $ac_func
25569 _ACEOF
25570
25571     break
25572 fi
25573
25574   done
25575 fi
25576
25577 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25578 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25579 if test "${ac_cv_c_stack_direction+set}" = set; then
25580   echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25582   if test "$cross_compiling" = yes; then
25583   ac_cv_c_stack_direction=0
25584 else
25585   cat >conftest.$ac_ext <<_ACEOF
25586 /* confdefs.h.  */
25587 _ACEOF
25588 cat confdefs.h >>conftest.$ac_ext
25589 cat >>conftest.$ac_ext <<_ACEOF
25590 /* end confdefs.h.  */
25591 $ac_includes_default
25592 int
25593 find_stack_direction ()
25594 {
25595   static char *addr = 0;
25596   auto char dummy;
25597   if (addr == 0)
25598     {
25599       addr = &dummy;
25600       return find_stack_direction ();
25601     }
25602   else
25603     return (&dummy > addr) ? 1 : -1;
25604 }
25605
25606 int
25607 main ()
25608 {
25609   return find_stack_direction () < 0;
25610 }
25611 _ACEOF
25612 rm -f conftest$ac_exeext
25613 if { (ac_try="$ac_link"
25614 case "(($ac_try" in
25615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616   *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619   (eval "$ac_link") 2>&5
25620   ac_status=$?
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623   { (case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_try") 2>&5
25629   ac_status=$?
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); }; }; then
25632   ac_cv_c_stack_direction=1
25633 else
25634   echo "$as_me: program exited with status $ac_status" >&5
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 ( exit $ac_status )
25639 ac_cv_c_stack_direction=-1
25640 fi
25641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25642 fi
25643
25644
25645 fi
25646 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25647 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25648
25649 cat >>confdefs.h <<_ACEOF
25650 #define STACK_DIRECTION $ac_cv_c_stack_direction
25651 _ACEOF
25652
25653
25654 fi
25655
25656
25657
25658
25659
25660
25661 ac_header_dirent=no
25662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25663   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25664 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25665 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25667   echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669   cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h.  */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h.  */
25675 #include <sys/types.h>
25676 #include <$ac_hdr>
25677
25678 int
25679 main ()
25680 {
25681 if ((DIR *) 0)
25682 return 0;
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 rm -f conftest.$ac_objext
25688 if { (ac_try="$ac_compile"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_compile") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } && {
25701          test -z "$ac_c_werror_flag" ||
25702          test ! -s conftest.err
25703        } && test -s conftest.$ac_objext; then
25704   eval "$as_ac_Header=yes"
25705 else
25706   echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709         eval "$as_ac_Header=no"
25710 fi
25711
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 fi
25714 ac_res=`eval echo '${'$as_ac_Header'}'`
25715                { echo "$as_me:$LINENO: result: $ac_res" >&5
25716 echo "${ECHO_T}$ac_res" >&6; }
25717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25718   cat >>confdefs.h <<_ACEOF
25719 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25720 _ACEOF
25721
25722 ac_header_dirent=$ac_hdr; break
25723 fi
25724
25725 done
25726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25727 if test $ac_header_dirent = dirent.h; then
25728   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25729 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25730 if test "${ac_cv_search_opendir+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733   ac_func_search_save_LIBS=$LIBS
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740
25741 /* Override any GCC internal prototype to avoid an error.
25742    Use char because int might match the return type of a GCC
25743    builtin and then its argument prototype would still apply.  */
25744 #ifdef __cplusplus
25745 extern "C"
25746 #endif
25747 char opendir ();
25748 int
25749 main ()
25750 {
25751 return opendir ();
25752   ;
25753   return 0;
25754 }
25755 _ACEOF
25756 for ac_lib in '' dir; do
25757   if test -z "$ac_lib"; then
25758     ac_res="none required"
25759   else
25760     ac_res=-l$ac_lib
25761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25762   fi
25763   rm -f conftest.$ac_objext conftest$ac_exeext
25764 if { (ac_try="$ac_link"
25765 case "(($ac_try" in
25766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767   *) ac_try_echo=$ac_try;;
25768 esac
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770   (eval "$ac_link") 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } && {
25777          test -z "$ac_c_werror_flag" ||
25778          test ! -s conftest.err
25779        } && test -s conftest$ac_exeext &&
25780        $as_test_x conftest$ac_exeext; then
25781   ac_cv_search_opendir=$ac_res
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786
25787 fi
25788
25789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25790       conftest$ac_exeext
25791   if test "${ac_cv_search_opendir+set}" = set; then
25792   break
25793 fi
25794 done
25795 if test "${ac_cv_search_opendir+set}" = set; then
25796   :
25797 else
25798   ac_cv_search_opendir=no
25799 fi
25800 rm conftest.$ac_ext
25801 LIBS=$ac_func_search_save_LIBS
25802 fi
25803 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25804 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25805 ac_res=$ac_cv_search_opendir
25806 if test "$ac_res" != no; then
25807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25808
25809 fi
25810
25811 else
25812   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25814 if test "${ac_cv_search_opendir+set}" = set; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817   ac_func_search_save_LIBS=$LIBS
25818 cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824
25825 /* Override any GCC internal prototype to avoid an error.
25826    Use char because int might match the return type of a GCC
25827    builtin and then its argument prototype would still apply.  */
25828 #ifdef __cplusplus
25829 extern "C"
25830 #endif
25831 char opendir ();
25832 int
25833 main ()
25834 {
25835 return opendir ();
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 for ac_lib in '' x; do
25841   if test -z "$ac_lib"; then
25842     ac_res="none required"
25843   else
25844     ac_res=-l$ac_lib
25845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25846   fi
25847   rm -f conftest.$ac_objext conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851   *) ac_try_echo=$ac_try;;
25852 esac
25853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25854   (eval "$ac_link") 2>conftest.er1
25855   ac_status=$?
25856   grep -v '^ *+' conftest.er1 >conftest.err
25857   rm -f conftest.er1
25858   cat conftest.err >&5
25859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860   (exit $ac_status); } && {
25861          test -z "$ac_c_werror_flag" ||
25862          test ! -s conftest.err
25863        } && test -s conftest$ac_exeext &&
25864        $as_test_x conftest$ac_exeext; then
25865   ac_cv_search_opendir=$ac_res
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870
25871 fi
25872
25873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25874       conftest$ac_exeext
25875   if test "${ac_cv_search_opendir+set}" = set; then
25876   break
25877 fi
25878 done
25879 if test "${ac_cv_search_opendir+set}" = set; then
25880   :
25881 else
25882   ac_cv_search_opendir=no
25883 fi
25884 rm conftest.$ac_ext
25885 LIBS=$ac_func_search_save_LIBS
25886 fi
25887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25889 ac_res=$ac_cv_search_opendir
25890 if test "$ac_res" != no; then
25891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25892
25893 fi
25894
25895 fi
25896
25897 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25898 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25899 if test "${ac_cv_func_closedir_void+set}" = set; then
25900   echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902   if test "$cross_compiling" = yes; then
25903   ac_cv_func_closedir_void=yes
25904 else
25905   cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h.  */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h.  */
25911 $ac_includes_default
25912 #include <$ac_header_dirent>
25913 #ifndef __cplusplus
25914 int closedir ();
25915 #endif
25916
25917 int
25918 main ()
25919 {
25920 return closedir (opendir (".")) != 0;
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_link") 2>&5
25933   ac_status=$?
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936   { (case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_try") 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   ac_cv_func_closedir_void=no
25946 else
25947   echo "$as_me: program exited with status $ac_status" >&5
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951 ( exit $ac_status )
25952 ac_cv_func_closedir_void=yes
25953 fi
25954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25955 fi
25956
25957
25958 fi
25959 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25960 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25961 if test $ac_cv_func_closedir_void = yes; then
25962
25963 cat >>confdefs.h <<\_ACEOF
25964 #define CLOSEDIR_VOID 1
25965 _ACEOF
25966
25967 fi
25968
25969 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25970 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25971 if test "${ac_cv_lib_error_at_line+set}" = set; then
25972   echo $ECHO_N "(cached) $ECHO_C" >&6
25973 else
25974   cat >conftest.$ac_ext <<_ACEOF
25975 /* confdefs.h.  */
25976 _ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h.  */
25980 #include <error.h>
25981 int
25982 main ()
25983 {
25984 error_at_line (0, 0, "", 0, "an error occurred");
25985   ;
25986   return 0;
25987 }
25988 _ACEOF
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_link") 2>conftest.er1
25997   ac_status=$?
25998   grep -v '^ *+' conftest.er1 >conftest.err
25999   rm -f conftest.er1
26000   cat conftest.err >&5
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); } && {
26003          test -z "$ac_c_werror_flag" ||
26004          test ! -s conftest.err
26005        } && test -s conftest$ac_exeext &&
26006        $as_test_x conftest$ac_exeext; then
26007   ac_cv_lib_error_at_line=yes
26008 else
26009   echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012         ac_cv_lib_error_at_line=no
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016       conftest$ac_exeext conftest.$ac_ext
26017 fi
26018 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26019 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
26020 if test $ac_cv_lib_error_at_line = no; then
26021   case " $LIBOBJS " in
26022   *" error.$ac_objext "* ) ;;
26023   *) LIBOBJS="$LIBOBJS error.$ac_objext"
26024  ;;
26025 esac
26026
26027 fi
26028
26029
26030 for ac_header in vfork.h
26031 do
26032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26034   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26037   echo $ECHO_N "(cached) $ECHO_C" >&6
26038 fi
26039 ac_res=`eval echo '${'$as_ac_Header'}'`
26040                { echo "$as_me:$LINENO: result: $ac_res" >&5
26041 echo "${ECHO_T}$ac_res" >&6; }
26042 else
26043   # Is the header compilable?
26044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26046 cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 $ac_includes_default
26053 #include <$ac_header>
26054 _ACEOF
26055 rm -f conftest.$ac_objext
26056 if { (ac_try="$ac_compile"
26057 case "(($ac_try" in
26058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059   *) ac_try_echo=$ac_try;;
26060 esac
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062   (eval "$ac_compile") 2>conftest.er1
26063   ac_status=$?
26064   grep -v '^ *+' conftest.er1 >conftest.err
26065   rm -f conftest.er1
26066   cat conftest.err >&5
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } && {
26069          test -z "$ac_c_werror_flag" ||
26070          test ! -s conftest.err
26071        } && test -s conftest.$ac_objext; then
26072   ac_header_compiler=yes
26073 else
26074   echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077         ac_header_compiler=no
26078 fi
26079
26080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6; }
26083
26084 # Is the header present?
26085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26087 cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h.  */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h.  */
26093 #include <$ac_header>
26094 _ACEOF
26095 if { (ac_try="$ac_cpp conftest.$ac_ext"
26096 case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26102   ac_status=$?
26103   grep -v '^ *+' conftest.er1 >conftest.err
26104   rm -f conftest.er1
26105   cat conftest.err >&5
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); } >/dev/null && {
26108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26109          test ! -s conftest.err
26110        }; then
26111   ac_header_preproc=yes
26112 else
26113   echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116   ac_header_preproc=no
26117 fi
26118
26119 rm -f conftest.err conftest.$ac_ext
26120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26121 echo "${ECHO_T}$ac_header_preproc" >&6; }
26122
26123 # So?  What about this header?
26124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26125   yes:no: )
26126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26130     ac_header_preproc=yes
26131     ;;
26132   no:yes:* )
26133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26145     ( cat <<\_ASBOX
26146 ## ---------------------------------------- ##
26147 ## Report this to linux-nfs@vger.kernel.org ##
26148 ## ---------------------------------------- ##
26149 _ASBOX
26150      ) | sed "s/^/$as_me: WARNING:     /" >&2
26151     ;;
26152 esac
26153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156   echo $ECHO_N "(cached) $ECHO_C" >&6
26157 else
26158   eval "$as_ac_Header=\$ac_header_preproc"
26159 fi
26160 ac_res=`eval echo '${'$as_ac_Header'}'`
26161                { echo "$as_me:$LINENO: result: $ac_res" >&5
26162 echo "${ECHO_T}$ac_res" >&6; }
26163
26164 fi
26165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166   cat >>confdefs.h <<_ACEOF
26167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26168 _ACEOF
26169
26170 fi
26171
26172 done
26173
26174
26175
26176 for ac_func in fork vfork
26177 do
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define $ac_func innocuous_$ac_func
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char $ac_func (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef $ac_func
26206
26207 /* Override any GCC internal prototype to avoid an error.
26208    Use char because int might match the return type of a GCC
26209    builtin and then its argument prototype would still apply.  */
26210 #ifdef __cplusplus
26211 extern "C"
26212 #endif
26213 char $ac_func ();
26214 /* The GNU C library defines this for functions which it implements
26215     to always fail with ENOSYS.  Some functions are actually named
26216     something starting with __ and the normal name is an alias.  */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26218 choke me
26219 #endif
26220
26221 int
26222 main ()
26223 {
26224 return $ac_func ();
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_link") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_c_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest$ac_exeext &&
26246        $as_test_x conftest$ac_exeext; then
26247   eval "$as_ac_var=yes"
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252         eval "$as_ac_var=no"
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256       conftest$ac_exeext conftest.$ac_ext
26257 fi
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259                { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262   cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26264 _ACEOF
26265
26266 fi
26267 done
26268
26269 if test "x$ac_cv_func_fork" = xyes; then
26270   { echo "$as_me:$LINENO: checking for working fork" >&5
26271 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
26272 if test "${ac_cv_func_fork_works+set}" = set; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   if test "$cross_compiling" = yes; then
26276   ac_cv_func_fork_works=cross
26277 else
26278   cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 int
26286 main ()
26287 {
26288
26289           /* By Ruediger Kuhlmann. */
26290           return fork () < 0;
26291
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 rm -f conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300   *) ac_try_echo=$ac_try;;
26301 esac
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303   (eval "$ac_link") 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26307   { (case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_try") 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); }; }; then
26316   ac_cv_func_fork_works=yes
26317 else
26318   echo "$as_me: program exited with status $ac_status" >&5
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322 ( exit $ac_status )
26323 ac_cv_func_fork_works=no
26324 fi
26325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26326 fi
26327
26328
26329 fi
26330 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
26331 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
26332
26333 else
26334   ac_cv_func_fork_works=$ac_cv_func_fork
26335 fi
26336 if test "x$ac_cv_func_fork_works" = xcross; then
26337   case $host in
26338     *-*-amigaos* | *-*-msdosdjgpp*)
26339       # Override, as these systems have only a dummy fork() stub
26340       ac_cv_func_fork_works=no
26341       ;;
26342     *)
26343       ac_cv_func_fork_works=yes
26344       ;;
26345   esac
26346   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26347 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26348 fi
26349 ac_cv_func_vfork_works=$ac_cv_func_vfork
26350 if test "x$ac_cv_func_vfork" = xyes; then
26351   { echo "$as_me:$LINENO: checking for working vfork" >&5
26352 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
26353 if test "${ac_cv_func_vfork_works+set}" = set; then
26354   echo $ECHO_N "(cached) $ECHO_C" >&6
26355 else
26356   if test "$cross_compiling" = yes; then
26357   ac_cv_func_vfork_works=cross
26358 else
26359   cat >conftest.$ac_ext <<_ACEOF
26360 /* confdefs.h.  */
26361 _ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h.  */
26365 /* Thanks to Paul Eggert for this test.  */
26366 $ac_includes_default
26367 #include <sys/wait.h>
26368 #ifdef HAVE_VFORK_H
26369 # include <vfork.h>
26370 #endif
26371 /* On some sparc systems, changes by the child to local and incoming
26372    argument registers are propagated back to the parent.  The compiler
26373    is told about this with #include <vfork.h>, but some compilers
26374    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26375    static variable whose address is put into a register that is
26376    clobbered by the vfork.  */
26377 static void
26378 #ifdef __cplusplus
26379 sparc_address_test (int arg)
26380 # else
26381 sparc_address_test (arg) int arg;
26382 #endif
26383 {
26384   static pid_t child;
26385   if (!child) {
26386     child = vfork ();
26387     if (child < 0) {
26388       perror ("vfork");
26389       _exit(2);
26390     }
26391     if (!child) {
26392       arg = getpid();
26393       write(-1, "", 0);
26394       _exit (arg);
26395     }
26396   }
26397 }
26398
26399 int
26400 main ()
26401 {
26402   pid_t parent = getpid ();
26403   pid_t child;
26404
26405   sparc_address_test (0);
26406
26407   child = vfork ();
26408
26409   if (child == 0) {
26410     /* Here is another test for sparc vfork register problems.  This
26411        test uses lots of local variables, at least as many local
26412        variables as main has allocated so far including compiler
26413        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26414        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26415        reuse the register of parent for one of the local variables,
26416        since it will think that parent can't possibly be used any more
26417        in this routine.  Assigning to the local variable will thus
26418        munge parent in the parent process.  */
26419     pid_t
26420       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26421       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26422     /* Convince the compiler that p..p7 are live; otherwise, it might
26423        use the same hardware register for all 8 local variables.  */
26424     if (p != p1 || p != p2 || p != p3 || p != p4
26425         || p != p5 || p != p6 || p != p7)
26426       _exit(1);
26427
26428     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26429        from child file descriptors.  If the child closes a descriptor
26430        before it execs or exits, this munges the parent's descriptor
26431        as well.  Test for this by closing stdout in the child.  */
26432     _exit(close(fileno(stdout)) != 0);
26433   } else {
26434     int status;
26435     struct stat st;
26436
26437     while (wait(&status) != child)
26438       ;
26439     return (
26440          /* Was there some problem with vforking?  */
26441          child < 0
26442
26443          /* Did the child fail?  (This shouldn't happen.)  */
26444          || status
26445
26446          /* Did the vfork/compiler bug occur?  */
26447          || parent != getpid()
26448
26449          /* Did the file descriptor bug occur?  */
26450          || fstat(fileno(stdout), &st) != 0
26451          );
26452   }
26453 }
26454 _ACEOF
26455 rm -f conftest$ac_exeext
26456 if { (ac_try="$ac_link"
26457 case "(($ac_try" in
26458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459   *) ac_try_echo=$ac_try;;
26460 esac
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462   (eval "$ac_link") 2>&5
26463   ac_status=$?
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26466   { (case "(($ac_try" in
26467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468   *) ac_try_echo=$ac_try;;
26469 esac
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471   (eval "$ac_try") 2>&5
26472   ac_status=$?
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); }; }; then
26475   ac_cv_func_vfork_works=yes
26476 else
26477   echo "$as_me: program exited with status $ac_status" >&5
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ( exit $ac_status )
26482 ac_cv_func_vfork_works=no
26483 fi
26484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26485 fi
26486
26487
26488 fi
26489 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26490 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26491
26492 fi;
26493 if test "x$ac_cv_func_fork_works" = xcross; then
26494   ac_cv_func_vfork_works=$ac_cv_func_vfork
26495   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26496 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26497 fi
26498
26499 if test "x$ac_cv_func_vfork_works" = xyes; then
26500
26501 cat >>confdefs.h <<\_ACEOF
26502 #define HAVE_WORKING_VFORK 1
26503 _ACEOF
26504
26505 else
26506
26507 cat >>confdefs.h <<\_ACEOF
26508 #define vfork fork
26509 _ACEOF
26510
26511 fi
26512 if test "x$ac_cv_func_fork_works" = xyes; then
26513
26514 cat >>confdefs.h <<\_ACEOF
26515 #define HAVE_WORKING_FORK 1
26516 _ACEOF
26517
26518 fi
26519
26520 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26521 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26522 if test "${ac_cv_type_getgroups+set}" = set; then
26523   echo $ECHO_N "(cached) $ECHO_C" >&6
26524 else
26525   if test "$cross_compiling" = yes; then
26526   ac_cv_type_getgroups=cross
26527 else
26528   cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534 /* Thanks to Mike Rendell for this test.  */
26535 $ac_includes_default
26536 #define NGID 256
26537 #undef MAX
26538 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26539
26540 int
26541 main ()
26542 {
26543   gid_t gidset[NGID];
26544   int i, n;
26545   union { gid_t gval; long int lval; }  val;
26546
26547   val.lval = -1;
26548   for (i = 0; i < NGID; i++)
26549     gidset[i] = val.gval;
26550   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26551                  gidset);
26552   /* Exit non-zero if getgroups seems to require an array of ints.  This
26553      happens when gid_t is short int but getgroups modifies an array
26554      of ints.  */
26555   return n > 0 && gidset[n] != val.gval;
26556 }
26557 _ACEOF
26558 rm -f conftest$ac_exeext
26559 if { (ac_try="$ac_link"
26560 case "(($ac_try" in
26561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562   *) ac_try_echo=$ac_try;;
26563 esac
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565   (eval "$ac_link") 2>&5
26566   ac_status=$?
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26569   { (case "(($ac_try" in
26570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571   *) ac_try_echo=$ac_try;;
26572 esac
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574   (eval "$ac_try") 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; }; then
26578   ac_cv_type_getgroups=gid_t
26579 else
26580   echo "$as_me: program exited with status $ac_status" >&5
26581 echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 ( exit $ac_status )
26585 ac_cv_type_getgroups=int
26586 fi
26587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26588 fi
26589
26590
26591 if test $ac_cv_type_getgroups = cross; then
26592         cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h.  */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h.  */
26598 #include <unistd.h>
26599
26600 _ACEOF
26601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26602   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26603   ac_cv_type_getgroups=gid_t
26604 else
26605   ac_cv_type_getgroups=int
26606 fi
26607 rm -f conftest*
26608
26609 fi
26610 fi
26611 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26612 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26613
26614 cat >>confdefs.h <<_ACEOF
26615 #define GETGROUPS_T $ac_cv_type_getgroups
26616 _ACEOF
26617
26618
26619 { echo "$as_me:$LINENO: checking for getgroups" >&5
26620 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26621 if test "${ac_cv_func_getgroups+set}" = set; then
26622   echo $ECHO_N "(cached) $ECHO_C" >&6
26623 else
26624   cat >conftest.$ac_ext <<_ACEOF
26625 /* confdefs.h.  */
26626 _ACEOF
26627 cat confdefs.h >>conftest.$ac_ext
26628 cat >>conftest.$ac_ext <<_ACEOF
26629 /* end confdefs.h.  */
26630 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26632 #define getgroups innocuous_getgroups
26633
26634 /* System header to define __stub macros and hopefully few prototypes,
26635     which can conflict with char getgroups (); below.
26636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26637     <limits.h> exists even on freestanding compilers.  */
26638
26639 #ifdef __STDC__
26640 # include <limits.h>
26641 #else
26642 # include <assert.h>
26643 #endif
26644
26645 #undef getgroups
26646
26647 /* Override any GCC internal prototype to avoid an error.
26648    Use char because int might match the return type of a GCC
26649    builtin and then its argument prototype would still apply.  */
26650 #ifdef __cplusplus
26651 extern "C"
26652 #endif
26653 char getgroups ();
26654 /* The GNU C library defines this for functions which it implements
26655     to always fail with ENOSYS.  Some functions are actually named
26656     something starting with __ and the normal name is an alias.  */
26657 #if defined __stub_getgroups || defined __stub___getgroups
26658 choke me
26659 #endif
26660
26661 int
26662 main ()
26663 {
26664 return getgroups ();
26665   ;
26666   return 0;
26667 }
26668 _ACEOF
26669 rm -f conftest.$ac_objext conftest$ac_exeext
26670 if { (ac_try="$ac_link"
26671 case "(($ac_try" in
26672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673   *) ac_try_echo=$ac_try;;
26674 esac
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676   (eval "$ac_link") 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } && {
26683          test -z "$ac_c_werror_flag" ||
26684          test ! -s conftest.err
26685        } && test -s conftest$ac_exeext &&
26686        $as_test_x conftest$ac_exeext; then
26687   ac_cv_func_getgroups=yes
26688 else
26689   echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26691
26692         ac_cv_func_getgroups=no
26693 fi
26694
26695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26696       conftest$ac_exeext conftest.$ac_ext
26697 fi
26698 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26699 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26700
26701
26702 # If we don't yet have getgroups, see if it's in -lbsd.
26703 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26704 ac_save_LIBS=$LIBS
26705 if test $ac_cv_func_getgroups = no; then
26706   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26707 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26708 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26709   echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711   ac_check_lib_save_LIBS=$LIBS
26712 LIBS="-lbsd  $LIBS"
26713 cat >conftest.$ac_ext <<_ACEOF
26714 /* confdefs.h.  */
26715 _ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h.  */
26719
26720 /* Override any GCC internal prototype to avoid an error.
26721    Use char because int might match the return type of a GCC
26722    builtin and then its argument prototype would still apply.  */
26723 #ifdef __cplusplus
26724 extern "C"
26725 #endif
26726 char getgroups ();
26727 int
26728 main ()
26729 {
26730 return getgroups ();
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_link") 2>conftest.er1
26743   ac_status=$?
26744   grep -v '^ *+' conftest.er1 >conftest.err
26745   rm -f conftest.er1
26746   cat conftest.err >&5
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); } && {
26749          test -z "$ac_c_werror_flag" ||
26750          test ! -s conftest.err
26751        } && test -s conftest$ac_exeext &&
26752        $as_test_x conftest$ac_exeext; then
26753   ac_cv_lib_bsd_getgroups=yes
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758         ac_cv_lib_bsd_getgroups=no
26759 fi
26760
26761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762       conftest$ac_exeext conftest.$ac_ext
26763 LIBS=$ac_check_lib_save_LIBS
26764 fi
26765 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26766 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26767 if test $ac_cv_lib_bsd_getgroups = yes; then
26768   GETGROUPS_LIB=-lbsd
26769 fi
26770
26771 fi
26772
26773 # Run the program to test the functionality of the system-supplied
26774 # getgroups function only if there is such a function.
26775 if test $ac_cv_func_getgroups = yes; then
26776   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26777 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26778 if test "${ac_cv_func_getgroups_works+set}" = set; then
26779   echo $ECHO_N "(cached) $ECHO_C" >&6
26780 else
26781   if test "$cross_compiling" = yes; then
26782   ac_cv_func_getgroups_works=no
26783 else
26784   cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h.  */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h.  */
26790 $ac_includes_default
26791 int
26792 main ()
26793 {
26794 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26795        return getgroups (0, 0) == -1;
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest$ac_exeext
26801 if { (ac_try="$ac_link"
26802 case "(($ac_try" in
26803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804   *) ac_try_echo=$ac_try;;
26805 esac
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807   (eval "$ac_link") 2>&5
26808   ac_status=$?
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26811   { (case "(($ac_try" in
26812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813   *) ac_try_echo=$ac_try;;
26814 esac
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816   (eval "$ac_try") 2>&5
26817   ac_status=$?
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); }; }; then
26820   ac_cv_func_getgroups_works=yes
26821 else
26822   echo "$as_me: program exited with status $ac_status" >&5
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826 ( exit $ac_status )
26827 ac_cv_func_getgroups_works=no
26828 fi
26829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26830 fi
26831
26832
26833
26834 fi
26835 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26836 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26837   if test $ac_cv_func_getgroups_works = yes; then
26838
26839 cat >>confdefs.h <<\_ACEOF
26840 #define HAVE_GETGROUPS 1
26841 _ACEOF
26842
26843   fi
26844 fi
26845 LIBS=$ac_save_LIBS
26846
26847 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26848 # -lseq on Dynix/PTX, -lgen on Unixware.
26849 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26850 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26851 if test "${ac_cv_search_getmntent+set}" = set; then
26852   echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854   ac_func_search_save_LIBS=$LIBS
26855 cat >conftest.$ac_ext <<_ACEOF
26856 /* confdefs.h.  */
26857 _ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h.  */
26861
26862 /* Override any GCC internal prototype to avoid an error.
26863    Use char because int might match the return type of a GCC
26864    builtin and then its argument prototype would still apply.  */
26865 #ifdef __cplusplus
26866 extern "C"
26867 #endif
26868 char getmntent ();
26869 int
26870 main ()
26871 {
26872 return getmntent ();
26873   ;
26874   return 0;
26875 }
26876 _ACEOF
26877 for ac_lib in '' sun seq gen; do
26878   if test -z "$ac_lib"; then
26879     ac_res="none required"
26880   else
26881     ac_res=-l$ac_lib
26882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26883   fi
26884   rm -f conftest.$ac_objext conftest$ac_exeext
26885 if { (ac_try="$ac_link"
26886 case "(($ac_try" in
26887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888   *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891   (eval "$ac_link") 2>conftest.er1
26892   ac_status=$?
26893   grep -v '^ *+' conftest.er1 >conftest.err
26894   rm -f conftest.er1
26895   cat conftest.err >&5
26896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); } && {
26898          test -z "$ac_c_werror_flag" ||
26899          test ! -s conftest.err
26900        } && test -s conftest$ac_exeext &&
26901        $as_test_x conftest$ac_exeext; then
26902   ac_cv_search_getmntent=$ac_res
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26911       conftest$ac_exeext
26912   if test "${ac_cv_search_getmntent+set}" = set; then
26913   break
26914 fi
26915 done
26916 if test "${ac_cv_search_getmntent+set}" = set; then
26917   :
26918 else
26919   ac_cv_search_getmntent=no
26920 fi
26921 rm conftest.$ac_ext
26922 LIBS=$ac_func_search_save_LIBS
26923 fi
26924 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26925 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26926 ac_res=$ac_cv_search_getmntent
26927 if test "$ac_res" != no; then
26928   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26929   ac_cv_func_getmntent=yes
26930
26931 cat >>confdefs.h <<\_ACEOF
26932 #define HAVE_GETMNTENT
26933 _ACEOF
26934
26935 else
26936   ac_cv_func_getmntent=no
26937 fi
26938
26939
26940 if test $ac_cv_c_compiler_gnu = yes; then
26941     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26942 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26943 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946     ac_pattern="Autoconf.*'x'"
26947   cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953 #include <sgtty.h>
26954 Autoconf TIOCGETP
26955 _ACEOF
26956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26957   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26958   ac_cv_prog_gcc_traditional=yes
26959 else
26960   ac_cv_prog_gcc_traditional=no
26961 fi
26962 rm -f conftest*
26963
26964
26965   if test $ac_cv_prog_gcc_traditional = no; then
26966     cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h.  */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h.  */
26972 #include <termio.h>
26973 Autoconf TCGETA
26974 _ACEOF
26975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26976   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26977   ac_cv_prog_gcc_traditional=yes
26978 fi
26979 rm -f conftest*
26980
26981   fi
26982 fi
26983 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26984 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26985   if test $ac_cv_prog_gcc_traditional = yes; then
26986     CC="$CC -traditional"
26987   fi
26988 fi
26989
26990 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26991 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26992 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26993   echo $ECHO_N "(cached) $ECHO_C" >&6
26994 else
26995   rm -f conftest.sym conftest.file
26996 echo >conftest.file
26997 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26998   if test "$cross_compiling" = yes; then
26999   ac_cv_func_lstat_dereferences_slashed_symlink=no
27000 else
27001   cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 $ac_includes_default
27008 int
27009 main ()
27010 {
27011 struct stat sbuf;
27012      /* Linux will dereference the symlink and fail.
27013         That is better in the sense that it means we will not
27014         have to compile and use the lstat wrapper.  */
27015      return lstat ("conftest.sym/", &sbuf) == 0;
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_link") 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031   { (case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_try") 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; }; then
27040   ac_cv_func_lstat_dereferences_slashed_symlink=yes
27041 else
27042   echo "$as_me: program exited with status $ac_status" >&5
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046 ( exit $ac_status )
27047 ac_cv_func_lstat_dereferences_slashed_symlink=no
27048 fi
27049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27050 fi
27051
27052
27053 else
27054   # If the `ln -s' command failed, then we probably don't even
27055   # have an lstat function.
27056   ac_cv_func_lstat_dereferences_slashed_symlink=no
27057 fi
27058 rm -f conftest.sym conftest.file
27059
27060 fi
27061 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27062 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27063
27064 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27065
27066 cat >>confdefs.h <<_ACEOF
27067 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27068 _ACEOF
27069
27070
27071 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27072   case " $LIBOBJS " in
27073   *" lstat.$ac_objext "* ) ;;
27074   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27075  ;;
27076 esac
27077
27078 fi
27079
27080 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
27081 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
27082 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
27083   echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085   if test "$cross_compiling" = yes; then
27086   ac_cv_func_lstat_empty_string_bug=yes
27087 else
27088   cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094 $ac_includes_default
27095 int
27096 main ()
27097 {
27098 struct stat sbuf;
27099   return lstat ("", &sbuf) == 0;
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest$ac_exeext
27105 if { (ac_try="$ac_link"
27106 case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111   (eval "$ac_link") 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_cv_func_lstat_empty_string_bug=no
27125 else
27126   echo "$as_me: program exited with status $ac_status" >&5
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130 ( exit $ac_status )
27131 ac_cv_func_lstat_empty_string_bug=yes
27132 fi
27133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27134 fi
27135
27136
27137 fi
27138 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
27139 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
27140 if test $ac_cv_func_lstat_empty_string_bug = yes; then
27141   case " $LIBOBJS " in
27142   *" lstat.$ac_objext "* ) ;;
27143   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27144  ;;
27145 esac
27146
27147
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
27150 _ACEOF
27151
27152 fi
27153
27154 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27155 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27156 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27157   echo $ECHO_N "(cached) $ECHO_C" >&6
27158 else
27159   rm -f conftest.sym conftest.file
27160 echo >conftest.file
27161 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27162   if test "$cross_compiling" = yes; then
27163   ac_cv_func_lstat_dereferences_slashed_symlink=no
27164 else
27165   cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171 $ac_includes_default
27172 int
27173 main ()
27174 {
27175 struct stat sbuf;
27176      /* Linux will dereference the symlink and fail.
27177         That is better in the sense that it means we will not
27178         have to compile and use the lstat wrapper.  */
27179      return lstat ("conftest.sym/", &sbuf) == 0;
27180   ;
27181   return 0;
27182 }
27183 _ACEOF
27184 rm -f conftest$ac_exeext
27185 if { (ac_try="$ac_link"
27186 case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_link") 2>&5
27192   ac_status=$?
27193   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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_try") 2>&5
27201   ac_status=$?
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); }; }; then
27204   ac_cv_func_lstat_dereferences_slashed_symlink=yes
27205 else
27206   echo "$as_me: program exited with status $ac_status" >&5
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210 ( exit $ac_status )
27211 ac_cv_func_lstat_dereferences_slashed_symlink=no
27212 fi
27213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27214 fi
27215
27216
27217 else
27218   # If the `ln -s' command failed, then we probably don't even
27219   # have an lstat function.
27220   ac_cv_func_lstat_dereferences_slashed_symlink=no
27221 fi
27222 rm -f conftest.sym conftest.file
27223
27224 fi
27225 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27226 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27227
27228 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27229
27230 cat >>confdefs.h <<_ACEOF
27231 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27232 _ACEOF
27233
27234
27235 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27236   case " $LIBOBJS " in
27237   *" lstat.$ac_objext "* ) ;;
27238   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27239  ;;
27240 esac
27241
27242 fi
27243
27244 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
27245 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
27246 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
27247   echo $ECHO_N "(cached) $ECHO_C" >&6
27248 else
27249   cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h.  */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h.  */
27255 #include <sys/types.h>
27256 int
27257 main ()
27258 {
27259 return makedev(0, 0);
27260   ;
27261   return 0;
27262 }
27263 _ACEOF
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268   *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271   (eval "$ac_link") 2>conftest.er1
27272   ac_status=$?
27273   grep -v '^ *+' conftest.er1 >conftest.err
27274   rm -f conftest.er1
27275   cat conftest.err >&5
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } && {
27278          test -z "$ac_c_werror_flag" ||
27279          test ! -s conftest.err
27280        } && test -s conftest$ac_exeext &&
27281        $as_test_x conftest$ac_exeext; then
27282   ac_cv_header_sys_types_h_makedev=yes
27283 else
27284   echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27286
27287         ac_cv_header_sys_types_h_makedev=no
27288 fi
27289
27290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27291       conftest$ac_exeext conftest.$ac_ext
27292
27293 fi
27294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
27295 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
27296
27297 if test $ac_cv_header_sys_types_h_makedev = no; then
27298 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27299   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27300 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27301 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 fi
27304 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27306 else
27307   # Is the header compilable?
27308 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
27309 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
27310 cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 $ac_includes_default
27317 #include <sys/mkdev.h>
27318 _ACEOF
27319 rm -f conftest.$ac_objext
27320 if { (ac_try="$ac_compile"
27321 case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326   (eval "$ac_compile") 2>conftest.er1
27327   ac_status=$?
27328   grep -v '^ *+' conftest.er1 >conftest.err
27329   rm -f conftest.er1
27330   cat conftest.err >&5
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); } && {
27333          test -z "$ac_c_werror_flag" ||
27334          test ! -s conftest.err
27335        } && test -s conftest.$ac_objext; then
27336   ac_header_compiler=yes
27337 else
27338   echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27340
27341         ac_header_compiler=no
27342 fi
27343
27344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346 echo "${ECHO_T}$ac_header_compiler" >&6; }
27347
27348 # Is the header present?
27349 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
27350 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
27351 cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 #include <sys/mkdev.h>
27358 _ACEOF
27359 if { (ac_try="$ac_cpp conftest.$ac_ext"
27360 case "(($ac_try" in
27361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362   *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } >/dev/null && {
27372          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27373          test ! -s conftest.err
27374        }; then
27375   ac_header_preproc=yes
27376 else
27377   echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380   ac_header_preproc=no
27381 fi
27382
27383 rm -f conftest.err conftest.$ac_ext
27384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27385 echo "${ECHO_T}$ac_header_preproc" >&6; }
27386
27387 # So?  What about this header?
27388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27389   yes:no: )
27390     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
27391 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27392     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
27393 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
27394     ac_header_preproc=yes
27395     ;;
27396   no:yes:* )
27397     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
27398 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
27399     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
27400 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
27401     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
27402 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
27403     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
27404 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27405     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
27406 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
27407     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
27408 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
27409     ( cat <<\_ASBOX
27410 ## ---------------------------------------- ##
27411 ## Report this to linux-nfs@vger.kernel.org ##
27412 ## ---------------------------------------- ##
27413 _ASBOX
27414      ) | sed "s/^/$as_me: WARNING:     /" >&2
27415     ;;
27416 esac
27417 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27418 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27419 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27420   echo $ECHO_N "(cached) $ECHO_C" >&6
27421 else
27422   ac_cv_header_sys_mkdev_h=$ac_header_preproc
27423 fi
27424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27425 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27426
27427 fi
27428 if test $ac_cv_header_sys_mkdev_h = yes; then
27429
27430 cat >>confdefs.h <<\_ACEOF
27431 #define MAJOR_IN_MKDEV 1
27432 _ACEOF
27433
27434 fi
27435
27436
27437
27438   if test $ac_cv_header_sys_mkdev_h = no; then
27439     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27440   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27441 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27442 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27443   echo $ECHO_N "(cached) $ECHO_C" >&6
27444 fi
27445 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27446 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27447 else
27448   # Is the header compilable?
27449 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27450 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27451 cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h.  */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h.  */
27457 $ac_includes_default
27458 #include <sys/sysmacros.h>
27459 _ACEOF
27460 rm -f conftest.$ac_objext
27461 if { (ac_try="$ac_compile"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_compile") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } && {
27474          test -z "$ac_c_werror_flag" ||
27475          test ! -s conftest.err
27476        } && test -s conftest.$ac_objext; then
27477   ac_header_compiler=yes
27478 else
27479   echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27481
27482         ac_header_compiler=no
27483 fi
27484
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27487 echo "${ECHO_T}$ac_header_compiler" >&6; }
27488
27489 # Is the header present?
27490 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27491 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27492 cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498 #include <sys/sysmacros.h>
27499 _ACEOF
27500 if { (ac_try="$ac_cpp conftest.$ac_ext"
27501 case "(($ac_try" in
27502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503   *) ac_try_echo=$ac_try;;
27504 esac
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27507   ac_status=$?
27508   grep -v '^ *+' conftest.er1 >conftest.err
27509   rm -f conftest.er1
27510   cat conftest.err >&5
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } >/dev/null && {
27513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27514          test ! -s conftest.err
27515        }; then
27516   ac_header_preproc=yes
27517 else
27518   echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27520
27521   ac_header_preproc=no
27522 fi
27523
27524 rm -f conftest.err conftest.$ac_ext
27525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27526 echo "${ECHO_T}$ac_header_preproc" >&6; }
27527
27528 # So?  What about this header?
27529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27530   yes:no: )
27531     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27532 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27533     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27534 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27535     ac_header_preproc=yes
27536     ;;
27537   no:yes:* )
27538     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27539 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27540     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27541 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27542     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27543 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27544     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27545 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27546     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27547 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27549 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27550     ( cat <<\_ASBOX
27551 ## ---------------------------------------- ##
27552 ## Report this to linux-nfs@vger.kernel.org ##
27553 ## ---------------------------------------- ##
27554 _ASBOX
27555      ) | sed "s/^/$as_me: WARNING:     /" >&2
27556     ;;
27557 esac
27558 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27559 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27560 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27561   echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27564 fi
27565 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27566 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27567
27568 fi
27569 if test $ac_cv_header_sys_sysmacros_h = yes; then
27570
27571 cat >>confdefs.h <<\_ACEOF
27572 #define MAJOR_IN_SYSMACROS 1
27573 _ACEOF
27574
27575 fi
27576
27577
27578   fi
27579 fi
27580
27581 #AC_FUNC_MALLOC
27582 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27583 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27584 if test "${ac_cv_func_memcmp_working+set}" = set; then
27585   echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587   if test "$cross_compiling" = yes; then
27588   ac_cv_func_memcmp_working=no
27589 else
27590   cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 $ac_includes_default
27597 int
27598 main ()
27599 {
27600
27601   /* Some versions of memcmp are not 8-bit clean.  */
27602   char c0 = '\100', c1 = '\200', c2 = '\201';
27603   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27604     return 1;
27605
27606   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27607      or more and with at least one buffer not starting on a 4-byte boundary.
27608      William Lewis provided this test program.   */
27609   {
27610     char foo[21];
27611     char bar[21];
27612     int i;
27613     for (i = 0; i < 4; i++)
27614       {
27615         char *a = foo + i;
27616         char *b = bar + i;
27617         strcpy (a, "--------01111111");
27618         strcpy (b, "--------10000000");
27619         if (memcmp (a, b, 16) >= 0)
27620           return 1;
27621       }
27622     return 0;
27623   }
27624
27625   ;
27626   return 0;
27627 }
27628 _ACEOF
27629 rm -f conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633   *) ac_try_echo=$ac_try;;
27634 esac
27635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27636   (eval "$ac_link") 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640   { (case "(($ac_try" in
27641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642   *) ac_try_echo=$ac_try;;
27643 esac
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645   (eval "$ac_try") 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; }; then
27649   ac_cv_func_memcmp_working=yes
27650 else
27651   echo "$as_me: program exited with status $ac_status" >&5
27652 echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27654
27655 ( exit $ac_status )
27656 ac_cv_func_memcmp_working=no
27657 fi
27658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27659 fi
27660
27661
27662 fi
27663 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27664 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27665 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27666   *" memcmp.$ac_objext "* ) ;;
27667   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27668  ;;
27669 esac
27670
27671
27672 #AC_FUNC_REALLOC
27673
27674
27675 for ac_header in sys/select.h sys/socket.h
27676 do
27677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27679   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27682   echo $ECHO_N "(cached) $ECHO_C" >&6
27683 fi
27684 ac_res=`eval echo '${'$as_ac_Header'}'`
27685                { echo "$as_me:$LINENO: result: $ac_res" >&5
27686 echo "${ECHO_T}$ac_res" >&6; }
27687 else
27688   # Is the header compilable?
27689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27691 cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697 $ac_includes_default
27698 #include <$ac_header>
27699 _ACEOF
27700 rm -f conftest.$ac_objext
27701 if { (ac_try="$ac_compile"
27702 case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_compile") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } && {
27714          test -z "$ac_c_werror_flag" ||
27715          test ! -s conftest.err
27716        } && test -s conftest.$ac_objext; then
27717   ac_header_compiler=yes
27718 else
27719   echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27721
27722         ac_header_compiler=no
27723 fi
27724
27725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27727 echo "${ECHO_T}$ac_header_compiler" >&6; }
27728
27729 # Is the header present?
27730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <$ac_header>
27739 _ACEOF
27740 if { (ac_try="$ac_cpp conftest.$ac_ext"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27747   ac_status=$?
27748   grep -v '^ *+' conftest.er1 >conftest.err
27749   rm -f conftest.er1
27750   cat conftest.err >&5
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); } >/dev/null && {
27753          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27754          test ! -s conftest.err
27755        }; then
27756   ac_header_preproc=yes
27757 else
27758   echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27760
27761   ac_header_preproc=no
27762 fi
27763
27764 rm -f conftest.err conftest.$ac_ext
27765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27766 echo "${ECHO_T}$ac_header_preproc" >&6; }
27767
27768 # So?  What about this header?
27769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27770   yes:no: )
27771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27775     ac_header_preproc=yes
27776     ;;
27777   no:yes:* )
27778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27790     ( cat <<\_ASBOX
27791 ## ---------------------------------------- ##
27792 ## Report this to linux-nfs@vger.kernel.org ##
27793 ## ---------------------------------------- ##
27794 _ASBOX
27795      ) | sed "s/^/$as_me: WARNING:     /" >&2
27796     ;;
27797 esac
27798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27801   echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803   eval "$as_ac_Header=\$ac_header_preproc"
27804 fi
27805 ac_res=`eval echo '${'$as_ac_Header'}'`
27806                { echo "$as_me:$LINENO: result: $ac_res" >&5
27807 echo "${ECHO_T}$ac_res" >&6; }
27808
27809 fi
27810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27811   cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27813 _ACEOF
27814
27815 fi
27816
27817 done
27818
27819 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27820 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27821 if test "${ac_cv_func_select_args+set}" = set; then
27822   echo $ECHO_N "(cached) $ECHO_C" >&6
27823 else
27824   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27825  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27826   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27827    cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 $ac_includes_default
27834 #ifdef HAVE_SYS_SELECT_H
27835 # include <sys/select.h>
27836 #endif
27837 #ifdef HAVE_SYS_SOCKET_H
27838 # include <sys/socket.h>
27839 #endif
27840
27841 int
27842 main ()
27843 {
27844 extern int select ($ac_arg1,
27845                                             $ac_arg234, $ac_arg234, $ac_arg234,
27846                                             $ac_arg5);
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext
27852 if { (ac_try="$ac_compile"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858   (eval "$ac_compile") 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } && {
27865          test -z "$ac_c_werror_flag" ||
27866          test ! -s conftest.err
27867        } && test -s conftest.$ac_objext; then
27868   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27869 else
27870   echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873
27874 fi
27875
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27877   done
27878  done
27879 done
27880 # Provide a safe default value.
27881 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27882
27883 fi
27884 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27885 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27886 ac_save_IFS=$IFS; IFS=','
27887 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27888 IFS=$ac_save_IFS
27889 shift
27890
27891 cat >>confdefs.h <<_ACEOF
27892 #define SELECT_TYPE_ARG1 $1
27893 _ACEOF
27894
27895
27896 cat >>confdefs.h <<_ACEOF
27897 #define SELECT_TYPE_ARG234 ($2)
27898 _ACEOF
27899
27900
27901 cat >>confdefs.h <<_ACEOF
27902 #define SELECT_TYPE_ARG5 ($3)
27903 _ACEOF
27904
27905 rm -f conftest*
27906
27907 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27908 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27909 if test "${ac_cv_type_signal+set}" = set; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912   cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918 #include <sys/types.h>
27919 #include <signal.h>
27920
27921 int
27922 main ()
27923 {
27924 return *(signal (0, 0)) (0) == 1;
27925   ;
27926   return 0;
27927 }
27928 _ACEOF
27929 rm -f conftest.$ac_objext
27930 if { (ac_try="$ac_compile"
27931 case "(($ac_try" in
27932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933   *) ac_try_echo=$ac_try;;
27934 esac
27935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27936   (eval "$ac_compile") 2>conftest.er1
27937   ac_status=$?
27938   grep -v '^ *+' conftest.er1 >conftest.err
27939   rm -f conftest.er1
27940   cat conftest.err >&5
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); } && {
27943          test -z "$ac_c_werror_flag" ||
27944          test ! -s conftest.err
27945        } && test -s conftest.$ac_objext; then
27946   ac_cv_type_signal=int
27947 else
27948   echo "$as_me: failed program was:" >&5
27949 sed 's/^/| /' conftest.$ac_ext >&5
27950
27951         ac_cv_type_signal=void
27952 fi
27953
27954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27955 fi
27956 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27957 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27958
27959 cat >>confdefs.h <<_ACEOF
27960 #define RETSIGTYPE $ac_cv_type_signal
27961 _ACEOF
27962
27963
27964 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27965 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27966 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27967   echo $ECHO_N "(cached) $ECHO_C" >&6
27968 else
27969   if test "$cross_compiling" = yes; then
27970   ac_cv_func_stat_empty_string_bug=yes
27971 else
27972   cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h.  */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h.  */
27978 $ac_includes_default
27979 int
27980 main ()
27981 {
27982 struct stat sbuf;
27983   return stat ("", &sbuf) == 0;
27984   ;
27985   return 0;
27986 }
27987 _ACEOF
27988 rm -f conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_link") 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27999   { (case "(($ac_try" in
28000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001   *) ac_try_echo=$ac_try;;
28002 esac
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004   (eval "$ac_try") 2>&5
28005   ac_status=$?
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); }; }; then
28008   ac_cv_func_stat_empty_string_bug=no
28009 else
28010   echo "$as_me: program exited with status $ac_status" >&5
28011 echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28013
28014 ( exit $ac_status )
28015 ac_cv_func_stat_empty_string_bug=yes
28016 fi
28017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28018 fi
28019
28020
28021 fi
28022 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
28023 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
28024 if test $ac_cv_func_stat_empty_string_bug = yes; then
28025   case " $LIBOBJS " in
28026   *" stat.$ac_objext "* ) ;;
28027   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
28028  ;;
28029 esac
28030
28031
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_STAT_EMPTY_STRING_BUG 1
28034 _ACEOF
28035
28036 fi
28037
28038
28039 for ac_func in vprintf
28040 do
28041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28045   echo $ECHO_N "(cached) $ECHO_C" >&6
28046 else
28047   cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h.  */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h.  */
28053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28055 #define $ac_func innocuous_$ac_func
28056
28057 /* System header to define __stub macros and hopefully few prototypes,
28058     which can conflict with char $ac_func (); below.
28059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28060     <limits.h> exists even on freestanding compilers.  */
28061
28062 #ifdef __STDC__
28063 # include <limits.h>
28064 #else
28065 # include <assert.h>
28066 #endif
28067
28068 #undef $ac_func
28069
28070 /* Override any GCC internal prototype to avoid an error.
28071    Use char because int might match the return type of a GCC
28072    builtin and then its argument prototype would still apply.  */
28073 #ifdef __cplusplus
28074 extern "C"
28075 #endif
28076 char $ac_func ();
28077 /* The GNU C library defines this for functions which it implements
28078     to always fail with ENOSYS.  Some functions are actually named
28079     something starting with __ and the normal name is an alias.  */
28080 #if defined __stub_$ac_func || defined __stub___$ac_func
28081 choke me
28082 #endif
28083
28084 int
28085 main ()
28086 {
28087 return $ac_func ();
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_link") 2>conftest.er1
28100   ac_status=$?
28101   grep -v '^ *+' conftest.er1 >conftest.err
28102   rm -f conftest.er1
28103   cat conftest.err >&5
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); } && {
28106          test -z "$ac_c_werror_flag" ||
28107          test ! -s conftest.err
28108        } && test -s conftest$ac_exeext &&
28109        $as_test_x conftest$ac_exeext; then
28110   eval "$as_ac_var=yes"
28111 else
28112   echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28114
28115         eval "$as_ac_var=no"
28116 fi
28117
28118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28119       conftest$ac_exeext conftest.$ac_ext
28120 fi
28121 ac_res=`eval echo '${'$as_ac_var'}'`
28122                { echo "$as_me:$LINENO: result: $ac_res" >&5
28123 echo "${ECHO_T}$ac_res" >&6; }
28124 if test `eval echo '${'$as_ac_var'}'` = yes; then
28125   cat >>confdefs.h <<_ACEOF
28126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28127 _ACEOF
28128
28129 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28130 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28131 if test "${ac_cv_func__doprnt+set}" = set; then
28132   echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134   cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h.  */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h.  */
28140 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28142 #define _doprnt innocuous__doprnt
28143
28144 /* System header to define __stub macros and hopefully few prototypes,
28145     which can conflict with char _doprnt (); below.
28146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28147     <limits.h> exists even on freestanding compilers.  */
28148
28149 #ifdef __STDC__
28150 # include <limits.h>
28151 #else
28152 # include <assert.h>
28153 #endif
28154
28155 #undef _doprnt
28156
28157 /* Override any GCC internal prototype to avoid an error.
28158    Use char because int might match the return type of a GCC
28159    builtin and then its argument prototype would still apply.  */
28160 #ifdef __cplusplus
28161 extern "C"
28162 #endif
28163 char _doprnt ();
28164 /* The GNU C library defines this for functions which it implements
28165     to always fail with ENOSYS.  Some functions are actually named
28166     something starting with __ and the normal name is an alias.  */
28167 #if defined __stub__doprnt || defined __stub____doprnt
28168 choke me
28169 #endif
28170
28171 int
28172 main ()
28173 {
28174 return _doprnt ();
28175   ;
28176   return 0;
28177 }
28178 _ACEOF
28179 rm -f conftest.$ac_objext conftest$ac_exeext
28180 if { (ac_try="$ac_link"
28181 case "(($ac_try" in
28182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183   *) ac_try_echo=$ac_try;;
28184 esac
28185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186   (eval "$ac_link") 2>conftest.er1
28187   ac_status=$?
28188   grep -v '^ *+' conftest.er1 >conftest.err
28189   rm -f conftest.er1
28190   cat conftest.err >&5
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); } && {
28193          test -z "$ac_c_werror_flag" ||
28194          test ! -s conftest.err
28195        } && test -s conftest$ac_exeext &&
28196        $as_test_x conftest$ac_exeext; then
28197   ac_cv_func__doprnt=yes
28198 else
28199   echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28201
28202         ac_cv_func__doprnt=no
28203 fi
28204
28205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28206       conftest$ac_exeext conftest.$ac_ext
28207 fi
28208 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28209 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28210 if test $ac_cv_func__doprnt = yes; then
28211
28212 cat >>confdefs.h <<\_ACEOF
28213 #define HAVE_DOPRNT 1
28214 _ACEOF
28215
28216 fi
28217
28218 fi
28219 done
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
28263                gethostbyaddr gethostbyname gethostname getmntent \
28264                inet_ntop getnameinfo getrpcbyname \
28265                bindresvport_sa getnetconfig \
28266                clnt_create clnt_create_timed \
28267                clnt_tli_create clnt_vc_create clnt_dg_create xdr_rpcb \
28268                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
28269                realpath rmdir select socket strcasecmp strchr strdup \
28270                strerror strrchr strtol strtoul sigprocmask
28271 do
28272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28286 #define $ac_func innocuous_$ac_func
28287
28288 /* System header to define __stub macros and hopefully few prototypes,
28289     which can conflict with char $ac_func (); below.
28290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28291     <limits.h> exists even on freestanding compilers.  */
28292
28293 #ifdef __STDC__
28294 # include <limits.h>
28295 #else
28296 # include <assert.h>
28297 #endif
28298
28299 #undef $ac_func
28300
28301 /* Override any GCC internal prototype to avoid an error.
28302    Use char because int might match the return type of a GCC
28303    builtin and then its argument prototype would still apply.  */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 char $ac_func ();
28308 /* The GNU C library defines this for functions which it implements
28309     to always fail with ENOSYS.  Some functions are actually named
28310     something starting with __ and the normal name is an alias.  */
28311 #if defined __stub_$ac_func || defined __stub___$ac_func
28312 choke me
28313 #endif
28314
28315 int
28316 main ()
28317 {
28318 return $ac_func ();
28319   ;
28320   return 0;
28321 }
28322 _ACEOF
28323 rm -f conftest.$ac_objext conftest$ac_exeext
28324 if { (ac_try="$ac_link"
28325 case "(($ac_try" in
28326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327   *) ac_try_echo=$ac_try;;
28328 esac
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330   (eval "$ac_link") 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } && {
28337          test -z "$ac_c_werror_flag" ||
28338          test ! -s conftest.err
28339        } && test -s conftest$ac_exeext &&
28340        $as_test_x conftest$ac_exeext; then
28341   eval "$as_ac_var=yes"
28342 else
28343   echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346         eval "$as_ac_var=no"
28347 fi
28348
28349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28350       conftest$ac_exeext conftest.$ac_ext
28351 fi
28352 ac_res=`eval echo '${'$as_ac_var'}'`
28353                { echo "$as_me:$LINENO: result: $ac_res" >&5
28354 echo "${ECHO_T}$ac_res" >&6; }
28355 if test `eval echo '${'$as_ac_var'}'` = yes; then
28356   cat >>confdefs.h <<_ACEOF
28357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28358 _ACEOF
28359
28360 fi
28361 done
28362
28363
28364
28365 { echo "$as_me:$LINENO: checking for short" >&5
28366 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28367 if test "${ac_cv_type_short+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370   cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376 $ac_includes_default
28377 typedef short ac__type_new_;
28378 int
28379 main ()
28380 {
28381 if ((ac__type_new_ *) 0)
28382   return 0;
28383 if (sizeof (ac__type_new_))
28384   return 0;
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393   *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396   (eval "$ac_compile") 2>conftest.er1
28397   ac_status=$?
28398   grep -v '^ *+' conftest.er1 >conftest.err
28399   rm -f conftest.er1
28400   cat conftest.err >&5
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); } && {
28403          test -z "$ac_c_werror_flag" ||
28404          test ! -s conftest.err
28405        } && test -s conftest.$ac_objext; then
28406   ac_cv_type_short=yes
28407 else
28408   echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28410
28411         ac_cv_type_short=no
28412 fi
28413
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 fi
28416 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28417 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28418
28419 # The cast to long int works around a bug in the HP C Compiler
28420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28422 # This bug is HP SR number 8606223364.
28423 { echo "$as_me:$LINENO: checking size of short" >&5
28424 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28425 if test "${ac_cv_sizeof_short+set}" = set; then
28426   echo $ECHO_N "(cached) $ECHO_C" >&6
28427 else
28428   if test "$cross_compiling" = yes; then
28429   # Depending upon the size, compute the lo and hi bounds.
28430 cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436 $ac_includes_default
28437    typedef short ac__type_sizeof_;
28438 int
28439 main ()
28440 {
28441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28442 test_array [0] = 0
28443
28444   ;
28445   return 0;
28446 }
28447 _ACEOF
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452   *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455   (eval "$ac_compile") 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } && {
28462          test -z "$ac_c_werror_flag" ||
28463          test ! -s conftest.err
28464        } && test -s conftest.$ac_objext; then
28465   ac_lo=0 ac_mid=0
28466   while :; do
28467     cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473 $ac_includes_default
28474    typedef short ac__type_sizeof_;
28475 int
28476 main ()
28477 {
28478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28479 test_array [0] = 0
28480
28481   ;
28482   return 0;
28483 }
28484 _ACEOF
28485 rm -f conftest.$ac_objext
28486 if { (ac_try="$ac_compile"
28487 case "(($ac_try" in
28488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489   *) ac_try_echo=$ac_try;;
28490 esac
28491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492   (eval "$ac_compile") 2>conftest.er1
28493   ac_status=$?
28494   grep -v '^ *+' conftest.er1 >conftest.err
28495   rm -f conftest.er1
28496   cat conftest.err >&5
28497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); } && {
28499          test -z "$ac_c_werror_flag" ||
28500          test ! -s conftest.err
28501        } && test -s conftest.$ac_objext; then
28502   ac_hi=$ac_mid; break
28503 else
28504   echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28506
28507         ac_lo=`expr $ac_mid + 1`
28508                         if test $ac_lo -le $ac_mid; then
28509                           ac_lo= ac_hi=
28510                           break
28511                         fi
28512                         ac_mid=`expr 2 '*' $ac_mid + 1`
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516   done
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521         cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 $ac_includes_default
28528    typedef short ac__type_sizeof_;
28529 int
28530 main ()
28531 {
28532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28533 test_array [0] = 0
28534
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_compile") 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } && {
28553          test -z "$ac_c_werror_flag" ||
28554          test ! -s conftest.err
28555        } && test -s conftest.$ac_objext; then
28556   ac_hi=-1 ac_mid=-1
28557   while :; do
28558     cat >conftest.$ac_ext <<_ACEOF
28559 /* confdefs.h.  */
28560 _ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h.  */
28564 $ac_includes_default
28565    typedef short ac__type_sizeof_;
28566 int
28567 main ()
28568 {
28569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28570 test_array [0] = 0
28571
28572   ;
28573   return 0;
28574 }
28575 _ACEOF
28576 rm -f conftest.$ac_objext
28577 if { (ac_try="$ac_compile"
28578 case "(($ac_try" in
28579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580   *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583   (eval "$ac_compile") 2>conftest.er1
28584   ac_status=$?
28585   grep -v '^ *+' conftest.er1 >conftest.err
28586   rm -f conftest.er1
28587   cat conftest.err >&5
28588   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_objext; then
28593   ac_lo=$ac_mid; break
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598         ac_hi=`expr '(' $ac_mid ')' - 1`
28599                         if test $ac_mid -le $ac_hi; then
28600                           ac_lo= ac_hi=
28601                           break
28602                         fi
28603                         ac_mid=`expr 2 '*' $ac_mid`
28604 fi
28605
28606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607   done
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612         ac_lo= ac_hi=
28613 fi
28614
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616 fi
28617
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 # Binary search between lo and hi bounds.
28620 while test "x$ac_lo" != "x$ac_hi"; do
28621   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28622   cat >conftest.$ac_ext <<_ACEOF
28623 /* confdefs.h.  */
28624 _ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h.  */
28628 $ac_includes_default
28629    typedef short ac__type_sizeof_;
28630 int
28631 main ()
28632 {
28633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28634 test_array [0] = 0
28635
28636   ;
28637   return 0;
28638 }
28639 _ACEOF
28640 rm -f conftest.$ac_objext
28641 if { (ac_try="$ac_compile"
28642 case "(($ac_try" in
28643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644   *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647   (eval "$ac_compile") 2>conftest.er1
28648   ac_status=$?
28649   grep -v '^ *+' conftest.er1 >conftest.err
28650   rm -f conftest.er1
28651   cat conftest.err >&5
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); } && {
28654          test -z "$ac_c_werror_flag" ||
28655          test ! -s conftest.err
28656        } && test -s conftest.$ac_objext; then
28657   ac_hi=$ac_mid
28658 else
28659   echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662         ac_lo=`expr '(' $ac_mid ')' + 1`
28663 fi
28664
28665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28666 done
28667 case $ac_lo in
28668 ?*) ac_cv_sizeof_short=$ac_lo;;
28669 '') if test "$ac_cv_type_short" = yes; then
28670      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28671 See \`config.log' for more details." >&5
28672 echo "$as_me: error: cannot compute sizeof (short)
28673 See \`config.log' for more details." >&2;}
28674    { (exit 77); exit 77; }; }
28675    else
28676      ac_cv_sizeof_short=0
28677    fi ;;
28678 esac
28679 else
28680   cat >conftest.$ac_ext <<_ACEOF
28681 /* confdefs.h.  */
28682 _ACEOF
28683 cat confdefs.h >>conftest.$ac_ext
28684 cat >>conftest.$ac_ext <<_ACEOF
28685 /* end confdefs.h.  */
28686 $ac_includes_default
28687    typedef short ac__type_sizeof_;
28688 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28689 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28690 #include <stdio.h>
28691 #include <stdlib.h>
28692 int
28693 main ()
28694 {
28695
28696   FILE *f = fopen ("conftest.val", "w");
28697   if (! f)
28698     return 1;
28699   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28700     {
28701       long int i = longval ();
28702       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28703         return 1;
28704       fprintf (f, "%ld\n", i);
28705     }
28706   else
28707     {
28708       unsigned long int i = ulongval ();
28709       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28710         return 1;
28711       fprintf (f, "%lu\n", i);
28712     }
28713   return ferror (f) || fclose (f) != 0;
28714
28715   ;
28716   return 0;
28717 }
28718 _ACEOF
28719 rm -f conftest$ac_exeext
28720 if { (ac_try="$ac_link"
28721 case "(($ac_try" in
28722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723   *) ac_try_echo=$ac_try;;
28724 esac
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726   (eval "$ac_link") 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28730   { (case "(($ac_try" in
28731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732   *) ac_try_echo=$ac_try;;
28733 esac
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735   (eval "$ac_try") 2>&5
28736   ac_status=$?
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); }; }; then
28739   ac_cv_sizeof_short=`cat conftest.val`
28740 else
28741   echo "$as_me: program exited with status $ac_status" >&5
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28744
28745 ( exit $ac_status )
28746 if test "$ac_cv_type_short" = yes; then
28747      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28748 See \`config.log' for more details." >&5
28749 echo "$as_me: error: cannot compute sizeof (short)
28750 See \`config.log' for more details." >&2;}
28751    { (exit 77); exit 77; }; }
28752    else
28753      ac_cv_sizeof_short=0
28754    fi
28755 fi
28756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28757 fi
28758 rm -f conftest.val
28759 fi
28760 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28761 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28762
28763
28764
28765 cat >>confdefs.h <<_ACEOF
28766 #define SIZEOF_SHORT $ac_cv_sizeof_short
28767 _ACEOF
28768
28769
28770 { echo "$as_me:$LINENO: checking for int" >&5
28771 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28772 if test "${ac_cv_type_int+set}" = set; then
28773   echo $ECHO_N "(cached) $ECHO_C" >&6
28774 else
28775   cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h.  */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h.  */
28781 $ac_includes_default
28782 typedef int ac__type_new_;
28783 int
28784 main ()
28785 {
28786 if ((ac__type_new_ *) 0)
28787   return 0;
28788 if (sizeof (ac__type_new_))
28789   return 0;
28790   ;
28791   return 0;
28792 }
28793 _ACEOF
28794 rm -f conftest.$ac_objext
28795 if { (ac_try="$ac_compile"
28796 case "(($ac_try" in
28797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798   *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801   (eval "$ac_compile") 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } && {
28808          test -z "$ac_c_werror_flag" ||
28809          test ! -s conftest.err
28810        } && test -s conftest.$ac_objext; then
28811   ac_cv_type_int=yes
28812 else
28813   echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28815
28816         ac_cv_type_int=no
28817 fi
28818
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28820 fi
28821 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28822 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28823
28824 # The cast to long int works around a bug in the HP C Compiler
28825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28827 # This bug is HP SR number 8606223364.
28828 { echo "$as_me:$LINENO: checking size of int" >&5
28829 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28830 if test "${ac_cv_sizeof_int+set}" = set; then
28831   echo $ECHO_N "(cached) $ECHO_C" >&6
28832 else
28833   if test "$cross_compiling" = yes; then
28834   # Depending upon the size, compute the lo and hi bounds.
28835 cat >conftest.$ac_ext <<_ACEOF
28836 /* confdefs.h.  */
28837 _ACEOF
28838 cat confdefs.h >>conftest.$ac_ext
28839 cat >>conftest.$ac_ext <<_ACEOF
28840 /* end confdefs.h.  */
28841 $ac_includes_default
28842    typedef int ac__type_sizeof_;
28843 int
28844 main ()
28845 {
28846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28847 test_array [0] = 0
28848
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_compile") 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } && {
28867          test -z "$ac_c_werror_flag" ||
28868          test ! -s conftest.err
28869        } && test -s conftest.$ac_objext; then
28870   ac_lo=0 ac_mid=0
28871   while :; do
28872     cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 $ac_includes_default
28879    typedef int ac__type_sizeof_;
28880 int
28881 main ()
28882 {
28883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28884 test_array [0] = 0
28885
28886   ;
28887   return 0;
28888 }
28889 _ACEOF
28890 rm -f conftest.$ac_objext
28891 if { (ac_try="$ac_compile"
28892 case "(($ac_try" in
28893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894   *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897   (eval "$ac_compile") 2>conftest.er1
28898   ac_status=$?
28899   grep -v '^ *+' conftest.er1 >conftest.err
28900   rm -f conftest.er1
28901   cat conftest.err >&5
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); } && {
28904          test -z "$ac_c_werror_flag" ||
28905          test ! -s conftest.err
28906        } && test -s conftest.$ac_objext; then
28907   ac_hi=$ac_mid; break
28908 else
28909   echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28911
28912         ac_lo=`expr $ac_mid + 1`
28913                         if test $ac_lo -le $ac_mid; then
28914                           ac_lo= ac_hi=
28915                           break
28916                         fi
28917                         ac_mid=`expr 2 '*' $ac_mid + 1`
28918 fi
28919
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921   done
28922 else
28923   echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926         cat >conftest.$ac_ext <<_ACEOF
28927 /* confdefs.h.  */
28928 _ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h.  */
28932 $ac_includes_default
28933    typedef int ac__type_sizeof_;
28934 int
28935 main ()
28936 {
28937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28938 test_array [0] = 0
28939
28940   ;
28941   return 0;
28942 }
28943 _ACEOF
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_compile") 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } && {
28958          test -z "$ac_c_werror_flag" ||
28959          test ! -s conftest.err
28960        } && test -s conftest.$ac_objext; then
28961   ac_hi=-1 ac_mid=-1
28962   while :; do
28963     cat >conftest.$ac_ext <<_ACEOF
28964 /* confdefs.h.  */
28965 _ACEOF
28966 cat confdefs.h >>conftest.$ac_ext
28967 cat >>conftest.$ac_ext <<_ACEOF
28968 /* end confdefs.h.  */
28969 $ac_includes_default
28970    typedef int ac__type_sizeof_;
28971 int
28972 main ()
28973 {
28974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28975 test_array [0] = 0
28976
28977   ;
28978   return 0;
28979 }
28980 _ACEOF
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_compile") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } && {
28995          test -z "$ac_c_werror_flag" ||
28996          test ! -s conftest.err
28997        } && test -s conftest.$ac_objext; then
28998   ac_lo=$ac_mid; break
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003         ac_hi=`expr '(' $ac_mid ')' - 1`
29004                         if test $ac_mid -le $ac_hi; then
29005                           ac_lo= ac_hi=
29006                           break
29007                         fi
29008                         ac_mid=`expr 2 '*' $ac_mid`
29009 fi
29010
29011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29012   done
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017         ac_lo= ac_hi=
29018 fi
29019
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021 fi
29022
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 # Binary search between lo and hi bounds.
29025 while test "x$ac_lo" != "x$ac_hi"; do
29026   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29027   cat >conftest.$ac_ext <<_ACEOF
29028 /* confdefs.h.  */
29029 _ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h.  */
29033 $ac_includes_default
29034    typedef int ac__type_sizeof_;
29035 int
29036 main ()
29037 {
29038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29039 test_array [0] = 0
29040
29041   ;
29042   return 0;
29043 }
29044 _ACEOF
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_compile") 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } && {
29059          test -z "$ac_c_werror_flag" ||
29060          test ! -s conftest.err
29061        } && test -s conftest.$ac_objext; then
29062   ac_hi=$ac_mid
29063 else
29064   echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067         ac_lo=`expr '(' $ac_mid ')' + 1`
29068 fi
29069
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071 done
29072 case $ac_lo in
29073 ?*) ac_cv_sizeof_int=$ac_lo;;
29074 '') if test "$ac_cv_type_int" = yes; then
29075      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29076 See \`config.log' for more details." >&5
29077 echo "$as_me: error: cannot compute sizeof (int)
29078 See \`config.log' for more details." >&2;}
29079    { (exit 77); exit 77; }; }
29080    else
29081      ac_cv_sizeof_int=0
29082    fi ;;
29083 esac
29084 else
29085   cat >conftest.$ac_ext <<_ACEOF
29086 /* confdefs.h.  */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h.  */
29091 $ac_includes_default
29092    typedef int ac__type_sizeof_;
29093 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29094 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29095 #include <stdio.h>
29096 #include <stdlib.h>
29097 int
29098 main ()
29099 {
29100
29101   FILE *f = fopen ("conftest.val", "w");
29102   if (! f)
29103     return 1;
29104   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29105     {
29106       long int i = longval ();
29107       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29108         return 1;
29109       fprintf (f, "%ld\n", i);
29110     }
29111   else
29112     {
29113       unsigned long int i = ulongval ();
29114       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29115         return 1;
29116       fprintf (f, "%lu\n", i);
29117     }
29118   return ferror (f) || fclose (f) != 0;
29119
29120   ;
29121   return 0;
29122 }
29123 _ACEOF
29124 rm -f conftest$ac_exeext
29125 if { (ac_try="$ac_link"
29126 case "(($ac_try" in
29127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128   *) ac_try_echo=$ac_try;;
29129 esac
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131   (eval "$ac_link") 2>&5
29132   ac_status=$?
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29135   { (case "(($ac_try" in
29136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137   *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140   (eval "$ac_try") 2>&5
29141   ac_status=$?
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); }; }; then
29144   ac_cv_sizeof_int=`cat conftest.val`
29145 else
29146   echo "$as_me: program exited with status $ac_status" >&5
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29149
29150 ( exit $ac_status )
29151 if test "$ac_cv_type_int" = yes; then
29152      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29153 See \`config.log' for more details." >&5
29154 echo "$as_me: error: cannot compute sizeof (int)
29155 See \`config.log' for more details." >&2;}
29156    { (exit 77); exit 77; }; }
29157    else
29158      ac_cv_sizeof_int=0
29159    fi
29160 fi
29161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29162 fi
29163 rm -f conftest.val
29164 fi
29165 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29166 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29167
29168
29169
29170 cat >>confdefs.h <<_ACEOF
29171 #define SIZEOF_INT $ac_cv_sizeof_int
29172 _ACEOF
29173
29174
29175 { echo "$as_me:$LINENO: checking for long" >&5
29176 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29177 if test "${ac_cv_type_long+set}" = set; then
29178   echo $ECHO_N "(cached) $ECHO_C" >&6
29179 else
29180   cat >conftest.$ac_ext <<_ACEOF
29181 /* confdefs.h.  */
29182 _ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h.  */
29186 $ac_includes_default
29187 typedef long ac__type_new_;
29188 int
29189 main ()
29190 {
29191 if ((ac__type_new_ *) 0)
29192   return 0;
29193 if (sizeof (ac__type_new_))
29194   return 0;
29195   ;
29196   return 0;
29197 }
29198 _ACEOF
29199 rm -f conftest.$ac_objext
29200 if { (ac_try="$ac_compile"
29201 case "(($ac_try" in
29202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29203   *) ac_try_echo=$ac_try;;
29204 esac
29205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29206   (eval "$ac_compile") 2>conftest.er1
29207   ac_status=$?
29208   grep -v '^ *+' conftest.er1 >conftest.err
29209   rm -f conftest.er1
29210   cat conftest.err >&5
29211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212   (exit $ac_status); } && {
29213          test -z "$ac_c_werror_flag" ||
29214          test ! -s conftest.err
29215        } && test -s conftest.$ac_objext; then
29216   ac_cv_type_long=yes
29217 else
29218   echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29220
29221         ac_cv_type_long=no
29222 fi
29223
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29225 fi
29226 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29227 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29228
29229 # The cast to long int works around a bug in the HP C Compiler
29230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29232 # This bug is HP SR number 8606223364.
29233 { echo "$as_me:$LINENO: checking size of long" >&5
29234 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29235 if test "${ac_cv_sizeof_long+set}" = set; then
29236   echo $ECHO_N "(cached) $ECHO_C" >&6
29237 else
29238   if test "$cross_compiling" = yes; then
29239   # Depending upon the size, compute the lo and hi bounds.
29240 cat >conftest.$ac_ext <<_ACEOF
29241 /* confdefs.h.  */
29242 _ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h.  */
29246 $ac_includes_default
29247    typedef long ac__type_sizeof_;
29248 int
29249 main ()
29250 {
29251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29252 test_array [0] = 0
29253
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265   (eval "$ac_compile") 2>conftest.er1
29266   ac_status=$?
29267   grep -v '^ *+' conftest.er1 >conftest.err
29268   rm -f conftest.er1
29269   cat conftest.err >&5
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); } && {
29272          test -z "$ac_c_werror_flag" ||
29273          test ! -s conftest.err
29274        } && test -s conftest.$ac_objext; then
29275   ac_lo=0 ac_mid=0
29276   while :; do
29277     cat >conftest.$ac_ext <<_ACEOF
29278 /* confdefs.h.  */
29279 _ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h.  */
29283 $ac_includes_default
29284    typedef long ac__type_sizeof_;
29285 int
29286 main ()
29287 {
29288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29289 test_array [0] = 0
29290
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302   (eval "$ac_compile") 2>conftest.er1
29303   ac_status=$?
29304   grep -v '^ *+' conftest.er1 >conftest.err
29305   rm -f conftest.er1
29306   cat conftest.err >&5
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); } && {
29309          test -z "$ac_c_werror_flag" ||
29310          test ! -s conftest.err
29311        } && test -s conftest.$ac_objext; then
29312   ac_hi=$ac_mid; break
29313 else
29314   echo "$as_me: failed program was:" >&5
29315 sed 's/^/| /' conftest.$ac_ext >&5
29316
29317         ac_lo=`expr $ac_mid + 1`
29318                         if test $ac_lo -le $ac_mid; then
29319                           ac_lo= ac_hi=
29320                           break
29321                         fi
29322                         ac_mid=`expr 2 '*' $ac_mid + 1`
29323 fi
29324
29325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29326   done
29327 else
29328   echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29330
29331         cat >conftest.$ac_ext <<_ACEOF
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 $ac_includes_default
29338    typedef long ac__type_sizeof_;
29339 int
29340 main ()
29341 {
29342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29343 test_array [0] = 0
29344
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_compile") 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } && {
29363          test -z "$ac_c_werror_flag" ||
29364          test ! -s conftest.err
29365        } && test -s conftest.$ac_objext; then
29366   ac_hi=-1 ac_mid=-1
29367   while :; do
29368     cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374 $ac_includes_default
29375    typedef long ac__type_sizeof_;
29376 int
29377 main ()
29378 {
29379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29380 test_array [0] = 0
29381
29382   ;
29383   return 0;
29384 }
29385 _ACEOF
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390   *) ac_try_echo=$ac_try;;
29391 esac
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393   (eval "$ac_compile") 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } && {
29400          test -z "$ac_c_werror_flag" ||
29401          test ! -s conftest.err
29402        } && test -s conftest.$ac_objext; then
29403   ac_lo=$ac_mid; break
29404 else
29405   echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29407
29408         ac_hi=`expr '(' $ac_mid ')' - 1`
29409                         if test $ac_mid -le $ac_hi; then
29410                           ac_lo= ac_hi=
29411                           break
29412                         fi
29413                         ac_mid=`expr 2 '*' $ac_mid`
29414 fi
29415
29416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29417   done
29418 else
29419   echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29421
29422         ac_lo= ac_hi=
29423 fi
29424
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426 fi
29427
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429 # Binary search between lo and hi bounds.
29430 while test "x$ac_lo" != "x$ac_hi"; do
29431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29432   cat >conftest.$ac_ext <<_ACEOF
29433 /* confdefs.h.  */
29434 _ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h.  */
29438 $ac_includes_default
29439    typedef long ac__type_sizeof_;
29440 int
29441 main ()
29442 {
29443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29444 test_array [0] = 0
29445
29446   ;
29447   return 0;
29448 }
29449 _ACEOF
29450 rm -f conftest.$ac_objext
29451 if { (ac_try="$ac_compile"
29452 case "(($ac_try" in
29453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454   *) ac_try_echo=$ac_try;;
29455 esac
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457   (eval "$ac_compile") 2>conftest.er1
29458   ac_status=$?
29459   grep -v '^ *+' conftest.er1 >conftest.err
29460   rm -f conftest.er1
29461   cat conftest.err >&5
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); } && {
29464          test -z "$ac_c_werror_flag" ||
29465          test ! -s conftest.err
29466        } && test -s conftest.$ac_objext; then
29467   ac_hi=$ac_mid
29468 else
29469   echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29471
29472         ac_lo=`expr '(' $ac_mid ')' + 1`
29473 fi
29474
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29476 done
29477 case $ac_lo in
29478 ?*) ac_cv_sizeof_long=$ac_lo;;
29479 '') if test "$ac_cv_type_long" = yes; then
29480      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29481 See \`config.log' for more details." >&5
29482 echo "$as_me: error: cannot compute sizeof (long)
29483 See \`config.log' for more details." >&2;}
29484    { (exit 77); exit 77; }; }
29485    else
29486      ac_cv_sizeof_long=0
29487    fi ;;
29488 esac
29489 else
29490   cat >conftest.$ac_ext <<_ACEOF
29491 /* confdefs.h.  */
29492 _ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h.  */
29496 $ac_includes_default
29497    typedef long ac__type_sizeof_;
29498 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29499 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29500 #include <stdio.h>
29501 #include <stdlib.h>
29502 int
29503 main ()
29504 {
29505
29506   FILE *f = fopen ("conftest.val", "w");
29507   if (! f)
29508     return 1;
29509   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29510     {
29511       long int i = longval ();
29512       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29513         return 1;
29514       fprintf (f, "%ld\n", i);
29515     }
29516   else
29517     {
29518       unsigned long int i = ulongval ();
29519       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29520         return 1;
29521       fprintf (f, "%lu\n", i);
29522     }
29523   return ferror (f) || fclose (f) != 0;
29524
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533   *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536   (eval "$ac_link") 2>&5
29537   ac_status=$?
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29540   { (case "(($ac_try" in
29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542   *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545   (eval "$ac_try") 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; }; then
29549   ac_cv_sizeof_long=`cat conftest.val`
29550 else
29551   echo "$as_me: program exited with status $ac_status" >&5
29552 echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555 ( exit $ac_status )
29556 if test "$ac_cv_type_long" = yes; then
29557      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29558 See \`config.log' for more details." >&5
29559 echo "$as_me: error: cannot compute sizeof (long)
29560 See \`config.log' for more details." >&2;}
29561    { (exit 77); exit 77; }; }
29562    else
29563      ac_cv_sizeof_long=0
29564    fi
29565 fi
29566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29567 fi
29568 rm -f conftest.val
29569 fi
29570 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29571 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29572
29573
29574
29575 cat >>confdefs.h <<_ACEOF
29576 #define SIZEOF_LONG $ac_cv_sizeof_long
29577 _ACEOF
29578
29579
29580 { echo "$as_me:$LINENO: checking for size_t" >&5
29581 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29582 if test "${ac_cv_type_size_t+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591 $ac_includes_default
29592 typedef size_t ac__type_new_;
29593 int
29594 main ()
29595 {
29596 if ((ac__type_new_ *) 0)
29597   return 0;
29598 if (sizeof (ac__type_new_))
29599   return 0;
29600   ;
29601   return 0;
29602 }
29603 _ACEOF
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608   *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611   (eval "$ac_compile") 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } && {
29618          test -z "$ac_c_werror_flag" ||
29619          test ! -s conftest.err
29620        } && test -s conftest.$ac_objext; then
29621   ac_cv_type_size_t=yes
29622 else
29623   echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626         ac_cv_type_size_t=no
29627 fi
29628
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 fi
29631 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29632 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29633
29634 # The cast to long int works around a bug in the HP C Compiler
29635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29637 # This bug is HP SR number 8606223364.
29638 { echo "$as_me:$LINENO: checking size of size_t" >&5
29639 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29640 if test "${ac_cv_sizeof_size_t+set}" = set; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 else
29643   if test "$cross_compiling" = yes; then
29644   # Depending upon the size, compute the lo and hi bounds.
29645 cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651 $ac_includes_default
29652    typedef size_t ac__type_sizeof_;
29653 int
29654 main ()
29655 {
29656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29657 test_array [0] = 0
29658
29659   ;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_compile") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } && {
29677          test -z "$ac_c_werror_flag" ||
29678          test ! -s conftest.err
29679        } && test -s conftest.$ac_objext; then
29680   ac_lo=0 ac_mid=0
29681   while :; do
29682     cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 $ac_includes_default
29689    typedef size_t ac__type_sizeof_;
29690 int
29691 main ()
29692 {
29693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29694 test_array [0] = 0
29695
29696   ;
29697   return 0;
29698 }
29699 _ACEOF
29700 rm -f conftest.$ac_objext
29701 if { (ac_try="$ac_compile"
29702 case "(($ac_try" in
29703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704   *) ac_try_echo=$ac_try;;
29705 esac
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707   (eval "$ac_compile") 2>conftest.er1
29708   ac_status=$?
29709   grep -v '^ *+' conftest.er1 >conftest.err
29710   rm -f conftest.er1
29711   cat conftest.err >&5
29712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713   (exit $ac_status); } && {
29714          test -z "$ac_c_werror_flag" ||
29715          test ! -s conftest.err
29716        } && test -s conftest.$ac_objext; then
29717   ac_hi=$ac_mid; break
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722         ac_lo=`expr $ac_mid + 1`
29723                         if test $ac_lo -le $ac_mid; then
29724                           ac_lo= ac_hi=
29725                           break
29726                         fi
29727                         ac_mid=`expr 2 '*' $ac_mid + 1`
29728 fi
29729
29730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29731   done
29732 else
29733   echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736         cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 $ac_includes_default
29743    typedef size_t ac__type_sizeof_;
29744 int
29745 main ()
29746 {
29747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29748 test_array [0] = 0
29749
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_compile") 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } && {
29768          test -z "$ac_c_werror_flag" ||
29769          test ! -s conftest.err
29770        } && test -s conftest.$ac_objext; then
29771   ac_hi=-1 ac_mid=-1
29772   while :; do
29773     cat >conftest.$ac_ext <<_ACEOF
29774 /* confdefs.h.  */
29775 _ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h.  */
29779 $ac_includes_default
29780    typedef size_t ac__type_sizeof_;
29781 int
29782 main ()
29783 {
29784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29785 test_array [0] = 0
29786
29787   ;
29788   return 0;
29789 }
29790 _ACEOF
29791 rm -f conftest.$ac_objext
29792 if { (ac_try="$ac_compile"
29793 case "(($ac_try" in
29794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795   *) ac_try_echo=$ac_try;;
29796 esac
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798   (eval "$ac_compile") 2>conftest.er1
29799   ac_status=$?
29800   grep -v '^ *+' conftest.er1 >conftest.err
29801   rm -f conftest.er1
29802   cat conftest.err >&5
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); } && {
29805          test -z "$ac_c_werror_flag" ||
29806          test ! -s conftest.err
29807        } && test -s conftest.$ac_objext; then
29808   ac_lo=$ac_mid; break
29809 else
29810   echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29812
29813         ac_hi=`expr '(' $ac_mid ')' - 1`
29814                         if test $ac_mid -le $ac_hi; then
29815                           ac_lo= ac_hi=
29816                           break
29817                         fi
29818                         ac_mid=`expr 2 '*' $ac_mid`
29819 fi
29820
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822   done
29823 else
29824   echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29826
29827         ac_lo= ac_hi=
29828 fi
29829
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831 fi
29832
29833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834 # Binary search between lo and hi bounds.
29835 while test "x$ac_lo" != "x$ac_hi"; do
29836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29837   cat >conftest.$ac_ext <<_ACEOF
29838 /* confdefs.h.  */
29839 _ACEOF
29840 cat confdefs.h >>conftest.$ac_ext
29841 cat >>conftest.$ac_ext <<_ACEOF
29842 /* end confdefs.h.  */
29843 $ac_includes_default
29844    typedef size_t ac__type_sizeof_;
29845 int
29846 main ()
29847 {
29848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29849 test_array [0] = 0
29850
29851   ;
29852   return 0;
29853 }
29854 _ACEOF
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862   (eval "$ac_compile") 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } && {
29869          test -z "$ac_c_werror_flag" ||
29870          test ! -s conftest.err
29871        } && test -s conftest.$ac_objext; then
29872   ac_hi=$ac_mid
29873 else
29874   echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29876
29877         ac_lo=`expr '(' $ac_mid ')' + 1`
29878 fi
29879
29880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29881 done
29882 case $ac_lo in
29883 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29884 '') if test "$ac_cv_type_size_t" = yes; then
29885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29886 See \`config.log' for more details." >&5
29887 echo "$as_me: error: cannot compute sizeof (size_t)
29888 See \`config.log' for more details." >&2;}
29889    { (exit 77); exit 77; }; }
29890    else
29891      ac_cv_sizeof_size_t=0
29892    fi ;;
29893 esac
29894 else
29895   cat >conftest.$ac_ext <<_ACEOF
29896 /* confdefs.h.  */
29897 _ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h.  */
29901 $ac_includes_default
29902    typedef size_t ac__type_sizeof_;
29903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29905 #include <stdio.h>
29906 #include <stdlib.h>
29907 int
29908 main ()
29909 {
29910
29911   FILE *f = fopen ("conftest.val", "w");
29912   if (! f)
29913     return 1;
29914   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29915     {
29916       long int i = longval ();
29917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29918         return 1;
29919       fprintf (f, "%ld\n", i);
29920     }
29921   else
29922     {
29923       unsigned long int i = ulongval ();
29924       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29925         return 1;
29926       fprintf (f, "%lu\n", i);
29927     }
29928   return ferror (f) || fclose (f) != 0;
29929
29930   ;
29931   return 0;
29932 }
29933 _ACEOF
29934 rm -f conftest$ac_exeext
29935 if { (ac_try="$ac_link"
29936 case "(($ac_try" in
29937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938   *) ac_try_echo=$ac_try;;
29939 esac
29940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941   (eval "$ac_link") 2>&5
29942   ac_status=$?
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29945   { (case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_try") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; }; then
29954   ac_cv_sizeof_size_t=`cat conftest.val`
29955 else
29956   echo "$as_me: program exited with status $ac_status" >&5
29957 echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29959
29960 ( exit $ac_status )
29961 if test "$ac_cv_type_size_t" = yes; then
29962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29963 See \`config.log' for more details." >&5
29964 echo "$as_me: error: cannot compute sizeof (size_t)
29965 See \`config.log' for more details." >&2;}
29966    { (exit 77); exit 77; }; }
29967    else
29968      ac_cv_sizeof_size_t=0
29969    fi
29970 fi
29971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29972 fi
29973 rm -f conftest.val
29974 fi
29975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29976 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29977
29978
29979
29980 cat >>confdefs.h <<_ACEOF
29981 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29982 _ACEOF
29983
29984
29985 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29986 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29987 if test "${ac_cv_type_socklen_t+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29996 $ac_includes_default
29997 typedef socklen_t ac__type_new_;
29998 int
29999 main ()
30000 {
30001 if ((ac__type_new_ *) 0)
30002   return 0;
30003 if (sizeof (ac__type_new_))
30004   return 0;
30005   ;
30006   return 0;
30007 }
30008 _ACEOF
30009 rm -f conftest.$ac_objext
30010 if { (ac_try="$ac_compile"
30011 case "(($ac_try" in
30012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013   *) ac_try_echo=$ac_try;;
30014 esac
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016   (eval "$ac_compile") 2>conftest.er1
30017   ac_status=$?
30018   grep -v '^ *+' conftest.er1 >conftest.err
30019   rm -f conftest.er1
30020   cat conftest.err >&5
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } && {
30023          test -z "$ac_c_werror_flag" ||
30024          test ! -s conftest.err
30025        } && test -s conftest.$ac_objext; then
30026   ac_cv_type_socklen_t=yes
30027 else
30028   echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30030
30031         ac_cv_type_socklen_t=no
30032 fi
30033
30034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30035 fi
30036 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30037 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30038
30039 # The cast to long int works around a bug in the HP C Compiler
30040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30042 # This bug is HP SR number 8606223364.
30043 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30044 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30045 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   if test "$cross_compiling" = yes; then
30049   # Depending upon the size, compute the lo and hi bounds.
30050 cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056 $ac_includes_default
30057    typedef socklen_t ac__type_sizeof_;
30058 int
30059 main ()
30060 {
30061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30062 test_array [0] = 0
30063
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_compile") 2>conftest.er1
30076   ac_status=$?
30077   grep -v '^ *+' conftest.er1 >conftest.err
30078   rm -f conftest.er1
30079   cat conftest.err >&5
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); } && {
30082          test -z "$ac_c_werror_flag" ||
30083          test ! -s conftest.err
30084        } && test -s conftest.$ac_objext; then
30085   ac_lo=0 ac_mid=0
30086   while :; do
30087     cat >conftest.$ac_ext <<_ACEOF
30088 /* confdefs.h.  */
30089 _ACEOF
30090 cat confdefs.h >>conftest.$ac_ext
30091 cat >>conftest.$ac_ext <<_ACEOF
30092 /* end confdefs.h.  */
30093 $ac_includes_default
30094    typedef socklen_t ac__type_sizeof_;
30095 int
30096 main ()
30097 {
30098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30099 test_array [0] = 0
30100
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 rm -f conftest.$ac_objext
30106 if { (ac_try="$ac_compile"
30107 case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_compile") 2>conftest.er1
30113   ac_status=$?
30114   grep -v '^ *+' conftest.er1 >conftest.err
30115   rm -f conftest.er1
30116   cat conftest.err >&5
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } && {
30119          test -z "$ac_c_werror_flag" ||
30120          test ! -s conftest.err
30121        } && test -s conftest.$ac_objext; then
30122   ac_hi=$ac_mid; break
30123 else
30124   echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30126
30127         ac_lo=`expr $ac_mid + 1`
30128                         if test $ac_lo -le $ac_mid; then
30129                           ac_lo= ac_hi=
30130                           break
30131                         fi
30132                         ac_mid=`expr 2 '*' $ac_mid + 1`
30133 fi
30134
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136   done
30137 else
30138   echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30140
30141         cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147 $ac_includes_default
30148    typedef socklen_t ac__type_sizeof_;
30149 int
30150 main ()
30151 {
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30153 test_array [0] = 0
30154
30155   ;
30156   return 0;
30157 }
30158 _ACEOF
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_compile") 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } && {
30173          test -z "$ac_c_werror_flag" ||
30174          test ! -s conftest.err
30175        } && test -s conftest.$ac_objext; then
30176   ac_hi=-1 ac_mid=-1
30177   while :; do
30178     cat >conftest.$ac_ext <<_ACEOF
30179 /* confdefs.h.  */
30180 _ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h.  */
30184 $ac_includes_default
30185    typedef socklen_t ac__type_sizeof_;
30186 int
30187 main ()
30188 {
30189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30190 test_array [0] = 0
30191
30192   ;
30193   return 0;
30194 }
30195 _ACEOF
30196 rm -f conftest.$ac_objext
30197 if { (ac_try="$ac_compile"
30198 case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_compile") 2>conftest.er1
30204   ac_status=$?
30205   grep -v '^ *+' conftest.er1 >conftest.err
30206   rm -f conftest.er1
30207   cat conftest.err >&5
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); } && {
30210          test -z "$ac_c_werror_flag" ||
30211          test ! -s conftest.err
30212        } && test -s conftest.$ac_objext; then
30213   ac_lo=$ac_mid; break
30214 else
30215   echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.$ac_ext >&5
30217
30218         ac_hi=`expr '(' $ac_mid ')' - 1`
30219                         if test $ac_mid -le $ac_hi; then
30220                           ac_lo= ac_hi=
30221                           break
30222                         fi
30223                         ac_mid=`expr 2 '*' $ac_mid`
30224 fi
30225
30226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30227   done
30228 else
30229   echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30231
30232         ac_lo= ac_hi=
30233 fi
30234
30235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30236 fi
30237
30238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30239 # Binary search between lo and hi bounds.
30240 while test "x$ac_lo" != "x$ac_hi"; do
30241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30242   cat >conftest.$ac_ext <<_ACEOF
30243 /* confdefs.h.  */
30244 _ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h.  */
30248 $ac_includes_default
30249    typedef socklen_t ac__type_sizeof_;
30250 int
30251 main ()
30252 {
30253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30254 test_array [0] = 0
30255
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext
30261 if { (ac_try="$ac_compile"
30262 case "(($ac_try" in
30263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264   *) ac_try_echo=$ac_try;;
30265 esac
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267   (eval "$ac_compile") 2>conftest.er1
30268   ac_status=$?
30269   grep -v '^ *+' conftest.er1 >conftest.err
30270   rm -f conftest.er1
30271   cat conftest.err >&5
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); } && {
30274          test -z "$ac_c_werror_flag" ||
30275          test ! -s conftest.err
30276        } && test -s conftest.$ac_objext; then
30277   ac_hi=$ac_mid
30278 else
30279   echo "$as_me: failed program was:" >&5
30280 sed 's/^/| /' conftest.$ac_ext >&5
30281
30282         ac_lo=`expr '(' $ac_mid ')' + 1`
30283 fi
30284
30285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30286 done
30287 case $ac_lo in
30288 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30289 '') if test "$ac_cv_type_socklen_t" = yes; then
30290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30291 See \`config.log' for more details." >&5
30292 echo "$as_me: error: cannot compute sizeof (socklen_t)
30293 See \`config.log' for more details." >&2;}
30294    { (exit 77); exit 77; }; }
30295    else
30296      ac_cv_sizeof_socklen_t=0
30297    fi ;;
30298 esac
30299 else
30300   cat >conftest.$ac_ext <<_ACEOF
30301 /* confdefs.h.  */
30302 _ACEOF
30303 cat confdefs.h >>conftest.$ac_ext
30304 cat >>conftest.$ac_ext <<_ACEOF
30305 /* end confdefs.h.  */
30306 $ac_includes_default
30307    typedef socklen_t ac__type_sizeof_;
30308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30310 #include <stdio.h>
30311 #include <stdlib.h>
30312 int
30313 main ()
30314 {
30315
30316   FILE *f = fopen ("conftest.val", "w");
30317   if (! f)
30318     return 1;
30319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30320     {
30321       long int i = longval ();
30322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30323         return 1;
30324       fprintf (f, "%ld\n", i);
30325     }
30326   else
30327     {
30328       unsigned long int i = ulongval ();
30329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30330         return 1;
30331       fprintf (f, "%lu\n", i);
30332     }
30333   return ferror (f) || fclose (f) != 0;
30334
30335   ;
30336   return 0;
30337 }
30338 _ACEOF
30339 rm -f conftest$ac_exeext
30340 if { (ac_try="$ac_link"
30341 case "(($ac_try" in
30342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343   *) ac_try_echo=$ac_try;;
30344 esac
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346   (eval "$ac_link") 2>&5
30347   ac_status=$?
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30350   { (case "(($ac_try" in
30351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352   *) ac_try_echo=$ac_try;;
30353 esac
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355   (eval "$ac_try") 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; }; then
30359   ac_cv_sizeof_socklen_t=`cat conftest.val`
30360 else
30361   echo "$as_me: program exited with status $ac_status" >&5
30362 echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30364
30365 ( exit $ac_status )
30366 if test "$ac_cv_type_socklen_t" = yes; then
30367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30368 See \`config.log' for more details." >&5
30369 echo "$as_me: error: cannot compute sizeof (socklen_t)
30370 See \`config.log' for more details." >&2;}
30371    { (exit 77); exit 77; }; }
30372    else
30373      ac_cv_sizeof_socklen_t=0
30374    fi
30375 fi
30376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30377 fi
30378 rm -f conftest.val
30379 fi
30380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30381 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30382
30383
30384
30385 cat >>confdefs.h <<_ACEOF
30386 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30387 _ACEOF
30388
30389
30390
30391
30392
30393 cat >>confdefs.h <<_ACEOF
30394 #define NFS_STATEDIR "$statedir"
30395 _ACEOF
30396
30397
30398 if test "x$cross_compiling" = "xno"; then
30399         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30400         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30401         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30402         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30403 else
30404         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30405         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30406         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30407         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30408 fi
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420 case $host in
30421   *)
30422     ARCHFLAGS="" ;;
30423 esac
30424
30425 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
30426
30427 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
30428
30429 AM_CFLAGS="$my_am_cflags"
30430
30431
30432 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30433 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30434
30435
30436 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"
30437
30438 cat >confcache <<\_ACEOF
30439 # This file is a shell script that caches the results of configure
30440 # tests run on this system so they can be shared between configure
30441 # scripts and configure runs, see configure's option --config-cache.
30442 # It is not useful on other systems.  If it contains results you don't
30443 # want to keep, you may remove or edit it.
30444 #
30445 # config.status only pays attention to the cache file if you give it
30446 # the --recheck option to rerun configure.
30447 #
30448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30450 # following values.
30451
30452 _ACEOF
30453
30454 # The following way of writing the cache mishandles newlines in values,
30455 # but we know of no workaround that is simple, portable, and efficient.
30456 # So, we kill variables containing newlines.
30457 # Ultrix sh set writes to stderr and can't be redirected directly,
30458 # and sets the high bit in the cache file unless we assign to the vars.
30459 (
30460   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30461     eval ac_val=\$$ac_var
30462     case $ac_val in #(
30463     *${as_nl}*)
30464       case $ac_var in #(
30465       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30466 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30467       esac
30468       case $ac_var in #(
30469       _ | IFS | as_nl) ;; #(
30470       *) $as_unset $ac_var ;;
30471       esac ;;
30472     esac
30473   done
30474
30475   (set) 2>&1 |
30476     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30477     *${as_nl}ac_space=\ *)
30478       # `set' does not quote correctly, so add quotes (double-quote
30479       # substitution turns \\\\ into \\, and sed turns \\ into \).
30480       sed -n \
30481         "s/'/'\\\\''/g;
30482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30483       ;; #(
30484     *)
30485       # `set' quotes correctly as required by POSIX, so do not add quotes.
30486       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30487       ;;
30488     esac |
30489     sort
30490 ) |
30491   sed '
30492      /^ac_cv_env_/b end
30493      t clear
30494      :clear
30495      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30496      t end
30497      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30498      :end' >>confcache
30499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30500   if test -w "$cache_file"; then
30501     test "x$cache_file" != "x/dev/null" &&
30502       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30503 echo "$as_me: updating cache $cache_file" >&6;}
30504     cat confcache >$cache_file
30505   else
30506     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30507 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30508   fi
30509 fi
30510 rm -f confcache
30511
30512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30513 # Let make expand exec_prefix.
30514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30515
30516 DEFS=-DHAVE_CONFIG_H
30517
30518 ac_libobjs=
30519 ac_ltlibobjs=
30520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30521   # 1. Remove the extension, and $U if already installed.
30522   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30523   ac_i=`echo "$ac_i" | sed "$ac_script"`
30524   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30525   #    will be set to the directory where LIBOBJS objects are built.
30526   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30527   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30528 done
30529 LIBOBJS=$ac_libobjs
30530
30531 LTLIBOBJS=$ac_ltlibobjs
30532
30533
30534 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30535   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30536 Usually this means the macro was only invoked conditionally." >&5
30537 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30538 Usually this means the macro was only invoked conditionally." >&2;}
30539    { (exit 1); exit 1; }; }
30540 fi
30541 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30542   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30543 Usually this means the macro was only invoked conditionally." >&5
30544 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30545 Usually this means the macro was only invoked conditionally." >&2;}
30546    { (exit 1); exit 1; }; }
30547 fi
30548 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30549   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30550 Usually this means the macro was only invoked conditionally." >&5
30551 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30552 Usually this means the macro was only invoked conditionally." >&2;}
30553    { (exit 1); exit 1; }; }
30554 fi
30555 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30556   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30557 Usually this means the macro was only invoked conditionally." >&5
30558 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30559 Usually this means the macro was only invoked conditionally." >&2;}
30560    { (exit 1); exit 1; }; }
30561 fi
30562 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30563   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30564 Usually this means the macro was only invoked conditionally." >&5
30565 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30566 Usually this means the macro was only invoked conditionally." >&2;}
30567    { (exit 1); exit 1; }; }
30568 fi
30569 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
30570   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
30571 Usually this means the macro was only invoked conditionally." >&5
30572 echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
30573 Usually this means the macro was only invoked conditionally." >&2;}
30574    { (exit 1); exit 1; }; }
30575 fi
30576 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30577   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30578 Usually this means the macro was only invoked conditionally." >&5
30579 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30580 Usually this means the macro was only invoked conditionally." >&2;}
30581    { (exit 1); exit 1; }; }
30582 fi
30583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30584   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30585 Usually this means the macro was only invoked conditionally." >&5
30586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30587 Usually this means the macro was only invoked conditionally." >&2;}
30588    { (exit 1); exit 1; }; }
30589 fi
30590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30591   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30592 Usually this means the macro was only invoked conditionally." >&5
30593 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30594 Usually this means the macro was only invoked conditionally." >&2;}
30595    { (exit 1); exit 1; }; }
30596 fi
30597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30598   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30599 Usually this means the macro was only invoked conditionally." >&5
30600 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30601 Usually this means the macro was only invoked conditionally." >&2;}
30602    { (exit 1); exit 1; }; }
30603 fi
30604
30605 : ${CONFIG_STATUS=./config.status}
30606 ac_clean_files_save=$ac_clean_files
30607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30608 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30609 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30610 cat >$CONFIG_STATUS <<_ACEOF
30611 #! $SHELL
30612 # Generated by $as_me.
30613 # Run this file to recreate the current configuration.
30614 # Compiler output produced by configure, useful for debugging
30615 # configure, is in config.log if it exists.
30616
30617 debug=false
30618 ac_cs_recheck=false
30619 ac_cs_silent=false
30620 SHELL=\${CONFIG_SHELL-$SHELL}
30621 _ACEOF
30622
30623 cat >>$CONFIG_STATUS <<\_ACEOF
30624 ## --------------------- ##
30625 ## M4sh Initialization.  ##
30626 ## --------------------- ##
30627
30628 # Be more Bourne compatible
30629 DUALCASE=1; export DUALCASE # for MKS sh
30630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30631   emulate sh
30632   NULLCMD=:
30633   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30634   # is contrary to our usage.  Disable this feature.
30635   alias -g '${1+"$@"}'='"$@"'
30636   setopt NO_GLOB_SUBST
30637 else
30638   case `(set -o) 2>/dev/null` in
30639   *posix*) set -o posix ;;
30640 esac
30641
30642 fi
30643
30644
30645
30646
30647 # PATH needs CR
30648 # Avoid depending upon Character Ranges.
30649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30652 as_cr_digits='0123456789'
30653 as_cr_alnum=$as_cr_Letters$as_cr_digits
30654
30655 # The user is always right.
30656 if test "${PATH_SEPARATOR+set}" != set; then
30657   echo "#! /bin/sh" >conf$$.sh
30658   echo  "exit 0"   >>conf$$.sh
30659   chmod +x conf$$.sh
30660   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30661     PATH_SEPARATOR=';'
30662   else
30663     PATH_SEPARATOR=:
30664   fi
30665   rm -f conf$$.sh
30666 fi
30667
30668 # Support unset when possible.
30669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30670   as_unset=unset
30671 else
30672   as_unset=false
30673 fi
30674
30675
30676 # IFS
30677 # We need space, tab and new line, in precisely that order.  Quoting is
30678 # there to prevent editors from complaining about space-tab.
30679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30680 # splitting by setting IFS to empty value.)
30681 as_nl='
30682 '
30683 IFS=" ""        $as_nl"
30684
30685 # Find who we are.  Look in the path if we contain no directory separator.
30686 case $0 in
30687   *[\\/]* ) as_myself=$0 ;;
30688   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30689 for as_dir in $PATH
30690 do
30691   IFS=$as_save_IFS
30692   test -z "$as_dir" && as_dir=.
30693   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30694 done
30695 IFS=$as_save_IFS
30696
30697      ;;
30698 esac
30699 # We did not find ourselves, most probably we were run as `sh COMMAND'
30700 # in which case we are not to be found in the path.
30701 if test "x$as_myself" = x; then
30702   as_myself=$0
30703 fi
30704 if test ! -f "$as_myself"; then
30705   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30706   { (exit 1); exit 1; }
30707 fi
30708
30709 # Work around bugs in pre-3.0 UWIN ksh.
30710 for as_var in ENV MAIL MAILPATH
30711 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30712 done
30713 PS1='$ '
30714 PS2='> '
30715 PS4='+ '
30716
30717 # NLS nuisances.
30718 for as_var in \
30719   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30720   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30721   LC_TELEPHONE LC_TIME
30722 do
30723   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30724     eval $as_var=C; export $as_var
30725   else
30726     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30727   fi
30728 done
30729
30730 # Required to use basename.
30731 if expr a : '\(a\)' >/dev/null 2>&1 &&
30732    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30733   as_expr=expr
30734 else
30735   as_expr=false
30736 fi
30737
30738 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30739   as_basename=basename
30740 else
30741   as_basename=false
30742 fi
30743
30744
30745 # Name of the executable.
30746 as_me=`$as_basename -- "$0" ||
30747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30748          X"$0" : 'X\(//\)$' \| \
30749          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30750 echo X/"$0" |
30751     sed '/^.*\/\([^/][^/]*\)\/*$/{
30752             s//\1/
30753             q
30754           }
30755           /^X\/\(\/\/\)$/{
30756             s//\1/
30757             q
30758           }
30759           /^X\/\(\/\).*/{
30760             s//\1/
30761             q
30762           }
30763           s/.*/./; q'`
30764
30765 # CDPATH.
30766 $as_unset CDPATH
30767
30768
30769
30770   as_lineno_1=$LINENO
30771   as_lineno_2=$LINENO
30772   test "x$as_lineno_1" != "x$as_lineno_2" &&
30773   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30774
30775   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30776   # uniformly replaced by the line number.  The first 'sed' inserts a
30777   # line-number line after each line using $LINENO; the second 'sed'
30778   # does the real work.  The second script uses 'N' to pair each
30779   # line-number line with the line containing $LINENO, and appends
30780   # trailing '-' during substitution so that $LINENO is not a special
30781   # case at line end.
30782   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30783   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30784   # E. McMahon (1931-1989) for sed's syntax.  :-)
30785   sed -n '
30786     p
30787     /[$]LINENO/=
30788   ' <$as_myself |
30789     sed '
30790       s/[$]LINENO.*/&-/
30791       t lineno
30792       b
30793       :lineno
30794       N
30795       :loop
30796       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30797       t loop
30798       s/-\n.*//
30799     ' >$as_me.lineno &&
30800   chmod +x "$as_me.lineno" ||
30801     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30802    { (exit 1); exit 1; }; }
30803
30804   # Don't try to exec as it changes $[0], causing all sort of problems
30805   # (the dirname of $[0] is not the place where we might find the
30806   # original and so on.  Autoconf is especially sensitive to this).
30807   . "./$as_me.lineno"
30808   # Exit status is that of the last command.
30809   exit
30810 }
30811
30812
30813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30814   as_dirname=dirname
30815 else
30816   as_dirname=false
30817 fi
30818
30819 ECHO_C= ECHO_N= ECHO_T=
30820 case `echo -n x` in
30821 -n*)
30822   case `echo 'x\c'` in
30823   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30824   *)   ECHO_C='\c';;
30825   esac;;
30826 *)
30827   ECHO_N='-n';;
30828 esac
30829
30830 if expr a : '\(a\)' >/dev/null 2>&1 &&
30831    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30832   as_expr=expr
30833 else
30834   as_expr=false
30835 fi
30836
30837 rm -f conf$$ conf$$.exe conf$$.file
30838 if test -d conf$$.dir; then
30839   rm -f conf$$.dir/conf$$.file
30840 else
30841   rm -f conf$$.dir
30842   mkdir conf$$.dir
30843 fi
30844 echo >conf$$.file
30845 if ln -s conf$$.file conf$$ 2>/dev/null; then
30846   as_ln_s='ln -s'
30847   # ... but there are two gotchas:
30848   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30849   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30850   # In both cases, we have to default to `cp -p'.
30851   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30852     as_ln_s='cp -p'
30853 elif ln conf$$.file conf$$ 2>/dev/null; then
30854   as_ln_s=ln
30855 else
30856   as_ln_s='cp -p'
30857 fi
30858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30859 rmdir conf$$.dir 2>/dev/null
30860
30861 if mkdir -p . 2>/dev/null; then
30862   as_mkdir_p=:
30863 else
30864   test -d ./-p && rmdir ./-p
30865   as_mkdir_p=false
30866 fi
30867
30868 if test -x / >/dev/null 2>&1; then
30869   as_test_x='test -x'
30870 else
30871   if ls -dL / >/dev/null 2>&1; then
30872     as_ls_L_option=L
30873   else
30874     as_ls_L_option=
30875   fi
30876   as_test_x='
30877     eval sh -c '\''
30878       if test -d "$1"; then
30879         test -d "$1/.";
30880       else
30881         case $1 in
30882         -*)set "./$1";;
30883         esac;
30884         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30885         ???[sx]*):;;*)false;;esac;fi
30886     '\'' sh
30887   '
30888 fi
30889 as_executable_p=$as_test_x
30890
30891 # Sed expression to map a string onto a valid CPP name.
30892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30893
30894 # Sed expression to map a string onto a valid variable name.
30895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30896
30897
30898 exec 6>&1
30899
30900 # Save the log message, to keep $[0] and so on meaningful, and to
30901 # report actual input values of CONFIG_FILES etc. instead of their
30902 # values after options handling.
30903 ac_log="
30904 This file was extended by linux nfs-utils $as_me 1.1.4, which was
30905 generated by GNU Autoconf 2.61.  Invocation command line was
30906
30907   CONFIG_FILES    = $CONFIG_FILES
30908   CONFIG_HEADERS  = $CONFIG_HEADERS
30909   CONFIG_LINKS    = $CONFIG_LINKS
30910   CONFIG_COMMANDS = $CONFIG_COMMANDS
30911   $ $0 $@
30912
30913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30914 "
30915
30916 _ACEOF
30917
30918 cat >>$CONFIG_STATUS <<_ACEOF
30919 # Files that config.status was made for.
30920 config_files="$ac_config_files"
30921 config_headers="$ac_config_headers"
30922 config_commands="$ac_config_commands"
30923
30924 _ACEOF
30925
30926 cat >>$CONFIG_STATUS <<\_ACEOF
30927 ac_cs_usage="\
30928 \`$as_me' instantiates files from templates according to the
30929 current configuration.
30930
30931 Usage: $0 [OPTIONS] [FILE]...
30932
30933   -h, --help       print this help, then exit
30934   -V, --version    print version number and configuration settings, then exit
30935   -q, --quiet      do not print progress messages
30936   -d, --debug      don't remove temporary files
30937       --recheck    update $as_me by reconfiguring in the same conditions
30938   --file=FILE[:TEMPLATE]
30939                    instantiate the configuration file FILE
30940   --header=FILE[:TEMPLATE]
30941                    instantiate the configuration header FILE
30942
30943 Configuration files:
30944 $config_files
30945
30946 Configuration headers:
30947 $config_headers
30948
30949 Configuration commands:
30950 $config_commands
30951
30952 Report bugs to <bug-autoconf@gnu.org>."
30953
30954 _ACEOF
30955 cat >>$CONFIG_STATUS <<_ACEOF
30956 ac_cs_version="\\
30957 linux nfs-utils config.status 1.1.4
30958 configured by $0, generated by GNU Autoconf 2.61,
30959   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30960
30961 Copyright (C) 2006 Free Software Foundation, Inc.
30962 This config.status script is free software; the Free Software Foundation
30963 gives unlimited permission to copy, distribute and modify it."
30964
30965 ac_pwd='$ac_pwd'
30966 srcdir='$srcdir'
30967 INSTALL='$INSTALL'
30968 MKDIR_P='$MKDIR_P'
30969 _ACEOF
30970
30971 cat >>$CONFIG_STATUS <<\_ACEOF
30972 # If no file are specified by the user, then we need to provide default
30973 # value.  By we need to know if files were specified by the user.
30974 ac_need_defaults=:
30975 while test $# != 0
30976 do
30977   case $1 in
30978   --*=*)
30979     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30980     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30981     ac_shift=:
30982     ;;
30983   *)
30984     ac_option=$1
30985     ac_optarg=$2
30986     ac_shift=shift
30987     ;;
30988   esac
30989
30990   case $ac_option in
30991   # Handling of the options.
30992   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30993     ac_cs_recheck=: ;;
30994   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30995     echo "$ac_cs_version"; exit ;;
30996   --debug | --debu | --deb | --de | --d | -d )
30997     debug=: ;;
30998   --file | --fil | --fi | --f )
30999     $ac_shift
31000     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31001     ac_need_defaults=false;;
31002   --header | --heade | --head | --hea )
31003     $ac_shift
31004     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31005     ac_need_defaults=false;;
31006   --he | --h)
31007     # Conflict between --help and --header
31008     { echo "$as_me: error: ambiguous option: $1
31009 Try \`$0 --help' for more information." >&2
31010    { (exit 1); exit 1; }; };;
31011   --help | --hel | -h )
31012     echo "$ac_cs_usage"; exit ;;
31013   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31014   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31015     ac_cs_silent=: ;;
31016
31017   # This is an error.
31018   -*) { echo "$as_me: error: unrecognized option: $1
31019 Try \`$0 --help' for more information." >&2
31020    { (exit 1); exit 1; }; } ;;
31021
31022   *) ac_config_targets="$ac_config_targets $1"
31023      ac_need_defaults=false ;;
31024
31025   esac
31026   shift
31027 done
31028
31029 ac_configure_extra_args=
31030
31031 if $ac_cs_silent; then
31032   exec 6>/dev/null
31033   ac_configure_extra_args="$ac_configure_extra_args --silent"
31034 fi
31035
31036 _ACEOF
31037 cat >>$CONFIG_STATUS <<_ACEOF
31038 if \$ac_cs_recheck; then
31039   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31040   CONFIG_SHELL=$SHELL
31041   export CONFIG_SHELL
31042   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31043 fi
31044
31045 _ACEOF
31046 cat >>$CONFIG_STATUS <<\_ACEOF
31047 exec 5>>config.log
31048 {
31049   echo
31050   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31051 ## Running $as_me. ##
31052 _ASBOX
31053   echo "$ac_log"
31054 } >&5
31055
31056 _ACEOF
31057 cat >>$CONFIG_STATUS <<_ACEOF
31058 #
31059 # INIT-COMMANDS
31060 #
31061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31062
31063 _ACEOF
31064
31065 cat >>$CONFIG_STATUS <<\_ACEOF
31066
31067 # Handling of arguments.
31068 for ac_config_target in $ac_config_targets
31069 do
31070   case $ac_config_target in
31071     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31072     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31073     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31074     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31075     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31076     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31077     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31078     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31079     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31080     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31081     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31082     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31083     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31084     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31085     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31086     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31087     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31088     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31089     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31090     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31091     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31092     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31093     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31094     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31095     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31096     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31097     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31098     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31099
31100   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31101 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31102    { (exit 1); exit 1; }; };;
31103   esac
31104 done
31105
31106
31107 # If the user did not use the arguments to specify the items to instantiate,
31108 # then the envvar interface is used.  Set only those that are not.
31109 # We use the long form for the default assignment because of an extremely
31110 # bizarre bug on SunOS 4.1.3.
31111 if $ac_need_defaults; then
31112   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31113   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31114   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31115 fi
31116
31117 # Have a temporary directory for convenience.  Make it in the build tree
31118 # simply because there is no reason against having it here, and in addition,
31119 # creating and moving files from /tmp can sometimes cause problems.
31120 # Hook for its removal unless debugging.
31121 # Note that there is a small window in which the directory will not be cleaned:
31122 # after its creation but before its name has been assigned to `$tmp'.
31123 $debug ||
31124 {
31125   tmp=
31126   trap 'exit_status=$?
31127   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31128 ' 0
31129   trap '{ (exit 1); exit 1; }' 1 2 13 15
31130 }
31131 # Create a (secure) tmp directory for tmp files.
31132
31133 {
31134   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31135   test -n "$tmp" && test -d "$tmp"
31136 }  ||
31137 {
31138   tmp=./conf$$-$RANDOM
31139   (umask 077 && mkdir "$tmp")
31140 } ||
31141 {
31142    echo "$me: cannot create a temporary directory in ." >&2
31143    { (exit 1); exit 1; }
31144 }
31145
31146 #
31147 # Set up the sed scripts for CONFIG_FILES section.
31148 #
31149
31150 # No need to generate the scripts if there are no CONFIG_FILES.
31151 # This happens for instance when ./config.status config.h
31152 if test -n "$CONFIG_FILES"; then
31153
31154 _ACEOF
31155
31156
31157
31158 ac_delim='%!_!# '
31159 for ac_last_try in false false false false false :; do
31160   cat >conf$$subs.sed <<_ACEOF
31161 SHELL!$SHELL$ac_delim
31162 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31163 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31164 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31165 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31166 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31167 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31168 exec_prefix!$exec_prefix$ac_delim
31169 prefix!$prefix$ac_delim
31170 program_transform_name!$program_transform_name$ac_delim
31171 bindir!$bindir$ac_delim
31172 sbindir!$sbindir$ac_delim
31173 libexecdir!$libexecdir$ac_delim
31174 datarootdir!$datarootdir$ac_delim
31175 datadir!$datadir$ac_delim
31176 sysconfdir!$sysconfdir$ac_delim
31177 sharedstatedir!$sharedstatedir$ac_delim
31178 localstatedir!$localstatedir$ac_delim
31179 includedir!$includedir$ac_delim
31180 oldincludedir!$oldincludedir$ac_delim
31181 docdir!$docdir$ac_delim
31182 infodir!$infodir$ac_delim
31183 htmldir!$htmldir$ac_delim
31184 dvidir!$dvidir$ac_delim
31185 pdfdir!$pdfdir$ac_delim
31186 psdir!$psdir$ac_delim
31187 libdir!$libdir$ac_delim
31188 localedir!$localedir$ac_delim
31189 mandir!$mandir$ac_delim
31190 DEFS!$DEFS$ac_delim
31191 ECHO_C!$ECHO_C$ac_delim
31192 ECHO_N!$ECHO_N$ac_delim
31193 ECHO_T!$ECHO_T$ac_delim
31194 LIBS!$LIBS$ac_delim
31195 build_alias!$build_alias$ac_delim
31196 host_alias!$host_alias$ac_delim
31197 target_alias!$target_alias$ac_delim
31198 build!$build$ac_delim
31199 build_cpu!$build_cpu$ac_delim
31200 build_vendor!$build_vendor$ac_delim
31201 build_os!$build_os$ac_delim
31202 host!$host$ac_delim
31203 host_cpu!$host_cpu$ac_delim
31204 host_vendor!$host_vendor$ac_delim
31205 host_os!$host_os$ac_delim
31206 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31207 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31208 INSTALL_DATA!$INSTALL_DATA$ac_delim
31209 am__isrc!$am__isrc$ac_delim
31210 CYGPATH_W!$CYGPATH_W$ac_delim
31211 PACKAGE!$PACKAGE$ac_delim
31212 VERSION!$VERSION$ac_delim
31213 ACLOCAL!$ACLOCAL$ac_delim
31214 AUTOCONF!$AUTOCONF$ac_delim
31215 AUTOMAKE!$AUTOMAKE$ac_delim
31216 AUTOHEADER!$AUTOHEADER$ac_delim
31217 MAKEINFO!$MAKEINFO$ac_delim
31218 install_sh!$install_sh$ac_delim
31219 STRIP!$STRIP$ac_delim
31220 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31221 mkdir_p!$mkdir_p$ac_delim
31222 AWK!$AWK$ac_delim
31223 SET_MAKE!$SET_MAKE$ac_delim
31224 am__leading_dot!$am__leading_dot$ac_delim
31225 AMTAR!$AMTAR$ac_delim
31226 am__tar!$am__tar$ac_delim
31227 am__untar!$am__untar$ac_delim
31228 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
31229 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
31230 MAINT!$MAINT$ac_delim
31231 RELEASE!$RELEASE$ac_delim
31232 statedir!$statedir$ac_delim
31233 statduser!$statduser$ac_delim
31234 startstatd!$startstatd$ac_delim
31235 enable_nfsv3!$enable_nfsv3$ac_delim
31236 IDMAPD!$IDMAPD$ac_delim
31237 enable_nfsv4!$enable_nfsv4$ac_delim
31238 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31239 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31240 GSSD!$GSSD$ac_delim
31241 SVCGSSD!$SVCGSSD$ac_delim
31242 enable_gss!$enable_gss$ac_delim
31243 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31244 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31245 kprefix!$kprefix$ac_delim
31246 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
31247 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
31248 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
31249 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31250 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31251 enable_ipv6!$enable_ipv6$ac_delim
31252 CONFIG_IPV6_TRUE!$CONFIG_IPV6_TRUE$ac_delim
31253 CONFIG_IPV6_FALSE!$CONFIG_IPV6_FALSE$ac_delim
31254 CC!$CC$ac_delim
31255 CFLAGS!$CFLAGS$ac_delim
31256 LDFLAGS!$LDFLAGS$ac_delim
31257 CPPFLAGS!$CPPFLAGS$ac_delim
31258 _ACEOF
31259
31260   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31261     break
31262   elif $ac_last_try; then
31263     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31265    { (exit 1); exit 1; }; }
31266   else
31267     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31268   fi
31269 done
31270
31271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31272 if test -n "$ac_eof"; then
31273   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31274   ac_eof=`expr $ac_eof + 1`
31275 fi
31276
31277 cat >>$CONFIG_STATUS <<_ACEOF
31278 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31280 _ACEOF
31281 sed '
31282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31283 s/^/s,@/; s/!/@,|#_!!_#|/
31284 :n
31285 t n
31286 s/'"$ac_delim"'$/,g/; t
31287 s/$/\\/; p
31288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31289 ' >>$CONFIG_STATUS <conf$$subs.sed
31290 rm -f conf$$subs.sed
31291 cat >>$CONFIG_STATUS <<_ACEOF
31292 CEOF$ac_eof
31293 _ACEOF
31294
31295
31296 ac_delim='%!_!# '
31297 for ac_last_try in false false false false false :; do
31298   cat >conf$$subs.sed <<_ACEOF
31299 ac_ct_CC!$ac_ct_CC$ac_delim
31300 EXEEXT!$EXEEXT$ac_delim
31301 OBJEXT!$OBJEXT$ac_delim
31302 DEPDIR!$DEPDIR$ac_delim
31303 am__include!$am__include$ac_delim
31304 am__quote!$am__quote$ac_delim
31305 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31306 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31307 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31308 CCDEPMODE!$CCDEPMODE$ac_delim
31309 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31310 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31311 LIBWRAP!$LIBWRAP$ac_delim
31312 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31313 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31314 CXX!$CXX$ac_delim
31315 CXXFLAGS!$CXXFLAGS$ac_delim
31316 ac_ct_CXX!$ac_ct_CXX$ac_delim
31317 CXXDEPMODE!$CXXDEPMODE$ac_delim
31318 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31319 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31320 CPP!$CPP$ac_delim
31321 LN_S!$LN_S$ac_delim
31322 SED!$SED$ac_delim
31323 GREP!$GREP$ac_delim
31324 EGREP!$EGREP$ac_delim
31325 ECHO!$ECHO$ac_delim
31326 AR!$AR$ac_delim
31327 RANLIB!$RANLIB$ac_delim
31328 CXXCPP!$CXXCPP$ac_delim
31329 F77!$F77$ac_delim
31330 FFLAGS!$FFLAGS$ac_delim
31331 ac_ct_F77!$ac_ct_F77$ac_delim
31332 LIBTOOL!$LIBTOOL$ac_delim
31333 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31334 LD!$LD$ac_delim
31335 LIBNSL!$LIBNSL$ac_delim
31336 PKG_CONFIG!$PKG_CONFIG$ac_delim
31337 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31338 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31339 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
31340 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
31341 LIBSOCKET!$LIBSOCKET$ac_delim
31342 LIBCRYPT!$LIBCRYPT$ac_delim
31343 LIBBSD!$LIBBSD$ac_delim
31344 LIBBLKID!$LIBBLKID$ac_delim
31345 KRBDIR!$KRBDIR$ac_delim
31346 KRBLIBS!$KRBLIBS$ac_delim
31347 KRBCFLAGS!$KRBCFLAGS$ac_delim
31348 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31349 K5VERS!$K5VERS$ac_delim
31350 ALLOCA!$ALLOCA$ac_delim
31351 LIBOBJS!$LIBOBJS$ac_delim
31352 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31353 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31354 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31355 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31356 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31357 AM_CFLAGS!$AM_CFLAGS$ac_delim
31358 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31359 LTLIBOBJS!$LTLIBOBJS$ac_delim
31360 _ACEOF
31361
31362   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
31363     break
31364   elif $ac_last_try; then
31365     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31367    { (exit 1); exit 1; }; }
31368   else
31369     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31370   fi
31371 done
31372
31373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31374 if test -n "$ac_eof"; then
31375   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31376   ac_eof=`expr $ac_eof + 1`
31377 fi
31378
31379 cat >>$CONFIG_STATUS <<_ACEOF
31380 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31382 _ACEOF
31383 sed '
31384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31385 s/^/s,@/; s/!/@,|#_!!_#|/
31386 :n
31387 t n
31388 s/'"$ac_delim"'$/,g/; t
31389 s/$/\\/; p
31390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31391 ' >>$CONFIG_STATUS <conf$$subs.sed
31392 rm -f conf$$subs.sed
31393 cat >>$CONFIG_STATUS <<_ACEOF
31394 :end
31395 s/|#_!!_#|//g
31396 CEOF$ac_eof
31397 _ACEOF
31398
31399
31400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31402 # trailing colons and then remove the whole line if VPATH becomes empty
31403 # (actually we leave an empty line to preserve line numbers).
31404 if test "x$srcdir" = x.; then
31405   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31406 s/:*\$(srcdir):*/:/
31407 s/:*\${srcdir}:*/:/
31408 s/:*@srcdir@:*/:/
31409 s/^\([^=]*=[     ]*\):*/\1/
31410 s/:*$//
31411 s/^[^=]*=[       ]*$//
31412 }'
31413 fi
31414
31415 cat >>$CONFIG_STATUS <<\_ACEOF
31416 fi # test -n "$CONFIG_FILES"
31417
31418
31419 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31420 do
31421   case $ac_tag in
31422   :[FHLC]) ac_mode=$ac_tag; continue;;
31423   esac
31424   case $ac_mode$ac_tag in
31425   :[FHL]*:*);;
31426   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31428    { (exit 1); exit 1; }; };;
31429   :[FH]-) ac_tag=-:-;;
31430   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31431   esac
31432   ac_save_IFS=$IFS
31433   IFS=:
31434   set x $ac_tag
31435   IFS=$ac_save_IFS
31436   shift
31437   ac_file=$1
31438   shift
31439
31440   case $ac_mode in
31441   :L) ac_source=$1;;
31442   :[FH])
31443     ac_file_inputs=
31444     for ac_f
31445     do
31446       case $ac_f in
31447       -) ac_f="$tmp/stdin";;
31448       *) # Look for the file first in the build tree, then in the source tree
31449          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31450          # because $ac_f cannot contain `:'.
31451          test -f "$ac_f" ||
31452            case $ac_f in
31453            [\\/$]*) false;;
31454            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31455            esac ||
31456            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31458    { (exit 1); exit 1; }; };;
31459       esac
31460       ac_file_inputs="$ac_file_inputs $ac_f"
31461     done
31462
31463     # Let's still pretend it is `configure' which instantiates (i.e., don't
31464     # use $as_me), people would be surprised to read:
31465     #    /* config.h.  Generated by config.status.  */
31466     configure_input="Generated from "`IFS=:
31467           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31468     if test x"$ac_file" != x-; then
31469       configure_input="$ac_file.  $configure_input"
31470       { echo "$as_me:$LINENO: creating $ac_file" >&5
31471 echo "$as_me: creating $ac_file" >&6;}
31472     fi
31473
31474     case $ac_tag in
31475     *:-:* | *:-) cat >"$tmp/stdin";;
31476     esac
31477     ;;
31478   esac
31479
31480   ac_dir=`$as_dirname -- "$ac_file" ||
31481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482          X"$ac_file" : 'X\(//\)[^/]' \| \
31483          X"$ac_file" : 'X\(//\)$' \| \
31484          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31485 echo X"$ac_file" |
31486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31487             s//\1/
31488             q
31489           }
31490           /^X\(\/\/\)[^/].*/{
31491             s//\1/
31492             q
31493           }
31494           /^X\(\/\/\)$/{
31495             s//\1/
31496             q
31497           }
31498           /^X\(\/\).*/{
31499             s//\1/
31500             q
31501           }
31502           s/.*/./; q'`
31503   { as_dir="$ac_dir"
31504   case $as_dir in #(
31505   -*) as_dir=./$as_dir;;
31506   esac
31507   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31508     as_dirs=
31509     while :; do
31510       case $as_dir in #(
31511       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31512       *) as_qdir=$as_dir;;
31513       esac
31514       as_dirs="'$as_qdir' $as_dirs"
31515       as_dir=`$as_dirname -- "$as_dir" ||
31516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31517          X"$as_dir" : 'X\(//\)[^/]' \| \
31518          X"$as_dir" : 'X\(//\)$' \| \
31519          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31520 echo X"$as_dir" |
31521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31522             s//\1/
31523             q
31524           }
31525           /^X\(\/\/\)[^/].*/{
31526             s//\1/
31527             q
31528           }
31529           /^X\(\/\/\)$/{
31530             s//\1/
31531             q
31532           }
31533           /^X\(\/\).*/{
31534             s//\1/
31535             q
31536           }
31537           s/.*/./; q'`
31538       test -d "$as_dir" && break
31539     done
31540     test -z "$as_dirs" || eval "mkdir $as_dirs"
31541   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31543    { (exit 1); exit 1; }; }; }
31544   ac_builddir=.
31545
31546 case "$ac_dir" in
31547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31548 *)
31549   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550   # A ".." for each directory in $ac_dir_suffix.
31551   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31552   case $ac_top_builddir_sub in
31553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31555   esac ;;
31556 esac
31557 ac_abs_top_builddir=$ac_pwd
31558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31559 # for backward compatibility:
31560 ac_top_builddir=$ac_top_build_prefix
31561
31562 case $srcdir in
31563   .)  # We are building in place.
31564     ac_srcdir=.
31565     ac_top_srcdir=$ac_top_builddir_sub
31566     ac_abs_top_srcdir=$ac_pwd ;;
31567   [\\/]* | ?:[\\/]* )  # Absolute name.
31568     ac_srcdir=$srcdir$ac_dir_suffix;
31569     ac_top_srcdir=$srcdir
31570     ac_abs_top_srcdir=$srcdir ;;
31571   *) # Relative name.
31572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31573     ac_top_srcdir=$ac_top_build_prefix$srcdir
31574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31575 esac
31576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31577
31578
31579   case $ac_mode in
31580   :F)
31581   #
31582   # CONFIG_FILE
31583   #
31584
31585   case $INSTALL in
31586   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31587   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31588   esac
31589   ac_MKDIR_P=$MKDIR_P
31590   case $MKDIR_P in
31591   [\\/$]* | ?:[\\/]* ) ;;
31592   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31593   esac
31594 _ACEOF
31595
31596 cat >>$CONFIG_STATUS <<\_ACEOF
31597 # If the template does not know about datarootdir, expand it.
31598 # FIXME: This hack should be removed a few years after 2.60.
31599 ac_datarootdir_hack=; ac_datarootdir_seen=
31600
31601 case `sed -n '/datarootdir/ {
31602   p
31603   q
31604 }
31605 /@datadir@/p
31606 /@docdir@/p
31607 /@infodir@/p
31608 /@localedir@/p
31609 /@mandir@/p
31610 ' $ac_file_inputs` in
31611 *datarootdir*) ac_datarootdir_seen=yes;;
31612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31613   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31614 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31615 _ACEOF
31616 cat >>$CONFIG_STATUS <<_ACEOF
31617   ac_datarootdir_hack='
31618   s&@datadir@&$datadir&g
31619   s&@docdir@&$docdir&g
31620   s&@infodir@&$infodir&g
31621   s&@localedir@&$localedir&g
31622   s&@mandir@&$mandir&g
31623     s&\\\${datarootdir}&$datarootdir&g' ;;
31624 esac
31625 _ACEOF
31626
31627 # Neutralize VPATH when `$srcdir' = `.'.
31628 # Shell code in configure.ac might set extrasub.
31629 # FIXME: do we really want to maintain this feature?
31630 cat >>$CONFIG_STATUS <<_ACEOF
31631   sed "$ac_vpsub
31632 $extrasub
31633 _ACEOF
31634 cat >>$CONFIG_STATUS <<\_ACEOF
31635 :t
31636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31637 s&@configure_input@&$configure_input&;t t
31638 s&@top_builddir@&$ac_top_builddir_sub&;t t
31639 s&@srcdir@&$ac_srcdir&;t t
31640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31641 s&@top_srcdir@&$ac_top_srcdir&;t t
31642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31643 s&@builddir@&$ac_builddir&;t t
31644 s&@abs_builddir@&$ac_abs_builddir&;t t
31645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31646 s&@INSTALL@&$ac_INSTALL&;t t
31647 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31648 $ac_datarootdir_hack
31649 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31650
31651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31652   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31653   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31654   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31655 which seems to be undefined.  Please make sure it is defined." >&5
31656 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31657 which seems to be undefined.  Please make sure it is defined." >&2;}
31658
31659   rm -f "$tmp/stdin"
31660   case $ac_file in
31661   -) cat "$tmp/out"; rm -f "$tmp/out";;
31662   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31663   esac
31664  ;;
31665   :H)
31666   #
31667   # CONFIG_HEADER
31668   #
31669 _ACEOF
31670
31671 # Transform confdefs.h into a sed script `conftest.defines', that
31672 # substitutes the proper values into config.h.in to produce config.h.
31673 rm -f conftest.defines conftest.tail
31674 # First, append a space to every undef/define line, to ease matching.
31675 echo 's/$/ /' >conftest.defines
31676 # Then, protect against being on the right side of a sed subst, or in
31677 # an unquoted here document, in config.status.  If some macros were
31678 # called several times there might be several #defines for the same
31679 # symbol, which is useless.  But do not sort them, since the last
31680 # AC_DEFINE must be honored.
31681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31682 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31683 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31684 # PARAMS is the parameter list in the macro definition--in most cases, it's
31685 # just an empty string.
31686 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31687 ac_dB='\\)[      (].*,\\1define\\2'
31688 ac_dC=' '
31689 ac_dD=' ,'
31690
31691 uniq confdefs.h |
31692   sed -n '
31693         t rset
31694         :rset
31695         s/^[     ]*#[    ]*define[       ][      ]*//
31696         t ok
31697         d
31698         :ok
31699         s/[\\&,]/\\&/g
31700         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31701         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31702   ' >>conftest.defines
31703
31704 # Remove the space that was appended to ease matching.
31705 # Then replace #undef with comments.  This is necessary, for
31706 # example, in the case of _POSIX_SOURCE, which is predefined and required
31707 # on some systems where configure will not decide to define it.
31708 # (The regexp can be short, since the line contains either #define or #undef.)
31709 echo 's/ $//
31710 s,^[     #]*u.*,/* & */,' >>conftest.defines
31711
31712 # Break up conftest.defines:
31713 ac_max_sed_lines=50
31714
31715 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31716 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31717 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31718 # et cetera.
31719 ac_in='$ac_file_inputs'
31720 ac_out='"$tmp/out1"'
31721 ac_nxt='"$tmp/out2"'
31722
31723 while :
31724 do
31725   # Write a here document:
31726     cat >>$CONFIG_STATUS <<_ACEOF
31727     # First, check the format of the line:
31728     cat >"\$tmp/defines.sed" <<\\CEOF
31729 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31730 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31731 b
31732 :def
31733 _ACEOF
31734   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31735   echo 'CEOF
31736     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31737   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31738   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31739   grep . conftest.tail >/dev/null || break
31740   rm -f conftest.defines
31741   mv conftest.tail conftest.defines
31742 done
31743 rm -f conftest.defines conftest.tail
31744
31745 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31746 cat >>$CONFIG_STATUS <<\_ACEOF
31747   if test x"$ac_file" != x-; then
31748     echo "/* $configure_input  */" >"$tmp/config.h"
31749     cat "$ac_result" >>"$tmp/config.h"
31750     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31751       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31752 echo "$as_me: $ac_file is unchanged" >&6;}
31753     else
31754       rm -f $ac_file
31755       mv "$tmp/config.h" $ac_file
31756     fi
31757   else
31758     echo "/* $configure_input  */"
31759     cat "$ac_result"
31760   fi
31761   rm -f "$tmp/out12"
31762 # Compute $ac_file's index in $config_headers.
31763 _am_arg=$ac_file
31764 _am_stamp_count=1
31765 for _am_header in $config_headers :; do
31766   case $_am_header in
31767     $_am_arg | $_am_arg:* )
31768       break ;;
31769     * )
31770       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31771   esac
31772 done
31773 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31774 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31775          X"$_am_arg" : 'X\(//\)[^/]' \| \
31776          X"$_am_arg" : 'X\(//\)$' \| \
31777          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31778 echo X"$_am_arg" |
31779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31780             s//\1/
31781             q
31782           }
31783           /^X\(\/\/\)[^/].*/{
31784             s//\1/
31785             q
31786           }
31787           /^X\(\/\/\)$/{
31788             s//\1/
31789             q
31790           }
31791           /^X\(\/\).*/{
31792             s//\1/
31793             q
31794           }
31795           s/.*/./; q'`/stamp-h$_am_stamp_count
31796  ;;
31797
31798   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31799 echo "$as_me: executing $ac_file commands" >&6;}
31800  ;;
31801   esac
31802
31803
31804   case $ac_file$ac_mode in
31805     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31806   # Strip MF so we end up with the name of the file.
31807   mf=`echo "$mf" | sed -e 's/:.*$//'`
31808   # Check whether this is an Automake generated Makefile or not.
31809   # We used to match only the files named `Makefile.in', but
31810   # some people rename them; so instead we look at the file content.
31811   # Grep'ing the first line is not enough: some people post-process
31812   # each Makefile.in and add a new line on top of each file to say so.
31813   # Grep'ing the whole file is not good either: AIX grep has a line
31814   # limit of 2048, but all sed's we know have understand at least 4000.
31815   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31816     dirpart=`$as_dirname -- "$mf" ||
31817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818          X"$mf" : 'X\(//\)[^/]' \| \
31819          X"$mf" : 'X\(//\)$' \| \
31820          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31821 echo X"$mf" |
31822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31823             s//\1/
31824             q
31825           }
31826           /^X\(\/\/\)[^/].*/{
31827             s//\1/
31828             q
31829           }
31830           /^X\(\/\/\)$/{
31831             s//\1/
31832             q
31833           }
31834           /^X\(\/\).*/{
31835             s//\1/
31836             q
31837           }
31838           s/.*/./; q'`
31839   else
31840     continue
31841   fi
31842   # Extract the definition of DEPDIR, am__include, and am__quote
31843   # from the Makefile without running `make'.
31844   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31845   test -z "$DEPDIR" && continue
31846   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31847   test -z "am__include" && continue
31848   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31849   # When using ansi2knr, U may be empty or an underscore; expand it
31850   U=`sed -n 's/^U = //p' < "$mf"`
31851   # Find all dependency output files, they are included files with
31852   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31853   # simplest approach to changing $(DEPDIR) to its actual value in the
31854   # expansion.
31855   for file in `sed -n "
31856     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31857        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31858     # Make sure the directory exists.
31859     test -f "$dirpart/$file" && continue
31860     fdir=`$as_dirname -- "$file" ||
31861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31862          X"$file" : 'X\(//\)[^/]' \| \
31863          X"$file" : 'X\(//\)$' \| \
31864          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31865 echo X"$file" |
31866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31867             s//\1/
31868             q
31869           }
31870           /^X\(\/\/\)[^/].*/{
31871             s//\1/
31872             q
31873           }
31874           /^X\(\/\/\)$/{
31875             s//\1/
31876             q
31877           }
31878           /^X\(\/\).*/{
31879             s//\1/
31880             q
31881           }
31882           s/.*/./; q'`
31883     { as_dir=$dirpart/$fdir
31884   case $as_dir in #(
31885   -*) as_dir=./$as_dir;;
31886   esac
31887   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31888     as_dirs=
31889     while :; do
31890       case $as_dir in #(
31891       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31892       *) as_qdir=$as_dir;;
31893       esac
31894       as_dirs="'$as_qdir' $as_dirs"
31895       as_dir=`$as_dirname -- "$as_dir" ||
31896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31897          X"$as_dir" : 'X\(//\)[^/]' \| \
31898          X"$as_dir" : 'X\(//\)$' \| \
31899          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31900 echo X"$as_dir" |
31901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31902             s//\1/
31903             q
31904           }
31905           /^X\(\/\/\)[^/].*/{
31906             s//\1/
31907             q
31908           }
31909           /^X\(\/\/\)$/{
31910             s//\1/
31911             q
31912           }
31913           /^X\(\/\).*/{
31914             s//\1/
31915             q
31916           }
31917           s/.*/./; q'`
31918       test -d "$as_dir" && break
31919     done
31920     test -z "$as_dirs" || eval "mkdir $as_dirs"
31921   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31922 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31923    { (exit 1); exit 1; }; }; }
31924     # echo "creating $dirpart/$file"
31925     echo '# dummy' > "$dirpart/$file"
31926   done
31927 done
31928  ;;
31929
31930   esac
31931 done # for ac_tag
31932
31933
31934 { (exit 0); exit 0; }
31935 _ACEOF
31936 chmod +x $CONFIG_STATUS
31937 ac_clean_files=$ac_clean_files_save
31938
31939
31940 # configure is writing to config.log, and then calls config.status.
31941 # config.status does its own redirection, appending to config.log.
31942 # Unfortunately, on DOS this fails, as config.log is still kept open
31943 # by configure, so config.status won't be able to write to it; its
31944 # output is simply discarded.  So we exec the FD to /dev/null,
31945 # effectively closing config.log, so it can be properly (re)opened and
31946 # appended to by config.status.  When coming back to configure, we
31947 # need to make the FD available again.
31948 if test "$no_create" != yes; then
31949   ac_cs_success=:
31950   ac_config_status_args=
31951   test "$silent" = yes &&
31952     ac_config_status_args="$ac_config_status_args --quiet"
31953   exec 5>/dev/null
31954   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31955   exec 5>>config.log
31956   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31957   # would make configure fail if this is the last instruction.
31958   $ac_cs_success || { (exit 1); exit 1; }
31959 fi
31960
31961