]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Debian patch 1.1.1~git-20070709-1
[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.0.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
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.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
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 CYGPATH_W
822 PACKAGE
823 VERSION
824 ACLOCAL
825 AUTOCONF
826 AUTOMAKE
827 AUTOHEADER
828 MAKEINFO
829 install_sh
830 STRIP
831 INSTALL_STRIP_PROGRAM
832 mkdir_p
833 AWK
834 SET_MAKE
835 am__leading_dot
836 AMTAR
837 am__tar
838 am__untar
839 MAINTAINER_MODE_TRUE
840 MAINTAINER_MODE_FALSE
841 MAINT
842 RELEASE
843 statedir
844 statduser
845 startstatd
846 enable_nfsv3
847 IDMAPD
848 enable_nfsv4
849 CONFIG_NFSV4_TRUE
850 CONFIG_NFSV4_FALSE
851 GSSD
852 SVCGSSD
853 enable_gss
854 CONFIG_GSS_TRUE
855 CONFIG_GSS_FALSE
856 kprefix
857 secure_statd
858 RPCGEN_PATH
859 CONFIG_RPCGEN_TRUE
860 CONFIG_RPCGEN_FALSE
861 CONFIG_MOUNT_TRUE
862 CONFIG_MOUNT_FALSE
863 CC
864 CFLAGS
865 LDFLAGS
866 CPPFLAGS
867 ac_ct_CC
868 EXEEXT
869 OBJEXT
870 DEPDIR
871 am__include
872 am__quote
873 AMDEP_TRUE
874 AMDEP_FALSE
875 AMDEPBACKSLASH
876 CCDEPMODE
877 am__fastdepCC_TRUE
878 am__fastdepCC_FALSE
879 LIBWRAP
880 HAVE_LIBWRAP
881 HAVE_TCP_WRAPPER
882 CXX
883 CXXFLAGS
884 ac_ct_CXX
885 CXXDEPMODE
886 am__fastdepCXX_TRUE
887 am__fastdepCXX_FALSE
888 CPP
889 LN_S
890 SED
891 GREP
892 EGREP
893 ECHO
894 AR
895 RANLIB
896 CXXCPP
897 F77
898 FFLAGS
899 ac_ct_F77
900 LIBTOOL
901 CC_FOR_BUILD
902 LD
903 LIBNSL
904 PKG_CONFIG
905 RPCSECGSS_CFLAGS
906 RPCSECGSS_LIBS
907 GSSAPI_CFLAGS
908 GSSAPI_LIBS
909 LIBSOCKET
910 LIBCRYPT
911 LIBBSD
912 LIBBLKID
913 KRBDIR
914 KRBLIBS
915 KRBCFLAGS
916 KRBLDFLAGS
917 K5VERS
918 ALLOCA
919 LIBOBJS
920 CFLAGS_FOR_BUILD
921 CXXFLAGS_FOR_BUILD
922 CPPFLAGS_FOR_BUILD
923 LDFLAGS_FOR_BUILD
924 AM_CPPFLAGS
925 AM_CFLAGS
926 ACLOCAL_AMFLAGS
927 LTLIBOBJS'
928 ac_subst_files=''
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CXX
938 CXXFLAGS
939 CCC
940 CPP
941 CXXCPP
942 F77
943 FFLAGS
944 PKG_CONFIG
945 RPCSECGSS_CFLAGS
946 RPCSECGSS_LIBS
947 GSSAPI_CFLAGS
948 GSSAPI_LIBS'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077     eval enable_$ac_feature=\$ac_optarg ;;
1078
1079   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081   | --exec | --exe | --ex)
1082     ac_prev=exec_prefix ;;
1083   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085   | --exec=* | --exe=* | --ex=*)
1086     exec_prefix=$ac_optarg ;;
1087
1088   -gas | --gas | --ga | --g)
1089     # Obsolete; use --with-gas.
1090     with_gas=yes ;;
1091
1092   -help | --help | --hel | --he | -h)
1093     ac_init_help=long ;;
1094   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095     ac_init_help=recursive ;;
1096   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097     ac_init_help=short ;;
1098
1099   -host | --host | --hos | --ho)
1100     ac_prev=host_alias ;;
1101   -host=* | --host=* | --hos=* | --ho=*)
1102     host_alias=$ac_optarg ;;
1103
1104   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105     ac_prev=htmldir ;;
1106   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107   | --ht=*)
1108     htmldir=$ac_optarg ;;
1109
1110   -includedir | --includedir | --includedi | --included | --include \
1111   | --includ | --inclu | --incl | --inc)
1112     ac_prev=includedir ;;
1113   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114   | --includ=* | --inclu=* | --incl=* | --inc=*)
1115     includedir=$ac_optarg ;;
1116
1117   -infodir | --infodir | --infodi | --infod | --info | --inf)
1118     ac_prev=infodir ;;
1119   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120     infodir=$ac_optarg ;;
1121
1122   -libdir | --libdir | --libdi | --libd)
1123     ac_prev=libdir ;;
1124   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125     libdir=$ac_optarg ;;
1126
1127   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128   | --libexe | --libex | --libe)
1129     ac_prev=libexecdir ;;
1130   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131   | --libexe=* | --libex=* | --libe=*)
1132     libexecdir=$ac_optarg ;;
1133
1134   -localedir | --localedir | --localedi | --localed | --locale)
1135     ac_prev=localedir ;;
1136   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137     localedir=$ac_optarg ;;
1138
1139   -localstatedir | --localstatedir | --localstatedi | --localstated \
1140   | --localstate | --localstat | --localsta | --localst | --locals)
1141     ac_prev=localstatedir ;;
1142   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144     localstatedir=$ac_optarg ;;
1145
1146   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147     ac_prev=mandir ;;
1148   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149     mandir=$ac_optarg ;;
1150
1151   -nfp | --nfp | --nf)
1152     # Obsolete; use --without-fp.
1153     with_fp=no ;;
1154
1155   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156   | --no-cr | --no-c | -n)
1157     no_create=yes ;;
1158
1159   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161     no_recursion=yes ;;
1162
1163   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165   | --oldin | --oldi | --old | --ol | --o)
1166     ac_prev=oldincludedir ;;
1167   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170     oldincludedir=$ac_optarg ;;
1171
1172   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173     ac_prev=prefix ;;
1174   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175     prefix=$ac_optarg ;;
1176
1177   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178   | --program-pre | --program-pr | --program-p)
1179     ac_prev=program_prefix ;;
1180   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182     program_prefix=$ac_optarg ;;
1183
1184   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185   | --program-suf | --program-su | --program-s)
1186     ac_prev=program_suffix ;;
1187   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189     program_suffix=$ac_optarg ;;
1190
1191   -program-transform-name | --program-transform-name \
1192   | --program-transform-nam | --program-transform-na \
1193   | --program-transform-n | --program-transform- \
1194   | --program-transform | --program-transfor \
1195   | --program-transfo | --program-transf \
1196   | --program-trans | --program-tran \
1197   | --progr-tra | --program-tr | --program-t)
1198     ac_prev=program_transform_name ;;
1199   -program-transform-name=* | --program-transform-name=* \
1200   | --program-transform-nam=* | --program-transform-na=* \
1201   | --program-transform-n=* | --program-transform-=* \
1202   | --program-transform=* | --program-transfor=* \
1203   | --program-transfo=* | --program-transf=* \
1204   | --program-trans=* | --program-tran=* \
1205   | --progr-tra=* | --program-tr=* | --program-t=*)
1206     program_transform_name=$ac_optarg ;;
1207
1208   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209     ac_prev=pdfdir ;;
1210   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211     pdfdir=$ac_optarg ;;
1212
1213   -psdir | --psdir | --psdi | --psd | --ps)
1214     ac_prev=psdir ;;
1215   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216     psdir=$ac_optarg ;;
1217
1218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219   | -silent | --silent | --silen | --sile | --sil)
1220     silent=yes ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid package name: $ac_package" >&2
1272    { (exit 1); exit 1; }; }
1273     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274     eval with_$ac_package=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283     eval with_$ac_package=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305    { (exit 1); exit 1; }; }
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313    { (exit 1); exit 1; }; }
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   { echo "$as_me: error: missing argument to $ac_option" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 # Be sure to have absolute directory names.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346    { (exit 1); exit 1; }; }
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used." >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   { echo "$as_me: error: Working directory cannot be determined" >&2
1377    { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   { echo "$as_me: error: pwd does not report name of working directory" >&2
1380    { (exit 1); exit 1; }; }
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385   ac_srcdir_defaulted=yes
1386   # Try the directory containing this script, then the parent directory.
1387   ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389          X"$0" : 'X\(//\)[^/]' \| \
1390          X"$0" : 'X\(//\)$' \| \
1391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 echo X"$0" |
1393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)[^/].*/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\).*/{
1406             s//\1/
1407             q
1408           }
1409           s/.*/./; q'`
1410   srcdir=$ac_confdir
1411   if test ! -r "$srcdir/$ac_unique_file"; then
1412     srcdir=..
1413   fi
1414 else
1415   ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425    { (exit 1); exit 1; }; }
1426         pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429   srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_env_${ac_var}_value=\$${ac_var}
1440   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448   # Omit some internal or obsolete options to make the list less imposing.
1449   # This message is too long to be a string in the A/UX 3.1 sh.
1450   cat <<_ACEOF
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461   -h, --help              display this help and exit
1462       --help=short        display options specific to this package
1463       --help=recursive    display the short help of all the included packages
1464   -V, --version           display version information and exit
1465   -q, --quiet, --silent   do not print \`checking...' messages
1466       --cache-file=FILE   cache test results in FILE [disabled]
1467   -C, --config-cache      alias for \`--cache-file=config.cache'
1468   -n, --no-create         do not create output files
1469       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472   --prefix=PREFIX         install architecture-independent files in PREFIX
1473                           [$ac_default_prefix]
1474   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                           [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485   --bindir=DIR           user executables [EPREFIX/bin]
1486   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487   --libexecdir=DIR       program executables [EPREFIX/libexec]
1488   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491   --libdir=DIR           object code libraries [EPREFIX/lib]
1492   --includedir=DIR       C header files [PREFIX/include]
1493   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496   --infodir=DIR          info documentation [DATAROOTDIR/info]
1497   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498   --mandir=DIR           man documentation [DATAROOTDIR/man]
1499   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1500   --htmldir=DIR          html documentation [DOCDIR]
1501   --dvidir=DIR           dvi documentation [DOCDIR]
1502   --pdfdir=DIR           pdf documentation [DOCDIR]
1503   --psdir=DIR            ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 Program names:
1509   --program-prefix=PREFIX            prepend PREFIX to installed program names
1510   --program-suffix=SUFFIX            append SUFFIX to installed program names
1511   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528   --enable-maintainer-mode  enable make rules and dependencies not useful
1529                           (and sometimes confusing) to the casual installer
1530   --enable-nfsv3          enable support for NFSv3 [default=yes]
1531   --enable-nfsv4          enable support for NFSv4 [default=yes]
1532   --enable-gss            enable support for rpcsec_gss [default=yes]
1533   --enable-kprefix        install progs as rpc.knfsd etc
1534   --enable-secure-statd   Only lockd can use statd (security)
1535   --without-uuid          Exclude uuid support and so avoid possibly buggy
1536                           libblkid
1537   --enable-mount          Create mount.nfs and don't use the util-linux
1538                           mount(8) functionality. [default=yes]
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --disable-largefile     omit support for large files
1542   --enable-shared[=PKGS]  build shared libraries [default=yes]
1543   --enable-static[=PKGS]  build static libraries [default=yes]
1544   --enable-fast-install[=PKGS]
1545                           optimize for fast installation [default=yes]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-release=XXX      set release to XXX [1]
1552   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1553   --with-statduser=rpcuser
1554                           statd to run under [rpcuser or nobody]
1555   --with-start-statd=scriptname
1556                           When an nfs filesystems is mounted with locking, run
1557                           this script
1558   --with-rpcgen=internal  use internal rpcgen instead of system one
1559   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1560                  (optionally in PATH)
1561   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562   --with-pic              try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-tags[=TAGS]      include additional configurations [automatic]
1565   --with-krb5=DIR         use Kerberos v5 installation in DIR
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CXX         C++ compiler command
1576   CXXFLAGS    C++ compiler flags
1577   CPP         C preprocessor
1578   CXXCPP      C++ preprocessor
1579   F77         Fortran 77 compiler command
1580   FFLAGS      Fortran 77 compiler flags
1581   PKG_CONFIG  path to pkg-config utility
1582   RPCSECGSS_CFLAGS
1583               C compiler flags for RPCSECGSS, overriding pkg-config
1584   RPCSECGSS_LIBS
1585               linker flags for RPCSECGSS, overriding pkg-config
1586   GSSAPI_CFLAGS
1587               C compiler flags for GSSAPI, overriding pkg-config
1588   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <nfs@lists.sf.net>.
1594 _ACEOF
1595 ac_status=$?
1596 fi
1597
1598 if test "$ac_init_help" = "recursive"; then
1599   # If there are subdirs, report their specific --help.
1600   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601     test -d "$ac_dir" || continue
1602     ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608   # A ".." for each directory in $ac_dir_suffix.
1609   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610   case $ac_top_builddir_sub in
1611   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613   esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621   .)  # We are building in place.
1622     ac_srcdir=.
1623     ac_top_srcdir=$ac_top_builddir_sub
1624     ac_abs_top_srcdir=$ac_pwd ;;
1625   [\\/]* | ?:[\\/]* )  # Absolute name.
1626     ac_srcdir=$srcdir$ac_dir_suffix;
1627     ac_top_srcdir=$srcdir
1628     ac_abs_top_srcdir=$srcdir ;;
1629   *) # Relative name.
1630     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631     ac_top_srcdir=$ac_top_build_prefix$srcdir
1632     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636     cd "$ac_dir" || { ac_status=$?; continue; }
1637     # Check for guested configure.
1638     if test -f "$ac_srcdir/configure.gnu"; then
1639       echo &&
1640       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641     elif test -f "$ac_srcdir/configure"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure" --help=recursive
1644     else
1645       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646     fi || ac_status=$?
1647     cd "$ac_pwd" || { ac_status=$?; break; }
1648   done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653   cat <<\_ACEOF
1654 linux nfs-utils configure 1.1.0
1655 generated by GNU Autoconf 2.61
1656
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662   exit
1663 fi
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1667
1668 It was created by linux nfs-utils $as_me 1.1.0, which was
1669 generated by GNU Autoconf 2.61.  Invocation command line was
1670
1671   $ $0 $@
1672
1673 _ACEOF
1674 exec 5>>config.log
1675 {
1676 cat <<_ASUNAME
1677 ## --------- ##
1678 ## Platform. ##
1679 ## --------- ##
1680
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1689
1690 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1691 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1694 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1695 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1696 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1697
1698 _ASUNAME
1699
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1708
1709 } >&5
1710
1711 cat >&5 <<_ACEOF
1712
1713
1714 ## ----------- ##
1715 ## Core tests. ##
1716 ## ----------- ##
1717
1718 _ACEOF
1719
1720
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1731 do
1732   for ac_arg
1733   do
1734     case $ac_arg in
1735     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737     | -silent | --silent | --silen | --sile | --sil)
1738       continue ;;
1739     *\'*)
1740       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741     esac
1742     case $ac_pass in
1743     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744     2)
1745       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746       if test $ac_must_keep_next = true; then
1747         ac_must_keep_next=false # Got value, back to normal.
1748       else
1749         case $ac_arg in
1750           *=* | --config-cache | -C | -disable-* | --disable-* \
1751           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753           | -with-* | --with-* | -without-* | --without-* | --x)
1754             case "$ac_configure_args0 " in
1755               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756             esac
1757             ;;
1758           -* ) ac_must_keep_next=true ;;
1759         esac
1760       fi
1761       ac_configure_args="$ac_configure_args '$ac_arg'"
1762       ;;
1763     esac
1764   done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log.  We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775   # Save into config.log some information that might help in debugging.
1776   {
1777     echo
1778
1779     cat <<\_ASBOX
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1783 _ASBOX
1784     echo
1785     # The following way of writing the cache mishandles newlines in values,
1786 (
1787   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788     eval ac_val=\$$ac_var
1789     case $ac_val in #(
1790     *${as_nl}*)
1791       case $ac_var in #(
1792       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794       esac
1795       case $ac_var in #(
1796       _ | IFS | as_nl) ;; #(
1797       *) $as_unset $ac_var ;;
1798       esac ;;
1799     esac
1800   done
1801   (set) 2>&1 |
1802     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803     *${as_nl}ac_space=\ *)
1804       sed -n \
1805         "s/'\''/'\''\\\\'\'''\''/g;
1806           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807       ;; #(
1808     *)
1809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810       ;;
1811     esac |
1812     sort
1813 )
1814     echo
1815
1816     cat <<\_ASBOX
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1820 _ASBOX
1821     echo
1822     for ac_var in $ac_subst_vars
1823     do
1824       eval ac_val=\$$ac_var
1825       case $ac_val in
1826       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827       esac
1828       echo "$ac_var='\''$ac_val'\''"
1829     done | sort
1830     echo
1831
1832     if test -n "$ac_subst_files"; then
1833       cat <<\_ASBOX
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1837 _ASBOX
1838       echo
1839       for ac_var in $ac_subst_files
1840       do
1841         eval ac_val=\$$ac_var
1842         case $ac_val in
1843         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844         esac
1845         echo "$ac_var='\''$ac_val'\''"
1846       done | sort
1847       echo
1848     fi
1849
1850     if test -s confdefs.h; then
1851       cat <<\_ASBOX
1852 ## ----------- ##
1853 ## confdefs.h. ##
1854 ## ----------- ##
1855 _ASBOX
1856       echo
1857       cat confdefs.h
1858       echo
1859     fi
1860     test "$ac_signal" != 0 &&
1861       echo "$as_me: caught signal $ac_signal"
1862     echo "$as_me: exit $exit_status"
1863   } >&5
1864   rm -f core *.core core.conftest.* &&
1865     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866     exit $exit_status
1867 ' 0
1868 for ac_signal in 1 2 13 15; do
1869   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 done
1871 ac_signal=0
1872
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1875
1876 # Predefined preprocessor variables.
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 _ACEOF
1901
1902
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906   set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 else
1910   set x "$ac_default_prefix/share/config.site" \
1911         "$ac_default_prefix/etc/config.site"
1912 fi
1913 shift
1914 for ac_site_file
1915 do
1916   if test -r "$ac_site_file"; then
1917     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919     sed 's/^/| /' "$ac_site_file" >&5
1920     . "$ac_site_file"
1921   fi
1922 done
1923
1924 if test -r "$cache_file"; then
1925   # Some versions of bash will fail to source /dev/null (special
1926   # files actually), so we avoid doing that.
1927   if test -f "$cache_file"; then
1928     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1930     case $cache_file in
1931       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932       *)                      . "./$cache_file";;
1933     esac
1934   fi
1935 else
1936   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1938   >$cache_file
1939 fi
1940
1941 # Check that the precious variables saved in the cache have kept the same
1942 # value.
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946   eval ac_new_set=\$ac_env_${ac_var}_set
1947   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948   eval ac_new_val=\$ac_env_${ac_var}_value
1949   case $ac_old_set,$ac_new_set in
1950     set,)
1951       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953       ac_cache_corrupted=: ;;
1954     ,set)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,);;
1959     *)
1960       if test "x$ac_old_val" != "x$ac_new_val"; then
1961         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1964 echo "$as_me:   former value:  $ac_old_val" >&2;}
1965         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1966 echo "$as_me:   current value: $ac_new_val" >&2;}
1967         ac_cache_corrupted=:
1968       fi;;
1969   esac
1970   # Pass precious variables to config.status.
1971   if test "$ac_new_set" = set; then
1972     case $ac_new_val in
1973     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     *) ac_arg=$ac_var=$ac_new_val ;;
1975     esac
1976     case " $ac_configure_args " in
1977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1978       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979     esac
1980   fi
1981 done
1982 if $ac_cache_corrupted; then
1983   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021 ac_aux_dir=
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023   if test -f "$ac_dir/install-sh"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/install-sh -c"
2026     break
2027   elif 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/shtool"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/shtool install -c"
2034     break
2035   fi
2036 done
2037 if test -z "$ac_aux_dir"; then
2038   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040    { (exit 1); exit 1; }; }
2041 fi
2042
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2050
2051
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056    { (exit 1); exit 1; }; }
2057
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069    { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 build=$ac_cv_build
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_build
2087 shift
2088 build_cpu=$1
2089 build_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 build_os=$*
2094 IFS=$ac_save_IFS
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$host_alias" = x; then
2104   ac_cv_host=$ac_cv_build
2105 else
2106   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2115 case $ac_cv_host in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 host=$ac_cv_host
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_host
2124 shift
2125 host_cpu=$1
2126 host_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 host_os=$*
2131 IFS=$ac_save_IFS
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2133
2134
2135
2136 am__api_version="1.9"
2137 # Find a good install program.  We prefer a C program (faster),
2138 # so one script is as good as another.  But avoid the broken or
2139 # incompatible versions:
2140 # SysV /etc/install, /usr/sbin/install
2141 # SunOS /usr/etc/install
2142 # IRIX /sbin/install
2143 # AIX /bin/install
2144 # AmigaOS /C/install, which installs bootblocks on floppy discs
2145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2148 # OS/2's system install, which has a completely different semantic
2149 # ./install, which can be erroneously created by make from ./install.sh.
2150 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2151 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2152 if test -z "$INSTALL"; then
2153 if test "${ac_cv_path_install+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   # Account for people who put trailing slashes in PATH elements.
2162 case $as_dir/ in
2163   ./ | .// | /cC/* | \
2164   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2165   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2166   /usr/ucb/* ) ;;
2167   *)
2168     # OSF1 and SCO ODT 3.0 have their own names for install.
2169     # Don't use installbsd from OSF since it installs stuff as root
2170     # by default.
2171     for ac_prog in ginstall scoinst install; do
2172       for ac_exec_ext in '' $ac_executable_extensions; do
2173         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2174           if test $ac_prog = install &&
2175             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176             # AIX install.  It has an incompatible calling convention.
2177             :
2178           elif test $ac_prog = install &&
2179             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180             # program-specific install script used by HP pwplus--don't use.
2181             :
2182           else
2183             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2184             break 3
2185           fi
2186         fi
2187       done
2188     done
2189     ;;
2190 esac
2191 done
2192 IFS=$as_save_IFS
2193
2194
2195 fi
2196   if test "${ac_cv_path_install+set}" = set; then
2197     INSTALL=$ac_cv_path_install
2198   else
2199     # As a last resort, use the slow shell script.  Don't cache a
2200     # value for INSTALL within a source directory, because that will
2201     # break other packages using the cache if that directory is
2202     # removed, or if the value is a relative name.
2203     INSTALL=$ac_install_sh
2204   fi
2205 fi
2206 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2207 echo "${ECHO_T}$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2219 # Just in case
2220 sleep 1
2221 echo timestamp > conftest.file
2222 # Do `set' in a subshell so we don't clobber the current shell's
2223 # arguments.  Must try -L first in case configure is actually a
2224 # symlink; some systems play weird games with the mod time of symlinks
2225 # (eg FreeBSD returns the mod time of the symlink's containing
2226 # directory).
2227 if (
2228    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2229    if test "$*" = "X"; then
2230       # -L didn't work.
2231       set X `ls -t $srcdir/configure conftest.file`
2232    fi
2233    rm -f conftest.file
2234    if test "$*" != "X $srcdir/configure conftest.file" \
2235       && test "$*" != "X conftest.file $srcdir/configure"; then
2236
2237       # If neither matched, then we have a broken ls.  This can happen
2238       # if, for instance, CONFIG_SHELL is bash and it inherits a
2239       # broken ls alias from the environment.  This has actually
2240       # happened.  Such a system could not be considered "sane".
2241       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2242 alias in your environment" >&5
2243 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2244 alias in your environment" >&2;}
2245    { (exit 1); exit 1; }; }
2246    fi
2247
2248    test "$2" = conftest.file
2249    )
2250 then
2251    # Ok.
2252    :
2253 else
2254    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2255 Check your system clock" >&5
2256 echo "$as_me: error: newly created file is older than distributed files!
2257 Check your system clock" >&2;}
2258    { (exit 1); exit 1; }; }
2259 fi
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $.  echo might interpret backslashes.
2268 # By default was `s,x,x', remove it if useless.
2269 cat <<\_ACEOF >conftest.sed
2270 s/[\\$]/&&/g;s/;s,x,x,$//
2271 _ACEOF
2272 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2273 rm -f conftest.sed
2274
2275 # expand $ac_aux_dir to an absolute path
2276 am_aux_dir=`cd $ac_aux_dir && pwd`
2277
2278 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2279 # Use eval to expand $SHELL
2280 if eval "$MISSING --run true"; then
2281   am_missing_run="$MISSING --run "
2282 else
2283   am_missing_run=
2284   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2285 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2286 fi
2287
2288 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2289   # We used to keeping the `.' as first argument, in order to
2290   # allow $(mkdir_p) to be used without argument.  As in
2291   #   $(mkdir_p) $(somedir)
2292   # where $(somedir) is conditionally defined.  However this is wrong
2293   # for two reasons:
2294   #  1. if the package is installed by a user who cannot write `.'
2295   #     make install will fail,
2296   #  2. the above comment should most certainly read
2297   #     $(mkdir_p) $(DESTDIR)$(somedir)
2298   #     so it does not work when $(somedir) is undefined and
2299   #     $(DESTDIR) is not.
2300   #  To support the latter case, we have to write
2301   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2302   #  so the `.' trick is pointless.
2303   mkdir_p='mkdir -p --'
2304 else
2305   # On NextStep and OpenStep, the `mkdir' command does not
2306   # recognize any option.  It will interpret all options as
2307   # directories to create, and then abort because `.' already
2308   # exists.
2309   for d in ./-p ./--version;
2310   do
2311     test -d $d && rmdir $d
2312   done
2313   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2314   if test -f "$ac_aux_dir/mkinstalldirs"; then
2315     mkdir_p='$(mkinstalldirs)'
2316   else
2317     mkdir_p='$(install_sh) -d'
2318   fi
2319 fi
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$AWK"; then
2331   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_AWK="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352   { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360   test -n "$AWK" && break
2361 done
2362
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.make <<\_ACEOF
2370 SHELL = /bin/sh
2371 all:
2372         @echo '@@@%%%=$(MAKE)=@@@%%%'
2373 _ACEOF
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2376   *@@@%%%=?*=@@@%%%*)
2377     eval ac_cv_prog_make_${ac_make}_set=yes;;
2378   *)
2379     eval ac_cv_prog_make_${ac_make}_set=no;;
2380 esac
2381 rm -f conftest.make
2382 fi
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384   { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386   SET_MAKE=
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390   SET_MAKE="MAKE=${MAKE-make}"
2391 fi
2392
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2396   am__leading_dot=.
2397 else
2398   am__leading_dot=_
2399 fi
2400 rmdir .tst 2>/dev/null
2401
2402 # test to see if srcdir already configured
2403 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2404    test -f $srcdir/config.status; then
2405   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2406 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2407    { (exit 1); exit 1; }; }
2408 fi
2409
2410 # test whether we have cygpath
2411 if test -z "$CYGPATH_W"; then
2412   if (cygpath --version) >/dev/null 2>/dev/null; then
2413     CYGPATH_W='cygpath -w'
2414   else
2415     CYGPATH_W=echo
2416   fi
2417 fi
2418
2419
2420 # Define the identity of the package.
2421  PACKAGE='nfs-utils'
2422  VERSION='1.1.0'
2423
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE "$PACKAGE"
2427 _ACEOF
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define VERSION "$VERSION"
2432 _ACEOF
2433
2434 # Some tools Automake needs.
2435
2436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2437
2438
2439 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2440
2441
2442 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2443
2444
2445 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2446
2447
2448 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2449
2450 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2451
2452 # Installed binaries are usually stripped using `strip' when the user
2453 # run `make install-strip'.  However `strip' might not be the right
2454 # tool to use in cross-compilation environments, therefore Automake
2455 # will honor the `STRIP' environment variable to overrule this program.
2456 if test "$cross_compiling" != no; then
2457   if test -n "$ac_tool_prefix"; then
2458   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_STRIP+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$STRIP"; then
2466   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 STRIP=$ac_cv_prog_STRIP
2486 if test -n "$STRIP"; then
2487   { echo "$as_me:$LINENO: result: $STRIP" >&5
2488 echo "${ECHO_T}$STRIP" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_STRIP"; then
2497   ac_ct_STRIP=$STRIP
2498   # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$ac_ct_STRIP"; then
2506   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     ac_cv_prog_ac_ct_STRIP="strip"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526 if test -n "$ac_ct_STRIP"; then
2527   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2528 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2529 else
2530   { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2532 fi
2533
2534   if test "x$ac_ct_STRIP" = x; then
2535     STRIP=":"
2536   else
2537     case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet.  If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet.  If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547     STRIP=$ac_ct_STRIP
2548   fi
2549 else
2550   STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2555
2556 # We need awk for the "check" target.  The system "awk" is bad on
2557 # some platforms.
2558 # Always define AMTAR for backward compatibility.
2559
2560 AMTAR=${AMTAR-"${am_missing_run}tar"}
2561
2562 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2563
2564
2565
2566
2567
2568
2569
2570 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572     # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576   USE_MAINTAINER_MODE=no
2577 fi
2578
2579   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2581
2582
2583 if test $USE_MAINTAINER_MODE = yes; then
2584   MAINTAINER_MODE_TRUE=
2585   MAINTAINER_MODE_FALSE='#'
2586 else
2587   MAINTAINER_MODE_TRUE='#'
2588   MAINTAINER_MODE_FALSE=
2589 fi
2590
2591   MAINT=$MAINTAINER_MODE_TRUE
2592
2593
2594
2595
2596 # Check whether --with-release was given.
2597 if test "${with_release+set}" = set; then
2598   withval=$with_release; RELEASE=$withval
2599 else
2600   RELEASE=1
2601 fi
2602
2603
2604
2605 # Check whether --with-statedir was given.
2606 if test "${with_statedir+set}" = set; then
2607   withval=$with_statedir; statedir=$withval
2608 else
2609   statedir=/var/lib/nfs
2610 fi
2611
2612
2613
2614 # Check whether --with-statduser was given.
2615 if test "${with_statduser+set}" = set; then
2616   withval=$with_statduser; statduser=$withval
2617 else
2618   if test "x$cross_compiling" = "xno"; then
2619                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2620                         statduser=rpcuser
2621                 else
2622                         statduser=nobody
2623                 fi
2624         else
2625                 statduser=nobody
2626         fi
2627 fi
2628
2629
2630
2631 # Check whether --with-start-statd was given.
2632 if test "${with_start_statd+set}" = set; then
2633   withval=$with_start_statd; startstatd=$withval
2634 else
2635   startstatd=/usr/sbin/start-statd
2636
2637 fi
2638
2639
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define START_STATD "$startstatd"
2643 _ACEOF
2644
2645 # Check whether --enable-nfsv3 was given.
2646 if test "${enable_nfsv3+set}" = set; then
2647   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2648 else
2649   enable_nfsv3=yes
2650 fi
2651
2652         if test "$enable_nfsv3" = yes; then
2653
2654 cat >>confdefs.h <<\_ACEOF
2655 #define NFS3_SUPPORTED 1
2656 _ACEOF
2657
2658         else
2659                 enable_nfsv3=
2660         fi
2661
2662 # Check whether --enable-nfsv4 was given.
2663 if test "${enable_nfsv4+set}" = set; then
2664   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2665 else
2666   enable_nfsv4=yes
2667 fi
2668
2669         if test "$enable_nfsv4" = yes; then
2670
2671 cat >>confdefs.h <<\_ACEOF
2672 #define NFS4_SUPPORTED 1
2673 _ACEOF
2674
2675                 IDMAPD=idmapd
2676         else
2677                 enable_nfsv4=
2678                 IDMAPD=
2679         fi
2680
2681
2682
2683
2684 if test "$enable_nfsv4" = "yes"; then
2685   CONFIG_NFSV4_TRUE=
2686   CONFIG_NFSV4_FALSE='#'
2687 else
2688   CONFIG_NFSV4_TRUE='#'
2689   CONFIG_NFSV4_FALSE=
2690 fi
2691
2692 # Check whether --enable-gss was given.
2693 if test "${enable_gss+set}" = set; then
2694   enableval=$enable_gss; enable_gss=$enableval
2695 else
2696   enable_gss=yes
2697 fi
2698
2699         if test "$enable_gss" = yes; then
2700
2701 cat >>confdefs.h <<\_ACEOF
2702 #define GSS_SUPPORTED 1
2703 _ACEOF
2704
2705                 GSSD=gssd
2706                 SVCGSSD=svcgssd
2707         else
2708                 enable_gss=
2709                 GSSD=
2710                 SVCGSSD=
2711         fi
2712
2713
2714
2715
2716
2717 if test "$enable_gss" = "yes"; then
2718   CONFIG_GSS_TRUE=
2719   CONFIG_GSS_FALSE='#'
2720 else
2721   CONFIG_GSS_TRUE='#'
2722   CONFIG_GSS_FALSE=
2723 fi
2724
2725 # Check whether --enable-kprefix was given.
2726 if test "${enable_kprefix+set}" = set; then
2727   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2728 else
2729   kprefix=
2730 fi
2731
2732
2733 # Check whether --enable-secure-statd was given.
2734 if test "${enable_secure_statd+set}" = set; then
2735   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2736 else
2737   secure_statd=yes
2738 fi
2739
2740         if test "$secure_statd" = yes; then
2741
2742 cat >>confdefs.h <<\_ACEOF
2743 #define RESTRICTED_STATD 1
2744 _ACEOF
2745
2746         fi
2747
2748
2749 # Check whether --with-rpcgen was given.
2750 if test "${with_rpcgen+set}" = set; then
2751   withval=$with_rpcgen; rpcgen_path=$withval
2752 else
2753   rpcgen_path=yes
2754 fi
2755
2756         RPCGEN_PATH=
2757         if test "$rpcgen_path" == "yes"; then
2758             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2759             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2760         elif test "$rpcgen_path" != "internal"; then
2761             RPCGEN_PATH=$rpcgen_path
2762         fi
2763
2764
2765
2766 if test "$RPCGEN_PATH" == ""; then
2767   CONFIG_RPCGEN_TRUE=
2768   CONFIG_RPCGEN_FALSE='#'
2769 else
2770   CONFIG_RPCGEN_TRUE='#'
2771   CONFIG_RPCGEN_FALSE=
2772 fi
2773
2774 # Check whether --enable-uuid was given.
2775 if test "${enable_uuid+set}" = set; then
2776   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2777 else
2778   choose_blkid=default
2779 fi
2780
2781 # Check whether --enable-mount was given.
2782 if test "${enable_mount+set}" = set; then
2783   enableval=$enable_mount; enable_mount=$enableval
2784 else
2785   enable_mount=yes
2786 fi
2787
2788
2789
2790 if test "$enable_mount" = "yes"; then
2791   CONFIG_MOUNT_TRUE=
2792   CONFIG_MOUNT_FALSE='#'
2793 else
2794   CONFIG_MOUNT_TRUE='#'
2795   CONFIG_MOUNT_FALSE=
2796 fi
2797
2798
2799 # Check whether user wants TCP wrappers support
2800 DEPDIR="${am__leading_dot}deps"
2801
2802 ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2807 am__doit:
2808         @echo done
2809 .PHONY: am__doit
2810 END
2811 # If we don't find an include directive, just comment out the code.
2812 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2813 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2814 am__include="#"
2815 am__quote=
2816 _am_result=none
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # We grep out `Entering directory' and `Leaving directory'
2820 # messages which can occur if `w' ends up in MAKEFLAGS.
2821 # In particular we don't look at `^make:' because GNU make might
2822 # be invoked under some other name (usually "gmake"), in which
2823 # case it prints its new name instead of `make'.
2824 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2825    am__include=include
2826    am__quote=
2827    _am_result=GNU
2828 fi
2829 # Now try BSD make style include.
2830 if test "$am__include" = "#"; then
2831    echo '.include "confinc"' > confmf
2832    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2833       am__include=.include
2834       am__quote="\""
2835       _am_result=BSD
2836    fi
2837 fi
2838
2839
2840 { echo "$as_me:$LINENO: result: $_am_result" >&5
2841 echo "${ECHO_T}$_am_result" >&6; }
2842 rm -f confinc confmf
2843
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then
2846   enableval=$enable_dependency_tracking;
2847 fi
2848
2849 if test "x$enable_dependency_tracking" != xno; then
2850   am_depcomp="$ac_aux_dir/depcomp"
2851   AMDEPBACKSLASH='\'
2852 fi
2853
2854
2855 if test "x$enable_dependency_tracking" != xno; then
2856   AMDEP_TRUE=
2857   AMDEP_FALSE='#'
2858 else
2859   AMDEP_TRUE='#'
2860   AMDEP_FALSE=
2861 fi
2862
2863
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$CC"; then
2879   ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900   { echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6; }
2902 else
2903   { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$ac_cv_prog_CC"; then
2910   ac_ct_CC=$CC
2911   # Extract the first word of "gcc", so it can be a program name with args.
2912 set dummy gcc; ac_word=$2
2913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -n "$ac_ct_CC"; then
2919   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928     ac_cv_prog_ac_ct_CC="gcc"
2929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941 echo "${ECHO_T}$ac_ct_CC" >&6; }
2942 else
2943   { echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6; }
2945 fi
2946
2947   if test "x$ac_ct_CC" = x; then
2948     CC=""
2949   else
2950     case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet.  If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&5
2955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956 whose name does not start with the host triplet.  If you think this
2957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960     CC=$ac_ct_CC
2961   fi
2962 else
2963   CC="$ac_cv_prog_CC"
2964 fi
2965
2966 if test -z "$CC"; then
2967           if test -n "$ac_tool_prefix"; then
2968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983   for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="${ac_tool_prefix}cc"
2986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { echo "$as_me:$LINENO: result: $CC" >&5
2998 echo "${ECHO_T}$CC" >&6; }
2999 else
3000   { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3002 fi
3003
3004
3005   fi
3006 fi
3007 if test -z "$CC"; then
3008   # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   if test -n "$CC"; then
3016   ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018   ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024   for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027        ac_prog_rejected=yes
3028        continue
3029      fi
3030     ac_cv_prog_CC="cc"
3031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 if test $ac_prog_rejected = yes; then
3039   # We found a bogon in the path, so make sure we never use it.
3040   set dummy $ac_cv_prog_CC
3041   shift
3042   if test $# != 0; then
3043     # We chose a different compiler from the bogus one.
3044     # However, it has the same basename, so the bogon will be chosen
3045     # first if we set CC to just the basename; use the full file name.
3046     shift
3047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048   fi
3049 fi
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054   { echo "$as_me:$LINENO: result: $CC" >&5
3055 echo "${ECHO_T}$CC" >&6; }
3056 else
3057   { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$CC"; then
3064   if test -n "$ac_tool_prefix"; then
3065   for ac_prog in cl.exe
3066   do
3067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   if test -n "$CC"; then
3075   ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096   { echo "$as_me:$LINENO: result: $CC" >&5
3097 echo "${ECHO_T}$CC" >&6; }
3098 else
3099   { echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6; }
3101 fi
3102
3103
3104     test -n "$CC" && break
3105   done
3106 fi
3107 if test -z "$CC"; then
3108   ac_ct_CC=$CC
3109   for ac_prog in cl.exe
3110 do
3111   # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126   for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_ac_ct_CC="$ac_prog"
3129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3141 echo "${ECHO_T}$ac_ct_CC" >&6; }
3142 else
3143   { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3145 fi
3146
3147
3148   test -n "$ac_ct_CC" && break
3149 done
3150
3151   if test "x$ac_ct_CC" = x; then
3152     CC=""
3153   else
3154     case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet.  If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&5
3159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3160 whose name does not start with the host triplet.  If you think this
3161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164     CC=$ac_ct_CC
3165   fi
3166 fi
3167
3168 fi
3169
3170
3171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: no acceptable C compiler found in \$PATH
3174 See \`config.log' for more details." >&2;}
3175    { (exit 1); exit 1; }; }
3176
3177 # Provide some information about the compiler.
3178 echo "$as_me:$LINENO: checking for C compiler version" >&5
3179 ac_compiler=`set X $ac_compile; echo $2`
3180 { (ac_try="$ac_compiler --version >&5"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compiler --version >&5") 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }
3190 { (ac_try="$ac_compiler -v >&5"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_compiler -v >&5") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }
3200 { (ac_try="$ac_compiler -V >&5"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compiler -V >&5") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }
3210
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234 #
3235 # List of possible output files, starting from the most likely.
3236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3237 # only as a last resort.  b.out is created by i960 compilers.
3238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3239 #
3240 # The IRIX 6 linker writes into existing files which may not be
3241 # executable, retaining their permissions.  Remove them first so a
3242 # subsequent execution test works.
3243 ac_rmfiles=
3244 for ac_file in $ac_files
3245 do
3246   case $ac_file in
3247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3248     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3249   esac
3250 done
3251 rm -f $ac_rmfiles
3252
3253 if { (ac_try="$ac_link_default"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_link_default") 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; then
3263   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3267 # Autoconf.
3268 for ac_file in $ac_files ''
3269 do
3270   test -f "$ac_file" || continue
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3273         ;;
3274     [ab].out )
3275         # We found the default executable, but exeext='' is most
3276         # certainly right.
3277         break;;
3278     *.* )
3279         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280         then :; else
3281            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282         fi
3283         # We set ac_cv_exeext here because the later test for it is not
3284         # safe: cross compilers may not add the suffix if given an `-o'
3285         # argument, so we may need to know it at that point already.
3286         # Even if this section looks crufty: it has the advantage of
3287         # actually working.
3288         break;;
3289     * )
3290         break;;
3291   esac
3292 done
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295 else
3296   ac_file=''
3297 fi
3298
3299 { echo "$as_me:$LINENO: result: $ac_file" >&5
3300 echo "${ECHO_T}$ac_file" >&6; }
3301 if test -z "$ac_file"; then
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3306 See \`config.log' for more details." >&5
3307 echo "$as_me: error: C compiler cannot create executables
3308 See \`config.log' for more details." >&2;}
3309    { (exit 77); exit 77; }; }
3310 fi
3311
3312 ac_exeext=$ac_cv_exeext
3313
3314 # Check that the compiler produces executables we can run.  If not, either
3315 # the compiler is broken, or we cross compile.
3316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3319 # If not cross compiling, check that we can run a simple program.
3320 if test "$cross_compiling" != yes; then
3321   if { ac_try='./$ac_file'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331     cross_compiling=no
3332   else
3333     if test "$cross_compiling" = maybe; then
3334         cross_compiling=yes
3335     else
3336         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3337 If you meant to cross compile, use \`--host'.
3338 See \`config.log' for more details." >&5
3339 echo "$as_me: error: cannot run C compiled programs.
3340 If you meant to cross compile, use \`--host'.
3341 See \`config.log' for more details." >&2;}
3342    { (exit 1); exit 1; }; }
3343     fi
3344   fi
3345 fi
3346 { echo "$as_me:$LINENO: result: yes" >&5
3347 echo "${ECHO_T}yes" >&6; }
3348
3349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 # Check that the compiler produces executables we can run.  If not, either
3352 # the compiler is broken, or we cross compile.
3353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3356 echo "${ECHO_T}$cross_compiling" >&6; }
3357
3358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3360 if { (ac_try="$ac_link"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_link") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; then
3370   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 # `rm'.
3374 for ac_file in conftest.exe conftest conftest.*; do
3375   test -f "$ac_file" || continue
3376   case $ac_file in
3377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3378     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379           break;;
3380     * ) break;;
3381   esac
3382 done
3383 else
3384   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details." >&2;}
3388    { (exit 1); exit 1; }; }
3389 fi
3390
3391 rm -f conftest$ac_cv_exeext
3392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3394
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3397 ac_exeext=$EXEEXT
3398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3400 if test "${ac_cv_objext+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_compile") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; then
3429   for ac_file in conftest.o conftest.obj conftest.*; do
3430   test -f "$ac_file" || continue;
3431   case $ac_file in
3432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3433     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434        break;;
3435   esac
3436 done
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details." >&2;}
3445    { (exit 1); exit 1; }; }
3446 fi
3447
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 fi
3450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3451 echo "${ECHO_T}$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3453 ac_objext=$OBJEXT
3454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 #ifndef __GNUC__
3470        choke me
3471 #endif
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_compile") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } && {
3491          test -z "$ac_c_werror_flag" ||
3492          test ! -s conftest.err
3493        } && test -s conftest.$ac_objext; then
3494   ac_compiler_gnu=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499         ac_compiler_gnu=no
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3504
3505 fi
3506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3508 GCC=`test $ac_compiler_gnu = yes && echo yes`
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   ac_save_c_werror_flag=$ac_c_werror_flag
3517    ac_c_werror_flag=yes
3518    ac_cv_prog_cc_g=no
3519    CFLAGS="-g"
3520    cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } && {
3549          test -z "$ac_c_werror_flag" ||
3550          test ! -s conftest.err
3551        } && test -s conftest.$ac_objext; then
3552   ac_cv_prog_cc_g=yes
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557         CFLAGS=""
3558       cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_c_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   :
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595         ac_c_werror_flag=$ac_save_c_werror_flag
3596          CFLAGS="-g"
3597          cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_compile") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } && {
3626          test -z "$ac_c_werror_flag" ||
3627          test ! -s conftest.err
3628        } && test -s conftest.$ac_objext; then
3629   ac_cv_prog_cc_g=yes
3630 else
3631   echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 fi
3642
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644    ac_c_werror_flag=$ac_save_c_werror_flag
3645 fi
3646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3648 if test "$ac_test_CFLAGS" = set; then
3649   CFLAGS=$ac_save_CFLAGS
3650 elif test $ac_cv_prog_cc_g = yes; then
3651   if test "$GCC" = yes; then
3652     CFLAGS="-g -O2"
3653   else
3654     CFLAGS="-g"
3655   fi
3656 else
3657   if test "$GCC" = yes; then
3658     CFLAGS="-O2"
3659   else
3660     CFLAGS=
3661   fi
3662 fi
3663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3665 if test "${ac_cv_prog_cc_c89+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_cv_prog_cc_c89=no
3669 ac_save_CC=$CC
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 #include <stdarg.h>
3677 #include <stdio.h>
3678 #include <sys/types.h>
3679 #include <sys/stat.h>
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3684      char **p;
3685      int i;
3686 {
3687   return p[i];
3688 }
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3690 {
3691   char *s;
3692   va_list v;
3693   va_start (v,p);
3694   s = g (p, va_arg (v,int));
3695   va_end (v);
3696   return s;
3697 }
3698
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3700    function prototypes and stuff, but not '\xHH' hex character constants.
3701    These don't provoke an error unfortunately, instead are silently treated
3702    as 'x'.  The following induces an error, until -std is added to get
3703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3704    array size at least.  It's necessary to write '\x00'==0 to get something
3705    that's true only with -std.  */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709    inside strings and character constants.  */
3710 #define FOO(x) 'x'
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3712
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 int argc;
3718 char **argv;
3719 int
3720 main ()
3721 {
3722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 do
3730   CC="$ac_save_CC $ac_arg"
3731   rm -f conftest.$ac_objext
3732 if { (ac_try="$ac_compile"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738   (eval "$ac_compile") 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } && {
3745          test -z "$ac_c_werror_flag" ||
3746          test ! -s conftest.err
3747        } && test -s conftest.$ac_objext; then
3748   ac_cv_prog_cc_c89=$ac_arg
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753
3754 fi
3755
3756 rm -f core conftest.err conftest.$ac_objext
3757   test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 done
3759 rm -f conftest.$ac_ext
3760 CC=$ac_save_CC
3761
3762 fi
3763 # AC_CACHE_VAL
3764 case "x$ac_cv_prog_cc_c89" in
3765   x)
3766     { echo "$as_me:$LINENO: result: none needed" >&5
3767 echo "${ECHO_T}none needed" >&6; } ;;
3768   xno)
3769     { echo "$as_me:$LINENO: result: unsupported" >&5
3770 echo "${ECHO_T}unsupported" >&6; } ;;
3771   *)
3772     CC="$CC $ac_cv_prog_cc_c89"
3773     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3775 esac
3776
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784 depcc="$CC"   am_compiler_list=
3785
3786 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3787 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3788 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792   # We make a subdir and do the tests there.  Otherwise we can end up
3793   # making bogus files that we don't know about and never remove.  For
3794   # instance it was reported that on HP-UX the gcc test will end up
3795   # making a dummy file named `D' -- because `-MD' means `put the output
3796   # in D'.
3797   mkdir conftest.dir
3798   # Copy depcomp to subdir because otherwise we won't find it if we're
3799   # using a relative directory.
3800   cp "$am_depcomp" conftest.dir
3801   cd conftest.dir
3802   # We will build objects and dependencies in a subdirectory because
3803   # it helps to detect inapplicable dependency modes.  For instance
3804   # both Tru64's cc and ICC support -MD to output dependencies as a
3805   # side effect of compilation, but ICC will put the dependencies in
3806   # the current directory while Tru64 will put them in the object
3807   # directory.
3808   mkdir sub
3809
3810   am_cv_CC_dependencies_compiler_type=none
3811   if test "$am_compiler_list" = ""; then
3812      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813   fi
3814   for depmode in $am_compiler_list; do
3815     # Setup a source with many dependencies, because some compilers
3816     # like to wrap large dependency lists on column 80 (with \), and
3817     # we should not choose a depcomp mode which is confused by this.
3818     #
3819     # We need to recreate these files for each test, as the compiler may
3820     # overwrite some of them when testing with obscure command lines.
3821     # This happens at least with the AIX C compiler.
3822     : > sub/conftest.c
3823     for i in 1 2 3 4 5 6; do
3824       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826       # Solaris 8's {/usr,}/bin/sh.
3827       touch sub/conftst$i.h
3828     done
3829     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831     case $depmode in
3832     nosideeffect)
3833       # after this tag, mechanisms are not by side-effect, so they'll
3834       # only be used when explicitly requested
3835       if test "x$enable_dependency_tracking" = xyes; then
3836         continue
3837       else
3838         break
3839       fi
3840       ;;
3841     none) break ;;
3842     esac
3843     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844     # mode.  It turns out that the SunPro C++ compiler does not properly
3845     # handle `-M -o', and we need to detect this.
3846     if depmode=$depmode \
3847        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3848        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3850          >/dev/null 2>conftest.err &&
3851        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3853        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854       # icc doesn't choke on unknown options, it will just issue warnings
3855       # or remarks (even with -Werror).  So we grep stderr for any message
3856       # that says an option was ignored or not supported.
3857       # When given -MP, icc 7.0 and 7.1 complain thusly:
3858       #   icc: Command line warning: ignoring option '-M'; no argument required
3859       # The diagnosis changed in icc 8.0:
3860       #   icc: Command line remark: option '-MP' not supported
3861       if (grep 'ignoring option' conftest.err ||
3862           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863         am_cv_CC_dependencies_compiler_type=$depmode
3864         break
3865       fi
3866     fi
3867   done
3868
3869   cd ..
3870   rm -rf conftest.dir
3871 else
3872   am_cv_CC_dependencies_compiler_type=none
3873 fi
3874
3875 fi
3876 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3877 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3878 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
3880
3881
3882 if
3883   test "x$enable_dependency_tracking" != xno \
3884   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3885   am__fastdepCC_TRUE=
3886   am__fastdepCC_FALSE='#'
3887 else
3888   am__fastdepCC_TRUE='#'
3889   am__fastdepCC_FALSE=
3890 fi
3891
3892
3893
3894
3895   TCPW_MSG="no"
3896
3897 # Check whether --with-tcp-wrappers was given.
3898 if test "${with_tcp_wrappers+set}" = set; then
3899   withval=$with_tcp_wrappers; with_tcpw=$withval
3900 else
3901   with_tcpw=yes
3902 fi
3903
3904         if test "x$with_tcpw" != "xno" ; then
3905             saved_LIBS="$LIBS"
3906             saved_LDFLAGS="$LDFLAGS"
3907             saved_CPPFLAGS="$CPPFLAGS"
3908             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3909                 if test -d "${with_tcpw}/lib"; then
3910                     if test -n "${need_dash_r}"; then
3911                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3912                     else
3913                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3914                     fi
3915                 else
3916                     if test -n "${need_dash_r}"; then
3917                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3918                     else
3919                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3920                     fi
3921                 fi
3922                 if test -d "${with_tcpw}/include"; then
3923                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3924                 else
3925                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3926                 fi
3927             fi
3928             LIBWRAP="-lwrap"
3929             LIBS="$LIBWRAP $LIBS"
3930             { echo "$as_me:$LINENO: checking for libwrap" >&5
3931 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932             cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938
3939                 #include <tcpd.h>
3940                 int deny_severity = 0, allow_severity = 0;
3941
3942 int
3943 main ()
3944 {
3945 hosts_access(0);
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957   (eval "$ac_link") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && {
3964          test -z "$ac_c_werror_flag" ||
3965          test ! -s conftest.err
3966        } && test -s conftest$ac_exeext &&
3967        $as_test_x conftest$ac_exeext; then
3968
3969                 { echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6; }
3971
3972
3973 cat >>confdefs.h <<\_ACEOF
3974 #define LIBWRAP 1
3975 _ACEOF
3976
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define HAVE_LIBWRAP 1
3980 _ACEOF
3981
3982
3983 cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_TCP_WRAPPER 1
3985 _ACEOF
3986
3987                 TCPW_MSG="yes"
3988
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3995 echo "$as_me: error: *** libwrap missing" >&2;}
3996    { (exit 1); exit 1; }; }
3997
3998
3999 fi
4000
4001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4002       conftest$ac_exeext conftest.$ac_ext
4003             LIBS="$saved_LIBS"
4004         fi
4005
4006
4007
4008
4009
4010 # Arrange for large-file support
4011 # Check whether --enable-largefile was given.
4012 if test "${enable_largefile+set}" = set; then
4013   enableval=$enable_largefile;
4014 fi
4015
4016 if test "$enable_largefile" != no; then
4017
4018   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4019 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4020 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   ac_cv_sys_largefile_CC=no
4024      if test "$GCC" != yes; then
4025        ac_save_CC=$CC
4026        while :; do
4027          # IRIX 6.2 and later do not support large files by default,
4028          # so use the C compiler's -n32 option if that helps.
4029          cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 #include <sys/types.h>
4036  /* Check that off_t can represent 2**63 - 1 correctly.
4037     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4038     since some C++ compilers masquerading as C compilers
4039     incorrectly reject 9223372036854775807.  */
4040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4041   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4042                        && LARGE_OFF_T % 2147483647 == 1)
4043                       ? 1 : -1];
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052          rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } && {
4066          test -z "$ac_c_werror_flag" ||
4067          test ! -s conftest.err
4068        } && test -s conftest.$ac_objext; then
4069   break
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074
4075 fi
4076
4077 rm -f core conftest.err conftest.$ac_objext
4078          CC="$CC -n32"
4079          rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } && {
4093          test -z "$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        } && test -s conftest.$ac_objext; then
4096   ac_cv_sys_largefile_CC=' -n32'; break
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext
4105          break
4106        done
4107        CC=$ac_save_CC
4108        rm -f conftest.$ac_ext
4109     fi
4110 fi
4111 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4112 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4113   if test "$ac_cv_sys_largefile_CC" != no; then
4114     CC=$CC$ac_cv_sys_largefile_CC
4115   fi
4116
4117   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4118 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4119 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   while :; do
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #include <sys/types.h>
4130  /* Check that off_t can represent 2**63 - 1 correctly.
4131     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4132     since some C++ compilers masquerading as C compilers
4133     incorrectly reject 9223372036854775807.  */
4134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4135   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4136                        && LARGE_OFF_T % 2147483647 == 1)
4137                       ? 1 : -1];
4138 int
4139 main ()
4140 {
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (ac_try="$ac_compile"
4148 case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_compile") 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } && {
4160          test -z "$ac_c_werror_flag" ||
4161          test ! -s conftest.err
4162        } && test -s conftest.$ac_objext; then
4163   ac_cv_sys_file_offset_bits=no; break
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168
4169 fi
4170
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #define _FILE_OFFSET_BITS 64
4179 #include <sys/types.h>
4180  /* Check that off_t can represent 2**63 - 1 correctly.
4181     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182     since some C++ compilers masquerading as C compilers
4183     incorrectly reject 9223372036854775807.  */
4184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186                        && LARGE_OFF_T % 2147483647 == 1)
4187                       ? 1 : -1];
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_compile") 2>conftest.er1
4204   ac_status=$?
4205   grep -v '^ *+' conftest.er1 >conftest.err
4206   rm -f conftest.er1
4207   cat conftest.err >&5
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); } && {
4210          test -z "$ac_c_werror_flag" ||
4211          test ! -s conftest.err
4212        } && test -s conftest.$ac_objext; then
4213   ac_cv_sys_file_offset_bits=64; break
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218
4219 fi
4220
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222   ac_cv_sys_file_offset_bits=unknown
4223   break
4224 done
4225 fi
4226 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4227 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4228 case $ac_cv_sys_file_offset_bits in #(
4229   no | unknown) ;;
4230   *)
4231 cat >>confdefs.h <<_ACEOF
4232 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4233 _ACEOF
4234 ;;
4235 esac
4236 rm -f conftest*
4237   if test $ac_cv_sys_file_offset_bits = unknown; then
4238     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4239 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4240 if test "${ac_cv_sys_large_files+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   while :; do
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <sys/types.h>
4251  /* Check that off_t can represent 2**63 - 1 correctly.
4252     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4253     since some C++ compilers masquerading as C compilers
4254     incorrectly reject 9223372036854775807.  */
4255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4256   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4257                        && LARGE_OFF_T % 2147483647 == 1)
4258                       ? 1 : -1];
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_compile") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && {
4281          test -z "$ac_c_werror_flag" ||
4282          test ! -s conftest.err
4283        } && test -s conftest.$ac_objext; then
4284   ac_cv_sys_large_files=no; break
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #define _LARGE_FILES 1
4300 #include <sys/types.h>
4301  /* Check that off_t can represent 2**63 - 1 correctly.
4302     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4303     since some C++ compilers masquerading as C compilers
4304     incorrectly reject 9223372036854775807.  */
4305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4306   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4307                        && LARGE_OFF_T % 2147483647 == 1)
4308                       ? 1 : -1];
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_compile") 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } && {
4331          test -z "$ac_c_werror_flag" ||
4332          test ! -s conftest.err
4333        } && test -s conftest.$ac_objext; then
4334   ac_cv_sys_large_files=1; break
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343   ac_cv_sys_large_files=unknown
4344   break
4345 done
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4348 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4349 case $ac_cv_sys_large_files in #(
4350   no | unknown) ;;
4351   *)
4352 cat >>confdefs.h <<_ACEOF
4353 #define _LARGE_FILES $ac_cv_sys_large_files
4354 _ACEOF
4355 ;;
4356 esac
4357 rm -f conftest*
4358   fi
4359 fi
4360
4361
4362
4363 ac_config_headers="$ac_config_headers support/include/config.h"
4364
4365
4366 # Checks for programs.
4367 ac_ext=cpp
4368 ac_cpp='$CXXCPP $CPPFLAGS'
4369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4372 if test -z "$CXX"; then
4373   if test -n "$CCC"; then
4374     CXX=$CCC
4375   else
4376     if test -n "$ac_tool_prefix"; then
4377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4378   do
4379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_CXX+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$CXX"; then
4387   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 CXX=$ac_cv_prog_CXX
4407 if test -n "$CXX"; then
4408   { echo "$as_me:$LINENO: result: $CXX" >&5
4409 echo "${ECHO_T}$CXX" >&6; }
4410 else
4411   { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4413 fi
4414
4415
4416     test -n "$CXX" && break
4417   done
4418 fi
4419 if test -z "$CXX"; then
4420   ac_ct_CXX=$CXX
4421   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4422 do
4423   # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$ac_ct_CXX"; then
4431   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_ac_ct_CXX="$ac_prog"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4451 if test -n "$ac_ct_CXX"; then
4452   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4453 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460   test -n "$ac_ct_CXX" && break
4461 done
4462
4463   if test "x$ac_ct_CXX" = x; then
4464     CXX="g++"
4465   else
4466     case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4469 whose name does not start with the host triplet.  If you think this
4470 configuration is useful to you, please write to autoconf@gnu.org." >&5
4471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4472 whose name does not start with the host triplet.  If you think this
4473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476     CXX=$ac_ct_CXX
4477   fi
4478 fi
4479
4480   fi
4481 fi
4482 # Provide some information about the compiler.
4483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4484 ac_compiler=`set X $ac_compile; echo $2`
4485 { (ac_try="$ac_compiler --version >&5"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_compiler --version >&5") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }
4495 { (ac_try="$ac_compiler -v >&5"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501   (eval "$ac_compiler -v >&5") 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }
4505 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }
4515
4516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527
4528 int
4529 main ()
4530 {
4531 #ifndef __GNUC__
4532        choke me
4533 #endif
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && {
4553          test -z "$ac_cxx_werror_flag" ||
4554          test ! -s conftest.err
4555        } && test -s conftest.$ac_objext; then
4556   ac_compiler_gnu=yes
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561         ac_compiler_gnu=no
4562 fi
4563
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566
4567 fi
4568 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4569 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4570 GXX=`test $ac_compiler_gnu = yes && echo yes`
4571 ac_test_CXXFLAGS=${CXXFLAGS+set}
4572 ac_save_CXXFLAGS=$CXXFLAGS
4573 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4574 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_cxx_g+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4579    ac_cxx_werror_flag=yes
4580    ac_cv_prog_cxx_g=no
4581    CXXFLAGS="-g"
4582    cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h.  */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && {
4611          test -z "$ac_cxx_werror_flag" ||
4612          test ! -s conftest.err
4613        } && test -s conftest.$ac_objext; then
4614   ac_cv_prog_cxx_g=yes
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619         CXXFLAGS=""
4620       cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626
4627 int
4628 main ()
4629 {
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_compile") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } && {
4649          test -z "$ac_cxx_werror_flag" ||
4650          test ! -s conftest.err
4651        } && test -s conftest.$ac_objext; then
4652   :
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4658          CXXFLAGS="-g"
4659          cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665
4666 int
4667 main ()
4668 {
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4676 case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681   (eval "$ac_compile") 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } && {
4688          test -z "$ac_cxx_werror_flag" ||
4689          test ! -s conftest.err
4690        } && test -s conftest.$ac_objext; then
4691   ac_cv_prog_cxx_g=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696
4697 fi
4698
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 fi
4708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4709 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4710 if test "$ac_test_CXXFLAGS" = set; then
4711   CXXFLAGS=$ac_save_CXXFLAGS
4712 elif test $ac_cv_prog_cxx_g = yes; then
4713   if test "$GXX" = yes; then
4714     CXXFLAGS="-g -O2"
4715   else
4716     CXXFLAGS="-g"
4717   fi
4718 else
4719   if test "$GXX" = yes; then
4720     CXXFLAGS="-O2"
4721   else
4722     CXXFLAGS=
4723   fi
4724 fi
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731 depcc="$CXX"  am_compiler_list=
4732
4733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4735 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4739   # We make a subdir and do the tests there.  Otherwise we can end up
4740   # making bogus files that we don't know about and never remove.  For
4741   # instance it was reported that on HP-UX the gcc test will end up
4742   # making a dummy file named `D' -- because `-MD' means `put the output
4743   # in D'.
4744   mkdir conftest.dir
4745   # Copy depcomp to subdir because otherwise we won't find it if we're
4746   # using a relative directory.
4747   cp "$am_depcomp" conftest.dir
4748   cd conftest.dir
4749   # We will build objects and dependencies in a subdirectory because
4750   # it helps to detect inapplicable dependency modes.  For instance
4751   # both Tru64's cc and ICC support -MD to output dependencies as a
4752   # side effect of compilation, but ICC will put the dependencies in
4753   # the current directory while Tru64 will put them in the object
4754   # directory.
4755   mkdir sub
4756
4757   am_cv_CXX_dependencies_compiler_type=none
4758   if test "$am_compiler_list" = ""; then
4759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4760   fi
4761   for depmode in $am_compiler_list; do
4762     # Setup a source with many dependencies, because some compilers
4763     # like to wrap large dependency lists on column 80 (with \), and
4764     # we should not choose a depcomp mode which is confused by this.
4765     #
4766     # We need to recreate these files for each test, as the compiler may
4767     # overwrite some of them when testing with obscure command lines.
4768     # This happens at least with the AIX C compiler.
4769     : > sub/conftest.c
4770     for i in 1 2 3 4 5 6; do
4771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4773       # Solaris 8's {/usr,}/bin/sh.
4774       touch sub/conftst$i.h
4775     done
4776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4777
4778     case $depmode in
4779     nosideeffect)
4780       # after this tag, mechanisms are not by side-effect, so they'll
4781       # only be used when explicitly requested
4782       if test "x$enable_dependency_tracking" = xyes; then
4783         continue
4784       else
4785         break
4786       fi
4787       ;;
4788     none) break ;;
4789     esac
4790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4791     # mode.  It turns out that the SunPro C++ compiler does not properly
4792     # handle `-M -o', and we need to detect this.
4793     if depmode=$depmode \
4794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4797          >/dev/null 2>conftest.err &&
4798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4801       # icc doesn't choke on unknown options, it will just issue warnings
4802       # or remarks (even with -Werror).  So we grep stderr for any message
4803       # that says an option was ignored or not supported.
4804       # When given -MP, icc 7.0 and 7.1 complain thusly:
4805       #   icc: Command line warning: ignoring option '-M'; no argument required
4806       # The diagnosis changed in icc 8.0:
4807       #   icc: Command line remark: option '-MP' not supported
4808       if (grep 'ignoring option' conftest.err ||
4809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4810         am_cv_CXX_dependencies_compiler_type=$depmode
4811         break
4812       fi
4813     fi
4814   done
4815
4816   cd ..
4817   rm -rf conftest.dir
4818 else
4819   am_cv_CXX_dependencies_compiler_type=none
4820 fi
4821
4822 fi
4823 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4824 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4825 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4826
4827
4828
4829 if
4830   test "x$enable_dependency_tracking" != xno \
4831   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4832   am__fastdepCXX_TRUE=
4833   am__fastdepCXX_FALSE='#'
4834 else
4835   am__fastdepCXX_TRUE='#'
4836   am__fastdepCXX_FALSE=
4837 fi
4838
4839
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 if test -n "$ac_tool_prefix"; then
4846   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_CC+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$CC"; then
4854   ac_cv_prog_CC="$CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 CC=$ac_cv_prog_CC
4874 if test -n "$CC"; then
4875   { echo "$as_me:$LINENO: result: $CC" >&5
4876 echo "${ECHO_T}$CC" >&6; }
4877 else
4878   { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4880 fi
4881
4882
4883 fi
4884 if test -z "$ac_cv_prog_CC"; then
4885   ac_ct_CC=$CC
4886   # Extract the first word of "gcc", so it can be a program name with args.
4887 set dummy gcc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$ac_ct_CC"; then
4894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_prog_ac_ct_CC="gcc"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4914 if test -n "$ac_ct_CC"; then
4915   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4916 echo "${ECHO_T}$ac_ct_CC" >&6; }
4917 else
4918   { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4920 fi
4921
4922   if test "x$ac_ct_CC" = x; then
4923     CC=""
4924   else
4925     case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4928 whose name does not start with the host triplet.  If you think this
4929 configuration is useful to you, please write to autoconf@gnu.org." >&5
4930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4931 whose name does not start with the host triplet.  If you think this
4932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935     CC=$ac_ct_CC
4936   fi
4937 else
4938   CC="$ac_cv_prog_CC"
4939 fi
4940
4941 if test -z "$CC"; then
4942           if test -n "$ac_tool_prefix"; then
4943     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4944 set dummy ${ac_tool_prefix}cc; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   if test -n "$CC"; then
4951   ac_cv_prog_CC="$CC" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_prog_CC="${ac_tool_prefix}cc"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 CC=$ac_cv_prog_CC
4971 if test -n "$CC"; then
4972   { echo "$as_me:$LINENO: result: $CC" >&5
4973 echo "${ECHO_T}$CC" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980   fi
4981 fi
4982 if test -z "$CC"; then
4983   # Extract the first word of "cc", so it can be a program name with args.
4984 set dummy cc; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_CC+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   if test -n "$CC"; then
4991   ac_cv_prog_CC="$CC" # Let the user override the test.
4992 else
4993   ac_prog_rejected=no
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5002        ac_prog_rejected=yes
5003        continue
5004      fi
5005     ac_cv_prog_CC="cc"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 if test $ac_prog_rejected = yes; then
5014   # We found a bogon in the path, so make sure we never use it.
5015   set dummy $ac_cv_prog_CC
5016   shift
5017   if test $# != 0; then
5018     # We chose a different compiler from the bogus one.
5019     # However, it has the same basename, so the bogon will be chosen
5020     # first if we set CC to just the basename; use the full file name.
5021     shift
5022     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5023   fi
5024 fi
5025 fi
5026 fi
5027 CC=$ac_cv_prog_CC
5028 if test -n "$CC"; then
5029   { echo "$as_me:$LINENO: result: $CC" >&5
5030 echo "${ECHO_T}$CC" >&6; }
5031 else
5032   { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$CC"; then
5039   if test -n "$ac_tool_prefix"; then
5040   for ac_prog in cl.exe
5041   do
5042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_CC+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   if test -n "$CC"; then
5050   ac_cv_prog_CC="$CC" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057   for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 CC=$ac_cv_prog_CC
5070 if test -n "$CC"; then
5071   { echo "$as_me:$LINENO: result: $CC" >&5
5072 echo "${ECHO_T}$CC" >&6; }
5073 else
5074   { echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6; }
5076 fi
5077
5078
5079     test -n "$CC" && break
5080   done
5081 fi
5082 if test -z "$CC"; then
5083   ac_ct_CC=$CC
5084   for ac_prog in cl.exe
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test -n "$ac_ct_CC"; then
5094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101   for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_ac_ct_CC="$ac_prog"
5104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5114 if test -n "$ac_ct_CC"; then
5115   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5116 echo "${ECHO_T}$ac_ct_CC" >&6; }
5117 else
5118   { echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6; }
5120 fi
5121
5122
5123   test -n "$ac_ct_CC" && break
5124 done
5125
5126   if test "x$ac_ct_CC" = x; then
5127     CC=""
5128   else
5129     case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5132 whose name does not start with the host triplet.  If you think this
5133 configuration is useful to you, please write to autoconf@gnu.org." >&5
5134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5135 whose name does not start with the host triplet.  If you think this
5136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139     CC=$ac_ct_CC
5140   fi
5141 fi
5142
5143 fi
5144
5145
5146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5147 See \`config.log' for more details." >&5
5148 echo "$as_me: error: no acceptable C compiler found in \$PATH
5149 See \`config.log' for more details." >&2;}
5150    { (exit 1); exit 1; }; }
5151
5152 # Provide some information about the compiler.
5153 echo "$as_me:$LINENO: checking for C compiler version" >&5
5154 ac_compiler=`set X $ac_compile; echo $2`
5155 { (ac_try="$ac_compiler --version >&5"
5156 case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_compiler --version >&5") 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }
5165 { (ac_try="$ac_compiler -v >&5"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171   (eval "$ac_compiler -v >&5") 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }
5175 { (ac_try="$ac_compiler -V >&5"
5176 case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181   (eval "$ac_compiler -V >&5") 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }
5185
5186 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197
5198 int
5199 main ()
5200 {
5201 #ifndef __GNUC__
5202        choke me
5203 #endif
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_compile") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } && {
5223          test -z "$ac_c_werror_flag" ||
5224          test ! -s conftest.err
5225        } && test -s conftest.$ac_objext; then
5226   ac_compiler_gnu=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231         ac_compiler_gnu=no
5232 fi
5233
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237 fi
5238 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5239 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5240 GCC=`test $ac_compiler_gnu = yes && echo yes`
5241 ac_test_CFLAGS=${CFLAGS+set}
5242 ac_save_CFLAGS=$CFLAGS
5243 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5244 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_cc_g+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_save_c_werror_flag=$ac_c_werror_flag
5249    ac_c_werror_flag=yes
5250    ac_cv_prog_cc_g=no
5251    CFLAGS="-g"
5252    cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258
5259 int
5260 main ()
5261 {
5262
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (ac_try="$ac_compile"
5269 case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_compile") 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } && {
5281          test -z "$ac_c_werror_flag" ||
5282          test ! -s conftest.err
5283        } && test -s conftest.$ac_objext; then
5284   ac_cv_prog_cc_g=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289         CFLAGS=""
5290       cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   :
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327         ac_c_werror_flag=$ac_save_c_werror_flag
5328          CFLAGS="-g"
5329          cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335
5336 int
5337 main ()
5338 {
5339
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351   (eval "$ac_compile") 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } && {
5358          test -z "$ac_c_werror_flag" ||
5359          test ! -s conftest.err
5360        } && test -s conftest.$ac_objext; then
5361   ac_cv_prog_cc_g=yes
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366
5367 fi
5368
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 fi
5371
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 fi
5374
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376    ac_c_werror_flag=$ac_save_c_werror_flag
5377 fi
5378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5380 if test "$ac_test_CFLAGS" = set; then
5381   CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383   if test "$GCC" = yes; then
5384     CFLAGS="-g -O2"
5385   else
5386     CFLAGS="-g"
5387   fi
5388 else
5389   if test "$GCC" = yes; then
5390     CFLAGS="-O2"
5391   else
5392     CFLAGS=
5393   fi
5394 fi
5395 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5396 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_cc_c89+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   ac_cv_prog_cc_c89=no
5401 ac_save_CC=$CC
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 #include <stdarg.h>
5409 #include <stdio.h>
5410 #include <sys/types.h>
5411 #include <sys/stat.h>
5412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5413 struct buf { int x; };
5414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5415 static char *e (p, i)
5416      char **p;
5417      int i;
5418 {
5419   return p[i];
5420 }
5421 static char *f (char * (*g) (char **, int), char **p, ...)
5422 {
5423   char *s;
5424   va_list v;
5425   va_start (v,p);
5426   s = g (p, va_arg (v,int));
5427   va_end (v);
5428   return s;
5429 }
5430
5431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5432    function prototypes and stuff, but not '\xHH' hex character constants.
5433    These don't provoke an error unfortunately, instead are silently treated
5434    as 'x'.  The following induces an error, until -std is added to get
5435    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5436    array size at least.  It's necessary to write '\x00'==0 to get something
5437    that's true only with -std.  */
5438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5439
5440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5441    inside strings and character constants.  */
5442 #define FOO(x) 'x'
5443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5444
5445 int test (int i, double x);
5446 struct s1 {int (*f) (int a);};
5447 struct s2 {int (*f) (double a);};
5448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5449 int argc;
5450 char **argv;
5451 int
5452 main ()
5453 {
5454 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5460         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5461 do
5462   CC="$ac_save_CC $ac_arg"
5463   rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_cv_prog_cc_c89=$ac_arg
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext
5489   test "x$ac_cv_prog_cc_c89" != "xno" && break
5490 done
5491 rm -f conftest.$ac_ext
5492 CC=$ac_save_CC
5493
5494 fi
5495 # AC_CACHE_VAL
5496 case "x$ac_cv_prog_cc_c89" in
5497   x)
5498     { echo "$as_me:$LINENO: result: none needed" >&5
5499 echo "${ECHO_T}none needed" >&6; } ;;
5500   xno)
5501     { echo "$as_me:$LINENO: result: unsupported" >&5
5502 echo "${ECHO_T}unsupported" >&6; } ;;
5503   *)
5504     CC="$CC $ac_cv_prog_cc_c89"
5505     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5506 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5507 esac
5508
5509
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515
5516 depcc="$CC"   am_compiler_list=
5517
5518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5524   # We make a subdir and do the tests there.  Otherwise we can end up
5525   # making bogus files that we don't know about and never remove.  For
5526   # instance it was reported that on HP-UX the gcc test will end up
5527   # making a dummy file named `D' -- because `-MD' means `put the output
5528   # in D'.
5529   mkdir conftest.dir
5530   # Copy depcomp to subdir because otherwise we won't find it if we're
5531   # using a relative directory.
5532   cp "$am_depcomp" conftest.dir
5533   cd conftest.dir
5534   # We will build objects and dependencies in a subdirectory because
5535   # it helps to detect inapplicable dependency modes.  For instance
5536   # both Tru64's cc and ICC support -MD to output dependencies as a
5537   # side effect of compilation, but ICC will put the dependencies in
5538   # the current directory while Tru64 will put them in the object
5539   # directory.
5540   mkdir sub
5541
5542   am_cv_CC_dependencies_compiler_type=none
5543   if test "$am_compiler_list" = ""; then
5544      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5545   fi
5546   for depmode in $am_compiler_list; do
5547     # Setup a source with many dependencies, because some compilers
5548     # like to wrap large dependency lists on column 80 (with \), and
5549     # we should not choose a depcomp mode which is confused by this.
5550     #
5551     # We need to recreate these files for each test, as the compiler may
5552     # overwrite some of them when testing with obscure command lines.
5553     # This happens at least with the AIX C compiler.
5554     : > sub/conftest.c
5555     for i in 1 2 3 4 5 6; do
5556       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5557       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5558       # Solaris 8's {/usr,}/bin/sh.
5559       touch sub/conftst$i.h
5560     done
5561     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562
5563     case $depmode in
5564     nosideeffect)
5565       # after this tag, mechanisms are not by side-effect, so they'll
5566       # only be used when explicitly requested
5567       if test "x$enable_dependency_tracking" = xyes; then
5568         continue
5569       else
5570         break
5571       fi
5572       ;;
5573     none) break ;;
5574     esac
5575     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576     # mode.  It turns out that the SunPro C++ compiler does not properly
5577     # handle `-M -o', and we need to detect this.
5578     if depmode=$depmode \
5579        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5580        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5581        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5582          >/dev/null 2>conftest.err &&
5583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5584        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5586       # icc doesn't choke on unknown options, it will just issue warnings
5587       # or remarks (even with -Werror).  So we grep stderr for any message
5588       # that says an option was ignored or not supported.
5589       # When given -MP, icc 7.0 and 7.1 complain thusly:
5590       #   icc: Command line warning: ignoring option '-M'; no argument required
5591       # The diagnosis changed in icc 8.0:
5592       #   icc: Command line remark: option '-MP' not supported
5593       if (grep 'ignoring option' conftest.err ||
5594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5595         am_cv_CC_dependencies_compiler_type=$depmode
5596         break
5597       fi
5598     fi
5599   done
5600
5601   cd ..
5602   rm -rf conftest.dir
5603 else
5604   am_cv_CC_dependencies_compiler_type=none
5605 fi
5606
5607 fi
5608 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5609 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5611
5612
5613
5614 if
5615   test "x$enable_dependency_tracking" != xno \
5616   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5617   am__fastdepCC_TRUE=
5618   am__fastdepCC_FALSE='#'
5619 else
5620   am__fastdepCC_TRUE='#'
5621   am__fastdepCC_FALSE=
5622 fi
5623
5624
5625 ac_ext=c
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5632 # On Suns, sometimes $CPP names a directory.
5633 if test -n "$CPP" && test -d "$CPP"; then
5634   CPP=
5635 fi
5636 if test -z "$CPP"; then
5637   if test "${ac_cv_prog_CPP+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640       # Double quotes because CPP needs to be expanded
5641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5642     do
5643       ac_preproc_ok=false
5644 for ac_c_preproc_warn_flag in '' yes
5645 do
5646   # Use a header file that comes with gcc, so configuring glibc
5647   # with a fresh cross-compiler works.
5648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649   # <limits.h> exists even on freestanding compilers.
5650   # On the NeXT, cc -E runs the code through the compiler's parser,
5651   # not just through cpp. "Syntax error" is here to catch this case.
5652   cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 #ifdef __STDC__
5659 # include <limits.h>
5660 #else
5661 # include <assert.h>
5662 #endif
5663                      Syntax error
5664 _ACEOF
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } >/dev/null && {
5678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5679          test ! -s conftest.err
5680        }; then
5681   :
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686   # Broken: fails on valid input.
5687 continue
5688 fi
5689
5690 rm -f conftest.err conftest.$ac_ext
5691
5692   # OK, works on sane cases.  Now check whether nonexistent headers
5693   # can be detected and how.
5694   cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 #include <ac_nonexistent.h>
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705   *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } >/dev/null && {
5715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716          test ! -s conftest.err
5717        }; then
5718   # Broken: success on invalid input.
5719 continue
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724   # Passes both tests.
5725 ac_preproc_ok=:
5726 break
5727 fi
5728
5729 rm -f conftest.err conftest.$ac_ext
5730
5731 done
5732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5733 rm -f conftest.err conftest.$ac_ext
5734 if $ac_preproc_ok; then
5735   break
5736 fi
5737
5738     done
5739     ac_cv_prog_CPP=$CPP
5740
5741 fi
5742   CPP=$ac_cv_prog_CPP
5743 else
5744   ac_cv_prog_CPP=$CPP
5745 fi
5746 { echo "$as_me:$LINENO: result: $CPP" >&5
5747 echo "${ECHO_T}$CPP" >&6; }
5748 ac_preproc_ok=false
5749 for ac_c_preproc_warn_flag in '' yes
5750 do
5751   # Use a header file that comes with gcc, so configuring glibc
5752   # with a fresh cross-compiler works.
5753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754   # <limits.h> exists even on freestanding compilers.
5755   # On the NeXT, cc -E runs the code through the compiler's parser,
5756   # not just through cpp. "Syntax error" is here to catch this case.
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768                      Syntax error
5769 _ACEOF
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } >/dev/null && {
5783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5784          test ! -s conftest.err
5785        }; then
5786   :
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   # Broken: fails on valid input.
5792 continue
5793 fi
5794
5795 rm -f conftest.err conftest.$ac_ext
5796
5797   # OK, works on sane cases.  Now check whether nonexistent headers
5798   # can be detected and how.
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } >/dev/null && {
5820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821          test ! -s conftest.err
5822        }; then
5823   # Broken: success on invalid input.
5824 continue
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829   # Passes both tests.
5830 ac_preproc_ok=:
5831 break
5832 fi
5833
5834 rm -f conftest.err conftest.$ac_ext
5835
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5840   :
5841 else
5842   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." >&5
5844 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details." >&2;}
5846    { (exit 1); exit 1; }; }
5847 fi
5848
5849 ac_ext=c
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854
5855 # Find a good install program.  We prefer a C program (faster),
5856 # so one script is as good as another.  But avoid the broken or
5857 # incompatible versions:
5858 # SysV /etc/install, /usr/sbin/install
5859 # SunOS /usr/etc/install
5860 # IRIX /sbin/install
5861 # AIX /bin/install
5862 # AmigaOS /C/install, which installs bootblocks on floppy discs
5863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5866 # OS/2's system install, which has a completely different semantic
5867 # ./install, which can be erroneously created by make from ./install.sh.
5868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5870 if test -z "$INSTALL"; then
5871 if test "${ac_cv_path_install+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   # Account for people who put trailing slashes in PATH elements.
5880 case $as_dir/ in
5881   ./ | .// | /cC/* | \
5882   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5883   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5884   /usr/ucb/* ) ;;
5885   *)
5886     # OSF1 and SCO ODT 3.0 have their own names for install.
5887     # Don't use installbsd from OSF since it installs stuff as root
5888     # by default.
5889     for ac_prog in ginstall scoinst install; do
5890       for ac_exec_ext in '' $ac_executable_extensions; do
5891         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5892           if test $ac_prog = install &&
5893             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5894             # AIX install.  It has an incompatible calling convention.
5895             :
5896           elif test $ac_prog = install &&
5897             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5898             # program-specific install script used by HP pwplus--don't use.
5899             :
5900           else
5901             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5902             break 3
5903           fi
5904         fi
5905       done
5906     done
5907     ;;
5908 esac
5909 done
5910 IFS=$as_save_IFS
5911
5912
5913 fi
5914   if test "${ac_cv_path_install+set}" = set; then
5915     INSTALL=$ac_cv_path_install
5916   else
5917     # As a last resort, use the slow shell script.  Don't cache a
5918     # value for INSTALL within a source directory, because that will
5919     # break other packages using the cache if that directory is
5920     # removed, or if the value is a relative name.
5921     INSTALL=$ac_install_sh
5922   fi
5923 fi
5924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5925 echo "${ECHO_T}$INSTALL" >&6; }
5926
5927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5928 # It thinks the first close brace ends the variable substitution.
5929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5930
5931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5932
5933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5934
5935 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5937 LN_S=$as_ln_s
5938 if test "$LN_S" = "ln -s"; then
5939   { echo "$as_me:$LINENO: result: yes" >&5
5940 echo "${ECHO_T}yes" >&6; }
5941 else
5942   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5943 echo "${ECHO_T}no, using $LN_S" >&6; }
5944 fi
5945
5946 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5948 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5949 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   cat >conftest.make <<\_ACEOF
5953 SHELL = /bin/sh
5954 all:
5955         @echo '@@@%%%=$(MAKE)=@@@%%%'
5956 _ACEOF
5957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5959   *@@@%%%=?*=@@@%%%*)
5960     eval ac_cv_prog_make_${ac_make}_set=yes;;
5961   *)
5962     eval ac_cv_prog_make_${ac_make}_set=no;;
5963 esac
5964 rm -f conftest.make
5965 fi
5966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5967   { echo "$as_me:$LINENO: result: yes" >&5
5968 echo "${ECHO_T}yes" >&6; }
5969   SET_MAKE=
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973   SET_MAKE="MAKE=${MAKE-make}"
5974 fi
5975
5976 # Check whether --enable-shared was given.
5977 if test "${enable_shared+set}" = set; then
5978   enableval=$enable_shared; p=${PACKAGE-default}
5979     case $enableval in
5980     yes) enable_shared=yes ;;
5981     no) enable_shared=no ;;
5982     *)
5983       enable_shared=no
5984       # Look at the argument we got.  We use all the common list separators.
5985       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5986       for pkg in $enableval; do
5987         IFS="$lt_save_ifs"
5988         if test "X$pkg" = "X$p"; then
5989           enable_shared=yes
5990         fi
5991       done
5992       IFS="$lt_save_ifs"
5993       ;;
5994     esac
5995 else
5996   enable_shared=yes
5997 fi
5998
5999
6000 # Check whether --enable-static was given.
6001 if test "${enable_static+set}" = set; then
6002   enableval=$enable_static; p=${PACKAGE-default}
6003     case $enableval in
6004     yes) enable_static=yes ;;
6005     no) enable_static=no ;;
6006     *)
6007      enable_static=no
6008       # Look at the argument we got.  We use all the common list separators.
6009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6010       for pkg in $enableval; do
6011         IFS="$lt_save_ifs"
6012         if test "X$pkg" = "X$p"; then
6013           enable_static=yes
6014         fi
6015       done
6016       IFS="$lt_save_ifs"
6017       ;;
6018     esac
6019 else
6020   enable_static=yes
6021 fi
6022
6023
6024 # Check whether --enable-fast-install was given.
6025 if test "${enable_fast_install+set}" = set; then
6026   enableval=$enable_fast_install; p=${PACKAGE-default}
6027     case $enableval in
6028     yes) enable_fast_install=yes ;;
6029     no) enable_fast_install=no ;;
6030     *)
6031       enable_fast_install=no
6032       # Look at the argument we got.  We use all the common list separators.
6033       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6034       for pkg in $enableval; do
6035         IFS="$lt_save_ifs"
6036         if test "X$pkg" = "X$p"; then
6037           enable_fast_install=yes
6038         fi
6039       done
6040       IFS="$lt_save_ifs"
6041       ;;
6042     esac
6043 else
6044   enable_fast_install=yes
6045 fi
6046
6047
6048 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6049 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6050 if test "${lt_cv_path_SED+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   # Loop through the user's path and test for sed and gsed.
6054 # Then use that list of sed's as ones to test for truncation.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for lt_ac_prog in sed gsed; do
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6063         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6064       fi
6065     done
6066   done
6067 done
6068 IFS=$as_save_IFS
6069 lt_ac_max=0
6070 lt_ac_count=0
6071 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6072 # along with /bin/sed that truncates output.
6073 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6074   test ! -f $lt_ac_sed && continue
6075   cat /dev/null > conftest.in
6076   lt_ac_count=0
6077   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6078   # Check for GNU sed and select it if it is found.
6079   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6080     lt_cv_path_SED=$lt_ac_sed
6081     break
6082   fi
6083   while true; do
6084     cat conftest.in conftest.in >conftest.tmp
6085     mv conftest.tmp conftest.in
6086     cp conftest.in conftest.nl
6087     echo >>conftest.nl
6088     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6089     cmp -s conftest.out conftest.nl || break
6090     # 10000 chars as input seems more than enough
6091     test $lt_ac_count -gt 10 && break
6092     lt_ac_count=`expr $lt_ac_count + 1`
6093     if test $lt_ac_count -gt $lt_ac_max; then
6094       lt_ac_max=$lt_ac_count
6095       lt_cv_path_SED=$lt_ac_sed
6096     fi
6097   done
6098 done
6099
6100 fi
6101
6102 SED=$lt_cv_path_SED
6103
6104 { echo "$as_me:$LINENO: result: $SED" >&5
6105 echo "${ECHO_T}$SED" >&6; }
6106
6107 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6108 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_GREP+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   # Extract the first word of "grep ggrep" to use in msg output
6113 if test -z "$GREP"; then
6114 set dummy grep ggrep; ac_prog_name=$2
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   ac_path_GREP_found=false
6119 # Loop through the user's path and test for each of PROGNAME-LIST
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125   for ac_prog in grep ggrep; do
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6128     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6129     # Check for GNU ac_path_GREP and select it if it is found.
6130   # Check for GNU $ac_path_GREP
6131 case `"$ac_path_GREP" --version 2>&1` in
6132 *GNU*)
6133   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6134 *)
6135   ac_count=0
6136   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6137   while :
6138   do
6139     cat "conftest.in" "conftest.in" >"conftest.tmp"
6140     mv "conftest.tmp" "conftest.in"
6141     cp "conftest.in" "conftest.nl"
6142     echo 'GREP' >> "conftest.nl"
6143     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6145     ac_count=`expr $ac_count + 1`
6146     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6147       # Best one so far, save it but keep looking for a better one
6148       ac_cv_path_GREP="$ac_path_GREP"
6149       ac_path_GREP_max=$ac_count
6150     fi
6151     # 10*(2^10) chars as input seems more than enough
6152     test $ac_count -gt 10 && break
6153   done
6154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6155 esac
6156
6157
6158     $ac_path_GREP_found && break 3
6159   done
6160 done
6161
6162 done
6163 IFS=$as_save_IFS
6164
6165
6166 fi
6167
6168 GREP="$ac_cv_path_GREP"
6169 if test -z "$GREP"; then
6170   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6172    { (exit 1); exit 1; }; }
6173 fi
6174
6175 else
6176   ac_cv_path_GREP=$GREP
6177 fi
6178
6179
6180 fi
6181 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6182 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6183  GREP="$ac_cv_path_GREP"
6184
6185
6186 { echo "$as_me:$LINENO: checking for egrep" >&5
6187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_EGREP+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6192    then ac_cv_path_EGREP="$GREP -E"
6193    else
6194      # Extract the first word of "egrep" to use in msg output
6195 if test -z "$EGREP"; then
6196 set dummy egrep; ac_prog_name=$2
6197 if test "${ac_cv_path_EGREP+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   ac_path_EGREP_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_prog in egrep; do
6208   for ac_exec_ext in '' $ac_executable_extensions; do
6209     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6210     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6211     # Check for GNU ac_path_EGREP and select it if it is found.
6212   # Check for GNU $ac_path_EGREP
6213 case `"$ac_path_EGREP" --version 2>&1` in
6214 *GNU*)
6215   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6216 *)
6217   ac_count=0
6218   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6219   while :
6220   do
6221     cat "conftest.in" "conftest.in" >"conftest.tmp"
6222     mv "conftest.tmp" "conftest.in"
6223     cp "conftest.in" "conftest.nl"
6224     echo 'EGREP' >> "conftest.nl"
6225     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227     ac_count=`expr $ac_count + 1`
6228     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6229       # Best one so far, save it but keep looking for a better one
6230       ac_cv_path_EGREP="$ac_path_EGREP"
6231       ac_path_EGREP_max=$ac_count
6232     fi
6233     # 10*(2^10) chars as input seems more than enough
6234     test $ac_count -gt 10 && break
6235   done
6236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237 esac
6238
6239
6240     $ac_path_EGREP_found && break 3
6241   done
6242 done
6243
6244 done
6245 IFS=$as_save_IFS
6246
6247
6248 fi
6249
6250 EGREP="$ac_cv_path_EGREP"
6251 if test -z "$EGREP"; then
6252   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6254    { (exit 1); exit 1; }; }
6255 fi
6256
6257 else
6258   ac_cv_path_EGREP=$EGREP
6259 fi
6260
6261
6262    fi
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6265 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6266  EGREP="$ac_cv_path_EGREP"
6267
6268
6269
6270 # Check whether --with-gnu-ld was given.
6271 if test "${with_gnu_ld+set}" = set; then
6272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6273 else
6274   with_gnu_ld=no
6275 fi
6276
6277 ac_prog=ld
6278 if test "$GCC" = yes; then
6279   # Check if gcc -print-prog-name=ld gives a path.
6280   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6282   case $host in
6283   *-*-mingw*)
6284     # gcc leaves a trailing carriage return which upsets mingw
6285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6286   *)
6287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6288   esac
6289   case $ac_prog in
6290     # Accept absolute paths.
6291     [\\/]* | ?:[\\/]*)
6292       re_direlt='/[^/][^/]*/\.\./'
6293       # Canonicalize the pathname of ld
6294       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6295       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6296         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6297       done
6298       test -z "$LD" && LD="$ac_prog"
6299       ;;
6300   "")
6301     # If it fails, then pretend we aren't using GCC.
6302     ac_prog=ld
6303     ;;
6304   *)
6305     # If it is relative, then search for the first ld in PATH.
6306     with_gnu_ld=unknown
6307     ;;
6308   esac
6309 elif test "$with_gnu_ld" = yes; then
6310   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6312 else
6313   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6315 fi
6316 if test "${lt_cv_path_LD+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   if test -z "$LD"; then
6320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6321   for ac_dir in $PATH; do
6322     IFS="$lt_save_ifs"
6323     test -z "$ac_dir" && ac_dir=.
6324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6325       lt_cv_path_LD="$ac_dir/$ac_prog"
6326       # Check to see if the program is GNU ld.  I'd rather use --version,
6327       # but apparently some variants of GNU ld only accept -v.
6328       # Break only if it was the GNU/non-GNU ld that we prefer.
6329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6330       *GNU* | *'with BFD'*)
6331         test "$with_gnu_ld" != no && break
6332         ;;
6333       *)
6334         test "$with_gnu_ld" != yes && break
6335         ;;
6336       esac
6337     fi
6338   done
6339   IFS="$lt_save_ifs"
6340 else
6341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 fi
6343 fi
6344
6345 LD="$lt_cv_path_LD"
6346 if test -n "$LD"; then
6347   { echo "$as_me:$LINENO: result: $LD" >&5
6348 echo "${ECHO_T}$LD" >&6; }
6349 else
6350   { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352 fi
6353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6355    { (exit 1); exit 1; }; }
6356 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6362 case `$LD -v 2>&1 </dev/null` in
6363 *GNU* | *'with BFD'*)
6364   lt_cv_prog_gnu_ld=yes
6365   ;;
6366 *)
6367   lt_cv_prog_gnu_ld=no
6368   ;;
6369 esac
6370 fi
6371 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6373 with_gnu_ld=$lt_cv_prog_gnu_ld
6374
6375
6376 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6377 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6378 if test "${lt_cv_ld_reload_flag+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   lt_cv_ld_reload_flag='-r'
6382 fi
6383 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6384 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6385 reload_flag=$lt_cv_ld_reload_flag
6386 case $reload_flag in
6387 "" | " "*) ;;
6388 *) reload_flag=" $reload_flag" ;;
6389 esac
6390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6391 case $host_os in
6392   darwin*)
6393     if test "$GCC" = yes; then
6394       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6395     else
6396       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397     fi
6398     ;;
6399 esac
6400
6401 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6403 if test "${lt_cv_path_NM+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   if test -n "$NM"; then
6407   # Let the user override the test.
6408   lt_cv_path_NM="$NM"
6409 else
6410   lt_nm_to_check="${ac_tool_prefix}nm"
6411   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6412     lt_nm_to_check="$lt_nm_to_check nm"
6413   fi
6414   for lt_tmp_nm in $lt_nm_to_check; do
6415     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6417       IFS="$lt_save_ifs"
6418       test -z "$ac_dir" && ac_dir=.
6419       tmp_nm="$ac_dir/$lt_tmp_nm"
6420       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6421         # Check to see if the nm accepts a BSD-compat flag.
6422         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6423         #   nm: unknown option "B" ignored
6424         # Tru64's nm complains that /dev/null is an invalid object file
6425         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6426         */dev/null* | *'Invalid file or object type'*)
6427           lt_cv_path_NM="$tmp_nm -B"
6428           break
6429           ;;
6430         *)
6431           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6432           */dev/null*)
6433             lt_cv_path_NM="$tmp_nm -p"
6434             break
6435             ;;
6436           *)
6437             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6438             continue # so that we can try to find one that supports BSD flags
6439             ;;
6440           esac
6441           ;;
6442         esac
6443       fi
6444     done
6445     IFS="$lt_save_ifs"
6446   done
6447   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6448 fi
6449 fi
6450 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6451 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6452 NM="$lt_cv_path_NM"
6453
6454 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6455 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6456 if test "${lt_cv_deplibs_check_method+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   lt_cv_file_magic_cmd='$MAGIC_CMD'
6460 lt_cv_file_magic_test_file=
6461 lt_cv_deplibs_check_method='unknown'
6462 # Need to set the preceding variable on all platforms that support
6463 # interlibrary dependencies.
6464 # 'none' -- dependencies not supported.
6465 # `unknown' -- same as none, but documents that we really don't know.
6466 # 'pass_all' -- all dependencies passed with no checks.
6467 # 'test_compile' -- check by making test program.
6468 # 'file_magic [[regex]]' -- check by looking for files in library path
6469 # which responds to the $file_magic_cmd with a given extended regex.
6470 # If you have `file' or equivalent on your system and you're not sure
6471 # whether `pass_all' will *always* work, you probably want this one.
6472
6473 case $host_os in
6474 aix4* | aix5*)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477
6478 beos*)
6479   lt_cv_deplibs_check_method=pass_all
6480   ;;
6481
6482 bsdi[45]*)
6483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6484   lt_cv_file_magic_cmd='/usr/bin/file -L'
6485   lt_cv_file_magic_test_file=/shlib/libc.so
6486   ;;
6487
6488 cygwin*)
6489   # func_win32_libid is a shell function defined in ltmain.sh
6490   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491   lt_cv_file_magic_cmd='func_win32_libid'
6492   ;;
6493
6494 mingw* | pw32*)
6495   # Base MSYS/MinGW do not provide the 'file' command needed by
6496   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6497   # unless we find 'file', for example because we are cross-compiling.
6498   if ( file / ) >/dev/null 2>&1; then
6499     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6500     lt_cv_file_magic_cmd='func_win32_libid'
6501   else
6502     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6503     lt_cv_file_magic_cmd='$OBJDUMP -f'
6504   fi
6505   ;;
6506
6507 darwin* | rhapsody*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 freebsd* | dragonfly*)
6512   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6513     case $host_cpu in
6514     i*86 )
6515       # Not sure whether the presence of OpenBSD here was a mistake.
6516       # Let's accept both of them until this is cleared up.
6517       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6518       lt_cv_file_magic_cmd=/usr/bin/file
6519       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6520       ;;
6521     esac
6522   else
6523     lt_cv_deplibs_check_method=pass_all
6524   fi
6525   ;;
6526
6527 gnu*)
6528   lt_cv_deplibs_check_method=pass_all
6529   ;;
6530
6531 hpux10.20* | hpux11*)
6532   lt_cv_file_magic_cmd=/usr/bin/file
6533   case $host_cpu in
6534   ia64*)
6535     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6536     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6537     ;;
6538   hppa*64*)
6539     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]'
6540     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6541     ;;
6542   *)
6543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6544     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6545     ;;
6546   esac
6547   ;;
6548
6549 interix[3-9]*)
6550   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6551   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6552   ;;
6553
6554 irix5* | irix6* | nonstopux*)
6555   case $LD in
6556   *-32|*"-32 ") libmagic=32-bit;;
6557   *-n32|*"-n32 ") libmagic=N32;;
6558   *-64|*"-64 ") libmagic=64-bit;;
6559   *) libmagic=never-match;;
6560   esac
6561   lt_cv_deplibs_check_method=pass_all
6562   ;;
6563
6564 # This must be Linux ELF.
6565 linux* | k*bsd*-gnu)
6566   lt_cv_deplibs_check_method=pass_all
6567   ;;
6568
6569 netbsd* | netbsdelf*-gnu)
6570   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6571     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6572   else
6573     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6574   fi
6575   ;;
6576
6577 newos6*)
6578   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6579   lt_cv_file_magic_cmd=/usr/bin/file
6580   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6581   ;;
6582
6583 nto-qnx*)
6584   lt_cv_deplibs_check_method=unknown
6585   ;;
6586
6587 openbsd*)
6588   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6589     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6590   else
6591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6592   fi
6593   ;;
6594
6595 osf3* | osf4* | osf5*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 rdos*)
6600   lt_cv_deplibs_check_method=pass_all
6601   ;;
6602
6603 solaris*)
6604   lt_cv_deplibs_check_method=pass_all
6605   ;;
6606
6607 sysv4 | sysv4.3*)
6608   case $host_vendor in
6609   motorola)
6610     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]'
6611     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6612     ;;
6613   ncr)
6614     lt_cv_deplibs_check_method=pass_all
6615     ;;
6616   sequent)
6617     lt_cv_file_magic_cmd='/bin/file'
6618     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6619     ;;
6620   sni)
6621     lt_cv_file_magic_cmd='/bin/file'
6622     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6623     lt_cv_file_magic_test_file=/lib/libc.so
6624     ;;
6625   siemens)
6626     lt_cv_deplibs_check_method=pass_all
6627     ;;
6628   pc)
6629     lt_cv_deplibs_check_method=pass_all
6630     ;;
6631   esac
6632   ;;
6633
6634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6635   lt_cv_deplibs_check_method=pass_all
6636   ;;
6637 esac
6638
6639 fi
6640 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6641 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6642 file_magic_cmd=$lt_cv_file_magic_cmd
6643 deplibs_check_method=$lt_cv_deplibs_check_method
6644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6645
6646
6647
6648
6649 # If no C compiler was specified, use CC.
6650 LTCC=${LTCC-"$CC"}
6651
6652 # If no C compiler flags were specified, use CFLAGS.
6653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6654
6655 # Allow CC to be a program name with arguments.
6656 compiler=$CC
6657
6658 # Check whether --enable-libtool-lock was given.
6659 if test "${enable_libtool_lock+set}" = set; then
6660   enableval=$enable_libtool_lock;
6661 fi
6662
6663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6664
6665 # Some flags need to be propagated to the compiler or linker for good
6666 # libtool support.
6667 case $host in
6668 ia64-*-hpux*)
6669   # Find out which ABI we are using.
6670   echo 'int i;' > conftest.$ac_ext
6671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672   (eval $ac_compile) 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); }; then
6676     case `/usr/bin/file conftest.$ac_objext` in
6677     *ELF-32*)
6678       HPUX_IA64_MODE="32"
6679       ;;
6680     *ELF-64*)
6681       HPUX_IA64_MODE="64"
6682       ;;
6683     esac
6684   fi
6685   rm -rf conftest*
6686   ;;
6687 *-*-irix6*)
6688   # Find out which ABI we are using.
6689   echo '#line 6689 "configure"' > conftest.$ac_ext
6690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; then
6695    if test "$lt_cv_prog_gnu_ld" = yes; then
6696     case `/usr/bin/file conftest.$ac_objext` in
6697     *32-bit*)
6698       LD="${LD-ld} -melf32bsmip"
6699       ;;
6700     *N32*)
6701       LD="${LD-ld} -melf32bmipn32"
6702       ;;
6703     *64-bit*)
6704       LD="${LD-ld} -melf64bmip"
6705       ;;
6706     esac
6707    else
6708     case `/usr/bin/file conftest.$ac_objext` in
6709     *32-bit*)
6710       LD="${LD-ld} -32"
6711       ;;
6712     *N32*)
6713       LD="${LD-ld} -n32"
6714       ;;
6715     *64-bit*)
6716       LD="${LD-ld} -64"
6717       ;;
6718     esac
6719    fi
6720   fi
6721   rm -rf conftest*
6722   ;;
6723
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|sparc*-*linux*)
6726   # Find out which ABI we are using.
6727   echo 'int i;' > conftest.$ac_ext
6728   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729   (eval $ac_compile) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; then
6733     case `/usr/bin/file conftest.o` in
6734     *32-bit*)
6735       case $host in
6736         x86_64-*kfreebsd*-gnu)
6737           LD="${LD-ld} -m elf_i386_fbsd"
6738           ;;
6739         x86_64-*linux*)
6740           LD="${LD-ld} -m elf_i386"
6741           ;;
6742         ppc64-*linux*|powerpc64-*linux*)
6743           LD="${LD-ld} -m elf32ppclinux"
6744           ;;
6745         s390x-*linux*)
6746           LD="${LD-ld} -m elf_s390"
6747           ;;
6748         sparc64-*linux*)
6749           LD="${LD-ld} -m elf32_sparc"
6750           ;;
6751       esac
6752       ;;
6753     *64-bit*)
6754       case $host in
6755         x86_64-*kfreebsd*-gnu)
6756           LD="${LD-ld} -m elf_x86_64_fbsd"
6757           ;;
6758         x86_64-*linux*)
6759           LD="${LD-ld} -m elf_x86_64"
6760           ;;
6761         ppc*-*linux*|powerpc*-*linux*)
6762           LD="${LD-ld} -m elf64ppc"
6763           ;;
6764         s390*-*linux*)
6765           LD="${LD-ld} -m elf64_s390"
6766           ;;
6767         sparc*-*linux*)
6768           LD="${LD-ld} -m elf64_sparc"
6769           ;;
6770       esac
6771       ;;
6772     esac
6773   fi
6774   rm -rf conftest*
6775   ;;
6776
6777 *-*-sco3.2v5*)
6778   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6779   SAVE_CFLAGS="$CFLAGS"
6780   CFLAGS="$CFLAGS -belf"
6781   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6782 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6783 if test "${lt_cv_cc_needs_belf+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   ac_ext=c
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
6792      cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798
6799 int
6800 main ()
6801 {
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (ac_try="$ac_link"
6809 case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814   (eval "$ac_link") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest$ac_exeext &&
6824        $as_test_x conftest$ac_exeext; then
6825   lt_cv_cc_needs_belf=yes
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830         lt_cv_cc_needs_belf=no
6831 fi
6832
6833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6834       conftest$ac_exeext conftest.$ac_ext
6835      ac_ext=c
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840
6841 fi
6842 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6844   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6845     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6846     CFLAGS="$SAVE_CFLAGS"
6847   fi
6848   ;;
6849 sparc*-*solaris*)
6850   # Find out which ABI we are using.
6851   echo 'int i;' > conftest.$ac_ext
6852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853   (eval $ac_compile) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; then
6857     case `/usr/bin/file conftest.o` in
6858     *64-bit*)
6859       case $lt_cv_prog_gnu_ld in
6860       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6861       *)    LD="${LD-ld} -64" ;;
6862       esac
6863       ;;
6864     esac
6865   fi
6866   rm -rf conftest*
6867   ;;
6868
6869
6870 esac
6871
6872 need_locks="$enable_libtool_lock"
6873
6874
6875
6876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6878 if test "${ac_cv_header_stdc+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <stdlib.h>
6888 #include <stdarg.h>
6889 #include <string.h>
6890 #include <float.h>
6891
6892 int
6893 main ()
6894 {
6895
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_compile") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && {
6914          test -z "$ac_c_werror_flag" ||
6915          test ! -s conftest.err
6916        } && test -s conftest.$ac_objext; then
6917   ac_cv_header_stdc=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922         ac_cv_header_stdc=no
6923 fi
6924
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926
6927 if test $ac_cv_header_stdc = yes; then
6928   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6929   cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 #include <string.h>
6936
6937 _ACEOF
6938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939   $EGREP "memchr" >/dev/null 2>&1; then
6940   :
6941 else
6942   ac_cv_header_stdc=no
6943 fi
6944 rm -f conftest*
6945
6946 fi
6947
6948 if test $ac_cv_header_stdc = yes; then
6949   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 #include <stdlib.h>
6957
6958 _ACEOF
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960   $EGREP "free" >/dev/null 2>&1; then
6961   :
6962 else
6963   ac_cv_header_stdc=no
6964 fi
6965 rm -f conftest*
6966
6967 fi
6968
6969 if test $ac_cv_header_stdc = yes; then
6970   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6971   if test "$cross_compiling" = yes; then
6972   :
6973 else
6974   cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #include <ctype.h>
6981 #include <stdlib.h>
6982 #if ((' ' & 0x0FF) == 0x020)
6983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6985 #else
6986 # define ISLOWER(c) \
6987                    (('a' <= (c) && (c) <= 'i') \
6988                      || ('j' <= (c) && (c) <= 'r') \
6989                      || ('s' <= (c) && (c) <= 'z'))
6990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6991 #endif
6992
6993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6994 int
6995 main ()
6996 {
6997   int i;
6998   for (i = 0; i < 256; i++)
6999     if (XOR (islower (i), ISLOWER (i))
7000         || toupper (i) != TOUPPER (i))
7001       return 2;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest$ac_exeext
7006 if { (ac_try="$ac_link"
7007 case "(($ac_try" in
7008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009   *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012   (eval "$ac_link") 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7016   { (case "(($ac_try" in
7017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018   *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021   (eval "$ac_try") 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); }; }; then
7025   :
7026 else
7027   echo "$as_me: program exited with status $ac_status" >&5
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ( exit $ac_status )
7032 ac_cv_header_stdc=no
7033 fi
7034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035 fi
7036
7037
7038 fi
7039 fi
7040 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7041 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7042 if test $ac_cv_header_stdc = yes; then
7043
7044 cat >>confdefs.h <<\_ACEOF
7045 #define STDC_HEADERS 1
7046 _ACEOF
7047
7048 fi
7049
7050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7061                   inttypes.h stdint.h unistd.h
7062 do
7063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076
7077 #include <$ac_header>
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083   *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086   (eval "$ac_compile") 2>conftest.er1
7087   ac_status=$?
7088   grep -v '^ *+' conftest.er1 >conftest.err
7089   rm -f conftest.er1
7090   cat conftest.err >&5
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } && {
7093          test -z "$ac_c_werror_flag" ||
7094          test ! -s conftest.err
7095        } && test -s conftest.$ac_objext; then
7096   eval "$as_ac_Header=yes"
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101         eval "$as_ac_Header=no"
7102 fi
7103
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 ac_res=`eval echo '${'$as_ac_Header'}'`
7107                { echo "$as_me:$LINENO: result: $ac_res" >&5
7108 echo "${ECHO_T}$ac_res" >&6; }
7109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110   cat >>confdefs.h <<_ACEOF
7111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 _ACEOF
7113
7114 fi
7115
7116 done
7117
7118
7119
7120 for ac_header in dlfcn.h
7121 do
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 fi
7129 ac_res=`eval echo '${'$as_ac_Header'}'`
7130                { echo "$as_me:$LINENO: result: $ac_res" >&5
7131 echo "${ECHO_T}$ac_res" >&6; }
7132 else
7133   # Is the header compilable?
7134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h.  */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h.  */
7142 $ac_includes_default
7143 #include <$ac_header>
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7147 case "(($ac_try" in
7148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149   *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152   (eval "$ac_compile") 2>conftest.er1
7153   ac_status=$?
7154   grep -v '^ *+' conftest.er1 >conftest.err
7155   rm -f conftest.er1
7156   cat conftest.err >&5
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } && {
7159          test -z "$ac_c_werror_flag" ||
7160          test ! -s conftest.err
7161        } && test -s conftest.$ac_objext; then
7162   ac_header_compiler=yes
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167         ac_header_compiler=no
7168 fi
7169
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 echo "${ECHO_T}$ac_header_compiler" >&6; }
7173
7174 # Is the header present?
7175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 #include <$ac_header>
7184 _ACEOF
7185 if { (ac_try="$ac_cpp conftest.$ac_ext"
7186 case "(($ac_try" in
7187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188   *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } >/dev/null && {
7198          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7199          test ! -s conftest.err
7200        }; then
7201   ac_header_preproc=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206   ac_header_preproc=no
7207 fi
7208
7209 rm -f conftest.err conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211 echo "${ECHO_T}$ac_header_preproc" >&6; }
7212
7213 # So?  What about this header?
7214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215   yes:no: )
7216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220     ac_header_preproc=yes
7221     ;;
7222   no:yes:* )
7223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7235     ( cat <<\_ASBOX
7236 ## ------------------------------- ##
7237 ## Report this to nfs@lists.sf.net ##
7238 ## ------------------------------- ##
7239 _ASBOX
7240      ) | sed "s/^/$as_me: WARNING:     /" >&2
7241     ;;
7242 esac
7243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   eval "$as_ac_Header=\$ac_header_preproc"
7249 fi
7250 ac_res=`eval echo '${'$as_ac_Header'}'`
7251                { echo "$as_me:$LINENO: result: $ac_res" >&5
7252 echo "${ECHO_T}$ac_res" >&6; }
7253
7254 fi
7255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256   cat >>confdefs.h <<_ACEOF
7257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 _ACEOF
7259
7260 fi
7261
7262 done
7263
7264
7265
7266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7267     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7268     (test "X$CXX" != "Xg++"))) ; then
7269   ac_ext=cpp
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7275 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7276 if test -z "$CXXCPP"; then
7277   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280       # Double quotes because CXXCPP needs to be expanded
7281     for CXXCPP in "$CXX -E" "/lib/cpp"
7282     do
7283       ac_preproc_ok=false
7284 for ac_cxx_preproc_warn_flag in '' yes
7285 do
7286   # Use a header file that comes with gcc, so configuring glibc
7287   # with a fresh cross-compiler works.
7288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289   # <limits.h> exists even on freestanding compilers.
7290   # On the NeXT, cc -E runs the code through the compiler's parser,
7291   # not just through cpp. "Syntax error" is here to catch this case.
7292   cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 #ifdef __STDC__
7299 # include <limits.h>
7300 #else
7301 # include <assert.h>
7302 #endif
7303                      Syntax error
7304 _ACEOF
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } >/dev/null && {
7318          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7319          test ! -s conftest.err
7320        }; then
7321   :
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326   # Broken: fails on valid input.
7327 continue
7328 fi
7329
7330 rm -f conftest.err conftest.$ac_ext
7331
7332   # OK, works on sane cases.  Now check whether nonexistent headers
7333   # can be detected and how.
7334   cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 #include <ac_nonexistent.h>
7341 _ACEOF
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7343 case "(($ac_try" in
7344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345   *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } >/dev/null && {
7355          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7356          test ! -s conftest.err
7357        }; then
7358   # Broken: success on invalid input.
7359 continue
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364   # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7367 fi
7368
7369 rm -f conftest.err conftest.$ac_ext
7370
7371 done
7372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
7374 if $ac_preproc_ok; then
7375   break
7376 fi
7377
7378     done
7379     ac_cv_prog_CXXCPP=$CXXCPP
7380
7381 fi
7382   CXXCPP=$ac_cv_prog_CXXCPP
7383 else
7384   ac_cv_prog_CXXCPP=$CXXCPP
7385 fi
7386 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7387 echo "${ECHO_T}$CXXCPP" >&6; }
7388 ac_preproc_ok=false
7389 for ac_cxx_preproc_warn_flag in '' yes
7390 do
7391   # Use a header file that comes with gcc, so configuring glibc
7392   # with a fresh cross-compiler works.
7393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394   # <limits.h> exists even on freestanding compilers.
7395   # On the NeXT, cc -E runs the code through the compiler's parser,
7396   # not just through cpp. "Syntax error" is here to catch this case.
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408                      Syntax error
7409 _ACEOF
7410 if { (ac_try="$ac_cpp conftest.$ac_ext"
7411 case "(($ac_try" in
7412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413   *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } >/dev/null && {
7423          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7424          test ! -s conftest.err
7425        }; then
7426   :
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431   # Broken: fails on valid input.
7432 continue
7433 fi
7434
7435 rm -f conftest.err conftest.$ac_ext
7436
7437   # OK, works on sane cases.  Now check whether nonexistent headers
7438   # can be detected and how.
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <ac_nonexistent.h>
7446 _ACEOF
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 case "(($ac_try" in
7449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450   *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } >/dev/null && {
7460          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7461          test ! -s conftest.err
7462        }; then
7463   # Broken: success on invalid input.
7464 continue
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469   # Passes both tests.
7470 ac_preproc_ok=:
7471 break
7472 fi
7473
7474 rm -f conftest.err conftest.$ac_ext
7475
7476 done
7477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7478 rm -f conftest.err conftest.$ac_ext
7479 if $ac_preproc_ok; then
7480   :
7481 else
7482   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7483 See \`config.log' for more details." >&5
7484 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7485 See \`config.log' for more details." >&2;}
7486    { (exit 1); exit 1; }; }
7487 fi
7488
7489 ac_ext=cpp
7490 ac_cpp='$CXXCPP $CPPFLAGS'
7491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7494
7495 fi
7496
7497
7498 ac_ext=f
7499 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7500 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7502 if test -n "$ac_tool_prefix"; then
7503   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
7504   do
7505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_F77+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$F77"; then
7513   ac_cv_prog_F77="$F77" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 F77=$ac_cv_prog_F77
7533 if test -n "$F77"; then
7534   { echo "$as_me:$LINENO: result: $F77" >&5
7535 echo "${ECHO_T}$F77" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542     test -n "$F77" && break
7543   done
7544 fi
7545 if test -z "$F77"; then
7546   ac_ct_F77=$F77
7547   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
7548 do
7549   # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$ac_ct_F77"; then
7557   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_F77="$ac_prog"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7577 if test -n "$ac_ct_F77"; then
7578   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7579 echo "${ECHO_T}$ac_ct_F77" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586   test -n "$ac_ct_F77" && break
7587 done
7588
7589   if test "x$ac_ct_F77" = x; then
7590     F77=""
7591   else
7592     case $cross_compiling:$ac_tool_warned in
7593 yes:)
7594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7595 whose name does not start with the host triplet.  If you think this
7596 configuration is useful to you, please write to autoconf@gnu.org." >&5
7597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7598 whose name does not start with the host triplet.  If you think this
7599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     F77=$ac_ct_F77
7603   fi
7604 fi
7605
7606
7607 # Provide some information about the compiler.
7608 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7609 ac_compiler=`set X $ac_compile; echo $2`
7610 { (ac_try="$ac_compiler --version >&5"
7611 case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_compiler --version >&5") 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }
7620 { (ac_try="$ac_compiler -v >&5"
7621 case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_compiler -v >&5") 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }
7630 { (ac_try="$ac_compiler -V >&5"
7631 case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636   (eval "$ac_compiler -V >&5") 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }
7640 rm -f a.out
7641
7642 # If we don't use `.F' as extension, the preprocessor is not run on the
7643 # input file.  (Note that this only needs to work for GNU compilers.)
7644 ac_save_ext=$ac_ext
7645 ac_ext=F
7646 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7647 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7648 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   cat >conftest.$ac_ext <<_ACEOF
7652       program main
7653 #ifndef __GNUC__
7654        choke me
7655 #endif
7656
7657       end
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663   *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666   (eval "$ac_compile") 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } && {
7673          test -z "$ac_f77_werror_flag" ||
7674          test ! -s conftest.err
7675        } && test -s conftest.$ac_objext; then
7676   ac_compiler_gnu=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         ac_compiler_gnu=no
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7686
7687 fi
7688 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7689 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7690 ac_ext=$ac_save_ext
7691 ac_test_FFLAGS=${FFLAGS+set}
7692 ac_save_FFLAGS=$FFLAGS
7693 FFLAGS=
7694 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7695 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_f77_g+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   FFLAGS=-g
7700 cat >conftest.$ac_ext <<_ACEOF
7701       program main
7702
7703       end
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709   *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712   (eval "$ac_compile") 2>conftest.er1
7713   ac_status=$?
7714   grep -v '^ *+' conftest.er1 >conftest.err
7715   rm -f conftest.er1
7716   cat conftest.err >&5
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); } && {
7719          test -z "$ac_f77_werror_flag" ||
7720          test ! -s conftest.err
7721        } && test -s conftest.$ac_objext; then
7722   ac_cv_prog_f77_g=yes
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727         ac_cv_prog_f77_g=no
7728 fi
7729
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731
7732 fi
7733 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7734 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7735 if test "$ac_test_FFLAGS" = set; then
7736   FFLAGS=$ac_save_FFLAGS
7737 elif test $ac_cv_prog_f77_g = yes; then
7738   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7739     FFLAGS="-g -O2"
7740   else
7741     FFLAGS="-g"
7742   fi
7743 else
7744   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7745     FFLAGS="-O2"
7746   else
7747     FFLAGS=
7748   fi
7749 fi
7750
7751 G77=`test $ac_compiler_gnu = yes && echo yes`
7752 ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758
7759
7760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7761
7762 # find the maximum length of command line arguments
7763 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768     i=0
7769   teststring="ABCD"
7770
7771   case $build_os in
7772   msdosdjgpp*)
7773     # On DJGPP, this test can blow up pretty badly due to problems in libc
7774     # (any single argument exceeding 2000 bytes causes a buffer overrun
7775     # during glob expansion).  Even if it were fixed, the result of this
7776     # check would be larger than it should be.
7777     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7778     ;;
7779
7780   gnu*)
7781     # Under GNU Hurd, this test is not required because there is
7782     # no limit to the length of command line arguments.
7783     # Libtool will interpret -1 as no limit whatsoever
7784     lt_cv_sys_max_cmd_len=-1;
7785     ;;
7786
7787   cygwin* | mingw*)
7788     # On Win9x/ME, this test blows up -- it succeeds, but takes
7789     # about 5 minutes as the teststring grows exponentially.
7790     # Worse, since 9x/ME are not pre-emptively multitasking,
7791     # you end up with a "frozen" computer, even though with patience
7792     # the test eventually succeeds (with a max line length of 256k).
7793     # Instead, let's just punt: use the minimum linelength reported by
7794     # all of the supported platforms: 8192 (on NT/2K/XP).
7795     lt_cv_sys_max_cmd_len=8192;
7796     ;;
7797
7798   amigaos*)
7799     # On AmigaOS with pdksh, this test takes hours, literally.
7800     # So we just punt and use a minimum line length of 8192.
7801     lt_cv_sys_max_cmd_len=8192;
7802     ;;
7803
7804   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7805     # This has been around since 386BSD, at least.  Likely further.
7806     if test -x /sbin/sysctl; then
7807       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7808     elif test -x /usr/sbin/sysctl; then
7809       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7810     else
7811       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7812     fi
7813     # And add a safety zone
7814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7816     ;;
7817
7818   interix*)
7819     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7820     lt_cv_sys_max_cmd_len=196608
7821     ;;
7822
7823   osf*)
7824     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7825     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7826     # nice to cause kernel panics so lets avoid the loop below.
7827     # First set a reasonable default.
7828     lt_cv_sys_max_cmd_len=16384
7829     #
7830     if test -x /sbin/sysconfig; then
7831       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7832         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7833       esac
7834     fi
7835     ;;
7836   sco3.2v5*)
7837     lt_cv_sys_max_cmd_len=102400
7838     ;;
7839   sysv5* | sco5v6* | sysv4.2uw2*)
7840     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7841     if test -n "$kargmax"; then
7842       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7843     else
7844       lt_cv_sys_max_cmd_len=32768
7845     fi
7846     ;;
7847   *)
7848     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7849     if test -n "$lt_cv_sys_max_cmd_len"; then
7850       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7851       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7852     else
7853       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7854       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7855                = "XX$teststring") >/dev/null 2>&1 &&
7856               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7857               lt_cv_sys_max_cmd_len=$new_result &&
7858               test $i != 17 # 1/2 MB should be enough
7859       do
7860         i=`expr $i + 1`
7861         teststring=$teststring$teststring
7862       done
7863       teststring=
7864       # Add a significant safety factor because C++ compilers can tack on massive
7865       # amounts of additional arguments before passing them to the linker.
7866       # It appears as though 1/2 is a usable value.
7867       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7868     fi
7869     ;;
7870   esac
7871
7872 fi
7873
7874 if test -n $lt_cv_sys_max_cmd_len ; then
7875   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7876 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7877 else
7878   { echo "$as_me:$LINENO: result: none" >&5
7879 echo "${ECHO_T}none" >&6; }
7880 fi
7881
7882
7883
7884
7885
7886 # Check for command to grab the raw symbol name followed by C symbol from nm.
7887 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7888 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7889 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892
7893 # These are sane defaults that work on at least a few old systems.
7894 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7895
7896 # Character class describing NM global symbol codes.
7897 symcode='[BCDEGRST]'
7898
7899 # Regexp to match symbols that can be accessed directly from C.
7900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7901
7902 # Transform an extracted symbol line into a proper C declaration
7903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7904
7905 # Transform an extracted symbol line into symbol name and symbol address
7906 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'"
7907
7908 # Define system-specific variables.
7909 case $host_os in
7910 aix*)
7911   symcode='[BCDT]'
7912   ;;
7913 cygwin* | mingw* | pw32*)
7914   symcode='[ABCDGISTW]'
7915   ;;
7916 hpux*) # Its linker distinguishes data from code symbols
7917   if test "$host_cpu" = ia64; then
7918     symcode='[ABCDEGRST]'
7919   fi
7920   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7921   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'"
7922   ;;
7923 linux* | k*bsd*-gnu)
7924   if test "$host_cpu" = ia64; then
7925     symcode='[ABCDGIRSTW]'
7926     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7927     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'"
7928   fi
7929   ;;
7930 irix* | nonstopux*)
7931   symcode='[BCDEGRST]'
7932   ;;
7933 osf*)
7934   symcode='[BCDEGQRST]'
7935   ;;
7936 solaris*)
7937   symcode='[BDRT]'
7938   ;;
7939 sco3.2v5*)
7940   symcode='[DT]'
7941   ;;
7942 sysv4.2uw2*)
7943   symcode='[DT]'
7944   ;;
7945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7946   symcode='[ABDT]'
7947   ;;
7948 sysv4)
7949   symcode='[DFNSTU]'
7950   ;;
7951 esac
7952
7953 # Handle CRLF in mingw tool chain
7954 opt_cr=
7955 case $build_os in
7956 mingw*)
7957   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7958   ;;
7959 esac
7960
7961 # If we're using GNU nm, then use its standard symbol codes.
7962 case `$NM -V 2>&1` in
7963 *GNU* | *'with BFD'*)
7964   symcode='[ABCDGIRSTW]' ;;
7965 esac
7966
7967 # Try without a prefix undercore, then with it.
7968 for ac_symprfx in "" "_"; do
7969
7970   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7971   symxfrm="\\1 $ac_symprfx\\2 \\2"
7972
7973   # Write the raw and C identifiers.
7974   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7975
7976   # Check to see that the pipe works correctly.
7977   pipe_works=no
7978
7979   rm -f conftest*
7980   cat > conftest.$ac_ext <<EOF
7981 #ifdef __cplusplus
7982 extern "C" {
7983 #endif
7984 char nm_test_var;
7985 void nm_test_func(){}
7986 #ifdef __cplusplus
7987 }
7988 #endif
7989 int main(){nm_test_var='a';nm_test_func();return(0);}
7990 EOF
7991
7992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993   (eval $ac_compile) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; then
7997     # Now try to grab the symbols.
7998     nlist=conftest.nm
7999     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8000   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } && test -s "$nlist"; then
8004       # Try sorting and uniquifying the output.
8005       if sort "$nlist" | uniq > "$nlist"T; then
8006         mv -f "$nlist"T "$nlist"
8007       else
8008         rm -f "$nlist"T
8009       fi
8010
8011       # Make sure that we snagged all the symbols we need.
8012       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8013         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8014           cat <<EOF > conftest.$ac_ext
8015 #ifdef __cplusplus
8016 extern "C" {
8017 #endif
8018
8019 EOF
8020           # Now generate the symbol file.
8021           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8022
8023           cat <<EOF >> conftest.$ac_ext
8024 #if defined (__STDC__) && __STDC__
8025 # define lt_ptr_t void *
8026 #else
8027 # define lt_ptr_t char *
8028 # define const
8029 #endif
8030
8031 /* The mapping between symbol names and symbols. */
8032 const struct {
8033   const char *name;
8034   lt_ptr_t address;
8035 }
8036 lt_preloaded_symbols[] =
8037 {
8038 EOF
8039           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8040           cat <<\EOF >> conftest.$ac_ext
8041   {0, (lt_ptr_t) 0}
8042 };
8043
8044 #ifdef __cplusplus
8045 }
8046 #endif
8047 EOF
8048           # Now try linking the two files.
8049           mv conftest.$ac_objext conftstm.$ac_objext
8050           lt_save_LIBS="$LIBS"
8051           lt_save_CFLAGS="$CFLAGS"
8052           LIBS="conftstm.$ac_objext"
8053           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8054           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055   (eval $ac_link) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8059             pipe_works=yes
8060           fi
8061           LIBS="$lt_save_LIBS"
8062           CFLAGS="$lt_save_CFLAGS"
8063         else
8064           echo "cannot find nm_test_func in $nlist" >&5
8065         fi
8066       else
8067         echo "cannot find nm_test_var in $nlist" >&5
8068       fi
8069     else
8070       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8071     fi
8072   else
8073     echo "$progname: failed program was:" >&5
8074     cat conftest.$ac_ext >&5
8075   fi
8076   rm -f conftest* conftst*
8077
8078   # Do not use the global_symbol_pipe unless it works.
8079   if test "$pipe_works" = yes; then
8080     break
8081   else
8082     lt_cv_sys_global_symbol_pipe=
8083   fi
8084 done
8085
8086 fi
8087
8088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8089   lt_cv_sys_global_symbol_to_cdecl=
8090 fi
8091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8092   { echo "$as_me:$LINENO: result: failed" >&5
8093 echo "${ECHO_T}failed" >&6; }
8094 else
8095   { echo "$as_me:$LINENO: result: ok" >&5
8096 echo "${ECHO_T}ok" >&6; }
8097 fi
8098
8099 { echo "$as_me:$LINENO: checking for objdir" >&5
8100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8101 if test "${lt_cv_objdir+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   rm -f .libs 2>/dev/null
8105 mkdir .libs 2>/dev/null
8106 if test -d .libs; then
8107   lt_cv_objdir=.libs
8108 else
8109   # MS-DOS does not allow filenames that begin with a dot.
8110   lt_cv_objdir=_libs
8111 fi
8112 rmdir .libs 2>/dev/null
8113 fi
8114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8116 objdir=$lt_cv_objdir
8117
8118
8119
8120
8121
8122 case $host_os in
8123 aix3*)
8124   # AIX sometimes has problems with the GCC collect2 program.  For some
8125   # reason, if we set the COLLECT_NAMES environment variable, the problems
8126   # vanish in a puff of smoke.
8127   if test "X${COLLECT_NAMES+set}" != Xset; then
8128     COLLECT_NAMES=
8129     export COLLECT_NAMES
8130   fi
8131   ;;
8132 esac
8133
8134 # Sed substitution that helps us do robust quoting.  It backslashifies
8135 # metacharacters that are still active within double-quoted strings.
8136 Xsed='sed -e 1s/^X//'
8137 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8138
8139 # Same as above, but do not quote variable references.
8140 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8141
8142 # Sed substitution to delay expansion of an escaped shell variable in a
8143 # double_quote_subst'ed string.
8144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8145
8146 # Sed substitution to avoid accidental globbing in evaled expressions
8147 no_glob_subst='s/\*/\\\*/g'
8148
8149 # Constants:
8150 rm="rm -f"
8151
8152 # Global variables:
8153 default_ofile=libtool
8154 can_build_shared=yes
8155
8156 # All known linkers require a `.a' archive for static linking (except MSVC,
8157 # which needs '.lib').
8158 libext=a
8159 ltmain="$ac_aux_dir/ltmain.sh"
8160 ofile="$default_ofile"
8161 with_gnu_ld="$lt_cv_prog_gnu_ld"
8162
8163 if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}ar; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_prog_AR+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   if test -n "$AR"; then
8172   ac_cv_prog_AR="$AR" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179   for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_AR="${ac_tool_prefix}ar"
8182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 AR=$ac_cv_prog_AR
8192 if test -n "$AR"; then
8193   { echo "$as_me:$LINENO: result: $AR" >&5
8194 echo "${ECHO_T}$AR" >&6; }
8195 else
8196   { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_AR"; then
8203   ac_ct_AR=$AR
8204   # Extract the first word of "ar", so it can be a program name with args.
8205 set dummy ar; ac_word=$2
8206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   if test -n "$ac_ct_AR"; then
8212   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219   for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_AR="ar"
8222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8232 if test -n "$ac_ct_AR"; then
8233   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8234 echo "${ECHO_T}$ac_ct_AR" >&6; }
8235 else
8236   { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_AR" = x; then
8241     AR="false"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8246 whose name does not start with the host triplet.  If you think this
8247 configuration is useful to you, please write to autoconf@gnu.org." >&5
8248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8249 whose name does not start with the host triplet.  If you think this
8250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253     AR=$ac_ct_AR
8254   fi
8255 else
8256   AR="$ac_cv_prog_AR"
8257 fi
8258
8259 if test -n "$ac_tool_prefix"; then
8260   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_prog_RANLIB+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   if test -n "$RANLIB"; then
8268   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275   for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 RANLIB=$ac_cv_prog_RANLIB
8288 if test -n "$RANLIB"; then
8289   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8290 echo "${ECHO_T}$RANLIB" >&6; }
8291 else
8292   { echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_RANLIB"; then
8299   ac_ct_RANLIB=$RANLIB
8300   # Extract the first word of "ranlib", so it can be a program name with args.
8301 set dummy ranlib; ac_word=$2
8302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   if test -n "$ac_ct_RANLIB"; then
8308   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315   for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_ac_ct_RANLIB="ranlib"
8318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8328 if test -n "$ac_ct_RANLIB"; then
8329   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8330 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8331 else
8332   { echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6; }
8334 fi
8335
8336   if test "x$ac_ct_RANLIB" = x; then
8337     RANLIB=":"
8338   else
8339     case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8342 whose name does not start with the host triplet.  If you think this
8343 configuration is useful to you, please write to autoconf@gnu.org." >&5
8344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8345 whose name does not start with the host triplet.  If you think this
8346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349     RANLIB=$ac_ct_RANLIB
8350   fi
8351 else
8352   RANLIB="$ac_cv_prog_RANLIB"
8353 fi
8354
8355 if test -n "$ac_tool_prefix"; then
8356   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8357 set dummy ${ac_tool_prefix}strip; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_STRIP+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   if test -n "$STRIP"; then
8364   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 STRIP=$ac_cv_prog_STRIP
8384 if test -n "$STRIP"; then
8385   { echo "$as_me:$LINENO: result: $STRIP" >&5
8386 echo "${ECHO_T}$STRIP" >&6; }
8387 else
8388   { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8390 fi
8391
8392
8393 fi
8394 if test -z "$ac_cv_prog_STRIP"; then
8395   ac_ct_STRIP=$STRIP
8396   # Extract the first word of "strip", so it can be a program name with args.
8397 set dummy strip; ac_word=$2
8398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   if test -n "$ac_ct_STRIP"; then
8404   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409   IFS=$as_save_IFS
8410   test -z "$as_dir" && as_dir=.
8411   for ac_exec_ext in '' $ac_executable_extensions; do
8412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413     ac_cv_prog_ac_ct_STRIP="strip"
8414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415     break 2
8416   fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 fi
8422 fi
8423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8424 if test -n "$ac_ct_STRIP"; then
8425   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8426 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8427 else
8428   { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8430 fi
8431
8432   if test "x$ac_ct_STRIP" = x; then
8433     STRIP=":"
8434   else
8435     case $cross_compiling:$ac_tool_warned in
8436 yes:)
8437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet.  If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&5
8440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet.  If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445     STRIP=$ac_ct_STRIP
8446   fi
8447 else
8448   STRIP="$ac_cv_prog_STRIP"
8449 fi
8450
8451
8452 old_CC="$CC"
8453 old_CFLAGS="$CFLAGS"
8454
8455 # Set sane defaults for various variables
8456 test -z "$AR" && AR=ar
8457 test -z "$AR_FLAGS" && AR_FLAGS=cru
8458 test -z "$AS" && AS=as
8459 test -z "$CC" && CC=cc
8460 test -z "$LTCC" && LTCC=$CC
8461 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8462 test -z "$DLLTOOL" && DLLTOOL=dlltool
8463 test -z "$LD" && LD=ld
8464 test -z "$LN_S" && LN_S="ln -s"
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 test -z "$NM" && NM=nm
8467 test -z "$SED" && SED=sed
8468 test -z "$OBJDUMP" && OBJDUMP=objdump
8469 test -z "$RANLIB" && RANLIB=:
8470 test -z "$STRIP" && STRIP=:
8471 test -z "$ac_objext" && ac_objext=o
8472
8473 # Determine commands to create old-style static archives.
8474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8475 old_postinstall_cmds='chmod 644 $oldlib'
8476 old_postuninstall_cmds=
8477
8478 if test -n "$RANLIB"; then
8479   case $host_os in
8480   openbsd*)
8481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8482     ;;
8483   *)
8484     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8485     ;;
8486   esac
8487   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8488 fi
8489
8490 for cc_temp in $compiler""; do
8491   case $cc_temp in
8492     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8493     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494     \-*) ;;
8495     *) break;;
8496   esac
8497 done
8498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8499
8500
8501 # Only perform the check for file, if the check method requires it
8502 case $deplibs_check_method in
8503 file_magic*)
8504   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8505     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   case $MAGIC_CMD in
8511 [\\/*] |  ?:[\\/]*)
8512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8513   ;;
8514 *)
8515   lt_save_MAGIC_CMD="$MAGIC_CMD"
8516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8517   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8518   for ac_dir in $ac_dummy; do
8519     IFS="$lt_save_ifs"
8520     test -z "$ac_dir" && ac_dir=.
8521     if test -f $ac_dir/${ac_tool_prefix}file; then
8522       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8523       if test -n "$file_magic_test_file"; then
8524         case $deplibs_check_method in
8525         "file_magic "*)
8526           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8529             $EGREP "$file_magic_regex" > /dev/null; then
8530             :
8531           else
8532             cat <<EOF 1>&2
8533
8534 *** Warning: the command libtool uses to detect shared libraries,
8535 *** $file_magic_cmd, produces output that libtool cannot recognize.
8536 *** The result is that libtool may fail to recognize shared libraries
8537 *** as such.  This will affect the creation of libtool libraries that
8538 *** depend on shared libraries, but programs linked with such libtool
8539 *** libraries will work regardless of this problem.  Nevertheless, you
8540 *** may want to report the problem to your system manager and/or to
8541 *** bug-libtool@gnu.org
8542
8543 EOF
8544           fi ;;
8545         esac
8546       fi
8547       break
8548     fi
8549   done
8550   IFS="$lt_save_ifs"
8551   MAGIC_CMD="$lt_save_MAGIC_CMD"
8552   ;;
8553 esac
8554 fi
8555
8556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8557 if test -n "$MAGIC_CMD"; then
8558   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8559 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8560 else
8561   { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8563 fi
8564
8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
8566   if test -n "$ac_tool_prefix"; then
8567     { echo "$as_me:$LINENO: checking for file" >&5
8568 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   case $MAGIC_CMD in
8573 [\\/*] |  ?:[\\/]*)
8574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8575   ;;
8576 *)
8577   lt_save_MAGIC_CMD="$MAGIC_CMD"
8578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8580   for ac_dir in $ac_dummy; do
8581     IFS="$lt_save_ifs"
8582     test -z "$ac_dir" && ac_dir=.
8583     if test -f $ac_dir/file; then
8584       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8585       if test -n "$file_magic_test_file"; then
8586         case $deplibs_check_method in
8587         "file_magic "*)
8588           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8589           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8591             $EGREP "$file_magic_regex" > /dev/null; then
8592             :
8593           else
8594             cat <<EOF 1>&2
8595
8596 *** Warning: the command libtool uses to detect shared libraries,
8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
8598 *** The result is that libtool may fail to recognize shared libraries
8599 *** as such.  This will affect the creation of libtool libraries that
8600 *** depend on shared libraries, but programs linked with such libtool
8601 *** libraries will work regardless of this problem.  Nevertheless, you
8602 *** may want to report the problem to your system manager and/or to
8603 *** bug-libtool@gnu.org
8604
8605 EOF
8606           fi ;;
8607         esac
8608       fi
8609       break
8610     fi
8611   done
8612   IFS="$lt_save_ifs"
8613   MAGIC_CMD="$lt_save_MAGIC_CMD"
8614   ;;
8615 esac
8616 fi
8617
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if test -n "$MAGIC_CMD"; then
8620   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8621 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8622 else
8623   { echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6; }
8625 fi
8626
8627   else
8628     MAGIC_CMD=:
8629   fi
8630 fi
8631
8632   fi
8633   ;;
8634 esac
8635
8636 enable_dlopen=no
8637 enable_win32_dll=no
8638
8639 # Check whether --enable-libtool-lock was given.
8640 if test "${enable_libtool_lock+set}" = set; then
8641   enableval=$enable_libtool_lock;
8642 fi
8643
8644 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8645
8646
8647 # Check whether --with-pic was given.
8648 if test "${with_pic+set}" = set; then
8649   withval=$with_pic; pic_mode="$withval"
8650 else
8651   pic_mode=default
8652 fi
8653
8654 test -z "$pic_mode" && pic_mode=default
8655
8656 # Use C for the default configuration in the libtool script
8657 tagname=
8658 lt_save_CC="$CC"
8659 ac_ext=c
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666 # Source file extension for C test sources.
8667 ac_ext=c
8668
8669 # Object file extension for compiled C test sources.
8670 objext=o
8671 objext=$objext
8672
8673 # Code to be used in simple compile tests
8674 lt_simple_compile_test_code="int some_variable = 0;"
8675
8676 # Code to be used in simple link tests
8677 lt_simple_link_test_code='int main(){return(0);}'
8678
8679
8680 # If no C compiler was specified, use CC.
8681 LTCC=${LTCC-"$CC"}
8682
8683 # If no C compiler flags were specified, use CFLAGS.
8684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8685
8686 # Allow CC to be a program name with arguments.
8687 compiler=$CC
8688
8689
8690 # save warnings/boilerplate of simple test code
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_compiler_boilerplate=`cat conftest.err`
8695 $rm conftest*
8696
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_linker_boilerplate=`cat conftest.err`
8701 $rm conftest*
8702
8703
8704
8705 lt_prog_compiler_no_builtin_flag=
8706
8707 if test "$GCC" = yes; then
8708   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8709
8710
8711 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   lt_cv_prog_compiler_rtti_exceptions=no
8717   ac_outfile=conftest.$ac_objext
8718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8719    lt_compiler_flag="-fno-rtti -fno-exceptions"
8720    # Insert the option either (1) after the last *FLAGS variable, or
8721    # (2) before a word containing "conftest.", or (3) at the end.
8722    # Note that $ac_compile itself does not contain backslashes and begins
8723    # with a dollar sign (not a hyphen), so the echo should work correctly.
8724    # The option is referenced via a variable to avoid confusing sed.
8725    lt_compile=`echo "$ac_compile" | $SED \
8726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728    -e 's:$: $lt_compiler_flag:'`
8729    (eval echo "\"\$as_me:8729: $lt_compile\"" >&5)
8730    (eval "$lt_compile" 2>conftest.err)
8731    ac_status=$?
8732    cat conftest.err >&5
8733    echo "$as_me:8733: \$? = $ac_status" >&5
8734    if (exit $ac_status) && test -s "$ac_outfile"; then
8735      # The compiler can only warn and ignore the option if not recognized
8736      # So say no if there are warnings other than the usual output.
8737      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8738      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8740        lt_cv_prog_compiler_rtti_exceptions=yes
8741      fi
8742    fi
8743    $rm conftest*
8744
8745 fi
8746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8748
8749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8750     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8751 else
8752     :
8753 fi
8754
8755 fi
8756
8757 lt_prog_compiler_wl=
8758 lt_prog_compiler_pic=
8759 lt_prog_compiler_static=
8760
8761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8763
8764   if test "$GCC" = yes; then
8765     lt_prog_compiler_wl='-Wl,'
8766     lt_prog_compiler_static='-static'
8767
8768     case $host_os in
8769       aix*)
8770       # All AIX code is PIC.
8771       if test "$host_cpu" = ia64; then
8772         # AIX 5 now supports IA64 processor
8773         lt_prog_compiler_static='-Bstatic'
8774       fi
8775       ;;
8776
8777     amigaos*)
8778       # FIXME: we need at least 68020 code to build shared libraries, but
8779       # adding the `-m68020' flag to GCC prevents building anything better,
8780       # like `-m68040'.
8781       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8782       ;;
8783
8784     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8785       # PIC is the default for these OSes.
8786       ;;
8787
8788     mingw* | cygwin* | pw32* | os2*)
8789       # This hack is so that the source file can tell whether it is being
8790       # built for inclusion in a dll (and should export symbols for example).
8791       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8792       # (--disable-auto-import) libraries
8793       lt_prog_compiler_pic='-DDLL_EXPORT'
8794       ;;
8795
8796     darwin* | rhapsody*)
8797       # PIC is the default on this platform
8798       # Common symbols not allowed in MH_DYLIB files
8799       lt_prog_compiler_pic='-fno-common'
8800       ;;
8801
8802     interix[3-9]*)
8803       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8804       # Instead, we relocate shared libraries at runtime.
8805       ;;
8806
8807     msdosdjgpp*)
8808       # Just because we use GCC doesn't mean we suddenly get shared libraries
8809       # on systems that don't support them.
8810       lt_prog_compiler_can_build_shared=no
8811       enable_shared=no
8812       ;;
8813
8814     sysv4*MP*)
8815       if test -d /usr/nec; then
8816         lt_prog_compiler_pic=-Kconform_pic
8817       fi
8818       ;;
8819
8820     hpux*)
8821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8822       # not for PA HP-UX.
8823       case $host_cpu in
8824       hppa*64*|ia64*)
8825         # +Z the default
8826         ;;
8827       *)
8828         lt_prog_compiler_pic='-fPIC'
8829         ;;
8830       esac
8831       ;;
8832
8833     *)
8834       lt_prog_compiler_pic='-fPIC'
8835       ;;
8836     esac
8837   else
8838     # PORTME Check for flag to pass linker flags through the system compiler.
8839     case $host_os in
8840     aix*)
8841       lt_prog_compiler_wl='-Wl,'
8842       if test "$host_cpu" = ia64; then
8843         # AIX 5 now supports IA64 processor
8844         lt_prog_compiler_static='-Bstatic'
8845       else
8846         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8847       fi
8848       ;;
8849       darwin*)
8850         # PIC is the default on this platform
8851         # Common symbols not allowed in MH_DYLIB files
8852        case $cc_basename in
8853          xlc*)
8854          lt_prog_compiler_pic='-qnocommon'
8855          lt_prog_compiler_wl='-Wl,'
8856          ;;
8857        esac
8858        ;;
8859
8860     mingw* | cygwin* | pw32* | os2*)
8861       # This hack is so that the source file can tell whether it is being
8862       # built for inclusion in a dll (and should export symbols for example).
8863       lt_prog_compiler_pic='-DDLL_EXPORT'
8864       ;;
8865
8866     hpux9* | hpux10* | hpux11*)
8867       lt_prog_compiler_wl='-Wl,'
8868       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8869       # not for PA HP-UX.
8870       case $host_cpu in
8871       hppa*64*|ia64*)
8872         # +Z the default
8873         ;;
8874       *)
8875         lt_prog_compiler_pic='+Z'
8876         ;;
8877       esac
8878       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8879       lt_prog_compiler_static='${wl}-a ${wl}archive'
8880       ;;
8881
8882     irix5* | irix6* | nonstopux*)
8883       lt_prog_compiler_wl='-Wl,'
8884       # PIC (with -KPIC) is the default.
8885       lt_prog_compiler_static='-non_shared'
8886       ;;
8887
8888     newsos6)
8889       lt_prog_compiler_pic='-KPIC'
8890       lt_prog_compiler_static='-Bstatic'
8891       ;;
8892
8893     linux* | k*bsd*-gnu)
8894       case $cc_basename in
8895       icc* | ecc*)
8896         lt_prog_compiler_wl='-Wl,'
8897         lt_prog_compiler_pic='-KPIC'
8898         lt_prog_compiler_static='-static'
8899         ;;
8900       pgcc* | pgf77* | pgf90* | pgf95*)
8901         # Portland Group compilers (*not* the Pentium gcc compiler,
8902         # which looks to be a dead project)
8903         lt_prog_compiler_wl='-Wl,'
8904         lt_prog_compiler_pic='-fpic'
8905         lt_prog_compiler_static='-Bstatic'
8906         ;;
8907       ccc*)
8908         lt_prog_compiler_wl='-Wl,'
8909         # All Alpha code is PIC.
8910         lt_prog_compiler_static='-non_shared'
8911         ;;
8912       *)
8913         case `$CC -V 2>&1 | sed 5q` in
8914         *Sun\ C*)
8915           # Sun C 5.9
8916           lt_prog_compiler_pic='-KPIC'
8917           lt_prog_compiler_static='-Bstatic'
8918           lt_prog_compiler_wl='-Wl,'
8919           ;;
8920         *Sun\ F*)
8921           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8922           lt_prog_compiler_pic='-KPIC'
8923           lt_prog_compiler_static='-Bstatic'
8924           lt_prog_compiler_wl=''
8925           ;;
8926         esac
8927         ;;
8928       esac
8929       ;;
8930
8931     osf3* | osf4* | osf5*)
8932       lt_prog_compiler_wl='-Wl,'
8933       # All OSF/1 code is PIC.
8934       lt_prog_compiler_static='-non_shared'
8935       ;;
8936
8937     rdos*)
8938       lt_prog_compiler_static='-non_shared'
8939       ;;
8940
8941     solaris*)
8942       lt_prog_compiler_pic='-KPIC'
8943       lt_prog_compiler_static='-Bstatic'
8944       case $cc_basename in
8945       f77* | f90* | f95*)
8946         lt_prog_compiler_wl='-Qoption ld ';;
8947       *)
8948         lt_prog_compiler_wl='-Wl,';;
8949       esac
8950       ;;
8951
8952     sunos4*)
8953       lt_prog_compiler_wl='-Qoption ld '
8954       lt_prog_compiler_pic='-PIC'
8955       lt_prog_compiler_static='-Bstatic'
8956       ;;
8957
8958     sysv4 | sysv4.2uw2* | sysv4.3*)
8959       lt_prog_compiler_wl='-Wl,'
8960       lt_prog_compiler_pic='-KPIC'
8961       lt_prog_compiler_static='-Bstatic'
8962       ;;
8963
8964     sysv4*MP*)
8965       if test -d /usr/nec ;then
8966         lt_prog_compiler_pic='-Kconform_pic'
8967         lt_prog_compiler_static='-Bstatic'
8968       fi
8969       ;;
8970
8971     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8972       lt_prog_compiler_wl='-Wl,'
8973       lt_prog_compiler_pic='-KPIC'
8974       lt_prog_compiler_static='-Bstatic'
8975       ;;
8976
8977     unicos*)
8978       lt_prog_compiler_wl='-Wl,'
8979       lt_prog_compiler_can_build_shared=no
8980       ;;
8981
8982     uts4*)
8983       lt_prog_compiler_pic='-pic'
8984       lt_prog_compiler_static='-Bstatic'
8985       ;;
8986
8987     *)
8988       lt_prog_compiler_can_build_shared=no
8989       ;;
8990     esac
8991   fi
8992
8993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8994 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8995
8996 #
8997 # Check to make sure the PIC flag actually works.
8998 #
8999 if test -n "$lt_prog_compiler_pic"; then
9000
9001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9003 if test "${lt_prog_compiler_pic_works+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   lt_prog_compiler_pic_works=no
9007   ac_outfile=conftest.$ac_objext
9008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9010    # Insert the option either (1) after the last *FLAGS variable, or
9011    # (2) before a word containing "conftest.", or (3) at the end.
9012    # Note that $ac_compile itself does not contain backslashes and begins
9013    # with a dollar sign (not a hyphen), so the echo should work correctly.
9014    # The option is referenced via a variable to avoid confusing sed.
9015    lt_compile=`echo "$ac_compile" | $SED \
9016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018    -e 's:$: $lt_compiler_flag:'`
9019    (eval echo "\"\$as_me:9019: $lt_compile\"" >&5)
9020    (eval "$lt_compile" 2>conftest.err)
9021    ac_status=$?
9022    cat conftest.err >&5
9023    echo "$as_me:9023: \$? = $ac_status" >&5
9024    if (exit $ac_status) && test -s "$ac_outfile"; then
9025      # The compiler can only warn and ignore the option if not recognized
9026      # So say no if there are warnings other than the usual output.
9027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030        lt_prog_compiler_pic_works=yes
9031      fi
9032    fi
9033    $rm conftest*
9034
9035 fi
9036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9037 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9038
9039 if test x"$lt_prog_compiler_pic_works" = xyes; then
9040     case $lt_prog_compiler_pic in
9041      "" | " "*) ;;
9042      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9043      esac
9044 else
9045     lt_prog_compiler_pic=
9046      lt_prog_compiler_can_build_shared=no
9047 fi
9048
9049 fi
9050 case $host_os in
9051   # For platforms which do not support PIC, -DPIC is meaningless:
9052   *djgpp*)
9053     lt_prog_compiler_pic=
9054     ;;
9055   *)
9056     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9057     ;;
9058 esac
9059
9060 #
9061 # Check to make sure the static flag actually works.
9062 #
9063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9066 if test "${lt_prog_compiler_static_works+set}" = set; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   lt_prog_compiler_static_works=no
9070    save_LDFLAGS="$LDFLAGS"
9071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9072    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9074      # The linker can only warn and ignore the option if not recognized
9075      # So say no if there are warnings
9076      if test -s conftest.err; then
9077        # Append any errors to the config.log.
9078        cat conftest.err 1>&5
9079        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081        if diff conftest.exp conftest.er2 >/dev/null; then
9082          lt_prog_compiler_static_works=yes
9083        fi
9084      else
9085        lt_prog_compiler_static_works=yes
9086      fi
9087    fi
9088    $rm conftest*
9089    LDFLAGS="$save_LDFLAGS"
9090
9091 fi
9092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9093 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9094
9095 if test x"$lt_prog_compiler_static_works" = xyes; then
9096     :
9097 else
9098     lt_prog_compiler_static=
9099 fi
9100
9101
9102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9104 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9105   echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107   lt_cv_prog_compiler_c_o=no
9108    $rm -r conftest 2>/dev/null
9109    mkdir conftest
9110    cd conftest
9111    mkdir out
9112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9113
9114    lt_compiler_flag="-o out/conftest2.$ac_objext"
9115    # Insert the option either (1) after the last *FLAGS variable, or
9116    # (2) before a word containing "conftest.", or (3) at the end.
9117    # Note that $ac_compile itself does not contain backslashes and begins
9118    # with a dollar sign (not a hyphen), so the echo should work correctly.
9119    lt_compile=`echo "$ac_compile" | $SED \
9120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122    -e 's:$: $lt_compiler_flag:'`
9123    (eval echo "\"\$as_me:9123: $lt_compile\"" >&5)
9124    (eval "$lt_compile" 2>out/conftest.err)
9125    ac_status=$?
9126    cat out/conftest.err >&5
9127    echo "$as_me:9127: \$? = $ac_status" >&5
9128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9129    then
9130      # The compiler can only warn and ignore the option if not recognized
9131      # So say no if there are warnings
9132      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9135        lt_cv_prog_compiler_c_o=yes
9136      fi
9137    fi
9138    chmod u+w . 2>&5
9139    $rm conftest*
9140    # SGI C++ compiler will create directory out/ii_files/ for
9141    # template instantiation
9142    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9143    $rm out/* && rmdir out
9144    cd ..
9145    rmdir conftest
9146    $rm conftest*
9147
9148 fi
9149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9151
9152
9153 hard_links="nottested"
9154 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9155   # do not overwrite the value of need_locks provided by the user
9156   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9158   hard_links=yes
9159   $rm conftest*
9160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9161   touch conftest.a
9162   ln conftest.a conftest.b 2>&5 || hard_links=no
9163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9164   { echo "$as_me:$LINENO: result: $hard_links" >&5
9165 echo "${ECHO_T}$hard_links" >&6; }
9166   if test "$hard_links" = no; then
9167     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9169     need_locks=warn
9170   fi
9171 else
9172   need_locks=no
9173 fi
9174
9175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9177
9178   runpath_var=
9179   allow_undefined_flag=
9180   enable_shared_with_static_runtimes=no
9181   archive_cmds=
9182   archive_expsym_cmds=
9183   old_archive_From_new_cmds=
9184   old_archive_from_expsyms_cmds=
9185   export_dynamic_flag_spec=
9186   whole_archive_flag_spec=
9187   thread_safe_flag_spec=
9188   hardcode_libdir_flag_spec=
9189   hardcode_libdir_flag_spec_ld=
9190   hardcode_libdir_separator=
9191   hardcode_direct=no
9192   hardcode_minus_L=no
9193   hardcode_shlibpath_var=unsupported
9194   link_all_deplibs=unknown
9195   hardcode_automatic=no
9196   module_cmds=
9197   module_expsym_cmds=
9198   always_export_symbols=no
9199   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200   # include_expsyms should be a list of space-separated symbols to be *always*
9201   # included in the symbol list
9202   include_expsyms=
9203   # exclude_expsyms can be an extended regexp of symbols to exclude
9204   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9205   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9206   # as well as any symbol that contains `d'.
9207   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9208   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9209   # platforms (ab)use it in PIC code, but their linkers get confused if
9210   # the symbol is explicitly referenced.  Since portable code cannot
9211   # rely on this symbol name, it's probably fine to never include it in
9212   # preloaded symbol tables.
9213   extract_expsyms_cmds=
9214   # Just being paranoid about ensuring that cc_basename is set.
9215   for cc_temp in $compiler""; do
9216   case $cc_temp in
9217     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9218     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9219     \-*) ;;
9220     *) break;;
9221   esac
9222 done
9223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9224
9225   case $host_os in
9226   cygwin* | mingw* | pw32*)
9227     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9228     # When not using gcc, we currently assume that we are using
9229     # Microsoft Visual C++.
9230     if test "$GCC" != yes; then
9231       with_gnu_ld=no
9232     fi
9233     ;;
9234   interix*)
9235     # we just hope/assume this is gcc and not c89 (= MSVC++)
9236     with_gnu_ld=yes
9237     ;;
9238   openbsd*)
9239     with_gnu_ld=no
9240     ;;
9241   esac
9242
9243   ld_shlibs=yes
9244   if test "$with_gnu_ld" = yes; then
9245     # If archive_cmds runs LD, not CC, wlarc should be empty
9246     wlarc='${wl}'
9247
9248     # Set some defaults for GNU ld with shared library support. These
9249     # are reset later if shared libraries are not supported. Putting them
9250     # here allows them to be overridden if necessary.
9251     runpath_var=LD_RUN_PATH
9252     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9253     export_dynamic_flag_spec='${wl}--export-dynamic'
9254     # ancient GNU ld didn't support --whole-archive et. al.
9255     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9256         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9257       else
9258         whole_archive_flag_spec=
9259     fi
9260     supports_anon_versioning=no
9261     case `$LD -v 2>/dev/null` in
9262       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9263       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9264       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9265       *\ 2.11.*) ;; # other 2.11 versions
9266       *) supports_anon_versioning=yes ;;
9267     esac
9268
9269     # See if GNU ld supports shared libraries.
9270     case $host_os in
9271     aix3* | aix4* | aix5*)
9272       # On AIX/PPC, the GNU linker is very broken
9273       if test "$host_cpu" != ia64; then
9274         ld_shlibs=no
9275         cat <<EOF 1>&2
9276
9277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9278 *** to be unable to reliably create shared libraries on AIX.
9279 *** Therefore, libtool is disabling shared libraries support.  If you
9280 *** really care for shared libraries, you may want to modify your PATH
9281 *** so that a non-GNU linker is found, and then restart.
9282
9283 EOF
9284       fi
9285       ;;
9286
9287     amigaos*)
9288       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)'
9289       hardcode_libdir_flag_spec='-L$libdir'
9290       hardcode_minus_L=yes
9291
9292       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9293       # that the semantics of dynamic libraries on AmigaOS, at least up
9294       # to version 4, is to share data among multiple programs linked
9295       # with the same dynamic library.  Since this doesn't match the
9296       # behavior of shared libraries on other platforms, we can't use
9297       # them.
9298       ld_shlibs=no
9299       ;;
9300
9301     beos*)
9302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9303         allow_undefined_flag=unsupported
9304         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9305         # support --undefined.  This deserves some investigation.  FIXME
9306         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307       else
9308         ld_shlibs=no
9309       fi
9310       ;;
9311
9312     cygwin* | mingw* | pw32*)
9313       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9314       # as there is no search path for DLLs.
9315       hardcode_libdir_flag_spec='-L$libdir'
9316       allow_undefined_flag=unsupported
9317       always_export_symbols=no
9318       enable_shared_with_static_runtimes=yes
9319       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9320
9321       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9322         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9323         # If the export-symbols file already is a .def file (1st line
9324         # is EXPORTS), use it as is; otherwise, prepend...
9325         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9326           cp $export_symbols $output_objdir/$soname.def;
9327         else
9328           echo EXPORTS > $output_objdir/$soname.def;
9329           cat $export_symbols >> $output_objdir/$soname.def;
9330         fi~
9331         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9332       else
9333         ld_shlibs=no
9334       fi
9335       ;;
9336
9337     interix[3-9]*)
9338       hardcode_direct=no
9339       hardcode_shlibpath_var=no
9340       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341       export_dynamic_flag_spec='${wl}-E'
9342       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343       # Instead, shared libraries are loaded at an image base (0x10000000 by
9344       # default) and relocated if they conflict, which is a slow very memory
9345       # consuming and fragmenting process.  To avoid this, we pick a random,
9346       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9348       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349       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'
9350       ;;
9351
9352     gnu* | linux* | k*bsd*-gnu)
9353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9354         tmp_addflag=
9355         case $cc_basename,$host_cpu in
9356         pgcc*)                          # Portland Group C compiler
9357           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'
9358           tmp_addflag=' $pic_flag'
9359           ;;
9360         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9361           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'
9362           tmp_addflag=' $pic_flag -Mnomain' ;;
9363         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9364           tmp_addflag=' -i_dynamic' ;;
9365         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9366           tmp_addflag=' -i_dynamic -nofor_main' ;;
9367         ifc* | ifort*)                  # Intel Fortran compiler
9368           tmp_addflag=' -nofor_main' ;;
9369         esac
9370         case `$CC -V 2>&1 | sed 5q` in
9371         *Sun\ C*)                       # Sun C 5.9
9372           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'
9373           tmp_sharedflag='-G' ;;
9374         *Sun\ F*)                       # Sun Fortran 8.3
9375           tmp_sharedflag='-G' ;;
9376         *)
9377           tmp_sharedflag='-shared' ;;
9378         esac
9379         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380
9381         if test $supports_anon_versioning = yes; then
9382           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9383   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9384   $echo "local: *; };" >> $output_objdir/$libname.ver~
9385           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9386         fi
9387         link_all_deplibs=no
9388       else
9389         ld_shlibs=no
9390       fi
9391       ;;
9392
9393     netbsd* | netbsdelf*-gnu)
9394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9396         wlarc=
9397       else
9398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400       fi
9401       ;;
9402
9403     solaris*)
9404       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9405         ld_shlibs=no
9406         cat <<EOF 1>&2
9407
9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409 *** create shared libraries on Solaris systems.  Therefore, libtool
9410 *** is disabling shared libraries support.  We urge you to upgrade GNU
9411 *** binutils to release 2.9.1 or newer.  Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9414
9415 EOF
9416       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419       else
9420         ld_shlibs=no
9421       fi
9422       ;;
9423
9424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425       case `$LD -v 2>&1` in
9426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9427         ld_shlibs=no
9428         cat <<_LT_EOF 1>&2
9429
9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9432 *** is disabling shared libraries support.  We urge you to upgrade GNU
9433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9436
9437 _LT_EOF
9438         ;;
9439         *)
9440           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9441             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9442             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9443             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9444           else
9445             ld_shlibs=no
9446           fi
9447         ;;
9448       esac
9449       ;;
9450
9451     sunos4*)
9452       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9453       wlarc=
9454       hardcode_direct=yes
9455       hardcode_shlibpath_var=no
9456       ;;
9457
9458     *)
9459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9462       else
9463         ld_shlibs=no
9464       fi
9465       ;;
9466     esac
9467
9468     if test "$ld_shlibs" = no; then
9469       runpath_var=
9470       hardcode_libdir_flag_spec=
9471       export_dynamic_flag_spec=
9472       whole_archive_flag_spec=
9473     fi
9474   else
9475     # PORTME fill in a description of your system's linker (not GNU ld)
9476     case $host_os in
9477     aix3*)
9478       allow_undefined_flag=unsupported
9479       always_export_symbols=yes
9480       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'
9481       # Note: this linker hardcodes the directories in LIBPATH if there
9482       # are no directories specified by -L.
9483       hardcode_minus_L=yes
9484       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9485         # Neither direct hardcoding nor static linking is supported with a
9486         # broken collect2.
9487         hardcode_direct=unsupported
9488       fi
9489       ;;
9490
9491     aix4* | aix5*)
9492       if test "$host_cpu" = ia64; then
9493         # On IA64, the linker does run time linking by default, so we don't
9494         # have to do anything special.
9495         aix_use_runtimelinking=no
9496         exp_sym_flag='-Bexport'
9497         no_entry_flag=""
9498       else
9499         # If we're using GNU nm, then we don't want the "-C" option.
9500         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9501         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9502           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'
9503         else
9504           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'
9505         fi
9506         aix_use_runtimelinking=no
9507
9508         # Test if we are trying to use run time linking or normal
9509         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9510         # need to do runtime linking.
9511         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9512           for ld_flag in $LDFLAGS; do
9513           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9514             aix_use_runtimelinking=yes
9515             break
9516           fi
9517           done
9518           ;;
9519         esac
9520
9521         exp_sym_flag='-bexport'
9522         no_entry_flag='-bnoentry'
9523       fi
9524
9525       # When large executables or shared objects are built, AIX ld can
9526       # have problems creating the table of contents.  If linking a library
9527       # or program results in "error TOC overflow" add -mminimal-toc to
9528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9530
9531       archive_cmds=''
9532       hardcode_direct=yes
9533       hardcode_libdir_separator=':'
9534       link_all_deplibs=yes
9535
9536       if test "$GCC" = yes; then
9537         case $host_os in aix4.[012]|aix4.[012].*)
9538         # We only want to do this on AIX 4.2 and lower, the check
9539         # below for broken collect2 doesn't work under 4.3+
9540           collect2name=`${CC} -print-prog-name=collect2`
9541           if test -f "$collect2name" && \
9542            strings "$collect2name" | grep resolve_lib_name >/dev/null
9543           then
9544           # We have reworked collect2
9545           :
9546           else
9547           # We have old collect2
9548           hardcode_direct=unsupported
9549           # It fails to find uninstalled libraries when the uninstalled
9550           # path is not listed in the libpath.  Setting hardcode_minus_L
9551           # to unsupported forces relinking
9552           hardcode_minus_L=yes
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_libdir_separator=
9555           fi
9556           ;;
9557         esac
9558         shared_flag='-shared'
9559         if test "$aix_use_runtimelinking" = yes; then
9560           shared_flag="$shared_flag "'${wl}-G'
9561         fi
9562       else
9563         # not using gcc
9564         if test "$host_cpu" = ia64; then
9565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566         # chokes on -Wl,-G. The following line is correct:
9567           shared_flag='-G'
9568         else
9569           if test "$aix_use_runtimelinking" = yes; then
9570             shared_flag='${wl}-G'
9571           else
9572             shared_flag='${wl}-bM:SRE'
9573           fi
9574         fi
9575       fi
9576
9577       # It seems that -bexpall does not export symbols beginning with
9578       # underscore (_), so it is better to generate a list of symbols to export.
9579       always_export_symbols=yes
9580       if test "$aix_use_runtimelinking" = yes; then
9581         # Warning - without using the other runtime loading flags (-brtl),
9582         # -berok will link without error, but may produce a broken library.
9583         allow_undefined_flag='-berok'
9584        # Determine the default libpath from the value encoded in an empty executable.
9585        cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591
9592 int
9593 main ()
9594 {
9595
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_link") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } && {
9614          test -z "$ac_c_werror_flag" ||
9615          test ! -s conftest.err
9616        } && test -s conftest$ac_exeext &&
9617        $as_test_x conftest$ac_exeext; then
9618
9619 lt_aix_libpath_sed='
9620     /Import File Strings/,/^$/ {
9621         /^0/ {
9622             s/^0  *\(.*\)$/\1/
9623             p
9624         }
9625     }'
9626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 # Check for a 64-bit object if we didn't find anything.
9628 if test -z "$aix_libpath"; then
9629   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9630 fi
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9639       conftest$ac_exeext conftest.$ac_ext
9640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9641
9642        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643         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"
9644        else
9645         if test "$host_cpu" = ia64; then
9646           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9647           allow_undefined_flag="-z nodefs"
9648           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"
9649         else
9650          # Determine the default libpath from the value encoded in an empty executable.
9651          cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657
9658 int
9659 main ()
9660 {
9661
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_link") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest$ac_exeext &&
9683        $as_test_x conftest$ac_exeext; then
9684
9685 lt_aix_libpath_sed='
9686     /Import File Strings/,/^$/ {
9687         /^0/ {
9688             s/^0  *\(.*\)$/\1/
9689             p
9690         }
9691     }'
9692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693 # Check for a 64-bit object if we didn't find anything.
9694 if test -z "$aix_libpath"; then
9695   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9696 fi
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705       conftest$ac_exeext conftest.$ac_ext
9706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9707
9708          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9709           # Warning - without using the other run time loading flags,
9710           # -berok will link without error, but may produce a broken library.
9711           no_undefined_flag=' ${wl}-bernotok'
9712           allow_undefined_flag=' ${wl}-berok'
9713           # Exported symbols can be pulled into shared objects from archives
9714           whole_archive_flag_spec='$convenience'
9715           archive_cmds_need_lc=yes
9716           # This is similar to how AIX traditionally builds its shared libraries.
9717           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'
9718         fi
9719       fi
9720       ;;
9721
9722     amigaos*)
9723       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)'
9724       hardcode_libdir_flag_spec='-L$libdir'
9725       hardcode_minus_L=yes
9726       # see comment about different semantics on the GNU ld section
9727       ld_shlibs=no
9728       ;;
9729
9730     bsdi[45]*)
9731       export_dynamic_flag_spec=-rdynamic
9732       ;;
9733
9734     cygwin* | mingw* | pw32*)
9735       # When not using gcc, we currently assume that we are using
9736       # Microsoft Visual C++.
9737       # hardcode_libdir_flag_spec is actually meaningless, as there is
9738       # no search path for DLLs.
9739       hardcode_libdir_flag_spec=' '
9740       allow_undefined_flag=unsupported
9741       # Tell ltmain to make .lib files, not .a files.
9742       libext=lib
9743       # Tell ltmain to make .dll files, not .so files.
9744       shrext_cmds=".dll"
9745       # FIXME: Setting linknames here is a bad hack.
9746       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9747       # The linker will automatically build a .lib file if we build a DLL.
9748       old_archive_From_new_cmds='true'
9749       # FIXME: Should let the user specify the lib program.
9750       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9751       fix_srcfile_path='`cygpath -w "$srcfile"`'
9752       enable_shared_with_static_runtimes=yes
9753       ;;
9754
9755     darwin* | rhapsody*)
9756       case $host_os in
9757         rhapsody* | darwin1.[012])
9758          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9759          ;;
9760        *) # Darwin 1.3 on
9761          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9762            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9763          else
9764            case ${MACOSX_DEPLOYMENT_TARGET} in
9765              10.[012])
9766                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9767                ;;
9768              10.*)
9769                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9770                ;;
9771            esac
9772          fi
9773          ;;
9774       esac
9775       archive_cmds_need_lc=no
9776       hardcode_direct=no
9777       hardcode_automatic=yes
9778       hardcode_shlibpath_var=unsupported
9779       whole_archive_flag_spec=''
9780       link_all_deplibs=yes
9781     if test "$GCC" = yes ; then
9782         output_verbose_link_cmd='echo'
9783         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9784       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9785       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9786       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}'
9787       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}'
9788     else
9789       case $cc_basename in
9790         xlc*)
9791          output_verbose_link_cmd='echo'
9792          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9793          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9794           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9795          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}'
9796           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}'
9797           ;;
9798        *)
9799          ld_shlibs=no
9800           ;;
9801       esac
9802     fi
9803       ;;
9804
9805     dgux*)
9806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807       hardcode_libdir_flag_spec='-L$libdir'
9808       hardcode_shlibpath_var=no
9809       ;;
9810
9811     freebsd1*)
9812       ld_shlibs=no
9813       ;;
9814
9815     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9816     # support.  Future versions do this automatically, but an explicit c++rt0.o
9817     # does not break anything, and helps significantly (at the cost of a little
9818     # extra space).
9819     freebsd2.2*)
9820       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9821       hardcode_libdir_flag_spec='-R$libdir'
9822       hardcode_direct=yes
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9827     freebsd2*)
9828       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9829       hardcode_direct=yes
9830       hardcode_minus_L=yes
9831       hardcode_shlibpath_var=no
9832       ;;
9833
9834     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9835     freebsd* | dragonfly*)
9836       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9837       hardcode_libdir_flag_spec='-R$libdir'
9838       hardcode_direct=yes
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     hpux9*)
9843       if test "$GCC" = yes; then
9844         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'
9845       else
9846         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'
9847       fi
9848       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849       hardcode_libdir_separator=:
9850       hardcode_direct=yes
9851
9852       # hardcode_minus_L: Not really in the search PATH,
9853       # but as the default location of the library.
9854       hardcode_minus_L=yes
9855       export_dynamic_flag_spec='${wl}-E'
9856       ;;
9857
9858     hpux10*)
9859       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9860         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9861       else
9862         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9863       fi
9864       if test "$with_gnu_ld" = no; then
9865         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9866         hardcode_libdir_separator=:
9867
9868         hardcode_direct=yes
9869         export_dynamic_flag_spec='${wl}-E'
9870
9871         # hardcode_minus_L: Not really in the search PATH,
9872         # but as the default location of the library.
9873         hardcode_minus_L=yes
9874       fi
9875       ;;
9876
9877     hpux11*)
9878       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9879         case $host_cpu in
9880         hppa*64*)
9881           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9882           ;;
9883         ia64*)
9884           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9885           ;;
9886         *)
9887           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888           ;;
9889         esac
9890       else
9891         case $host_cpu in
9892         hppa*64*)
9893           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894           ;;
9895         ia64*)
9896           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9897           ;;
9898         *)
9899           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900           ;;
9901         esac
9902       fi
9903       if test "$with_gnu_ld" = no; then
9904         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9905         hardcode_libdir_separator=:
9906
9907         case $host_cpu in
9908         hppa*64*|ia64*)
9909           hardcode_libdir_flag_spec_ld='+b $libdir'
9910           hardcode_direct=no
9911           hardcode_shlibpath_var=no
9912           ;;
9913         *)
9914           hardcode_direct=yes
9915           export_dynamic_flag_spec='${wl}-E'
9916
9917           # hardcode_minus_L: Not really in the search PATH,
9918           # but as the default location of the library.
9919           hardcode_minus_L=yes
9920           ;;
9921         esac
9922       fi
9923       ;;
9924
9925     irix5* | irix6* | nonstopux*)
9926       if test "$GCC" = yes; then
9927         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'
9928       else
9929         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'
9930         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9931       fi
9932       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9933       hardcode_libdir_separator=:
9934       link_all_deplibs=yes
9935       ;;
9936
9937     netbsd* | netbsdelf*-gnu)
9938       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9940       else
9941         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9942       fi
9943       hardcode_libdir_flag_spec='-R$libdir'
9944       hardcode_direct=yes
9945       hardcode_shlibpath_var=no
9946       ;;
9947
9948     newsos6)
9949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950       hardcode_direct=yes
9951       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952       hardcode_libdir_separator=:
9953       hardcode_shlibpath_var=no
9954       ;;
9955
9956     openbsd*)
9957       if test -f /usr/libexec/ld.so; then
9958         hardcode_direct=yes
9959         hardcode_shlibpath_var=no
9960         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9961           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9963           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964           export_dynamic_flag_spec='${wl}-E'
9965         else
9966           case $host_os in
9967            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9968              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9969              hardcode_libdir_flag_spec='-R$libdir'
9970              ;;
9971            *)
9972              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9974              ;;
9975           esac
9976         fi
9977       else
9978         ld_shlibs=no
9979       fi
9980       ;;
9981
9982     os2*)
9983       hardcode_libdir_flag_spec='-L$libdir'
9984       hardcode_minus_L=yes
9985       allow_undefined_flag=unsupported
9986       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'
9987       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9988       ;;
9989
9990     osf3*)
9991       if test "$GCC" = yes; then
9992         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9993         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'
9994       else
9995         allow_undefined_flag=' -expect_unresolved \*'
9996         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'
9997       fi
9998       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999       hardcode_libdir_separator=:
10000       ;;
10001
10002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10003       if test "$GCC" = yes; then
10004         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10005         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'
10006         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007       else
10008         allow_undefined_flag=' -expect_unresolved \*'
10009         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'
10010         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10011         $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'
10012
10013         # Both c and cxx compiler support -rpath directly
10014         hardcode_libdir_flag_spec='-rpath $libdir'
10015       fi
10016       hardcode_libdir_separator=:
10017       ;;
10018
10019     solaris*)
10020       no_undefined_flag=' -z text'
10021       if test "$GCC" = yes; then
10022         wlarc='${wl}'
10023         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10025           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10026       else
10027         wlarc=''
10028         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10030         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10031       fi
10032       hardcode_libdir_flag_spec='-R$libdir'
10033       hardcode_shlibpath_var=no
10034       case $host_os in
10035       solaris2.[0-5] | solaris2.[0-5].*) ;;
10036       *)
10037         # The compiler driver will combine and reorder linker options,
10038         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10039         # but is careful enough not to reorder.
10040         # Supported since Solaris 2.6 (maybe 2.5.1?)
10041         if test "$GCC" = yes; then
10042           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10043         else
10044           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10045         fi
10046         ;;
10047       esac
10048       link_all_deplibs=yes
10049       ;;
10050
10051     sunos4*)
10052       if test "x$host_vendor" = xsequent; then
10053         # Use $CC to link under sequent, because it throws in some extra .o
10054         # files that make .init and .fini sections work.
10055         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10056       else
10057         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10058       fi
10059       hardcode_libdir_flag_spec='-L$libdir'
10060       hardcode_direct=yes
10061       hardcode_minus_L=yes
10062       hardcode_shlibpath_var=no
10063       ;;
10064
10065     sysv4)
10066       case $host_vendor in
10067         sni)
10068           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069           hardcode_direct=yes # is this really true???
10070         ;;
10071         siemens)
10072           ## LD is ld it makes a PLAMLIB
10073           ## CC just makes a GrossModule.
10074           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10075           reload_cmds='$CC -r -o $output$reload_objs'
10076           hardcode_direct=no
10077         ;;
10078         motorola)
10079           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10081         ;;
10082       esac
10083       runpath_var='LD_RUN_PATH'
10084       hardcode_shlibpath_var=no
10085       ;;
10086
10087     sysv4.3*)
10088       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089       hardcode_shlibpath_var=no
10090       export_dynamic_flag_spec='-Bexport'
10091       ;;
10092
10093     sysv4*MP*)
10094       if test -d /usr/nec; then
10095         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096         hardcode_shlibpath_var=no
10097         runpath_var=LD_RUN_PATH
10098         hardcode_runpath_var=yes
10099         ld_shlibs=yes
10100       fi
10101       ;;
10102
10103     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10104       no_undefined_flag='${wl}-z,text'
10105       archive_cmds_need_lc=no
10106       hardcode_shlibpath_var=no
10107       runpath_var='LD_RUN_PATH'
10108
10109       if test "$GCC" = yes; then
10110         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112       else
10113         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115       fi
10116       ;;
10117
10118     sysv5* | sco3.2v5* | sco5v6*)
10119       # Note: We can NOT use -z defs as we might desire, because we do not
10120       # link with -lc, and that would cause any symbols used from libc to
10121       # always be unresolved, which means just about no library would
10122       # ever link correctly.  If we're not using GNU ld we use -z text
10123       # though, which does catch some bad symbols but isn't as heavy-handed
10124       # as -z defs.
10125       no_undefined_flag='${wl}-z,text'
10126       allow_undefined_flag='${wl}-z,nodefs'
10127       archive_cmds_need_lc=no
10128       hardcode_shlibpath_var=no
10129       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10130       hardcode_libdir_separator=':'
10131       link_all_deplibs=yes
10132       export_dynamic_flag_spec='${wl}-Bexport'
10133       runpath_var='LD_RUN_PATH'
10134
10135       if test "$GCC" = yes; then
10136         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138       else
10139         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141       fi
10142       ;;
10143
10144     uts4*)
10145       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146       hardcode_libdir_flag_spec='-L$libdir'
10147       hardcode_shlibpath_var=no
10148       ;;
10149
10150     *)
10151       ld_shlibs=no
10152       ;;
10153     esac
10154   fi
10155
10156 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10157 echo "${ECHO_T}$ld_shlibs" >&6; }
10158 test "$ld_shlibs" = no && can_build_shared=no
10159
10160 #
10161 # Do we need to explicitly link libc?
10162 #
10163 case "x$archive_cmds_need_lc" in
10164 x|xyes)
10165   # Assume -lc should be added
10166   archive_cmds_need_lc=yes
10167
10168   if test "$enable_shared" = yes && test "$GCC" = yes; then
10169     case $archive_cmds in
10170     *'~'*)
10171       # FIXME: we may have to deal with multi-command sequences.
10172       ;;
10173     '$CC '*)
10174       # Test whether the compiler implicitly links with -lc since on some
10175       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10176       # to ld, don't add -lc before -lgcc.
10177       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10179       $rm conftest*
10180       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10181
10182       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183   (eval $ac_compile) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } 2>conftest.err; then
10187         soname=conftest
10188         lib=conftest
10189         libobjs=conftest.$ac_objext
10190         deplibs=
10191         wl=$lt_prog_compiler_wl
10192         pic_flag=$lt_prog_compiler_pic
10193         compiler_flags=-v
10194         linker_flags=-v
10195         verstring=
10196         output_objdir=.
10197         libname=conftest
10198         lt_save_allow_undefined_flag=$allow_undefined_flag
10199         allow_undefined_flag=
10200         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10201   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }
10205         then
10206           archive_cmds_need_lc=no
10207         else
10208           archive_cmds_need_lc=yes
10209         fi
10210         allow_undefined_flag=$lt_save_allow_undefined_flag
10211       else
10212         cat conftest.err 1>&5
10213       fi
10214       $rm conftest*
10215       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10216 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10217       ;;
10218     esac
10219   fi
10220   ;;
10221 esac
10222
10223 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10224 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10225 library_names_spec=
10226 libname_spec='lib$name'
10227 soname_spec=
10228 shrext_cmds=".so"
10229 postinstall_cmds=
10230 postuninstall_cmds=
10231 finish_cmds=
10232 finish_eval=
10233 shlibpath_var=
10234 shlibpath_overrides_runpath=unknown
10235 version_type=none
10236 dynamic_linker="$host_os ld.so"
10237 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10238
10239 if test "$GCC" = yes; then
10240   case $host_os in
10241     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10242     *) lt_awk_arg="/^libraries:/" ;;
10243   esac
10244   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10245   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10246     # if the path contains ";" then we assume it to be the separator
10247     # otherwise default to the standard path separator (i.e. ":") - it is
10248     # assumed that no part of a normal pathname contains ";" but that should
10249     # okay in the real world where ";" in dirpaths is itself problematic.
10250     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10251   else
10252     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10253   fi
10254   # Ok, now we have the path, separated by spaces, we can step through it
10255   # and add multilib dir if necessary.
10256   lt_tmp_lt_search_path_spec=
10257   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10258   for lt_sys_path in $lt_search_path_spec; do
10259     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10260       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10261     else
10262       test -d "$lt_sys_path" && \
10263         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10264     fi
10265   done
10266   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10267 BEGIN {RS=" "; FS="/|\n";} {
10268   lt_foo="";
10269   lt_count=0;
10270   for (lt_i = NF; lt_i > 0; lt_i--) {
10271     if ($lt_i != "" && $lt_i != ".") {
10272       if ($lt_i == "..") {
10273         lt_count++;
10274       } else {
10275         if (lt_count == 0) {
10276           lt_foo="/" $lt_i lt_foo;
10277         } else {
10278           lt_count--;
10279         }
10280       }
10281     }
10282   }
10283   if (lt_foo != "") { lt_freq[lt_foo]++; }
10284   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10285 }'`
10286   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10287 else
10288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10289 fi
10290 need_lib_prefix=unknown
10291 hardcode_into_libs=no
10292
10293 # when you set need_version to no, make sure it does not cause -set_version
10294 # flags to be left without arguments
10295 need_version=unknown
10296
10297 case $host_os in
10298 aix3*)
10299   version_type=linux
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10301   shlibpath_var=LIBPATH
10302
10303   # AIX 3 has no versioning support, so we append a major version to the name.
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   ;;
10306
10307 aix4* | aix5*)
10308   version_type=linux
10309   need_lib_prefix=no
10310   need_version=no
10311   hardcode_into_libs=yes
10312   if test "$host_cpu" = ia64; then
10313     # AIX 5 supports IA64
10314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10315     shlibpath_var=LD_LIBRARY_PATH
10316   else
10317     # With GCC up to 2.95.x, collect2 would create an import file
10318     # for dependence libraries.  The import file would start with
10319     # the line `#! .'.  This would cause the generated library to
10320     # depend on `.', always an invalid library.  This was fixed in
10321     # development snapshots of GCC prior to 3.0.
10322     case $host_os in
10323       aix4 | aix4.[01] | aix4.[01].*)
10324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10325            echo ' yes '
10326            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10327         :
10328       else
10329         can_build_shared=no
10330       fi
10331       ;;
10332     esac
10333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10334     # soname into executable. Probably we can add versioning support to
10335     # collect2, so additional links can be useful in future.
10336     if test "$aix_use_runtimelinking" = yes; then
10337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10338       # instead of lib<name>.a to let people know that these are not
10339       # typical AIX shared libraries.
10340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341     else
10342       # We preserve .a as extension for shared libraries through AIX4.2
10343       # and later when we are not doing run time linking.
10344       library_names_spec='${libname}${release}.a $libname.a'
10345       soname_spec='${libname}${release}${shared_ext}$major'
10346     fi
10347     shlibpath_var=LIBPATH
10348   fi
10349   ;;
10350
10351 amigaos*)
10352   library_names_spec='$libname.ixlibrary $libname.a'
10353   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10354   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'
10355   ;;
10356
10357 beos*)
10358   library_names_spec='${libname}${shared_ext}'
10359   dynamic_linker="$host_os ld.so"
10360   shlibpath_var=LIBRARY_PATH
10361   ;;
10362
10363 bsdi[45]*)
10364   version_type=linux
10365   need_version=no
10366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367   soname_spec='${libname}${release}${shared_ext}$major'
10368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10372   # the default ld.so.conf also contains /usr/contrib/lib and
10373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10374   # libtool to hard-code these into programs
10375   ;;
10376
10377 cygwin* | mingw* | pw32*)
10378   version_type=windows
10379   shrext_cmds=".dll"
10380   need_version=no
10381   need_lib_prefix=no
10382
10383   case $GCC,$host_os in
10384   yes,cygwin* | yes,mingw* | yes,pw32*)
10385     library_names_spec='$libname.dll.a'
10386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10387     postinstall_cmds='base_file=`basename \${file}`~
10388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10389       dldir=$destdir/`dirname \$dlpath`~
10390       test -d \$dldir || mkdir -p \$dldir~
10391       $install_prog $dir/$dlname \$dldir/$dlname~
10392       chmod a+x \$dldir/$dlname'
10393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10394       dlpath=$dir/\$dldll~
10395        $rm \$dlpath'
10396     shlibpath_overrides_runpath=yes
10397
10398     case $host_os in
10399     cygwin*)
10400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10403       ;;
10404     mingw*)
10405       # MinGW DLLs use traditional 'lib' prefix
10406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10409         # It is most probably a Windows format PATH printed by
10410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10411         # path with ; separators, and with drive letters. We can handle the
10412         # drive letters (cygwin fileutils understands them), so leave them,
10413         # especially as we might pass files found there to a mingw objdump,
10414         # which wouldn't understand a cygwinified path. Ahh.
10415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10416       else
10417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10418       fi
10419       ;;
10420     pw32*)
10421       # pw32 DLLs use 'pw' prefix rather than 'lib'
10422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423       ;;
10424     esac
10425     ;;
10426
10427   *)
10428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10429     ;;
10430   esac
10431   dynamic_linker='Win32 ld.exe'
10432   # FIXME: first we should search . and the directory the executable is in
10433   shlibpath_var=PATH
10434   ;;
10435
10436 darwin* | rhapsody*)
10437   dynamic_linker="$host_os dyld"
10438   version_type=darwin
10439   need_lib_prefix=no
10440   need_version=no
10441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10442   soname_spec='${libname}${release}${major}$shared_ext'
10443   shlibpath_overrides_runpath=yes
10444   shlibpath_var=DYLD_LIBRARY_PATH
10445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10446
10447   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10448   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10449   ;;
10450
10451 dgux*)
10452   version_type=linux
10453   need_lib_prefix=no
10454   need_version=no
10455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10456   soname_spec='${libname}${release}${shared_ext}$major'
10457   shlibpath_var=LD_LIBRARY_PATH
10458   ;;
10459
10460 freebsd1*)
10461   dynamic_linker=no
10462   ;;
10463
10464 freebsd* | dragonfly*)
10465   # DragonFly does not have aout.  When/if they implement a new
10466   # versioning mechanism, adjust this.
10467   if test -x /usr/bin/objformat; then
10468     objformat=`/usr/bin/objformat`
10469   else
10470     case $host_os in
10471     freebsd[123]*) objformat=aout ;;
10472     *) objformat=elf ;;
10473     esac
10474   fi
10475   version_type=freebsd-$objformat
10476   case $version_type in
10477     freebsd-elf*)
10478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10479       need_version=no
10480       need_lib_prefix=no
10481       ;;
10482     freebsd-*)
10483       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10484       need_version=yes
10485       ;;
10486   esac
10487   shlibpath_var=LD_LIBRARY_PATH
10488   case $host_os in
10489   freebsd2*)
10490     shlibpath_overrides_runpath=yes
10491     ;;
10492   freebsd3.[01]* | freebsdelf3.[01]*)
10493     shlibpath_overrides_runpath=yes
10494     hardcode_into_libs=yes
10495     ;;
10496   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10497   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10498     shlibpath_overrides_runpath=no
10499     hardcode_into_libs=yes
10500     ;;
10501   *) # from 4.6 on, and DragonFly
10502     shlibpath_overrides_runpath=yes
10503     hardcode_into_libs=yes
10504     ;;
10505   esac
10506   ;;
10507
10508 gnu*)
10509   version_type=linux
10510   need_lib_prefix=no
10511   need_version=no
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   shlibpath_var=LD_LIBRARY_PATH
10515   hardcode_into_libs=yes
10516   ;;
10517
10518 hpux9* | hpux10* | hpux11*)
10519   # Give a soname corresponding to the major version so that dld.sl refuses to
10520   # link against other versions.
10521   version_type=sunos
10522   need_lib_prefix=no
10523   need_version=no
10524   case $host_cpu in
10525   ia64*)
10526     shrext_cmds='.so'
10527     hardcode_into_libs=yes
10528     dynamic_linker="$host_os dld.so"
10529     shlibpath_var=LD_LIBRARY_PATH
10530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532     soname_spec='${libname}${release}${shared_ext}$major'
10533     if test "X$HPUX_IA64_MODE" = X32; then
10534       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10535     else
10536       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10537     fi
10538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10539     ;;
10540    hppa*64*)
10541      shrext_cmds='.sl'
10542      hardcode_into_libs=yes
10543      dynamic_linker="$host_os dld.sl"
10544      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10545      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547      soname_spec='${libname}${release}${shared_ext}$major'
10548      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10549      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10550      ;;
10551    *)
10552     shrext_cmds='.sl'
10553     dynamic_linker="$host_os dld.sl"
10554     shlibpath_var=SHLIB_PATH
10555     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557     soname_spec='${libname}${release}${shared_ext}$major'
10558     ;;
10559   esac
10560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10561   postinstall_cmds='chmod 555 $lib'
10562   ;;
10563
10564 interix[3-9]*)
10565   version_type=linux
10566   need_lib_prefix=no
10567   need_version=no
10568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10569   soname_spec='${libname}${release}${shared_ext}$major'
10570   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10571   shlibpath_var=LD_LIBRARY_PATH
10572   shlibpath_overrides_runpath=no
10573   hardcode_into_libs=yes
10574   ;;
10575
10576 irix5* | irix6* | nonstopux*)
10577   case $host_os in
10578     nonstopux*) version_type=nonstopux ;;
10579     *)
10580         if test "$lt_cv_prog_gnu_ld" = yes; then
10581                 version_type=linux
10582         else
10583                 version_type=irix
10584         fi ;;
10585   esac
10586   need_lib_prefix=no
10587   need_version=no
10588   soname_spec='${libname}${release}${shared_ext}$major'
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10590   case $host_os in
10591   irix5* | nonstopux*)
10592     libsuff= shlibsuff=
10593     ;;
10594   *)
10595     case $LD in # libtool.m4 will add one of these switches to LD
10596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10597       libsuff= shlibsuff= libmagic=32-bit;;
10598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10599       libsuff=32 shlibsuff=N32 libmagic=N32;;
10600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10602     *) libsuff= shlibsuff= libmagic=never-match;;
10603     esac
10604     ;;
10605   esac
10606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10607   shlibpath_overrides_runpath=no
10608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10610   hardcode_into_libs=yes
10611   ;;
10612
10613 # No shared lib support for Linux oldld, aout, or coff.
10614 linux*oldld* | linux*aout* | linux*coff*)
10615   dynamic_linker=no
10616   ;;
10617
10618 # This must be Linux ELF.
10619 linux* | k*bsd*-gnu)
10620   version_type=linux
10621   need_lib_prefix=no
10622   need_version=no
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624   soname_spec='${libname}${release}${shared_ext}$major'
10625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10626   shlibpath_var=LD_LIBRARY_PATH
10627   shlibpath_overrides_runpath=no
10628   # This implies no fast_install, which is unacceptable.
10629   # Some rework will be needed to allow for fast_install
10630   # before this can be enabled.
10631   hardcode_into_libs=yes
10632
10633   # Append ld.so.conf contents to the search path
10634   if test -f /etc/ld.so.conf; then
10635     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' ' '`
10636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10637   fi
10638
10639   # We used to test for /lib/ld.so.1 and disable shared libraries on
10640   # powerpc, because MkLinux only supported shared libraries with the
10641   # GNU dynamic linker.  Since this was broken with cross compilers,
10642   # most powerpc-linux boxes support dynamic linking these days and
10643   # people can always --disable-shared, the test was removed, and we
10644   # assume the GNU/Linux dynamic linker is in use.
10645   dynamic_linker='GNU/Linux ld.so'
10646   ;;
10647
10648 netbsdelf*-gnu)
10649   version_type=linux
10650   need_lib_prefix=no
10651   need_version=no
10652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653   soname_spec='${libname}${release}${shared_ext}$major'
10654   shlibpath_var=LD_LIBRARY_PATH
10655   shlibpath_overrides_runpath=no
10656   hardcode_into_libs=yes
10657   dynamic_linker='NetBSD ld.elf_so'
10658   ;;
10659
10660 netbsd*)
10661   version_type=sunos
10662   need_lib_prefix=no
10663   need_version=no
10664   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10667     dynamic_linker='NetBSD (a.out) ld.so'
10668   else
10669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10670     soname_spec='${libname}${release}${shared_ext}$major'
10671     dynamic_linker='NetBSD ld.elf_so'
10672   fi
10673   shlibpath_var=LD_LIBRARY_PATH
10674   shlibpath_overrides_runpath=yes
10675   hardcode_into_libs=yes
10676   ;;
10677
10678 newsos6)
10679   version_type=linux
10680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681   shlibpath_var=LD_LIBRARY_PATH
10682   shlibpath_overrides_runpath=yes
10683   ;;
10684
10685 nto-qnx*)
10686   version_type=linux
10687   need_lib_prefix=no
10688   need_version=no
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690   soname_spec='${libname}${release}${shared_ext}$major'
10691   shlibpath_var=LD_LIBRARY_PATH
10692   shlibpath_overrides_runpath=yes
10693   ;;
10694
10695 openbsd*)
10696   version_type=sunos
10697   sys_lib_dlsearch_path_spec="/usr/lib"
10698   need_lib_prefix=no
10699   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10700   case $host_os in
10701     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10702     *)                         need_version=no  ;;
10703   esac
10704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10706   shlibpath_var=LD_LIBRARY_PATH
10707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10708     case $host_os in
10709       openbsd2.[89] | openbsd2.[89].*)
10710         shlibpath_overrides_runpath=no
10711         ;;
10712       *)
10713         shlibpath_overrides_runpath=yes
10714         ;;
10715       esac
10716   else
10717     shlibpath_overrides_runpath=yes
10718   fi
10719   ;;
10720
10721 os2*)
10722   libname_spec='$name'
10723   shrext_cmds=".dll"
10724   need_lib_prefix=no
10725   library_names_spec='$libname${shared_ext} $libname.a'
10726   dynamic_linker='OS/2 ld.exe'
10727   shlibpath_var=LIBPATH
10728   ;;
10729
10730 osf3* | osf4* | osf5*)
10731   version_type=osf
10732   need_lib_prefix=no
10733   need_version=no
10734   soname_spec='${libname}${release}${shared_ext}$major'
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736   shlibpath_var=LD_LIBRARY_PATH
10737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10739   ;;
10740
10741 rdos*)
10742   dynamic_linker=no
10743   ;;
10744
10745 solaris*)
10746   version_type=linux
10747   need_lib_prefix=no
10748   need_version=no
10749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750   soname_spec='${libname}${release}${shared_ext}$major'
10751   shlibpath_var=LD_LIBRARY_PATH
10752   shlibpath_overrides_runpath=yes
10753   hardcode_into_libs=yes
10754   # ldd complains unless libraries are executable
10755   postinstall_cmds='chmod +x $lib'
10756   ;;
10757
10758 sunos4*)
10759   version_type=sunos
10760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10762   shlibpath_var=LD_LIBRARY_PATH
10763   shlibpath_overrides_runpath=yes
10764   if test "$with_gnu_ld" = yes; then
10765     need_lib_prefix=no
10766   fi
10767   need_version=yes
10768   ;;
10769
10770 sysv4 | sysv4.3*)
10771   version_type=linux
10772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   shlibpath_var=LD_LIBRARY_PATH
10775   case $host_vendor in
10776     sni)
10777       shlibpath_overrides_runpath=no
10778       need_lib_prefix=no
10779       export_dynamic_flag_spec='${wl}-Blargedynsym'
10780       runpath_var=LD_RUN_PATH
10781       ;;
10782     siemens)
10783       need_lib_prefix=no
10784       ;;
10785     motorola)
10786       need_lib_prefix=no
10787       need_version=no
10788       shlibpath_overrides_runpath=no
10789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10790       ;;
10791   esac
10792   ;;
10793
10794 sysv4*MP*)
10795   if test -d /usr/nec ;then
10796     version_type=linux
10797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10798     soname_spec='$libname${shared_ext}.$major'
10799     shlibpath_var=LD_LIBRARY_PATH
10800   fi
10801   ;;
10802
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10804   version_type=freebsd-elf
10805   need_lib_prefix=no
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   shlibpath_var=LD_LIBRARY_PATH
10810   hardcode_into_libs=yes
10811   if test "$with_gnu_ld" = yes; then
10812     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10813     shlibpath_overrides_runpath=no
10814   else
10815     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10816     shlibpath_overrides_runpath=yes
10817     case $host_os in
10818       sco3.2v5*)
10819         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10820         ;;
10821     esac
10822   fi
10823   sys_lib_dlsearch_path_spec='/usr/lib'
10824   ;;
10825
10826 uts4*)
10827   version_type=linux
10828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829   soname_spec='${libname}${release}${shared_ext}$major'
10830   shlibpath_var=LD_LIBRARY_PATH
10831   ;;
10832
10833 *)
10834   dynamic_linker=no
10835   ;;
10836 esac
10837 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10838 echo "${ECHO_T}$dynamic_linker" >&6; }
10839 test "$dynamic_linker" = no && can_build_shared=no
10840
10841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10842 if test "$GCC" = yes; then
10843   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10844 fi
10845
10846 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10847 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10848 hardcode_action=
10849 if test -n "$hardcode_libdir_flag_spec" || \
10850    test -n "$runpath_var" || \
10851    test "X$hardcode_automatic" = "Xyes" ; then
10852
10853   # We can hardcode non-existant directories.
10854   if test "$hardcode_direct" != no &&
10855      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10856      # have to relink, otherwise we might link with an installed library
10857      # when we should be linking with a yet-to-be-installed one
10858      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10859      test "$hardcode_minus_L" != no; then
10860     # Linking always hardcodes the temporary library directory.
10861     hardcode_action=relink
10862   else
10863     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10864     hardcode_action=immediate
10865   fi
10866 else
10867   # We cannot hardcode anything, or else we can only hardcode existing
10868   # directories.
10869   hardcode_action=unsupported
10870 fi
10871 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10872 echo "${ECHO_T}$hardcode_action" >&6; }
10873
10874 if test "$hardcode_action" = relink; then
10875   # Fast installation is not supported
10876   enable_fast_install=no
10877 elif test "$shlibpath_overrides_runpath" = yes ||
10878      test "$enable_shared" = no; then
10879   # Fast installation is not necessary
10880   enable_fast_install=needless
10881 fi
10882
10883 striplib=
10884 old_striplib=
10885 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10886 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10887 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10888   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10889   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10890   { echo "$as_me:$LINENO: result: yes" >&5
10891 echo "${ECHO_T}yes" >&6; }
10892 else
10893 # FIXME - insert some real tests, host_os isn't really good enough
10894   case $host_os in
10895    darwin*)
10896        if test -n "$STRIP" ; then
10897          striplib="$STRIP -x"
10898          old_striplib="$STRIP -S"
10899          { echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10901        else
10902   { echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6; }
10904 fi
10905        ;;
10906    *)
10907   { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10909     ;;
10910   esac
10911 fi
10912
10913 if test "x$enable_dlopen" != xyes; then
10914   enable_dlopen=unknown
10915   enable_dlopen_self=unknown
10916   enable_dlopen_self_static=unknown
10917 else
10918   lt_cv_dlopen=no
10919   lt_cv_dlopen_libs=
10920
10921   case $host_os in
10922   beos*)
10923     lt_cv_dlopen="load_add_on"
10924     lt_cv_dlopen_libs=
10925     lt_cv_dlopen_self=yes
10926     ;;
10927
10928   mingw* | pw32*)
10929     lt_cv_dlopen="LoadLibrary"
10930     lt_cv_dlopen_libs=
10931    ;;
10932
10933   cygwin*)
10934     lt_cv_dlopen="dlopen"
10935     lt_cv_dlopen_libs=
10936    ;;
10937
10938   darwin*)
10939   # if libdl is installed we need to link against it
10940     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl  $LIBS"
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955    Use char because int might match the return type of a GCC
10956    builtin and then its argument prototype would still apply.  */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10961 int
10962 main ()
10963 {
10964 return dlopen ();
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973   *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976   (eval "$ac_link") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } && {
10983          test -z "$ac_c_werror_flag" ||
10984          test ! -s conftest.err
10985        } && test -s conftest$ac_exeext &&
10986        $as_test_x conftest$ac_exeext; then
10987   ac_cv_lib_dl_dlopen=yes
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992         ac_cv_lib_dl_dlopen=no
10993 fi
10994
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996       conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11000 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11001 if test $ac_cv_lib_dl_dlopen = yes; then
11002   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11003 else
11004
11005     lt_cv_dlopen="dyld"
11006     lt_cv_dlopen_libs=
11007     lt_cv_dlopen_self=yes
11008
11009 fi
11010
11011    ;;
11012
11013   *)
11014     { echo "$as_me:$LINENO: checking for shl_load" >&5
11015 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11016 if test "${ac_cv_func_shl_load+set}" = set; then
11017   echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019   cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11027 #define shl_load innocuous_shl_load
11028
11029 /* System header to define __stub macros and hopefully few prototypes,
11030     which can conflict with char shl_load (); below.
11031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032     <limits.h> exists even on freestanding compilers.  */
11033
11034 #ifdef __STDC__
11035 # include <limits.h>
11036 #else
11037 # include <assert.h>
11038 #endif
11039
11040 #undef shl_load
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043    Use char because int might match the return type of a GCC
11044    builtin and then its argument prototype would still apply.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char shl_load ();
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined __stub_shl_load || defined __stub___shl_load
11053 choke me
11054 #endif
11055
11056 int
11057 main ()
11058 {
11059 return shl_load ();
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068   *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071   (eval "$ac_link") 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } && {
11078          test -z "$ac_c_werror_flag" ||
11079          test ! -s conftest.err
11080        } && test -s conftest$ac_exeext &&
11081        $as_test_x conftest$ac_exeext; then
11082   ac_cv_func_shl_load=yes
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087         ac_cv_func_shl_load=no
11088 fi
11089
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091       conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11094 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11095 if test $ac_cv_func_shl_load = yes; then
11096   lt_cv_dlopen="shl_load"
11097 else
11098   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11099 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11100 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-ldld  $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113    Use char because int might match the return type of a GCC
11114    builtin and then its argument prototype would still apply.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char shl_load ();
11119 int
11120 main ()
11121 {
11122 return shl_load ();
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (ac_try="$ac_link"
11129 case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_link") 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } && {
11141          test -z "$ac_c_werror_flag" ||
11142          test ! -s conftest.err
11143        } && test -s conftest$ac_exeext &&
11144        $as_test_x conftest$ac_exeext; then
11145   ac_cv_lib_dld_shl_load=yes
11146 else
11147   echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150         ac_cv_lib_dld_shl_load=no
11151 fi
11152
11153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154       conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11156 fi
11157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11158 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11159 if test $ac_cv_lib_dld_shl_load = yes; then
11160   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11161 else
11162   { echo "$as_me:$LINENO: checking for dlopen" >&5
11163 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11164 if test "${ac_cv_func_dlopen+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11175 #define dlopen innocuous_dlopen
11176
11177 /* System header to define __stub macros and hopefully few prototypes,
11178     which can conflict with char dlopen (); below.
11179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11180     <limits.h> exists even on freestanding compilers.  */
11181
11182 #ifdef __STDC__
11183 # include <limits.h>
11184 #else
11185 # include <assert.h>
11186 #endif
11187
11188 #undef dlopen
11189
11190 /* Override any GCC internal prototype to avoid an error.
11191    Use char because int might match the return type of a GCC
11192    builtin and then its argument prototype would still apply.  */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char dlopen ();
11197 /* The GNU C library defines this for functions which it implements
11198     to always fail with ENOSYS.  Some functions are actually named
11199     something starting with __ and the normal name is an alias.  */
11200 #if defined __stub_dlopen || defined __stub___dlopen
11201 choke me
11202 #endif
11203
11204 int
11205 main ()
11206 {
11207 return dlopen ();
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext conftest$ac_exeext
11213 if { (ac_try="$ac_link"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_link") 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } && {
11226          test -z "$ac_c_werror_flag" ||
11227          test ! -s conftest.err
11228        } && test -s conftest$ac_exeext &&
11229        $as_test_x conftest$ac_exeext; then
11230   ac_cv_func_dlopen=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_cv_func_dlopen=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11239       conftest$ac_exeext conftest.$ac_ext
11240 fi
11241 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11242 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11243 if test $ac_cv_func_dlopen = yes; then
11244   lt_cv_dlopen="dlopen"
11245 else
11246   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251   ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldl  $LIBS"
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259
11260 /* Override any GCC internal prototype to avoid an error.
11261    Use char because int might match the return type of a GCC
11262    builtin and then its argument prototype would still apply.  */
11263 #ifdef __cplusplus
11264 extern "C"
11265 #endif
11266 char dlopen ();
11267 int
11268 main ()
11269 {
11270 return dlopen ();
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (ac_try="$ac_link"
11277 case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_link") 2>conftest.er1
11283   ac_status=$?
11284   grep -v '^ *+' conftest.er1 >conftest.err
11285   rm -f conftest.er1
11286   cat conftest.err >&5
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); } && {
11289          test -z "$ac_c_werror_flag" ||
11290          test ! -s conftest.err
11291        } && test -s conftest$ac_exeext &&
11292        $as_test_x conftest$ac_exeext; then
11293   ac_cv_lib_dl_dlopen=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298         ac_cv_lib_dl_dlopen=no
11299 fi
11300
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302       conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11306 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11307 if test $ac_cv_lib_dl_dlopen = yes; then
11308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11309 else
11310   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11311 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11312 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-lsvld  $LIBS"
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325    Use char because int might match the return type of a GCC
11326    builtin and then its argument prototype would still apply.  */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char dlopen ();
11331 int
11332 main ()
11333 {
11334 return dlopen ();
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343   *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346   (eval "$ac_link") 2>conftest.er1
11347   ac_status=$?
11348   grep -v '^ *+' conftest.er1 >conftest.err
11349   rm -f conftest.er1
11350   cat conftest.err >&5
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } && {
11353          test -z "$ac_c_werror_flag" ||
11354          test ! -s conftest.err
11355        } && test -s conftest$ac_exeext &&
11356        $as_test_x conftest$ac_exeext; then
11357   ac_cv_lib_svld_dlopen=yes
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362         ac_cv_lib_svld_dlopen=no
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366       conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11368 fi
11369 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11370 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11371 if test $ac_cv_lib_svld_dlopen = yes; then
11372   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11373 else
11374   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11375 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11376 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   ac_check_lib_save_LIBS=$LIBS
11380 LIBS="-ldld  $LIBS"
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389    Use char because int might match the return type of a GCC
11390    builtin and then its argument prototype would still apply.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dld_link ();
11395 int
11396 main ()
11397 {
11398 return dld_link ();
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (ac_try="$ac_link"
11405 case "(($ac_try" in
11406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407   *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410   (eval "$ac_link") 2>conftest.er1
11411   ac_status=$?
11412   grep -v '^ *+' conftest.er1 >conftest.err
11413   rm -f conftest.er1
11414   cat conftest.err >&5
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } && {
11417          test -z "$ac_c_werror_flag" ||
11418          test ! -s conftest.err
11419        } && test -s conftest$ac_exeext &&
11420        $as_test_x conftest$ac_exeext; then
11421   ac_cv_lib_dld_dld_link=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426         ac_cv_lib_dld_dld_link=no
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430       conftest$ac_exeext conftest.$ac_ext
11431 LIBS=$ac_check_lib_save_LIBS
11432 fi
11433 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11434 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11435 if test $ac_cv_lib_dld_dld_link = yes; then
11436   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11437 fi
11438
11439
11440 fi
11441
11442
11443 fi
11444
11445
11446 fi
11447
11448
11449 fi
11450
11451
11452 fi
11453
11454     ;;
11455   esac
11456
11457   if test "x$lt_cv_dlopen" != xno; then
11458     enable_dlopen=yes
11459   else
11460     enable_dlopen=no
11461   fi
11462
11463   case $lt_cv_dlopen in
11464   dlopen)
11465     save_CPPFLAGS="$CPPFLAGS"
11466     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11467
11468     save_LDFLAGS="$LDFLAGS"
11469     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11470
11471     save_LIBS="$LIBS"
11472     LIBS="$lt_cv_dlopen_libs $LIBS"
11473
11474     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11475 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11476 if test "${lt_cv_dlopen_self+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479           if test "$cross_compiling" = yes; then :
11480   lt_cv_dlopen_self=cross
11481 else
11482   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11483   lt_status=$lt_dlunknown
11484   cat > conftest.$ac_ext <<EOF
11485 #line 11485 "configure"
11486 #include "confdefs.h"
11487
11488 #if HAVE_DLFCN_H
11489 #include <dlfcn.h>
11490 #endif
11491
11492 #include <stdio.h>
11493
11494 #ifdef RTLD_GLOBAL
11495 #  define LT_DLGLOBAL           RTLD_GLOBAL
11496 #else
11497 #  ifdef DL_GLOBAL
11498 #    define LT_DLGLOBAL         DL_GLOBAL
11499 #  else
11500 #    define LT_DLGLOBAL         0
11501 #  endif
11502 #endif
11503
11504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11505    find out it does not work in some platform. */
11506 #ifndef LT_DLLAZY_OR_NOW
11507 #  ifdef RTLD_LAZY
11508 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11509 #  else
11510 #    ifdef DL_LAZY
11511 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11512 #    else
11513 #      ifdef RTLD_NOW
11514 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11515 #      else
11516 #        ifdef DL_NOW
11517 #          define LT_DLLAZY_OR_NOW      DL_NOW
11518 #        else
11519 #          define LT_DLLAZY_OR_NOW      0
11520 #        endif
11521 #      endif
11522 #    endif
11523 #  endif
11524 #endif
11525
11526 #ifdef __cplusplus
11527 extern "C" void exit (int);
11528 #endif
11529
11530 void fnord() { int i=42;}
11531 int main ()
11532 {
11533   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11534   int status = $lt_dlunknown;
11535
11536   if (self)
11537     {
11538       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11539       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11540       /* dlclose (self); */
11541     }
11542   else
11543     puts (dlerror ());
11544
11545     exit (status);
11546 }
11547 EOF
11548   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549   (eval $ac_link) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11553     (./conftest; exit; ) >&5 2>/dev/null
11554     lt_status=$?
11555     case x$lt_status in
11556       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11557       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11558       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11559     esac
11560   else :
11561     # compilation failed
11562     lt_cv_dlopen_self=no
11563   fi
11564 fi
11565 rm -fr conftest*
11566
11567
11568 fi
11569 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11571
11572     if test "x$lt_cv_dlopen_self" = xyes; then
11573       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11574       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11576 if test "${lt_cv_dlopen_self_static+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579           if test "$cross_compiling" = yes; then :
11580   lt_cv_dlopen_self_static=cross
11581 else
11582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11583   lt_status=$lt_dlunknown
11584   cat > conftest.$ac_ext <<EOF
11585 #line 11585 "configure"
11586 #include "confdefs.h"
11587
11588 #if HAVE_DLFCN_H
11589 #include <dlfcn.h>
11590 #endif
11591
11592 #include <stdio.h>
11593
11594 #ifdef RTLD_GLOBAL
11595 #  define LT_DLGLOBAL           RTLD_GLOBAL
11596 #else
11597 #  ifdef DL_GLOBAL
11598 #    define LT_DLGLOBAL         DL_GLOBAL
11599 #  else
11600 #    define LT_DLGLOBAL         0
11601 #  endif
11602 #endif
11603
11604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605    find out it does not work in some platform. */
11606 #ifndef LT_DLLAZY_OR_NOW
11607 #  ifdef RTLD_LAZY
11608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11609 #  else
11610 #    ifdef DL_LAZY
11611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11612 #    else
11613 #      ifdef RTLD_NOW
11614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11615 #      else
11616 #        ifdef DL_NOW
11617 #          define LT_DLLAZY_OR_NOW      DL_NOW
11618 #        else
11619 #          define LT_DLLAZY_OR_NOW      0
11620 #        endif
11621 #      endif
11622 #    endif
11623 #  endif
11624 #endif
11625
11626 #ifdef __cplusplus
11627 extern "C" void exit (int);
11628 #endif
11629
11630 void fnord() { int i=42;}
11631 int main ()
11632 {
11633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11634   int status = $lt_dlunknown;
11635
11636   if (self)
11637     {
11638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11640       /* dlclose (self); */
11641     }
11642   else
11643     puts (dlerror ());
11644
11645     exit (status);
11646 }
11647 EOF
11648   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649   (eval $ac_link) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11653     (./conftest; exit; ) >&5 2>/dev/null
11654     lt_status=$?
11655     case x$lt_status in
11656       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11657       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11658       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11659     esac
11660   else :
11661     # compilation failed
11662     lt_cv_dlopen_self_static=no
11663   fi
11664 fi
11665 rm -fr conftest*
11666
11667
11668 fi
11669 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11670 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11671     fi
11672
11673     CPPFLAGS="$save_CPPFLAGS"
11674     LDFLAGS="$save_LDFLAGS"
11675     LIBS="$save_LIBS"
11676     ;;
11677   esac
11678
11679   case $lt_cv_dlopen_self in
11680   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11681   *) enable_dlopen_self=unknown ;;
11682   esac
11683
11684   case $lt_cv_dlopen_self_static in
11685   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11686   *) enable_dlopen_self_static=unknown ;;
11687   esac
11688 fi
11689
11690
11691 # Report which library types will actually be built
11692 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11694 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11695 echo "${ECHO_T}$can_build_shared" >&6; }
11696
11697 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11699 test "$can_build_shared" = "no" && enable_shared=no
11700
11701 # On AIX, shared libraries and static libraries use the same namespace, and
11702 # are all built from PIC.
11703 case $host_os in
11704 aix3*)
11705   test "$enable_shared" = yes && enable_static=no
11706   if test -n "$RANLIB"; then
11707     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11708     postinstall_cmds='$RANLIB $lib'
11709   fi
11710   ;;
11711
11712 aix4* | aix5*)
11713   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11714     test "$enable_shared" = yes && enable_static=no
11715   fi
11716     ;;
11717 esac
11718 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11719 echo "${ECHO_T}$enable_shared" >&6; }
11720
11721 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11722 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11723 # Make sure either enable_shared or enable_static is yes.
11724 test "$enable_shared" = yes || enable_static=yes
11725 { echo "$as_me:$LINENO: result: $enable_static" >&5
11726 echo "${ECHO_T}$enable_static" >&6; }
11727
11728 # The else clause should only fire when bootstrapping the
11729 # libtool distribution, otherwise you forgot to ship ltmain.sh
11730 # with your package, and you will get complaints that there are
11731 # no rules to generate ltmain.sh.
11732 if test -f "$ltmain"; then
11733   # See if we are running on zsh, and set the options which allow our commands through
11734   # without removal of \ escapes.
11735   if test -n "${ZSH_VERSION+set}" ; then
11736     setopt NO_GLOB_SUBST
11737   fi
11738   # Now quote all the things that may contain metacharacters while being
11739   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11740   # variables and quote the copies for generation of the libtool script.
11741   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11742     SED SHELL STRIP \
11743     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11744     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11745     deplibs_check_method reload_flag reload_cmds need_locks \
11746     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11747     lt_cv_sys_global_symbol_to_c_name_address \
11748     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11749     old_postinstall_cmds old_postuninstall_cmds \
11750     compiler \
11751     CC \
11752     LD \
11753     lt_prog_compiler_wl \
11754     lt_prog_compiler_pic \
11755     lt_prog_compiler_static \
11756     lt_prog_compiler_no_builtin_flag \
11757     export_dynamic_flag_spec \
11758     thread_safe_flag_spec \
11759     whole_archive_flag_spec \
11760     enable_shared_with_static_runtimes \
11761     old_archive_cmds \
11762     old_archive_from_new_cmds \
11763     predep_objects \
11764     postdep_objects \
11765     predeps \
11766     postdeps \
11767     compiler_lib_search_path \
11768     archive_cmds \
11769     archive_expsym_cmds \
11770     postinstall_cmds \
11771     postuninstall_cmds \
11772     old_archive_from_expsyms_cmds \
11773     allow_undefined_flag \
11774     no_undefined_flag \
11775     export_symbols_cmds \
11776     hardcode_libdir_flag_spec \
11777     hardcode_libdir_flag_spec_ld \
11778     hardcode_libdir_separator \
11779     hardcode_automatic \
11780     module_cmds \
11781     module_expsym_cmds \
11782     lt_cv_prog_compiler_c_o \
11783     fix_srcfile_path \
11784     exclude_expsyms \
11785     include_expsyms; do
11786
11787     case $var in
11788     old_archive_cmds | \
11789     old_archive_from_new_cmds | \
11790     archive_cmds | \
11791     archive_expsym_cmds | \
11792     module_cmds | \
11793     module_expsym_cmds | \
11794     old_archive_from_expsyms_cmds | \
11795     export_symbols_cmds | \
11796     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11797     postinstall_cmds | postuninstall_cmds | \
11798     old_postinstall_cmds | old_postuninstall_cmds | \
11799     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11800       # Double-quote double-evaled strings.
11801       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11802       ;;
11803     *)
11804       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11805       ;;
11806     esac
11807   done
11808
11809   case $lt_echo in
11810   *'\$0 --fallback-echo"')
11811     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11812     ;;
11813   esac
11814
11815 cfgfile="${ofile}T"
11816   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11817   $rm -f "$cfgfile"
11818   { echo "$as_me:$LINENO: creating $ofile" >&5
11819 echo "$as_me: creating $ofile" >&6;}
11820
11821   cat <<__EOF__ >> "$cfgfile"
11822 #! $SHELL
11823
11824 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11825 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11827 #
11828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11829 # Free Software Foundation, Inc.
11830 #
11831 # This file is part of GNU Libtool:
11832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11833 #
11834 # This program is free software; you can redistribute it and/or modify
11835 # it under the terms of the GNU General Public License as published by
11836 # the Free Software Foundation; either version 2 of the License, or
11837 # (at your option) any later version.
11838 #
11839 # This program is distributed in the hope that it will be useful, but
11840 # WITHOUT ANY WARRANTY; without even the implied warranty of
11841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11842 # General Public License for more details.
11843 #
11844 # You should have received a copy of the GNU General Public License
11845 # along with this program; if not, write to the Free Software
11846 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11847 #
11848 # As a special exception to the GNU General Public License, if you
11849 # distribute this file as part of a program that contains a
11850 # configuration script generated by Autoconf, you may include it under
11851 # the same distribution terms that you use for the rest of that program.
11852
11853 # A sed program that does not truncate output.
11854 SED=$lt_SED
11855
11856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11857 Xsed="$SED -e 1s/^X//"
11858
11859 # The HP-UX ksh and POSIX shell print the target directory to stdout
11860 # if CDPATH is set.
11861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11862
11863 # The names of the tagged configurations supported by this script.
11864 available_tags=
11865
11866 # ### BEGIN LIBTOOL CONFIG
11867
11868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11869
11870 # Shell to use when invoking shell scripts.
11871 SHELL=$lt_SHELL
11872
11873 # Whether or not to build shared libraries.
11874 build_libtool_libs=$enable_shared
11875
11876 # Whether or not to build static libraries.
11877 build_old_libs=$enable_static
11878
11879 # Whether or not to add -lc for building shared libraries.
11880 build_libtool_need_lc=$archive_cmds_need_lc
11881
11882 # Whether or not to disallow shared libs when runtime libs are static
11883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11884
11885 # Whether or not to optimize for fast installation.
11886 fast_install=$enable_fast_install
11887
11888 # The host system.
11889 host_alias=$host_alias
11890 host=$host
11891 host_os=$host_os
11892
11893 # The build system.
11894 build_alias=$build_alias
11895 build=$build
11896 build_os=$build_os
11897
11898 # An echo program that does not interpret backslashes.
11899 echo=$lt_echo
11900
11901 # The archiver.
11902 AR=$lt_AR
11903 AR_FLAGS=$lt_AR_FLAGS
11904
11905 # A C compiler.
11906 LTCC=$lt_LTCC
11907
11908 # LTCC compiler flags.
11909 LTCFLAGS=$lt_LTCFLAGS
11910
11911 # A language-specific compiler.
11912 CC=$lt_compiler
11913
11914 # Is the compiler the GNU C compiler?
11915 with_gcc=$GCC
11916
11917 # An ERE matcher.
11918 EGREP=$lt_EGREP
11919
11920 # The linker used to build libraries.
11921 LD=$lt_LD
11922
11923 # Whether we need hard or soft links.
11924 LN_S=$lt_LN_S
11925
11926 # A BSD-compatible nm program.
11927 NM=$lt_NM
11928
11929 # A symbol stripping program
11930 STRIP=$lt_STRIP
11931
11932 # Used to examine libraries when file_magic_cmd begins "file"
11933 MAGIC_CMD=$MAGIC_CMD
11934
11935 # Used on cygwin: DLL creation program.
11936 DLLTOOL="$DLLTOOL"
11937
11938 # Used on cygwin: object dumper.
11939 OBJDUMP="$OBJDUMP"
11940
11941 # Used on cygwin: assembler.
11942 AS="$AS"
11943
11944 # The name of the directory that contains temporary libtool files.
11945 objdir=$objdir
11946
11947 # How to create reloadable object files.
11948 reload_flag=$lt_reload_flag
11949 reload_cmds=$lt_reload_cmds
11950
11951 # How to pass a linker flag through the compiler.
11952 wl=$lt_lt_prog_compiler_wl
11953
11954 # Object file suffix (normally "o").
11955 objext="$ac_objext"
11956
11957 # Old archive suffix (normally "a").
11958 libext="$libext"
11959
11960 # Shared library suffix (normally ".so").
11961 shrext_cmds='$shrext_cmds'
11962
11963 # Executable file suffix (normally "").
11964 exeext="$exeext"
11965
11966 # Additional compiler flags for building library objects.
11967 pic_flag=$lt_lt_prog_compiler_pic
11968 pic_mode=$pic_mode
11969
11970 # What is the maximum length of a command?
11971 max_cmd_len=$lt_cv_sys_max_cmd_len
11972
11973 # Does compiler simultaneously support -c and -o options?
11974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11975
11976 # Must we lock files when doing compilation?
11977 need_locks=$lt_need_locks
11978
11979 # Do we need the lib prefix for modules?
11980 need_lib_prefix=$need_lib_prefix
11981
11982 # Do we need a version for libraries?
11983 need_version=$need_version
11984
11985 # Whether dlopen is supported.
11986 dlopen_support=$enable_dlopen
11987
11988 # Whether dlopen of programs is supported.
11989 dlopen_self=$enable_dlopen_self
11990
11991 # Whether dlopen of statically linked programs is supported.
11992 dlopen_self_static=$enable_dlopen_self_static
11993
11994 # Compiler flag to prevent dynamic linking.
11995 link_static_flag=$lt_lt_prog_compiler_static
11996
11997 # Compiler flag to turn off builtin functions.
11998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11999
12000 # Compiler flag to allow reflexive dlopens.
12001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12002
12003 # Compiler flag to generate shared objects directly from archives.
12004 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12005
12006 # Compiler flag to generate thread-safe objects.
12007 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12008
12009 # Library versioning type.
12010 version_type=$version_type
12011
12012 # Format of library name prefix.
12013 libname_spec=$lt_libname_spec
12014
12015 # List of archive names.  First name is the real one, the rest are links.
12016 # The last name is the one that the linker finds with -lNAME.
12017 library_names_spec=$lt_library_names_spec
12018
12019 # The coded name of the library, if different from the real name.
12020 soname_spec=$lt_soname_spec
12021
12022 # Commands used to build and install an old-style archive.
12023 RANLIB=$lt_RANLIB
12024 old_archive_cmds=$lt_old_archive_cmds
12025 old_postinstall_cmds=$lt_old_postinstall_cmds
12026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12027
12028 # Create an old-style archive from a shared archive.
12029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12030
12031 # Create a temporary old-style archive to link instead of a shared archive.
12032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12033
12034 # Commands used to build and install a shared archive.
12035 archive_cmds=$lt_archive_cmds
12036 archive_expsym_cmds=$lt_archive_expsym_cmds
12037 postinstall_cmds=$lt_postinstall_cmds
12038 postuninstall_cmds=$lt_postuninstall_cmds
12039
12040 # Commands used to build a loadable module (assumed same as above if empty)
12041 module_cmds=$lt_module_cmds
12042 module_expsym_cmds=$lt_module_expsym_cmds
12043
12044 # Commands to strip libraries.
12045 old_striplib=$lt_old_striplib
12046 striplib=$lt_striplib
12047
12048 # Dependencies to place before the objects being linked to create a
12049 # shared library.
12050 predep_objects=$lt_predep_objects
12051
12052 # Dependencies to place after the objects being linked to create a
12053 # shared library.
12054 postdep_objects=$lt_postdep_objects
12055
12056 # Dependencies to place before the objects being linked to create a
12057 # shared library.
12058 predeps=$lt_predeps
12059
12060 # Dependencies to place after the objects being linked to create a
12061 # shared library.
12062 postdeps=$lt_postdeps
12063
12064 # The library search path used internally by the compiler when linking
12065 # a shared library.
12066 compiler_lib_search_path=$lt_compiler_lib_search_path
12067
12068 # Method to check whether dependent libraries are shared objects.
12069 deplibs_check_method=$lt_deplibs_check_method
12070
12071 # Command to use when deplibs_check_method == file_magic.
12072 file_magic_cmd=$lt_file_magic_cmd
12073
12074 # Flag that allows shared libraries with undefined symbols to be built.
12075 allow_undefined_flag=$lt_allow_undefined_flag
12076
12077 # Flag that forces no undefined symbols.
12078 no_undefined_flag=$lt_no_undefined_flag
12079
12080 # Commands used to finish a libtool library installation in a directory.
12081 finish_cmds=$lt_finish_cmds
12082
12083 # Same as above, but a single script fragment to be evaled but not shown.
12084 finish_eval=$lt_finish_eval
12085
12086 # Take the output of nm and produce a listing of raw symbols and C names.
12087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12088
12089 # Transform the output of nm in a proper C declaration
12090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12091
12092 # Transform the output of nm in a C name address pair
12093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12094
12095 # This is the shared library runtime path variable.
12096 runpath_var=$runpath_var
12097
12098 # This is the shared library path variable.
12099 shlibpath_var=$shlibpath_var
12100
12101 # Is shlibpath searched before the hard-coded library search path?
12102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12103
12104 # How to hardcode a shared library path into an executable.
12105 hardcode_action=$hardcode_action
12106
12107 # Whether we should hardcode library paths into libraries.
12108 hardcode_into_libs=$hardcode_into_libs
12109
12110 # Flag to hardcode \$libdir into a binary during linking.
12111 # This must work even if \$libdir does not exist.
12112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12113
12114 # If ld is used when linking, flag to hardcode \$libdir into
12115 # a binary during linking. This must work even if \$libdir does
12116 # not exist.
12117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12118
12119 # Whether we need a single -rpath flag with a separated argument.
12120 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12121
12122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12123 # resulting binary.
12124 hardcode_direct=$hardcode_direct
12125
12126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12127 # resulting binary.
12128 hardcode_minus_L=$hardcode_minus_L
12129
12130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12131 # the resulting binary.
12132 hardcode_shlibpath_var=$hardcode_shlibpath_var
12133
12134 # Set to yes if building a shared library automatically hardcodes DIR into the library
12135 # and all subsequent libraries and executables linked against it.
12136 hardcode_automatic=$hardcode_automatic
12137
12138 # Variables whose values should be saved in libtool wrapper scripts and
12139 # restored at relink time.
12140 variables_saved_for_relink="$variables_saved_for_relink"
12141
12142 # Whether libtool must link a program against all its dependency libraries.
12143 link_all_deplibs=$link_all_deplibs
12144
12145 # Compile-time system search path for libraries
12146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12147
12148 # Run-time system search path for libraries
12149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12150
12151 # Fix the shell variable \$srcfile for the compiler.
12152 fix_srcfile_path=$lt_fix_srcfile_path
12153
12154 # Set to yes if exported symbols are required.
12155 always_export_symbols=$always_export_symbols
12156
12157 # The commands to list exported symbols.
12158 export_symbols_cmds=$lt_export_symbols_cmds
12159
12160 # The commands to extract the exported symbol list from a shared archive.
12161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12162
12163 # Symbols that should not be listed in the preloaded symbols.
12164 exclude_expsyms=$lt_exclude_expsyms
12165
12166 # Symbols that must always be exported.
12167 include_expsyms=$lt_include_expsyms
12168
12169 # ### END LIBTOOL CONFIG
12170
12171 __EOF__
12172
12173
12174   case $host_os in
12175   aix3*)
12176     cat <<\EOF >> "$cfgfile"
12177
12178 # AIX sometimes has problems with the GCC collect2 program.  For some
12179 # reason, if we set the COLLECT_NAMES environment variable, the problems
12180 # vanish in a puff of smoke.
12181 if test "X${COLLECT_NAMES+set}" != Xset; then
12182   COLLECT_NAMES=
12183   export COLLECT_NAMES
12184 fi
12185 EOF
12186     ;;
12187   esac
12188
12189   # We use sed instead of cat because bash on DJGPP gets confused if
12190   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12191   # text mode, it properly converts lines to CR/LF.  This bash problem
12192   # is reportedly fixed, but why not run on old versions too?
12193   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12194
12195   mv -f "$cfgfile" "$ofile" || \
12196     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12197   chmod +x "$ofile"
12198
12199 else
12200   # If there is no Makefile yet, we rely on a make rule to execute
12201   # `config.status --recheck' to rerun these tests and create the
12202   # libtool script then.
12203   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12204   if test -f "$ltmain_in"; then
12205     test -f Makefile && make "$ltmain"
12206   fi
12207 fi
12208
12209
12210 ac_ext=c
12211 ac_cpp='$CPP $CPPFLAGS'
12212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215
12216 CC="$lt_save_CC"
12217
12218
12219 # Check whether --with-tags was given.
12220 if test "${with_tags+set}" = set; then
12221   withval=$with_tags; tagnames="$withval"
12222 fi
12223
12224
12225 if test -f "$ltmain" && test -n "$tagnames"; then
12226   if test ! -f "${ofile}"; then
12227     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12228 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12229   fi
12230
12231   if test -z "$LTCC"; then
12232     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12233     if test -z "$LTCC"; then
12234       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12235 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12236     else
12237       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12238 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12239     fi
12240   fi
12241   if test -z "$LTCFLAGS"; then
12242     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12243   fi
12244
12245   # Extract list of available tagged configurations in $ofile.
12246   # Note that this assumes the entire list is on one line.
12247   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12248
12249   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12250   for tagname in $tagnames; do
12251     IFS="$lt_save_ifs"
12252     # Check whether tagname contains only valid characters
12253     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12254     "") ;;
12255     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12256 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12257    { (exit 1); exit 1; }; }
12258         ;;
12259     esac
12260
12261     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12262     then
12263       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12264 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12265    { (exit 1); exit 1; }; }
12266     fi
12267
12268     # Update the list of available tags.
12269     if test -n "$tagname"; then
12270       echo appending configuration tag \"$tagname\" to $ofile
12271
12272       case $tagname in
12273       CXX)
12274         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12275             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12276             (test "X$CXX" != "Xg++"))) ; then
12277           ac_ext=cpp
12278 ac_cpp='$CXXCPP $CPPFLAGS'
12279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12282
12283
12284
12285
12286 archive_cmds_need_lc_CXX=no
12287 allow_undefined_flag_CXX=
12288 always_export_symbols_CXX=no
12289 archive_expsym_cmds_CXX=
12290 export_dynamic_flag_spec_CXX=
12291 hardcode_direct_CXX=no
12292 hardcode_libdir_flag_spec_CXX=
12293 hardcode_libdir_flag_spec_ld_CXX=
12294 hardcode_libdir_separator_CXX=
12295 hardcode_minus_L_CXX=no
12296 hardcode_shlibpath_var_CXX=unsupported
12297 hardcode_automatic_CXX=no
12298 module_cmds_CXX=
12299 module_expsym_cmds_CXX=
12300 link_all_deplibs_CXX=unknown
12301 old_archive_cmds_CXX=$old_archive_cmds
12302 no_undefined_flag_CXX=
12303 whole_archive_flag_spec_CXX=
12304 enable_shared_with_static_runtimes_CXX=no
12305
12306 # Dependencies to place before and after the object being linked:
12307 predep_objects_CXX=
12308 postdep_objects_CXX=
12309 predeps_CXX=
12310 postdeps_CXX=
12311 compiler_lib_search_path_CXX=
12312
12313 # Source file extension for C++ test sources.
12314 ac_ext=cpp
12315
12316 # Object file extension for compiled C++ test sources.
12317 objext=o
12318 objext_CXX=$objext
12319
12320 # Code to be used in simple compile tests
12321 lt_simple_compile_test_code="int some_variable = 0;"
12322
12323 # Code to be used in simple link tests
12324 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12325
12326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12327
12328 # If no C compiler was specified, use CC.
12329 LTCC=${LTCC-"$CC"}
12330
12331 # If no C compiler flags were specified, use CFLAGS.
12332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12333
12334 # Allow CC to be a program name with arguments.
12335 compiler=$CC
12336
12337
12338 # save warnings/boilerplate of simple test code
12339 ac_outfile=conftest.$ac_objext
12340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12342 _lt_compiler_boilerplate=`cat conftest.err`
12343 $rm conftest*
12344
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12348 _lt_linker_boilerplate=`cat conftest.err`
12349 $rm conftest*
12350
12351
12352 # Allow CC to be a program name with arguments.
12353 lt_save_CC=$CC
12354 lt_save_LD=$LD
12355 lt_save_GCC=$GCC
12356 GCC=$GXX
12357 lt_save_with_gnu_ld=$with_gnu_ld
12358 lt_save_path_LD=$lt_cv_path_LD
12359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12360   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12361 else
12362   $as_unset lt_cv_prog_gnu_ld
12363 fi
12364 if test -n "${lt_cv_path_LDCXX+set}"; then
12365   lt_cv_path_LD=$lt_cv_path_LDCXX
12366 else
12367   $as_unset lt_cv_path_LD
12368 fi
12369 test -z "${LDCXX+set}" || LD=$LDCXX
12370 CC=${CXX-"c++"}
12371 compiler=$CC
12372 compiler_CXX=$CC
12373 for cc_temp in $compiler""; do
12374   case $cc_temp in
12375     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12376     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12377     \-*) ;;
12378     *) break;;
12379   esac
12380 done
12381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12382
12383
12384 # We don't want -fno-exception wen compiling C++ code, so set the
12385 # no_builtin_flag separately
12386 if test "$GXX" = yes; then
12387   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12388 else
12389   lt_prog_compiler_no_builtin_flag_CXX=
12390 fi
12391
12392 if test "$GXX" = yes; then
12393   # Set up default GNU C++ configuration
12394
12395
12396 # Check whether --with-gnu-ld was given.
12397 if test "${with_gnu_ld+set}" = set; then
12398   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12399 else
12400   with_gnu_ld=no
12401 fi
12402
12403 ac_prog=ld
12404 if test "$GCC" = yes; then
12405   # Check if gcc -print-prog-name=ld gives a path.
12406   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12407 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12408   case $host in
12409   *-*-mingw*)
12410     # gcc leaves a trailing carriage return which upsets mingw
12411     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12412   *)
12413     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12414   esac
12415   case $ac_prog in
12416     # Accept absolute paths.
12417     [\\/]* | ?:[\\/]*)
12418       re_direlt='/[^/][^/]*/\.\./'
12419       # Canonicalize the pathname of ld
12420       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12421       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12422         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12423       done
12424       test -z "$LD" && LD="$ac_prog"
12425       ;;
12426   "")
12427     # If it fails, then pretend we aren't using GCC.
12428     ac_prog=ld
12429     ;;
12430   *)
12431     # If it is relative, then search for the first ld in PATH.
12432     with_gnu_ld=unknown
12433     ;;
12434   esac
12435 elif test "$with_gnu_ld" = yes; then
12436   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12437 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12438 else
12439   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12440 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12441 fi
12442 if test "${lt_cv_path_LD+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   if test -z "$LD"; then
12446   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12447   for ac_dir in $PATH; do
12448     IFS="$lt_save_ifs"
12449     test -z "$ac_dir" && ac_dir=.
12450     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12451       lt_cv_path_LD="$ac_dir/$ac_prog"
12452       # Check to see if the program is GNU ld.  I'd rather use --version,
12453       # but apparently some variants of GNU ld only accept -v.
12454       # Break only if it was the GNU/non-GNU ld that we prefer.
12455       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12456       *GNU* | *'with BFD'*)
12457         test "$with_gnu_ld" != no && break
12458         ;;
12459       *)
12460         test "$with_gnu_ld" != yes && break
12461         ;;
12462       esac
12463     fi
12464   done
12465   IFS="$lt_save_ifs"
12466 else
12467   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12468 fi
12469 fi
12470
12471 LD="$lt_cv_path_LD"
12472 if test -n "$LD"; then
12473   { echo "$as_me:$LINENO: result: $LD" >&5
12474 echo "${ECHO_T}$LD" >&6; }
12475 else
12476   { echo "$as_me:$LINENO: result: no" >&5
12477 echo "${ECHO_T}no" >&6; }
12478 fi
12479 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12480 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12481    { (exit 1); exit 1; }; }
12482 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12483 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12484 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12488 case `$LD -v 2>&1 </dev/null` in
12489 *GNU* | *'with BFD'*)
12490   lt_cv_prog_gnu_ld=yes
12491   ;;
12492 *)
12493   lt_cv_prog_gnu_ld=no
12494   ;;
12495 esac
12496 fi
12497 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12498 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12499 with_gnu_ld=$lt_cv_prog_gnu_ld
12500
12501
12502
12503   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12504   # archiving commands below assume that GNU ld is being used.
12505   if test "$with_gnu_ld" = yes; then
12506     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507     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'
12508
12509     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12510     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12511
12512     # If archive_cmds runs LD, not CC, wlarc should be empty
12513     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12514     #     investigate it a little bit more. (MM)
12515     wlarc='${wl}'
12516
12517     # ancient GNU ld didn't support --whole-archive et. al.
12518     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12519         grep 'no-whole-archive' > /dev/null; then
12520       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12521     else
12522       whole_archive_flag_spec_CXX=
12523     fi
12524   else
12525     with_gnu_ld=no
12526     wlarc=
12527
12528     # A generic and very simple default shared library creation
12529     # command for GNU C++ for the case where it uses the native
12530     # linker, instead of GNU ld.  If possible, this setting should
12531     # overridden to take advantage of the native linker features on
12532     # the platform it is being used on.
12533     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12534   fi
12535
12536   # Commands to make compiler produce verbose output that lists
12537   # what "hidden" libraries, object files and flags are used when
12538   # linking a shared library.
12539   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12540
12541 else
12542   GXX=no
12543   with_gnu_ld=no
12544   wlarc=
12545 fi
12546
12547 # PORTME: fill in a description of your system's C++ link characteristics
12548 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12550 ld_shlibs_CXX=yes
12551 case $host_os in
12552   aix3*)
12553     # FIXME: insert proper C++ library support
12554     ld_shlibs_CXX=no
12555     ;;
12556   aix4* | aix5*)
12557     if test "$host_cpu" = ia64; then
12558       # On IA64, the linker does run time linking by default, so we don't
12559       # have to do anything special.
12560       aix_use_runtimelinking=no
12561       exp_sym_flag='-Bexport'
12562       no_entry_flag=""
12563     else
12564       aix_use_runtimelinking=no
12565
12566       # Test if we are trying to use run time linking or normal
12567       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12568       # need to do runtime linking.
12569       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12570         for ld_flag in $LDFLAGS; do
12571           case $ld_flag in
12572           *-brtl*)
12573             aix_use_runtimelinking=yes
12574             break
12575             ;;
12576           esac
12577         done
12578         ;;
12579       esac
12580
12581       exp_sym_flag='-bexport'
12582       no_entry_flag='-bnoentry'
12583     fi
12584
12585     # When large executables or shared objects are built, AIX ld can
12586     # have problems creating the table of contents.  If linking a library
12587     # or program results in "error TOC overflow" add -mminimal-toc to
12588     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12589     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12590
12591     archive_cmds_CXX=''
12592     hardcode_direct_CXX=yes
12593     hardcode_libdir_separator_CXX=':'
12594     link_all_deplibs_CXX=yes
12595
12596     if test "$GXX" = yes; then
12597       case $host_os in aix4.[012]|aix4.[012].*)
12598       # We only want to do this on AIX 4.2 and lower, the check
12599       # below for broken collect2 doesn't work under 4.3+
12600         collect2name=`${CC} -print-prog-name=collect2`
12601         if test -f "$collect2name" && \
12602            strings "$collect2name" | grep resolve_lib_name >/dev/null
12603         then
12604           # We have reworked collect2
12605           :
12606         else
12607           # We have old collect2
12608           hardcode_direct_CXX=unsupported
12609           # It fails to find uninstalled libraries when the uninstalled
12610           # path is not listed in the libpath.  Setting hardcode_minus_L
12611           # to unsupported forces relinking
12612           hardcode_minus_L_CXX=yes
12613           hardcode_libdir_flag_spec_CXX='-L$libdir'
12614           hardcode_libdir_separator_CXX=
12615         fi
12616         ;;
12617       esac
12618       shared_flag='-shared'
12619       if test "$aix_use_runtimelinking" = yes; then
12620         shared_flag="$shared_flag "'${wl}-G'
12621       fi
12622     else
12623       # not using gcc
12624       if test "$host_cpu" = ia64; then
12625         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12626         # chokes on -Wl,-G. The following line is correct:
12627         shared_flag='-G'
12628       else
12629         if test "$aix_use_runtimelinking" = yes; then
12630           shared_flag='${wl}-G'
12631         else
12632           shared_flag='${wl}-bM:SRE'
12633         fi
12634       fi
12635     fi
12636
12637     # It seems that -bexpall does not export symbols beginning with
12638     # underscore (_), so it is better to generate a list of symbols to export.
12639     always_export_symbols_CXX=yes
12640     if test "$aix_use_runtimelinking" = yes; then
12641       # Warning - without using the other runtime loading flags (-brtl),
12642       # -berok will link without error, but may produce a broken library.
12643       allow_undefined_flag_CXX='-berok'
12644       # Determine the default libpath from the value encoded in an empty executable.
12645       cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651
12652 int
12653 main ()
12654 {
12655
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664   *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667   (eval "$ac_link") 2>conftest.er1
12668   ac_status=$?
12669   grep -v '^ *+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } && {
12674          test -z "$ac_cxx_werror_flag" ||
12675          test ! -s conftest.err
12676        } && test -s conftest$ac_exeext &&
12677        $as_test_x conftest$ac_exeext; then
12678
12679 lt_aix_libpath_sed='
12680     /Import File Strings/,/^$/ {
12681         /^0/ {
12682             s/^0  *\(.*\)$/\1/
12683             p
12684         }
12685     }'
12686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12687 # Check for a 64-bit object if we didn't find anything.
12688 if test -z "$aix_libpath"; then
12689   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12690 fi
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699       conftest$ac_exeext conftest.$ac_ext
12700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12701
12702       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12703
12704       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"
12705      else
12706       if test "$host_cpu" = ia64; then
12707         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12708         allow_undefined_flag_CXX="-z nodefs"
12709         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"
12710       else
12711         # Determine the default libpath from the value encoded in an empty executable.
12712         cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 int
12720 main ()
12721 {
12722
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_link") 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } && {
12741          test -z "$ac_cxx_werror_flag" ||
12742          test ! -s conftest.err
12743        } && test -s conftest$ac_exeext &&
12744        $as_test_x conftest$ac_exeext; then
12745
12746 lt_aix_libpath_sed='
12747     /Import File Strings/,/^$/ {
12748         /^0/ {
12749             s/^0  *\(.*\)$/\1/
12750             p
12751         }
12752     }'
12753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12754 # Check for a 64-bit object if we didn't find anything.
12755 if test -z "$aix_libpath"; then
12756   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12757 fi
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766       conftest$ac_exeext conftest.$ac_ext
12767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12768
12769         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12770         # Warning - without using the other run time loading flags,
12771         # -berok will link without error, but may produce a broken library.
12772         no_undefined_flag_CXX=' ${wl}-bernotok'
12773         allow_undefined_flag_CXX=' ${wl}-berok'
12774         # Exported symbols can be pulled into shared objects from archives
12775         whole_archive_flag_spec_CXX='$convenience'
12776         archive_cmds_need_lc_CXX=yes
12777         # This is similar to how AIX traditionally builds its shared libraries.
12778         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'
12779       fi
12780     fi
12781     ;;
12782
12783   beos*)
12784     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12785       allow_undefined_flag_CXX=unsupported
12786       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12787       # support --undefined.  This deserves some investigation.  FIXME
12788       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12789     else
12790       ld_shlibs_CXX=no
12791     fi
12792     ;;
12793
12794   chorus*)
12795     case $cc_basename in
12796       *)
12797         # FIXME: insert proper C++ library support
12798         ld_shlibs_CXX=no
12799         ;;
12800     esac
12801     ;;
12802
12803   cygwin* | mingw* | pw32*)
12804     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12805     # as there is no search path for DLLs.
12806     hardcode_libdir_flag_spec_CXX='-L$libdir'
12807     allow_undefined_flag_CXX=unsupported
12808     always_export_symbols_CXX=no
12809     enable_shared_with_static_runtimes_CXX=yes
12810
12811     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12812       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'
12813       # If the export-symbols file already is a .def file (1st line
12814       # is EXPORTS), use it as is; otherwise, prepend...
12815       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12816         cp $export_symbols $output_objdir/$soname.def;
12817       else
12818         echo EXPORTS > $output_objdir/$soname.def;
12819         cat $export_symbols >> $output_objdir/$soname.def;
12820       fi~
12821       $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'
12822     else
12823       ld_shlibs_CXX=no
12824     fi
12825   ;;
12826       darwin* | rhapsody*)
12827         case $host_os in
12828         rhapsody* | darwin1.[012])
12829          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12830          ;;
12831        *) # Darwin 1.3 on
12832          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12833            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12834          else
12835            case ${MACOSX_DEPLOYMENT_TARGET} in
12836              10.[012])
12837                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12838                ;;
12839              10.*)
12840                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12841                ;;
12842            esac
12843          fi
12844          ;;
12845         esac
12846       archive_cmds_need_lc_CXX=no
12847       hardcode_direct_CXX=no
12848       hardcode_automatic_CXX=yes
12849       hardcode_shlibpath_var_CXX=unsupported
12850       whole_archive_flag_spec_CXX=''
12851       link_all_deplibs_CXX=yes
12852
12853     if test "$GXX" = yes ; then
12854       lt_int_apple_cc_single_mod=no
12855       output_verbose_link_cmd='echo'
12856       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12857        lt_int_apple_cc_single_mod=yes
12858       fi
12859       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12860        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12861       else
12862           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'
12863         fi
12864         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12865         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12866           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12867             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}'
12868           else
12869             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}'
12870           fi
12871             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}'
12872       else
12873       case $cc_basename in
12874         xlc*)
12875          output_verbose_link_cmd='echo'
12876           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'
12877           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12878           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12879           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}'
12880           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}'
12881           ;;
12882        *)
12883          ld_shlibs_CXX=no
12884           ;;
12885       esac
12886       fi
12887         ;;
12888
12889   dgux*)
12890     case $cc_basename in
12891       ec++*)
12892         # FIXME: insert proper C++ library support
12893         ld_shlibs_CXX=no
12894         ;;
12895       ghcx*)
12896         # Green Hills C++ Compiler
12897         # FIXME: insert proper C++ library support
12898         ld_shlibs_CXX=no
12899         ;;
12900       *)
12901         # FIXME: insert proper C++ library support
12902         ld_shlibs_CXX=no
12903         ;;
12904     esac
12905     ;;
12906   freebsd[12]*)
12907     # C++ shared libraries reported to be fairly broken before switch to ELF
12908     ld_shlibs_CXX=no
12909     ;;
12910   freebsd-elf*)
12911     archive_cmds_need_lc_CXX=no
12912     ;;
12913   freebsd* | dragonfly*)
12914     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12915     # conventions
12916     ld_shlibs_CXX=yes
12917     ;;
12918   gnu*)
12919     ;;
12920   hpux9*)
12921     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12922     hardcode_libdir_separator_CXX=:
12923     export_dynamic_flag_spec_CXX='${wl}-E'
12924     hardcode_direct_CXX=yes
12925     hardcode_minus_L_CXX=yes # Not in the search PATH,
12926                                 # but as the default
12927                                 # location of the library.
12928
12929     case $cc_basename in
12930     CC*)
12931       # FIXME: insert proper C++ library support
12932       ld_shlibs_CXX=no
12933       ;;
12934     aCC*)
12935       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'
12936       # Commands to make compiler produce verbose output that lists
12937       # what "hidden" libraries, object files and flags are used when
12938       # linking a shared library.
12939       #
12940       # There doesn't appear to be a way to prevent this compiler from
12941       # explicitly linking system object files so we need to strip them
12942       # from the output so that they don't get included in the library
12943       # dependencies.
12944       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'
12945       ;;
12946     *)
12947       if test "$GXX" = yes; then
12948         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'
12949       else
12950         # FIXME: insert proper C++ library support
12951         ld_shlibs_CXX=no
12952       fi
12953       ;;
12954     esac
12955     ;;
12956   hpux10*|hpux11*)
12957     if test $with_gnu_ld = no; then
12958       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12959       hardcode_libdir_separator_CXX=:
12960
12961       case $host_cpu in
12962       hppa*64*|ia64*) ;;
12963       *)
12964         export_dynamic_flag_spec_CXX='${wl}-E'
12965         ;;
12966       esac
12967     fi
12968     case $host_cpu in
12969     hppa*64*|ia64*)
12970       hardcode_direct_CXX=no
12971       hardcode_shlibpath_var_CXX=no
12972       ;;
12973     *)
12974       hardcode_direct_CXX=yes
12975       hardcode_minus_L_CXX=yes # Not in the search PATH,
12976                                               # but as the default
12977                                               # location of the library.
12978       ;;
12979     esac
12980
12981     case $cc_basename in
12982       CC*)
12983         # FIXME: insert proper C++ library support
12984         ld_shlibs_CXX=no
12985         ;;
12986       aCC*)
12987         case $host_cpu in
12988         hppa*64*)
12989           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12990           ;;
12991         ia64*)
12992           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993           ;;
12994         *)
12995           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12996           ;;
12997         esac
12998         # Commands to make compiler produce verbose output that lists
12999         # what "hidden" libraries, object files and flags are used when
13000         # linking a shared library.
13001         #
13002         # There doesn't appear to be a way to prevent this compiler from
13003         # explicitly linking system object files so we need to strip them
13004         # from the output so that they don't get included in the library
13005         # dependencies.
13006         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'
13007         ;;
13008       *)
13009         if test "$GXX" = yes; then
13010           if test $with_gnu_ld = no; then
13011             case $host_cpu in
13012             hppa*64*)
13013               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014               ;;
13015             ia64*)
13016               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017               ;;
13018             *)
13019               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'
13020               ;;
13021             esac
13022           fi
13023         else
13024           # FIXME: insert proper C++ library support
13025           ld_shlibs_CXX=no
13026         fi
13027         ;;
13028     esac
13029     ;;
13030   interix[3-9]*)
13031     hardcode_direct_CXX=no
13032     hardcode_shlibpath_var_CXX=no
13033     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13034     export_dynamic_flag_spec_CXX='${wl}-E'
13035     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13036     # Instead, shared libraries are loaded at an image base (0x10000000 by
13037     # default) and relocated if they conflict, which is a slow very memory
13038     # consuming and fragmenting process.  To avoid this, we pick a random,
13039     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13040     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13041     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'
13042     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'
13043     ;;
13044   irix5* | irix6*)
13045     case $cc_basename in
13046       CC*)
13047         # SGI C++
13048         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'
13049
13050         # Archives containing C++ object files must be created using
13051         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13052         # necessary to make sure instantiated templates are included
13053         # in the archive.
13054         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13055         ;;
13056       *)
13057         if test "$GXX" = yes; then
13058           if test "$with_gnu_ld" = no; then
13059             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'
13060           else
13061             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'
13062           fi
13063         fi
13064         link_all_deplibs_CXX=yes
13065         ;;
13066     esac
13067     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13068     hardcode_libdir_separator_CXX=:
13069     ;;
13070   linux* | k*bsd*-gnu)
13071     case $cc_basename in
13072       KCC*)
13073         # Kuck and Associates, Inc. (KAI) C++ Compiler
13074
13075         # KCC will only create a shared library if the output file
13076         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13077         # to its proper name (with version) after linking.
13078         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'
13079         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'
13080         # Commands to make compiler produce verbose output that lists
13081         # what "hidden" libraries, object files and flags are used when
13082         # linking a shared library.
13083         #
13084         # There doesn't appear to be a way to prevent this compiler from
13085         # explicitly linking system object files so we need to strip them
13086         # from the output so that they don't get included in the library
13087         # dependencies.
13088         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'
13089
13090         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13091         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13092
13093         # Archives containing C++ object files must be created using
13094         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13095         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13096         ;;
13097       icpc*)
13098         # Intel C++
13099         with_gnu_ld=yes
13100         # version 8.0 and above of icpc choke on multiply defined symbols
13101         # if we add $predep_objects and $postdep_objects, however 7.1 and
13102         # earlier do not add the objects themselves.
13103         case `$CC -V 2>&1` in
13104         *"Version 7."*)
13105           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13106           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'
13107           ;;
13108         *)  # Version 8.0 or newer
13109           tmp_idyn=
13110           case $host_cpu in
13111             ia64*) tmp_idyn=' -i_dynamic';;
13112           esac
13113           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114           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'
13115           ;;
13116         esac
13117         archive_cmds_need_lc_CXX=no
13118         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13119         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13120         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13121         ;;
13122       pgCC*)
13123         # Portland Group C++ compiler
13124         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13125         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'
13126
13127         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13128         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13129         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'
13130         ;;
13131       cxx*)
13132         # Compaq C++
13133         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134         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'
13135
13136         runpath_var=LD_RUN_PATH
13137         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13138         hardcode_libdir_separator_CXX=:
13139
13140         # Commands to make compiler produce verbose output that lists
13141         # what "hidden" libraries, object files and flags are used when
13142         # linking a shared library.
13143         #
13144         # There doesn't appear to be a way to prevent this compiler from
13145         # explicitly linking system object files so we need to strip them
13146         # from the output so that they don't get included in the library
13147         # dependencies.
13148         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'
13149         ;;
13150       *)
13151         case `$CC -V 2>&1 | sed 5q` in
13152         *Sun\ C*)
13153           # Sun C++ 5.9
13154           no_undefined_flag_CXX=' -zdefs'
13155           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13156           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'
13157           hardcode_libdir_flag_spec_CXX='-R$libdir'
13158           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'
13159
13160           # Not sure whether something based on
13161           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13162           # would be better.
13163           output_verbose_link_cmd='echo'
13164
13165           # Archives containing C++ object files must be created using
13166           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13167           # necessary to make sure instantiated templates are included
13168           # in the archive.
13169           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13170           ;;
13171         esac
13172         ;;
13173     esac
13174     ;;
13175   lynxos*)
13176     # FIXME: insert proper C++ library support
13177     ld_shlibs_CXX=no
13178     ;;
13179   m88k*)
13180     # FIXME: insert proper C++ library support
13181     ld_shlibs_CXX=no
13182     ;;
13183   mvs*)
13184     case $cc_basename in
13185       cxx*)
13186         # FIXME: insert proper C++ library support
13187         ld_shlibs_CXX=no
13188         ;;
13189       *)
13190         # FIXME: insert proper C++ library support
13191         ld_shlibs_CXX=no
13192         ;;
13193     esac
13194     ;;
13195   netbsd* | netbsdelf*-gnu)
13196     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13197       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13198       wlarc=
13199       hardcode_libdir_flag_spec_CXX='-R$libdir'
13200       hardcode_direct_CXX=yes
13201       hardcode_shlibpath_var_CXX=no
13202     fi
13203     # Workaround some broken pre-1.5 toolchains
13204     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13205     ;;
13206   openbsd2*)
13207     # C++ shared libraries are fairly broken
13208     ld_shlibs_CXX=no
13209     ;;
13210   openbsd*)
13211     if test -f /usr/libexec/ld.so; then
13212       hardcode_direct_CXX=yes
13213       hardcode_shlibpath_var_CXX=no
13214       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13217         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13218         export_dynamic_flag_spec_CXX='${wl}-E'
13219         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13220       fi
13221       output_verbose_link_cmd='echo'
13222     else
13223       ld_shlibs_CXX=no
13224     fi
13225     ;;
13226   osf3*)
13227     case $cc_basename in
13228       KCC*)
13229         # Kuck and Associates, Inc. (KAI) C++ Compiler
13230
13231         # KCC will only create a shared library if the output file
13232         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13233         # to its proper name (with version) after linking.
13234         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'
13235
13236         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13237         hardcode_libdir_separator_CXX=:
13238
13239         # Archives containing C++ object files must be created using
13240         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13241         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13242
13243         ;;
13244       RCC*)
13245         # Rational C++ 2.4.1
13246         # FIXME: insert proper C++ library support
13247         ld_shlibs_CXX=no
13248         ;;
13249       cxx*)
13250         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13251         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'
13252
13253         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13254         hardcode_libdir_separator_CXX=:
13255
13256         # Commands to make compiler produce verbose output that lists
13257         # what "hidden" libraries, object files and flags are used when
13258         # linking a shared library.
13259         #
13260         # There doesn't appear to be a way to prevent this compiler from
13261         # explicitly linking system object files so we need to strip them
13262         # from the output so that they don't get included in the library
13263         # dependencies.
13264         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'
13265         ;;
13266       *)
13267         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13268           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13269           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'
13270
13271           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13272           hardcode_libdir_separator_CXX=:
13273
13274           # Commands to make compiler produce verbose output that lists
13275           # what "hidden" libraries, object files and flags are used when
13276           # linking a shared library.
13277           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13278
13279         else
13280           # FIXME: insert proper C++ library support
13281           ld_shlibs_CXX=no
13282         fi
13283         ;;
13284     esac
13285     ;;
13286   osf4* | osf5*)
13287     case $cc_basename in
13288       KCC*)
13289         # Kuck and Associates, Inc. (KAI) C++ Compiler
13290
13291         # KCC will only create a shared library if the output file
13292         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13293         # to its proper name (with version) after linking.
13294         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'
13295
13296         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297         hardcode_libdir_separator_CXX=:
13298
13299         # Archives containing C++ object files must be created using
13300         # the KAI C++ compiler.
13301         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13302         ;;
13303       RCC*)
13304         # Rational C++ 2.4.1
13305         # FIXME: insert proper C++ library support
13306         ld_shlibs_CXX=no
13307         ;;
13308       cxx*)
13309         allow_undefined_flag_CXX=' -expect_unresolved \*'
13310         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'
13311         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13312           echo "-hidden">> $lib.exp~
13313           $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~
13314           $rm $lib.exp'
13315
13316         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13317         hardcode_libdir_separator_CXX=:
13318
13319         # Commands to make compiler produce verbose output that lists
13320         # what "hidden" libraries, object files and flags are used when
13321         # linking a shared library.
13322         #
13323         # There doesn't appear to be a way to prevent this compiler from
13324         # explicitly linking system object files so we need to strip them
13325         # from the output so that they don't get included in the library
13326         # dependencies.
13327         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'
13328         ;;
13329       *)
13330         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13331           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13332          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'
13333
13334           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13335           hardcode_libdir_separator_CXX=:
13336
13337           # Commands to make compiler produce verbose output that lists
13338           # what "hidden" libraries, object files and flags are used when
13339           # linking a shared library.
13340           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13341
13342         else
13343           # FIXME: insert proper C++ library support
13344           ld_shlibs_CXX=no
13345         fi
13346         ;;
13347     esac
13348     ;;
13349   psos*)
13350     # FIXME: insert proper C++ library support
13351     ld_shlibs_CXX=no
13352     ;;
13353   sunos4*)
13354     case $cc_basename in
13355       CC*)
13356         # Sun C++ 4.x
13357         # FIXME: insert proper C++ library support
13358         ld_shlibs_CXX=no
13359         ;;
13360       lcc*)
13361         # Lucid
13362         # FIXME: insert proper C++ library support
13363         ld_shlibs_CXX=no
13364         ;;
13365       *)
13366         # FIXME: insert proper C++ library support
13367         ld_shlibs_CXX=no
13368         ;;
13369     esac
13370     ;;
13371   solaris*)
13372     case $cc_basename in
13373       CC*)
13374         # Sun C++ 4.2, 5.x and Centerline C++
13375         archive_cmds_need_lc_CXX=yes
13376         no_undefined_flag_CXX=' -zdefs'
13377         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13379         $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'
13380
13381         hardcode_libdir_flag_spec_CXX='-R$libdir'
13382         hardcode_shlibpath_var_CXX=no
13383         case $host_os in
13384           solaris2.[0-5] | solaris2.[0-5].*) ;;
13385           *)
13386             # The compiler driver will combine and reorder linker options,
13387             # but understands `-z linker_flag'.
13388             # Supported since Solaris 2.6 (maybe 2.5.1?)
13389             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13390             ;;
13391         esac
13392         link_all_deplibs_CXX=yes
13393
13394         output_verbose_link_cmd='echo'
13395
13396         # Archives containing C++ object files must be created using
13397         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13398         # necessary to make sure instantiated templates are included
13399         # in the archive.
13400         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13401         ;;
13402       gcx*)
13403         # Green Hills C++ Compiler
13404         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13405
13406         # The C++ compiler must be used to create the archive.
13407         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13408         ;;
13409       *)
13410         # GNU C++ compiler with Solaris linker
13411         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13412           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13413           if $CC --version | grep -v '^2\.7' > /dev/null; then
13414             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13415             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13416                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13417
13418             # Commands to make compiler produce verbose output that lists
13419             # what "hidden" libraries, object files and flags are used when
13420             # linking a shared library.
13421             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13422           else
13423             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13424             # platform.
13425             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13426             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13427                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13428
13429             # Commands to make compiler produce verbose output that lists
13430             # what "hidden" libraries, object files and flags are used when
13431             # linking a shared library.
13432             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13433           fi
13434
13435           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13436           case $host_os in
13437           solaris2.[0-5] | solaris2.[0-5].*) ;;
13438           *)
13439             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13440             ;;
13441           esac
13442         fi
13443         ;;
13444     esac
13445     ;;
13446   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13447     no_undefined_flag_CXX='${wl}-z,text'
13448     archive_cmds_need_lc_CXX=no
13449     hardcode_shlibpath_var_CXX=no
13450     runpath_var='LD_RUN_PATH'
13451
13452     case $cc_basename in
13453       CC*)
13454         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13456         ;;
13457       *)
13458         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460         ;;
13461     esac
13462     ;;
13463   sysv5* | sco3.2v5* | sco5v6*)
13464     # Note: We can NOT use -z defs as we might desire, because we do not
13465     # link with -lc, and that would cause any symbols used from libc to
13466     # always be unresolved, which means just about no library would
13467     # ever link correctly.  If we're not using GNU ld we use -z text
13468     # though, which does catch some bad symbols but isn't as heavy-handed
13469     # as -z defs.
13470     # For security reasons, it is highly recommended that you always
13471     # use absolute paths for naming shared libraries, and exclude the
13472     # DT_RUNPATH tag from executables and libraries.  But doing so
13473     # requires that you compile everything twice, which is a pain.
13474     # So that behaviour is only enabled if SCOABSPATH is set to a
13475     # non-empty value in the environment.  Most likely only useful for
13476     # creating official distributions of packages.
13477     # This is a hack until libtool officially supports absolute path
13478     # names for shared libraries.
13479     no_undefined_flag_CXX='${wl}-z,text'
13480     allow_undefined_flag_CXX='${wl}-z,nodefs'
13481     archive_cmds_need_lc_CXX=no
13482     hardcode_shlibpath_var_CXX=no
13483     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13484     hardcode_libdir_separator_CXX=':'
13485     link_all_deplibs_CXX=yes
13486     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13487     runpath_var='LD_RUN_PATH'
13488
13489     case $cc_basename in
13490       CC*)
13491         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13492         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493         ;;
13494       *)
13495         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13496         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497         ;;
13498     esac
13499     ;;
13500   tandem*)
13501     case $cc_basename in
13502       NCC*)
13503         # NonStop-UX NCC 3.20
13504         # FIXME: insert proper C++ library support
13505         ld_shlibs_CXX=no
13506         ;;
13507       *)
13508         # FIXME: insert proper C++ library support
13509         ld_shlibs_CXX=no
13510         ;;
13511     esac
13512     ;;
13513   vxworks*)
13514     # FIXME: insert proper C++ library support
13515     ld_shlibs_CXX=no
13516     ;;
13517   *)
13518     # FIXME: insert proper C++ library support
13519     ld_shlibs_CXX=no
13520     ;;
13521 esac
13522 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13523 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13524 test "$ld_shlibs_CXX" = no && can_build_shared=no
13525
13526 GCC_CXX="$GXX"
13527 LD_CXX="$LD"
13528
13529
13530 cat > conftest.$ac_ext <<EOF
13531 class Foo
13532 {
13533 public:
13534   Foo (void) { a = 0; }
13535 private:
13536   int a;
13537 };
13538 EOF
13539
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541   (eval $ac_compile) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; then
13545   # Parse the compiler output and extract the necessary
13546   # objects, libraries and library flags.
13547
13548   # Sentinel used to keep track of whether or not we are before
13549   # the conftest object file.
13550   pre_test_object_deps_done=no
13551
13552   # The `*' in the case matches for architectures that use `case' in
13553   # $output_verbose_cmd can trigger glob expansion during the loop
13554   # eval without this substitution.
13555   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13556
13557   for p in `eval $output_verbose_link_cmd`; do
13558     case $p in
13559
13560     -L* | -R* | -l*)
13561        # Some compilers place space between "-{L,R}" and the path.
13562        # Remove the space.
13563        if test $p = "-L" \
13564           || test $p = "-R"; then
13565          prev=$p
13566          continue
13567        else
13568          prev=
13569        fi
13570
13571        if test "$pre_test_object_deps_done" = no; then
13572          case $p in
13573          -L* | -R*)
13574            # Internal compiler library paths should come after those
13575            # provided the user.  The postdeps already come after the
13576            # user supplied libs so there is no need to process them.
13577            if test -z "$compiler_lib_search_path_CXX"; then
13578              compiler_lib_search_path_CXX="${prev}${p}"
13579            else
13580              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13581            fi
13582            ;;
13583          # The "-l" case would never come before the object being
13584          # linked, so don't bother handling this case.
13585          esac
13586        else
13587          if test -z "$postdeps_CXX"; then
13588            postdeps_CXX="${prev}${p}"
13589          else
13590            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13591          fi
13592        fi
13593        ;;
13594
13595     *.$objext)
13596        # This assumes that the test object file only shows up
13597        # once in the compiler output.
13598        if test "$p" = "conftest.$objext"; then
13599          pre_test_object_deps_done=yes
13600          continue
13601        fi
13602
13603        if test "$pre_test_object_deps_done" = no; then
13604          if test -z "$predep_objects_CXX"; then
13605            predep_objects_CXX="$p"
13606          else
13607            predep_objects_CXX="$predep_objects_CXX $p"
13608          fi
13609        else
13610          if test -z "$postdep_objects_CXX"; then
13611            postdep_objects_CXX="$p"
13612          else
13613            postdep_objects_CXX="$postdep_objects_CXX $p"
13614          fi
13615        fi
13616        ;;
13617
13618     *) ;; # Ignore the rest.
13619
13620     esac
13621   done
13622
13623   # Clean up.
13624   rm -f a.out a.exe
13625 else
13626   echo "libtool.m4: error: problem compiling CXX test program"
13627 fi
13628
13629 $rm -f confest.$objext
13630
13631 # PORTME: override above test on systems where it is broken
13632 case $host_os in
13633 interix[3-9]*)
13634   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13635   # hack all around it, let's just trust "g++" to DTRT.
13636   predep_objects_CXX=
13637   postdep_objects_CXX=
13638   postdeps_CXX=
13639   ;;
13640
13641 linux*)
13642   case `$CC -V 2>&1 | sed 5q` in
13643   *Sun\ C*)
13644     # Sun C++ 5.9
13645     #
13646     # The more standards-conforming stlport4 library is
13647     # incompatible with the Cstd library. Avoid specifying
13648     # it if it's in CXXFLAGS. Ignore libCrun as
13649     # -library=stlport4 depends on it.
13650     case " $CXX $CXXFLAGS " in
13651     *" -library=stlport4 "*)
13652       solaris_use_stlport4=yes
13653       ;;
13654     esac
13655     if test "$solaris_use_stlport4" != yes; then
13656       postdeps_CXX='-library=Cstd -library=Crun'
13657     fi
13658     ;;
13659   esac
13660   ;;
13661
13662 solaris*)
13663   case $cc_basename in
13664   CC*)
13665     # The more standards-conforming stlport4 library is
13666     # incompatible with the Cstd library. Avoid specifying
13667     # it if it's in CXXFLAGS. Ignore libCrun as
13668     # -library=stlport4 depends on it.
13669     case " $CXX $CXXFLAGS " in
13670     *" -library=stlport4 "*)
13671       solaris_use_stlport4=yes
13672       ;;
13673     esac
13674
13675     # Adding this requires a known-good setup of shared libraries for
13676     # Sun compiler versions before 5.6, else PIC objects from an old
13677     # archive will be linked into the output, leading to subtle bugs.
13678     if test "$solaris_use_stlport4" != yes; then
13679       postdeps_CXX='-library=Cstd -library=Crun'
13680     fi
13681     ;;
13682   esac
13683   ;;
13684 esac
13685
13686
13687 case " $postdeps_CXX " in
13688 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13689 esac
13690
13691 lt_prog_compiler_wl_CXX=
13692 lt_prog_compiler_pic_CXX=
13693 lt_prog_compiler_static_CXX=
13694
13695 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13697
13698   # C++ specific cases for pic, static, wl, etc.
13699   if test "$GXX" = yes; then
13700     lt_prog_compiler_wl_CXX='-Wl,'
13701     lt_prog_compiler_static_CXX='-static'
13702
13703     case $host_os in
13704     aix*)
13705       # All AIX code is PIC.
13706       if test "$host_cpu" = ia64; then
13707         # AIX 5 now supports IA64 processor
13708         lt_prog_compiler_static_CXX='-Bstatic'
13709       fi
13710       ;;
13711     amigaos*)
13712       # FIXME: we need at least 68020 code to build shared libraries, but
13713       # adding the `-m68020' flag to GCC prevents building anything better,
13714       # like `-m68040'.
13715       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13716       ;;
13717     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13718       # PIC is the default for these OSes.
13719       ;;
13720     mingw* | cygwin* | os2* | pw32*)
13721       # This hack is so that the source file can tell whether it is being
13722       # built for inclusion in a dll (and should export symbols for example).
13723       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13724       # (--disable-auto-import) libraries
13725       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13726       ;;
13727     darwin* | rhapsody*)
13728       # PIC is the default on this platform
13729       # Common symbols not allowed in MH_DYLIB files
13730       lt_prog_compiler_pic_CXX='-fno-common'
13731       ;;
13732     *djgpp*)
13733       # DJGPP does not support shared libraries at all
13734       lt_prog_compiler_pic_CXX=
13735       ;;
13736     interix[3-9]*)
13737       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13738       # Instead, we relocate shared libraries at runtime.
13739       ;;
13740     sysv4*MP*)
13741       if test -d /usr/nec; then
13742         lt_prog_compiler_pic_CXX=-Kconform_pic
13743       fi
13744       ;;
13745     hpux*)
13746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13747       # not for PA HP-UX.
13748       case $host_cpu in
13749       hppa*64*|ia64*)
13750         ;;
13751       *)
13752         lt_prog_compiler_pic_CXX='-fPIC'
13753         ;;
13754       esac
13755       ;;
13756     *)
13757       lt_prog_compiler_pic_CXX='-fPIC'
13758       ;;
13759     esac
13760   else
13761     case $host_os in
13762       aix4* | aix5*)
13763         # All AIX code is PIC.
13764         if test "$host_cpu" = ia64; then
13765           # AIX 5 now supports IA64 processor
13766           lt_prog_compiler_static_CXX='-Bstatic'
13767         else
13768           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13769         fi
13770         ;;
13771       chorus*)
13772         case $cc_basename in
13773         cxch68*)
13774           # Green Hills C++ Compiler
13775           # _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"
13776           ;;
13777         esac
13778         ;;
13779        darwin*)
13780          # PIC is the default on this platform
13781          # Common symbols not allowed in MH_DYLIB files
13782          case $cc_basename in
13783            xlc*)
13784            lt_prog_compiler_pic_CXX='-qnocommon'
13785            lt_prog_compiler_wl_CXX='-Wl,'
13786            ;;
13787          esac
13788        ;;
13789       dgux*)
13790         case $cc_basename in
13791           ec++*)
13792             lt_prog_compiler_pic_CXX='-KPIC'
13793             ;;
13794           ghcx*)
13795             # Green Hills C++ Compiler
13796             lt_prog_compiler_pic_CXX='-pic'
13797             ;;
13798           *)
13799             ;;
13800         esac
13801         ;;
13802       freebsd* | dragonfly*)
13803         # FreeBSD uses GNU C++
13804         ;;
13805       hpux9* | hpux10* | hpux11*)
13806         case $cc_basename in
13807           CC*)
13808             lt_prog_compiler_wl_CXX='-Wl,'
13809             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13810             if test "$host_cpu" != ia64; then
13811               lt_prog_compiler_pic_CXX='+Z'
13812             fi
13813             ;;
13814           aCC*)
13815             lt_prog_compiler_wl_CXX='-Wl,'
13816             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13817             case $host_cpu in
13818             hppa*64*|ia64*)
13819               # +Z the default
13820               ;;
13821             *)
13822               lt_prog_compiler_pic_CXX='+Z'
13823               ;;
13824             esac
13825             ;;
13826           *)
13827             ;;
13828         esac
13829         ;;
13830       interix*)
13831         # This is c89, which is MS Visual C++ (no shared libs)
13832         # Anyone wants to do a port?
13833         ;;
13834       irix5* | irix6* | nonstopux*)
13835         case $cc_basename in
13836           CC*)
13837             lt_prog_compiler_wl_CXX='-Wl,'
13838             lt_prog_compiler_static_CXX='-non_shared'
13839             # CC pic flag -KPIC is the default.
13840             ;;
13841           *)
13842             ;;
13843         esac
13844         ;;
13845       linux* | k*bsd*-gnu)
13846         case $cc_basename in
13847           KCC*)
13848             # KAI C++ Compiler
13849             lt_prog_compiler_wl_CXX='--backend -Wl,'
13850             lt_prog_compiler_pic_CXX='-fPIC'
13851             ;;
13852           icpc* | ecpc*)
13853             # Intel C++
13854             lt_prog_compiler_wl_CXX='-Wl,'
13855             lt_prog_compiler_pic_CXX='-KPIC'
13856             lt_prog_compiler_static_CXX='-static'
13857             ;;
13858           pgCC*)
13859             # Portland Group C++ compiler.
13860             lt_prog_compiler_wl_CXX='-Wl,'
13861             lt_prog_compiler_pic_CXX='-fpic'
13862             lt_prog_compiler_static_CXX='-Bstatic'
13863             ;;
13864           cxx*)
13865             # Compaq C++
13866             # Make sure the PIC flag is empty.  It appears that all Alpha
13867             # Linux and Compaq Tru64 Unix objects are PIC.
13868             lt_prog_compiler_pic_CXX=
13869             lt_prog_compiler_static_CXX='-non_shared'
13870             ;;
13871           *)
13872             case `$CC -V 2>&1 | sed 5q` in
13873             *Sun\ C*)
13874               # Sun C++ 5.9
13875               lt_prog_compiler_pic_CXX='-KPIC'
13876               lt_prog_compiler_static_CXX='-Bstatic'
13877               lt_prog_compiler_wl_CXX='-Qoption ld '
13878               ;;
13879             esac
13880             ;;
13881         esac
13882         ;;
13883       lynxos*)
13884         ;;
13885       m88k*)
13886         ;;
13887       mvs*)
13888         case $cc_basename in
13889           cxx*)
13890             lt_prog_compiler_pic_CXX='-W c,exportall'
13891             ;;
13892           *)
13893             ;;
13894         esac
13895         ;;
13896       netbsd* | netbsdelf*-gnu)
13897         ;;
13898       osf3* | osf4* | osf5*)
13899         case $cc_basename in
13900           KCC*)
13901             lt_prog_compiler_wl_CXX='--backend -Wl,'
13902             ;;
13903           RCC*)
13904             # Rational C++ 2.4.1
13905             lt_prog_compiler_pic_CXX='-pic'
13906             ;;
13907           cxx*)
13908             # Digital/Compaq C++
13909             lt_prog_compiler_wl_CXX='-Wl,'
13910             # Make sure the PIC flag is empty.  It appears that all Alpha
13911             # Linux and Compaq Tru64 Unix objects are PIC.
13912             lt_prog_compiler_pic_CXX=
13913             lt_prog_compiler_static_CXX='-non_shared'
13914             ;;
13915           *)
13916             ;;
13917         esac
13918         ;;
13919       psos*)
13920         ;;
13921       solaris*)
13922         case $cc_basename in
13923           CC*)
13924             # Sun C++ 4.2, 5.x and Centerline C++
13925             lt_prog_compiler_pic_CXX='-KPIC'
13926             lt_prog_compiler_static_CXX='-Bstatic'
13927             lt_prog_compiler_wl_CXX='-Qoption ld '
13928             ;;
13929           gcx*)
13930             # Green Hills C++ Compiler
13931             lt_prog_compiler_pic_CXX='-PIC'
13932             ;;
13933           *)
13934             ;;
13935         esac
13936         ;;
13937       sunos4*)
13938         case $cc_basename in
13939           CC*)
13940             # Sun C++ 4.x
13941             lt_prog_compiler_pic_CXX='-pic'
13942             lt_prog_compiler_static_CXX='-Bstatic'
13943             ;;
13944           lcc*)
13945             # Lucid
13946             lt_prog_compiler_pic_CXX='-pic'
13947             ;;
13948           *)
13949             ;;
13950         esac
13951         ;;
13952       tandem*)
13953         case $cc_basename in
13954           NCC*)
13955             # NonStop-UX NCC 3.20
13956             lt_prog_compiler_pic_CXX='-KPIC'
13957             ;;
13958           *)
13959             ;;
13960         esac
13961         ;;
13962       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13963         case $cc_basename in
13964           CC*)
13965             lt_prog_compiler_wl_CXX='-Wl,'
13966             lt_prog_compiler_pic_CXX='-KPIC'
13967             lt_prog_compiler_static_CXX='-Bstatic'
13968             ;;
13969         esac
13970         ;;
13971       vxworks*)
13972         ;;
13973       *)
13974         lt_prog_compiler_can_build_shared_CXX=no
13975         ;;
13976     esac
13977   fi
13978
13979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13980 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13981
13982 #
13983 # Check to make sure the PIC flag actually works.
13984 #
13985 if test -n "$lt_prog_compiler_pic_CXX"; then
13986
13987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13989 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   lt_prog_compiler_pic_works_CXX=no
13993   ac_outfile=conftest.$ac_objext
13994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13996    # Insert the option either (1) after the last *FLAGS variable, or
13997    # (2) before a word containing "conftest.", or (3) at the end.
13998    # Note that $ac_compile itself does not contain backslashes and begins
13999    # with a dollar sign (not a hyphen), so the echo should work correctly.
14000    # The option is referenced via a variable to avoid confusing sed.
14001    lt_compile=`echo "$ac_compile" | $SED \
14002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004    -e 's:$: $lt_compiler_flag:'`
14005    (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
14006    (eval "$lt_compile" 2>conftest.err)
14007    ac_status=$?
14008    cat conftest.err >&5
14009    echo "$as_me:14009: \$? = $ac_status" >&5
14010    if (exit $ac_status) && test -s "$ac_outfile"; then
14011      # The compiler can only warn and ignore the option if not recognized
14012      # So say no if there are warnings other than the usual output.
14013      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016        lt_prog_compiler_pic_works_CXX=yes
14017      fi
14018    fi
14019    $rm conftest*
14020
14021 fi
14022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14023 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14024
14025 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14026     case $lt_prog_compiler_pic_CXX in
14027      "" | " "*) ;;
14028      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14029      esac
14030 else
14031     lt_prog_compiler_pic_CXX=
14032      lt_prog_compiler_can_build_shared_CXX=no
14033 fi
14034
14035 fi
14036 case $host_os in
14037   # For platforms which do not support PIC, -DPIC is meaningless:
14038   *djgpp*)
14039     lt_prog_compiler_pic_CXX=
14040     ;;
14041   *)
14042     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14043     ;;
14044 esac
14045
14046 #
14047 # Check to make sure the static flag actually works.
14048 #
14049 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14052 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   lt_prog_compiler_static_works_CXX=no
14056    save_LDFLAGS="$LDFLAGS"
14057    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14060      # The linker can only warn and ignore the option if not recognized
14061      # So say no if there are warnings
14062      if test -s conftest.err; then
14063        # Append any errors to the config.log.
14064        cat conftest.err 1>&5
14065        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067        if diff conftest.exp conftest.er2 >/dev/null; then
14068          lt_prog_compiler_static_works_CXX=yes
14069        fi
14070      else
14071        lt_prog_compiler_static_works_CXX=yes
14072      fi
14073    fi
14074    $rm conftest*
14075    LDFLAGS="$save_LDFLAGS"
14076
14077 fi
14078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14079 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14080
14081 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14082     :
14083 else
14084     lt_prog_compiler_static_CXX=
14085 fi
14086
14087
14088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093   lt_cv_prog_compiler_c_o_CXX=no
14094    $rm -r conftest 2>/dev/null
14095    mkdir conftest
14096    cd conftest
14097    mkdir out
14098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
14100    lt_compiler_flag="-o out/conftest2.$ac_objext"
14101    # Insert the option either (1) after the last *FLAGS variable, or
14102    # (2) before a word containing "conftest.", or (3) at the end.
14103    # Note that $ac_compile itself does not contain backslashes and begins
14104    # with a dollar sign (not a hyphen), so the echo should work correctly.
14105    lt_compile=`echo "$ac_compile" | $SED \
14106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108    -e 's:$: $lt_compiler_flag:'`
14109    (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
14110    (eval "$lt_compile" 2>out/conftest.err)
14111    ac_status=$?
14112    cat out/conftest.err >&5
14113    echo "$as_me:14113: \$? = $ac_status" >&5
14114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115    then
14116      # The compiler can only warn and ignore the option if not recognized
14117      # So say no if there are warnings
14118      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121        lt_cv_prog_compiler_c_o_CXX=yes
14122      fi
14123    fi
14124    chmod u+w . 2>&5
14125    $rm conftest*
14126    # SGI C++ compiler will create directory out/ii_files/ for
14127    # template instantiation
14128    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14129    $rm out/* && rmdir out
14130    cd ..
14131    rmdir conftest
14132    $rm conftest*
14133
14134 fi
14135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14137
14138
14139 hard_links="nottested"
14140 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141   # do not overwrite the value of need_locks provided by the user
14142   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14144   hard_links=yes
14145   $rm conftest*
14146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147   touch conftest.a
14148   ln conftest.a conftest.b 2>&5 || hard_links=no
14149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150   { echo "$as_me:$LINENO: result: $hard_links" >&5
14151 echo "${ECHO_T}$hard_links" >&6; }
14152   if test "$hard_links" = no; then
14153     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155     need_locks=warn
14156   fi
14157 else
14158   need_locks=no
14159 fi
14160
14161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14163
14164   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14165   case $host_os in
14166   aix4* | aix5*)
14167     # If we're using GNU nm, then we don't want the "-C" option.
14168     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14169     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14170       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'
14171     else
14172       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'
14173     fi
14174     ;;
14175   pw32*)
14176     export_symbols_cmds_CXX="$ltdll_cmds"
14177   ;;
14178   cygwin* | mingw*)
14179     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'
14180   ;;
14181   linux* | k*bsd*-gnu)
14182     link_all_deplibs_CXX=no
14183   ;;
14184   *)
14185     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14186   ;;
14187   esac
14188
14189 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14190 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14191 test "$ld_shlibs_CXX" = no && can_build_shared=no
14192
14193 #
14194 # Do we need to explicitly link libc?
14195 #
14196 case "x$archive_cmds_need_lc_CXX" in
14197 x|xyes)
14198   # Assume -lc should be added
14199   archive_cmds_need_lc_CXX=yes
14200
14201   if test "$enable_shared" = yes && test "$GCC" = yes; then
14202     case $archive_cmds_CXX in
14203     *'~'*)
14204       # FIXME: we may have to deal with multi-command sequences.
14205       ;;
14206     '$CC '*)
14207       # Test whether the compiler implicitly links with -lc since on some
14208       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14209       # to ld, don't add -lc before -lgcc.
14210       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14212       $rm conftest*
14213       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14214
14215       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } 2>conftest.err; then
14220         soname=conftest
14221         lib=conftest
14222         libobjs=conftest.$ac_objext
14223         deplibs=
14224         wl=$lt_prog_compiler_wl_CXX
14225         pic_flag=$lt_prog_compiler_pic_CXX
14226         compiler_flags=-v
14227         linker_flags=-v
14228         verstring=
14229         output_objdir=.
14230         libname=conftest
14231         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14232         allow_undefined_flag_CXX=
14233         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14234   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }
14238         then
14239           archive_cmds_need_lc_CXX=no
14240         else
14241           archive_cmds_need_lc_CXX=yes
14242         fi
14243         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14244       else
14245         cat conftest.err 1>&5
14246       fi
14247       $rm conftest*
14248       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14249 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14250       ;;
14251     esac
14252   fi
14253   ;;
14254 esac
14255
14256 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14258 library_names_spec=
14259 libname_spec='lib$name'
14260 soname_spec=
14261 shrext_cmds=".so"
14262 postinstall_cmds=
14263 postuninstall_cmds=
14264 finish_cmds=
14265 finish_eval=
14266 shlibpath_var=
14267 shlibpath_overrides_runpath=unknown
14268 version_type=none
14269 dynamic_linker="$host_os ld.so"
14270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14271
14272 need_lib_prefix=unknown
14273 hardcode_into_libs=no
14274
14275 # when you set need_version to no, make sure it does not cause -set_version
14276 # flags to be left without arguments
14277 need_version=unknown
14278
14279 case $host_os in
14280 aix3*)
14281   version_type=linux
14282   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14283   shlibpath_var=LIBPATH
14284
14285   # AIX 3 has no versioning support, so we append a major version to the name.
14286   soname_spec='${libname}${release}${shared_ext}$major'
14287   ;;
14288
14289 aix4* | aix5*)
14290   version_type=linux
14291   need_lib_prefix=no
14292   need_version=no
14293   hardcode_into_libs=yes
14294   if test "$host_cpu" = ia64; then
14295     # AIX 5 supports IA64
14296     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14297     shlibpath_var=LD_LIBRARY_PATH
14298   else
14299     # With GCC up to 2.95.x, collect2 would create an import file
14300     # for dependence libraries.  The import file would start with
14301     # the line `#! .'.  This would cause the generated library to
14302     # depend on `.', always an invalid library.  This was fixed in
14303     # development snapshots of GCC prior to 3.0.
14304     case $host_os in
14305       aix4 | aix4.[01] | aix4.[01].*)
14306       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14307            echo ' yes '
14308            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14309         :
14310       else
14311         can_build_shared=no
14312       fi
14313       ;;
14314     esac
14315     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14316     # soname into executable. Probably we can add versioning support to
14317     # collect2, so additional links can be useful in future.
14318     if test "$aix_use_runtimelinking" = yes; then
14319       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14320       # instead of lib<name>.a to let people know that these are not
14321       # typical AIX shared libraries.
14322       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323     else
14324       # We preserve .a as extension for shared libraries through AIX4.2
14325       # and later when we are not doing run time linking.
14326       library_names_spec='${libname}${release}.a $libname.a'
14327       soname_spec='${libname}${release}${shared_ext}$major'
14328     fi
14329     shlibpath_var=LIBPATH
14330   fi
14331   ;;
14332
14333 amigaos*)
14334   library_names_spec='$libname.ixlibrary $libname.a'
14335   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14336   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'
14337   ;;
14338
14339 beos*)
14340   library_names_spec='${libname}${shared_ext}'
14341   dynamic_linker="$host_os ld.so"
14342   shlibpath_var=LIBRARY_PATH
14343   ;;
14344
14345 bsdi[45]*)
14346   version_type=linux
14347   need_version=no
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14353   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14354   # the default ld.so.conf also contains /usr/contrib/lib and
14355   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14356   # libtool to hard-code these into programs
14357   ;;
14358
14359 cygwin* | mingw* | pw32*)
14360   version_type=windows
14361   shrext_cmds=".dll"
14362   need_version=no
14363   need_lib_prefix=no
14364
14365   case $GCC,$host_os in
14366   yes,cygwin* | yes,mingw* | yes,pw32*)
14367     library_names_spec='$libname.dll.a'
14368     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14369     postinstall_cmds='base_file=`basename \${file}`~
14370       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14371       dldir=$destdir/`dirname \$dlpath`~
14372       test -d \$dldir || mkdir -p \$dldir~
14373       $install_prog $dir/$dlname \$dldir/$dlname~
14374       chmod a+x \$dldir/$dlname'
14375     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14376       dlpath=$dir/\$dldll~
14377        $rm \$dlpath'
14378     shlibpath_overrides_runpath=yes
14379
14380     case $host_os in
14381     cygwin*)
14382       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14383       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14385       ;;
14386     mingw*)
14387       # MinGW DLLs use traditional 'lib' prefix
14388       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14389       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14390       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14391         # It is most probably a Windows format PATH printed by
14392         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14393         # path with ; separators, and with drive letters. We can handle the
14394         # drive letters (cygwin fileutils understands them), so leave them,
14395         # especially as we might pass files found there to a mingw objdump,
14396         # which wouldn't understand a cygwinified path. Ahh.
14397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14398       else
14399         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14400       fi
14401       ;;
14402     pw32*)
14403       # pw32 DLLs use 'pw' prefix rather than 'lib'
14404       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14405       ;;
14406     esac
14407     ;;
14408
14409   *)
14410     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14411     ;;
14412   esac
14413   dynamic_linker='Win32 ld.exe'
14414   # FIXME: first we should search . and the directory the executable is in
14415   shlibpath_var=PATH
14416   ;;
14417
14418 darwin* | rhapsody*)
14419   dynamic_linker="$host_os dyld"
14420   version_type=darwin
14421   need_lib_prefix=no
14422   need_version=no
14423   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14424   soname_spec='${libname}${release}${major}$shared_ext'
14425   shlibpath_overrides_runpath=yes
14426   shlibpath_var=DYLD_LIBRARY_PATH
14427   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14428
14429   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14430   ;;
14431
14432 dgux*)
14433   version_type=linux
14434   need_lib_prefix=no
14435   need_version=no
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14437   soname_spec='${libname}${release}${shared_ext}$major'
14438   shlibpath_var=LD_LIBRARY_PATH
14439   ;;
14440
14441 freebsd1*)
14442   dynamic_linker=no
14443   ;;
14444
14445 freebsd* | dragonfly*)
14446   # DragonFly does not have aout.  When/if they implement a new
14447   # versioning mechanism, adjust this.
14448   if test -x /usr/bin/objformat; then
14449     objformat=`/usr/bin/objformat`
14450   else
14451     case $host_os in
14452     freebsd[123]*) objformat=aout ;;
14453     *) objformat=elf ;;
14454     esac
14455   fi
14456   version_type=freebsd-$objformat
14457   case $version_type in
14458     freebsd-elf*)
14459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14460       need_version=no
14461       need_lib_prefix=no
14462       ;;
14463     freebsd-*)
14464       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14465       need_version=yes
14466       ;;
14467   esac
14468   shlibpath_var=LD_LIBRARY_PATH
14469   case $host_os in
14470   freebsd2*)
14471     shlibpath_overrides_runpath=yes
14472     ;;
14473   freebsd3.[01]* | freebsdelf3.[01]*)
14474     shlibpath_overrides_runpath=yes
14475     hardcode_into_libs=yes
14476     ;;
14477   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14478   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14479     shlibpath_overrides_runpath=no
14480     hardcode_into_libs=yes
14481     ;;
14482   *) # from 4.6 on, and DragonFly
14483     shlibpath_overrides_runpath=yes
14484     hardcode_into_libs=yes
14485     ;;
14486   esac
14487   ;;
14488
14489 gnu*)
14490   version_type=linux
14491   need_lib_prefix=no
14492   need_version=no
14493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14494   soname_spec='${libname}${release}${shared_ext}$major'
14495   shlibpath_var=LD_LIBRARY_PATH
14496   hardcode_into_libs=yes
14497   ;;
14498
14499 hpux9* | hpux10* | hpux11*)
14500   # Give a soname corresponding to the major version so that dld.sl refuses to
14501   # link against other versions.
14502   version_type=sunos
14503   need_lib_prefix=no
14504   need_version=no
14505   case $host_cpu in
14506   ia64*)
14507     shrext_cmds='.so'
14508     hardcode_into_libs=yes
14509     dynamic_linker="$host_os dld.so"
14510     shlibpath_var=LD_LIBRARY_PATH
14511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513     soname_spec='${libname}${release}${shared_ext}$major'
14514     if test "X$HPUX_IA64_MODE" = X32; then
14515       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14516     else
14517       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14518     fi
14519     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14520     ;;
14521    hppa*64*)
14522      shrext_cmds='.sl'
14523      hardcode_into_libs=yes
14524      dynamic_linker="$host_os dld.sl"
14525      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14526      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14527      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528      soname_spec='${libname}${release}${shared_ext}$major'
14529      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14530      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14531      ;;
14532    *)
14533     shrext_cmds='.sl'
14534     dynamic_linker="$host_os dld.sl"
14535     shlibpath_var=SHLIB_PATH
14536     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538     soname_spec='${libname}${release}${shared_ext}$major'
14539     ;;
14540   esac
14541   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14542   postinstall_cmds='chmod 555 $lib'
14543   ;;
14544
14545 interix[3-9]*)
14546   version_type=linux
14547   need_lib_prefix=no
14548   need_version=no
14549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14552   shlibpath_var=LD_LIBRARY_PATH
14553   shlibpath_overrides_runpath=no
14554   hardcode_into_libs=yes
14555   ;;
14556
14557 irix5* | irix6* | nonstopux*)
14558   case $host_os in
14559     nonstopux*) version_type=nonstopux ;;
14560     *)
14561         if test "$lt_cv_prog_gnu_ld" = yes; then
14562                 version_type=linux
14563         else
14564                 version_type=irix
14565         fi ;;
14566   esac
14567   need_lib_prefix=no
14568   need_version=no
14569   soname_spec='${libname}${release}${shared_ext}$major'
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14571   case $host_os in
14572   irix5* | nonstopux*)
14573     libsuff= shlibsuff=
14574     ;;
14575   *)
14576     case $LD in # libtool.m4 will add one of these switches to LD
14577     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14578       libsuff= shlibsuff= libmagic=32-bit;;
14579     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14580       libsuff=32 shlibsuff=N32 libmagic=N32;;
14581     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14582       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14583     *) libsuff= shlibsuff= libmagic=never-match;;
14584     esac
14585     ;;
14586   esac
14587   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14588   shlibpath_overrides_runpath=no
14589   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14590   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14591   hardcode_into_libs=yes
14592   ;;
14593
14594 # No shared lib support for Linux oldld, aout, or coff.
14595 linux*oldld* | linux*aout* | linux*coff*)
14596   dynamic_linker=no
14597   ;;
14598
14599 # This must be Linux ELF.
14600 linux* | k*bsd*-gnu)
14601   version_type=linux
14602   need_lib_prefix=no
14603   need_version=no
14604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605   soname_spec='${libname}${release}${shared_ext}$major'
14606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   shlibpath_overrides_runpath=no
14609   # This implies no fast_install, which is unacceptable.
14610   # Some rework will be needed to allow for fast_install
14611   # before this can be enabled.
14612   hardcode_into_libs=yes
14613
14614   # Append ld.so.conf contents to the search path
14615   if test -f /etc/ld.so.conf; then
14616     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' ' '`
14617     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14618   fi
14619
14620   # We used to test for /lib/ld.so.1 and disable shared libraries on
14621   # powerpc, because MkLinux only supported shared libraries with the
14622   # GNU dynamic linker.  Since this was broken with cross compilers,
14623   # most powerpc-linux boxes support dynamic linking these days and
14624   # people can always --disable-shared, the test was removed, and we
14625   # assume the GNU/Linux dynamic linker is in use.
14626   dynamic_linker='GNU/Linux ld.so'
14627   ;;
14628
14629 netbsdelf*-gnu)
14630   version_type=linux
14631   need_lib_prefix=no
14632   need_version=no
14633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14634   soname_spec='${libname}${release}${shared_ext}$major'
14635   shlibpath_var=LD_LIBRARY_PATH
14636   shlibpath_overrides_runpath=no
14637   hardcode_into_libs=yes
14638   dynamic_linker='NetBSD ld.elf_so'
14639   ;;
14640
14641 netbsd*)
14642   version_type=sunos
14643   need_lib_prefix=no
14644   need_version=no
14645   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14647     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14648     dynamic_linker='NetBSD (a.out) ld.so'
14649   else
14650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14651     soname_spec='${libname}${release}${shared_ext}$major'
14652     dynamic_linker='NetBSD ld.elf_so'
14653   fi
14654   shlibpath_var=LD_LIBRARY_PATH
14655   shlibpath_overrides_runpath=yes
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 newsos6)
14660   version_type=linux
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   shlibpath_overrides_runpath=yes
14664   ;;
14665
14666 nto-qnx*)
14667   version_type=linux
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   shlibpath_var=LD_LIBRARY_PATH
14673   shlibpath_overrides_runpath=yes
14674   ;;
14675
14676 openbsd*)
14677   version_type=sunos
14678   sys_lib_dlsearch_path_spec="/usr/lib"
14679   need_lib_prefix=no
14680   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14681   case $host_os in
14682     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14683     *)                         need_version=no  ;;
14684   esac
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14686   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14687   shlibpath_var=LD_LIBRARY_PATH
14688   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14689     case $host_os in
14690       openbsd2.[89] | openbsd2.[89].*)
14691         shlibpath_overrides_runpath=no
14692         ;;
14693       *)
14694         shlibpath_overrides_runpath=yes
14695         ;;
14696       esac
14697   else
14698     shlibpath_overrides_runpath=yes
14699   fi
14700   ;;
14701
14702 os2*)
14703   libname_spec='$name'
14704   shrext_cmds=".dll"
14705   need_lib_prefix=no
14706   library_names_spec='$libname${shared_ext} $libname.a'
14707   dynamic_linker='OS/2 ld.exe'
14708   shlibpath_var=LIBPATH
14709   ;;
14710
14711 osf3* | osf4* | osf5*)
14712   version_type=osf
14713   need_lib_prefix=no
14714   need_version=no
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   shlibpath_var=LD_LIBRARY_PATH
14718   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14719   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14720   ;;
14721
14722 rdos*)
14723   dynamic_linker=no
14724   ;;
14725
14726 solaris*)
14727   version_type=linux
14728   need_lib_prefix=no
14729   need_version=no
14730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731   soname_spec='${libname}${release}${shared_ext}$major'
14732   shlibpath_var=LD_LIBRARY_PATH
14733   shlibpath_overrides_runpath=yes
14734   hardcode_into_libs=yes
14735   # ldd complains unless libraries are executable
14736   postinstall_cmds='chmod +x $lib'
14737   ;;
14738
14739 sunos4*)
14740   version_type=sunos
14741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14743   shlibpath_var=LD_LIBRARY_PATH
14744   shlibpath_overrides_runpath=yes
14745   if test "$with_gnu_ld" = yes; then
14746     need_lib_prefix=no
14747   fi
14748   need_version=yes
14749   ;;
14750
14751 sysv4 | sysv4.3*)
14752   version_type=linux
14753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754   soname_spec='${libname}${release}${shared_ext}$major'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   case $host_vendor in
14757     sni)
14758       shlibpath_overrides_runpath=no
14759       need_lib_prefix=no
14760       export_dynamic_flag_spec='${wl}-Blargedynsym'
14761       runpath_var=LD_RUN_PATH
14762       ;;
14763     siemens)
14764       need_lib_prefix=no
14765       ;;
14766     motorola)
14767       need_lib_prefix=no
14768       need_version=no
14769       shlibpath_overrides_runpath=no
14770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14771       ;;
14772   esac
14773   ;;
14774
14775 sysv4*MP*)
14776   if test -d /usr/nec ;then
14777     version_type=linux
14778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14779     soname_spec='$libname${shared_ext}.$major'
14780     shlibpath_var=LD_LIBRARY_PATH
14781   fi
14782   ;;
14783
14784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14785   version_type=freebsd-elf
14786   need_lib_prefix=no
14787   need_version=no
14788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14789   soname_spec='${libname}${release}${shared_ext}$major'
14790   shlibpath_var=LD_LIBRARY_PATH
14791   hardcode_into_libs=yes
14792   if test "$with_gnu_ld" = yes; then
14793     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14794     shlibpath_overrides_runpath=no
14795   else
14796     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14797     shlibpath_overrides_runpath=yes
14798     case $host_os in
14799       sco3.2v5*)
14800         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14801         ;;
14802     esac
14803   fi
14804   sys_lib_dlsearch_path_spec='/usr/lib'
14805   ;;
14806
14807 uts4*)
14808   version_type=linux
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   shlibpath_var=LD_LIBRARY_PATH
14812   ;;
14813
14814 *)
14815   dynamic_linker=no
14816   ;;
14817 esac
14818 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14819 echo "${ECHO_T}$dynamic_linker" >&6; }
14820 test "$dynamic_linker" = no && can_build_shared=no
14821
14822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14823 if test "$GCC" = yes; then
14824   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14825 fi
14826
14827 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14828 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14829 hardcode_action_CXX=
14830 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14831    test -n "$runpath_var_CXX" || \
14832    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14833
14834   # We can hardcode non-existant directories.
14835   if test "$hardcode_direct_CXX" != no &&
14836      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14837      # have to relink, otherwise we might link with an installed library
14838      # when we should be linking with a yet-to-be-installed one
14839      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14840      test "$hardcode_minus_L_CXX" != no; then
14841     # Linking always hardcodes the temporary library directory.
14842     hardcode_action_CXX=relink
14843   else
14844     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14845     hardcode_action_CXX=immediate
14846   fi
14847 else
14848   # We cannot hardcode anything, or else we can only hardcode existing
14849   # directories.
14850   hardcode_action_CXX=unsupported
14851 fi
14852 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14853 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14854
14855 if test "$hardcode_action_CXX" = relink; then
14856   # Fast installation is not supported
14857   enable_fast_install=no
14858 elif test "$shlibpath_overrides_runpath" = yes ||
14859      test "$enable_shared" = no; then
14860   # Fast installation is not necessary
14861   enable_fast_install=needless
14862 fi
14863
14864
14865 # The else clause should only fire when bootstrapping the
14866 # libtool distribution, otherwise you forgot to ship ltmain.sh
14867 # with your package, and you will get complaints that there are
14868 # no rules to generate ltmain.sh.
14869 if test -f "$ltmain"; then
14870   # See if we are running on zsh, and set the options which allow our commands through
14871   # without removal of \ escapes.
14872   if test -n "${ZSH_VERSION+set}" ; then
14873     setopt NO_GLOB_SUBST
14874   fi
14875   # Now quote all the things that may contain metacharacters while being
14876   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14877   # variables and quote the copies for generation of the libtool script.
14878   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14879     SED SHELL STRIP \
14880     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14881     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14882     deplibs_check_method reload_flag reload_cmds need_locks \
14883     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14884     lt_cv_sys_global_symbol_to_c_name_address \
14885     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14886     old_postinstall_cmds old_postuninstall_cmds \
14887     compiler_CXX \
14888     CC_CXX \
14889     LD_CXX \
14890     lt_prog_compiler_wl_CXX \
14891     lt_prog_compiler_pic_CXX \
14892     lt_prog_compiler_static_CXX \
14893     lt_prog_compiler_no_builtin_flag_CXX \
14894     export_dynamic_flag_spec_CXX \
14895     thread_safe_flag_spec_CXX \
14896     whole_archive_flag_spec_CXX \
14897     enable_shared_with_static_runtimes_CXX \
14898     old_archive_cmds_CXX \
14899     old_archive_from_new_cmds_CXX \
14900     predep_objects_CXX \
14901     postdep_objects_CXX \
14902     predeps_CXX \
14903     postdeps_CXX \
14904     compiler_lib_search_path_CXX \
14905     archive_cmds_CXX \
14906     archive_expsym_cmds_CXX \
14907     postinstall_cmds_CXX \
14908     postuninstall_cmds_CXX \
14909     old_archive_from_expsyms_cmds_CXX \
14910     allow_undefined_flag_CXX \
14911     no_undefined_flag_CXX \
14912     export_symbols_cmds_CXX \
14913     hardcode_libdir_flag_spec_CXX \
14914     hardcode_libdir_flag_spec_ld_CXX \
14915     hardcode_libdir_separator_CXX \
14916     hardcode_automatic_CXX \
14917     module_cmds_CXX \
14918     module_expsym_cmds_CXX \
14919     lt_cv_prog_compiler_c_o_CXX \
14920     fix_srcfile_path_CXX \
14921     exclude_expsyms_CXX \
14922     include_expsyms_CXX; do
14923
14924     case $var in
14925     old_archive_cmds_CXX | \
14926     old_archive_from_new_cmds_CXX | \
14927     archive_cmds_CXX | \
14928     archive_expsym_cmds_CXX | \
14929     module_cmds_CXX | \
14930     module_expsym_cmds_CXX | \
14931     old_archive_from_expsyms_cmds_CXX | \
14932     export_symbols_cmds_CXX | \
14933     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14934     postinstall_cmds | postuninstall_cmds | \
14935     old_postinstall_cmds | old_postuninstall_cmds | \
14936     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14937       # Double-quote double-evaled strings.
14938       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14939       ;;
14940     *)
14941       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14942       ;;
14943     esac
14944   done
14945
14946   case $lt_echo in
14947   *'\$0 --fallback-echo"')
14948     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14949     ;;
14950   esac
14951
14952 cfgfile="$ofile"
14953
14954   cat <<__EOF__ >> "$cfgfile"
14955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14956
14957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14958
14959 # Shell to use when invoking shell scripts.
14960 SHELL=$lt_SHELL
14961
14962 # Whether or not to build shared libraries.
14963 build_libtool_libs=$enable_shared
14964
14965 # Whether or not to build static libraries.
14966 build_old_libs=$enable_static
14967
14968 # Whether or not to add -lc for building shared libraries.
14969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14970
14971 # Whether or not to disallow shared libs when runtime libs are static
14972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14973
14974 # Whether or not to optimize for fast installation.
14975 fast_install=$enable_fast_install
14976
14977 # The host system.
14978 host_alias=$host_alias
14979 host=$host
14980 host_os=$host_os
14981
14982 # The build system.
14983 build_alias=$build_alias
14984 build=$build
14985 build_os=$build_os
14986
14987 # An echo program that does not interpret backslashes.
14988 echo=$lt_echo
14989
14990 # The archiver.
14991 AR=$lt_AR
14992 AR_FLAGS=$lt_AR_FLAGS
14993
14994 # A C compiler.
14995 LTCC=$lt_LTCC
14996
14997 # LTCC compiler flags.
14998 LTCFLAGS=$lt_LTCFLAGS
14999
15000 # A language-specific compiler.
15001 CC=$lt_compiler_CXX
15002
15003 # Is the compiler the GNU C compiler?
15004 with_gcc=$GCC_CXX
15005
15006 # An ERE matcher.
15007 EGREP=$lt_EGREP
15008
15009 # The linker used to build libraries.
15010 LD=$lt_LD_CXX
15011
15012 # Whether we need hard or soft links.
15013 LN_S=$lt_LN_S
15014
15015 # A BSD-compatible nm program.
15016 NM=$lt_NM
15017
15018 # A symbol stripping program
15019 STRIP=$lt_STRIP
15020
15021 # Used to examine libraries when file_magic_cmd begins "file"
15022 MAGIC_CMD=$MAGIC_CMD
15023
15024 # Used on cygwin: DLL creation program.
15025 DLLTOOL="$DLLTOOL"
15026
15027 # Used on cygwin: object dumper.
15028 OBJDUMP="$OBJDUMP"
15029
15030 # Used on cygwin: assembler.
15031 AS="$AS"
15032
15033 # The name of the directory that contains temporary libtool files.
15034 objdir=$objdir
15035
15036 # How to create reloadable object files.
15037 reload_flag=$lt_reload_flag
15038 reload_cmds=$lt_reload_cmds
15039
15040 # How to pass a linker flag through the compiler.
15041 wl=$lt_lt_prog_compiler_wl_CXX
15042
15043 # Object file suffix (normally "o").
15044 objext="$ac_objext"
15045
15046 # Old archive suffix (normally "a").
15047 libext="$libext"
15048
15049 # Shared library suffix (normally ".so").
15050 shrext_cmds='$shrext_cmds'
15051
15052 # Executable file suffix (normally "").
15053 exeext="$exeext"
15054
15055 # Additional compiler flags for building library objects.
15056 pic_flag=$lt_lt_prog_compiler_pic_CXX
15057 pic_mode=$pic_mode
15058
15059 # What is the maximum length of a command?
15060 max_cmd_len=$lt_cv_sys_max_cmd_len
15061
15062 # Does compiler simultaneously support -c and -o options?
15063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15064
15065 # Must we lock files when doing compilation?
15066 need_locks=$lt_need_locks
15067
15068 # Do we need the lib prefix for modules?
15069 need_lib_prefix=$need_lib_prefix
15070
15071 # Do we need a version for libraries?
15072 need_version=$need_version
15073
15074 # Whether dlopen is supported.
15075 dlopen_support=$enable_dlopen
15076
15077 # Whether dlopen of programs is supported.
15078 dlopen_self=$enable_dlopen_self
15079
15080 # Whether dlopen of statically linked programs is supported.
15081 dlopen_self_static=$enable_dlopen_self_static
15082
15083 # Compiler flag to prevent dynamic linking.
15084 link_static_flag=$lt_lt_prog_compiler_static_CXX
15085
15086 # Compiler flag to turn off builtin functions.
15087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15088
15089 # Compiler flag to allow reflexive dlopens.
15090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15091
15092 # Compiler flag to generate shared objects directly from archives.
15093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15094
15095 # Compiler flag to generate thread-safe objects.
15096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15097
15098 # Library versioning type.
15099 version_type=$version_type
15100
15101 # Format of library name prefix.
15102 libname_spec=$lt_libname_spec
15103
15104 # List of archive names.  First name is the real one, the rest are links.
15105 # The last name is the one that the linker finds with -lNAME.
15106 library_names_spec=$lt_library_names_spec
15107
15108 # The coded name of the library, if different from the real name.
15109 soname_spec=$lt_soname_spec
15110
15111 # Commands used to build and install an old-style archive.
15112 RANLIB=$lt_RANLIB
15113 old_archive_cmds=$lt_old_archive_cmds_CXX
15114 old_postinstall_cmds=$lt_old_postinstall_cmds
15115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15116
15117 # Create an old-style archive from a shared archive.
15118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15119
15120 # Create a temporary old-style archive to link instead of a shared archive.
15121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15122
15123 # Commands used to build and install a shared archive.
15124 archive_cmds=$lt_archive_cmds_CXX
15125 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15126 postinstall_cmds=$lt_postinstall_cmds
15127 postuninstall_cmds=$lt_postuninstall_cmds
15128
15129 # Commands used to build a loadable module (assumed same as above if empty)
15130 module_cmds=$lt_module_cmds_CXX
15131 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15132
15133 # Commands to strip libraries.
15134 old_striplib=$lt_old_striplib
15135 striplib=$lt_striplib
15136
15137 # Dependencies to place before the objects being linked to create a
15138 # shared library.
15139 predep_objects=$lt_predep_objects_CXX
15140
15141 # Dependencies to place after the objects being linked to create a
15142 # shared library.
15143 postdep_objects=$lt_postdep_objects_CXX
15144
15145 # Dependencies to place before the objects being linked to create a
15146 # shared library.
15147 predeps=$lt_predeps_CXX
15148
15149 # Dependencies to place after the objects being linked to create a
15150 # shared library.
15151 postdeps=$lt_postdeps_CXX
15152
15153 # The library search path used internally by the compiler when linking
15154 # a shared library.
15155 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15156
15157 # Method to check whether dependent libraries are shared objects.
15158 deplibs_check_method=$lt_deplibs_check_method
15159
15160 # Command to use when deplibs_check_method == file_magic.
15161 file_magic_cmd=$lt_file_magic_cmd
15162
15163 # Flag that allows shared libraries with undefined symbols to be built.
15164 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15165
15166 # Flag that forces no undefined symbols.
15167 no_undefined_flag=$lt_no_undefined_flag_CXX
15168
15169 # Commands used to finish a libtool library installation in a directory.
15170 finish_cmds=$lt_finish_cmds
15171
15172 # Same as above, but a single script fragment to be evaled but not shown.
15173 finish_eval=$lt_finish_eval
15174
15175 # Take the output of nm and produce a listing of raw symbols and C names.
15176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15177
15178 # Transform the output of nm in a proper C declaration
15179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15180
15181 # Transform the output of nm in a C name address pair
15182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15183
15184 # This is the shared library runtime path variable.
15185 runpath_var=$runpath_var
15186
15187 # This is the shared library path variable.
15188 shlibpath_var=$shlibpath_var
15189
15190 # Is shlibpath searched before the hard-coded library search path?
15191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15192
15193 # How to hardcode a shared library path into an executable.
15194 hardcode_action=$hardcode_action_CXX
15195
15196 # Whether we should hardcode library paths into libraries.
15197 hardcode_into_libs=$hardcode_into_libs
15198
15199 # Flag to hardcode \$libdir into a binary during linking.
15200 # This must work even if \$libdir does not exist.
15201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15202
15203 # If ld is used when linking, flag to hardcode \$libdir into
15204 # a binary during linking. This must work even if \$libdir does
15205 # not exist.
15206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15207
15208 # Whether we need a single -rpath flag with a separated argument.
15209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15210
15211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15212 # resulting binary.
15213 hardcode_direct=$hardcode_direct_CXX
15214
15215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15216 # resulting binary.
15217 hardcode_minus_L=$hardcode_minus_L_CXX
15218
15219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15220 # the resulting binary.
15221 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15222
15223 # Set to yes if building a shared library automatically hardcodes DIR into the library
15224 # and all subsequent libraries and executables linked against it.
15225 hardcode_automatic=$hardcode_automatic_CXX
15226
15227 # Variables whose values should be saved in libtool wrapper scripts and
15228 # restored at relink time.
15229 variables_saved_for_relink="$variables_saved_for_relink"
15230
15231 # Whether libtool must link a program against all its dependency libraries.
15232 link_all_deplibs=$link_all_deplibs_CXX
15233
15234 # Compile-time system search path for libraries
15235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15236
15237 # Run-time system search path for libraries
15238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15239
15240 # Fix the shell variable \$srcfile for the compiler.
15241 fix_srcfile_path=$lt_fix_srcfile_path
15242
15243 # Set to yes if exported symbols are required.
15244 always_export_symbols=$always_export_symbols_CXX
15245
15246 # The commands to list exported symbols.
15247 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15248
15249 # The commands to extract the exported symbol list from a shared archive.
15250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15251
15252 # Symbols that should not be listed in the preloaded symbols.
15253 exclude_expsyms=$lt_exclude_expsyms_CXX
15254
15255 # Symbols that must always be exported.
15256 include_expsyms=$lt_include_expsyms_CXX
15257
15258 # ### END LIBTOOL TAG CONFIG: $tagname
15259
15260 __EOF__
15261
15262
15263 else
15264   # If there is no Makefile yet, we rely on a make rule to execute
15265   # `config.status --recheck' to rerun these tests and create the
15266   # libtool script then.
15267   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15268   if test -f "$ltmain_in"; then
15269     test -f Makefile && make "$ltmain"
15270   fi
15271 fi
15272
15273
15274 ac_ext=c
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279
15280 CC=$lt_save_CC
15281 LDCXX=$LD
15282 LD=$lt_save_LD
15283 GCC=$lt_save_GCC
15284 with_gnu_ldcxx=$with_gnu_ld
15285 with_gnu_ld=$lt_save_with_gnu_ld
15286 lt_cv_path_LDCXX=$lt_cv_path_LD
15287 lt_cv_path_LD=$lt_save_path_LD
15288 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15289 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15290
15291         else
15292           tagname=""
15293         fi
15294         ;;
15295
15296       F77)
15297         if test -n "$F77" && test "X$F77" != "Xno"; then
15298
15299 ac_ext=f
15300 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15301 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15303
15304
15305 archive_cmds_need_lc_F77=no
15306 allow_undefined_flag_F77=
15307 always_export_symbols_F77=no
15308 archive_expsym_cmds_F77=
15309 export_dynamic_flag_spec_F77=
15310 hardcode_direct_F77=no
15311 hardcode_libdir_flag_spec_F77=
15312 hardcode_libdir_flag_spec_ld_F77=
15313 hardcode_libdir_separator_F77=
15314 hardcode_minus_L_F77=no
15315 hardcode_automatic_F77=no
15316 module_cmds_F77=
15317 module_expsym_cmds_F77=
15318 link_all_deplibs_F77=unknown
15319 old_archive_cmds_F77=$old_archive_cmds
15320 no_undefined_flag_F77=
15321 whole_archive_flag_spec_F77=
15322 enable_shared_with_static_runtimes_F77=no
15323
15324 # Source file extension for f77 test sources.
15325 ac_ext=f
15326
15327 # Object file extension for compiled f77 test sources.
15328 objext=o
15329 objext_F77=$objext
15330
15331 # Code to be used in simple compile tests
15332 lt_simple_compile_test_code="\
15333       subroutine t
15334       return
15335       end
15336 "
15337
15338 # Code to be used in simple link tests
15339 lt_simple_link_test_code="\
15340       program t
15341       end
15342 "
15343
15344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15345
15346 # If no C compiler was specified, use CC.
15347 LTCC=${LTCC-"$CC"}
15348
15349 # If no C compiler flags were specified, use CFLAGS.
15350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15351
15352 # Allow CC to be a program name with arguments.
15353 compiler=$CC
15354
15355
15356 # save warnings/boilerplate of simple test code
15357 ac_outfile=conftest.$ac_objext
15358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15360 _lt_compiler_boilerplate=`cat conftest.err`
15361 $rm conftest*
15362
15363 ac_outfile=conftest.$ac_objext
15364 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15366 _lt_linker_boilerplate=`cat conftest.err`
15367 $rm conftest*
15368
15369
15370 # Allow CC to be a program name with arguments.
15371 lt_save_CC="$CC"
15372 CC=${F77-"f77"}
15373 compiler=$CC
15374 compiler_F77=$CC
15375 for cc_temp in $compiler""; do
15376   case $cc_temp in
15377     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15378     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15379     \-*) ;;
15380     *) break;;
15381   esac
15382 done
15383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15384
15385
15386 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15387 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15388 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15389 echo "${ECHO_T}$can_build_shared" >&6; }
15390
15391 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15392 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15393 test "$can_build_shared" = "no" && enable_shared=no
15394
15395 # On AIX, shared libraries and static libraries use the same namespace, and
15396 # are all built from PIC.
15397 case $host_os in
15398 aix3*)
15399   test "$enable_shared" = yes && enable_static=no
15400   if test -n "$RANLIB"; then
15401     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15402     postinstall_cmds='$RANLIB $lib'
15403   fi
15404   ;;
15405 aix4* | aix5*)
15406   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15407     test "$enable_shared" = yes && enable_static=no
15408   fi
15409   ;;
15410 esac
15411 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15412 echo "${ECHO_T}$enable_shared" >&6; }
15413
15414 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15415 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15416 # Make sure either enable_shared or enable_static is yes.
15417 test "$enable_shared" = yes || enable_static=yes
15418 { echo "$as_me:$LINENO: result: $enable_static" >&5
15419 echo "${ECHO_T}$enable_static" >&6; }
15420
15421 GCC_F77="$G77"
15422 LD_F77="$LD"
15423
15424 lt_prog_compiler_wl_F77=
15425 lt_prog_compiler_pic_F77=
15426 lt_prog_compiler_static_F77=
15427
15428 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15430
15431   if test "$GCC" = yes; then
15432     lt_prog_compiler_wl_F77='-Wl,'
15433     lt_prog_compiler_static_F77='-static'
15434
15435     case $host_os in
15436       aix*)
15437       # All AIX code is PIC.
15438       if test "$host_cpu" = ia64; then
15439         # AIX 5 now supports IA64 processor
15440         lt_prog_compiler_static_F77='-Bstatic'
15441       fi
15442       ;;
15443
15444     amigaos*)
15445       # FIXME: we need at least 68020 code to build shared libraries, but
15446       # adding the `-m68020' flag to GCC prevents building anything better,
15447       # like `-m68040'.
15448       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15449       ;;
15450
15451     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15452       # PIC is the default for these OSes.
15453       ;;
15454
15455     mingw* | cygwin* | pw32* | os2*)
15456       # This hack is so that the source file can tell whether it is being
15457       # built for inclusion in a dll (and should export symbols for example).
15458       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15459       # (--disable-auto-import) libraries
15460       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15461       ;;
15462
15463     darwin* | rhapsody*)
15464       # PIC is the default on this platform
15465       # Common symbols not allowed in MH_DYLIB files
15466       lt_prog_compiler_pic_F77='-fno-common'
15467       ;;
15468
15469     interix[3-9]*)
15470       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15471       # Instead, we relocate shared libraries at runtime.
15472       ;;
15473
15474     msdosdjgpp*)
15475       # Just because we use GCC doesn't mean we suddenly get shared libraries
15476       # on systems that don't support them.
15477       lt_prog_compiler_can_build_shared_F77=no
15478       enable_shared=no
15479       ;;
15480
15481     sysv4*MP*)
15482       if test -d /usr/nec; then
15483         lt_prog_compiler_pic_F77=-Kconform_pic
15484       fi
15485       ;;
15486
15487     hpux*)
15488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15489       # not for PA HP-UX.
15490       case $host_cpu in
15491       hppa*64*|ia64*)
15492         # +Z the default
15493         ;;
15494       *)
15495         lt_prog_compiler_pic_F77='-fPIC'
15496         ;;
15497       esac
15498       ;;
15499
15500     *)
15501       lt_prog_compiler_pic_F77='-fPIC'
15502       ;;
15503     esac
15504   else
15505     # PORTME Check for flag to pass linker flags through the system compiler.
15506     case $host_os in
15507     aix*)
15508       lt_prog_compiler_wl_F77='-Wl,'
15509       if test "$host_cpu" = ia64; then
15510         # AIX 5 now supports IA64 processor
15511         lt_prog_compiler_static_F77='-Bstatic'
15512       else
15513         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15514       fi
15515       ;;
15516       darwin*)
15517         # PIC is the default on this platform
15518         # Common symbols not allowed in MH_DYLIB files
15519        case $cc_basename in
15520          xlc*)
15521          lt_prog_compiler_pic_F77='-qnocommon'
15522          lt_prog_compiler_wl_F77='-Wl,'
15523          ;;
15524        esac
15525        ;;
15526
15527     mingw* | cygwin* | pw32* | os2*)
15528       # This hack is so that the source file can tell whether it is being
15529       # built for inclusion in a dll (and should export symbols for example).
15530       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15531       ;;
15532
15533     hpux9* | hpux10* | hpux11*)
15534       lt_prog_compiler_wl_F77='-Wl,'
15535       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536       # not for PA HP-UX.
15537       case $host_cpu in
15538       hppa*64*|ia64*)
15539         # +Z the default
15540         ;;
15541       *)
15542         lt_prog_compiler_pic_F77='+Z'
15543         ;;
15544       esac
15545       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15546       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15547       ;;
15548
15549     irix5* | irix6* | nonstopux*)
15550       lt_prog_compiler_wl_F77='-Wl,'
15551       # PIC (with -KPIC) is the default.
15552       lt_prog_compiler_static_F77='-non_shared'
15553       ;;
15554
15555     newsos6)
15556       lt_prog_compiler_pic_F77='-KPIC'
15557       lt_prog_compiler_static_F77='-Bstatic'
15558       ;;
15559
15560     linux* | k*bsd*-gnu)
15561       case $cc_basename in
15562       icc* | ecc*)
15563         lt_prog_compiler_wl_F77='-Wl,'
15564         lt_prog_compiler_pic_F77='-KPIC'
15565         lt_prog_compiler_static_F77='-static'
15566         ;;
15567       pgcc* | pgf77* | pgf90* | pgf95*)
15568         # Portland Group compilers (*not* the Pentium gcc compiler,
15569         # which looks to be a dead project)
15570         lt_prog_compiler_wl_F77='-Wl,'
15571         lt_prog_compiler_pic_F77='-fpic'
15572         lt_prog_compiler_static_F77='-Bstatic'
15573         ;;
15574       ccc*)
15575         lt_prog_compiler_wl_F77='-Wl,'
15576         # All Alpha code is PIC.
15577         lt_prog_compiler_static_F77='-non_shared'
15578         ;;
15579       *)
15580         case `$CC -V 2>&1 | sed 5q` in
15581         *Sun\ C*)
15582           # Sun C 5.9
15583           lt_prog_compiler_pic_F77='-KPIC'
15584           lt_prog_compiler_static_F77='-Bstatic'
15585           lt_prog_compiler_wl_F77='-Wl,'
15586           ;;
15587         *Sun\ F*)
15588           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15589           lt_prog_compiler_pic_F77='-KPIC'
15590           lt_prog_compiler_static_F77='-Bstatic'
15591           lt_prog_compiler_wl_F77=''
15592           ;;
15593         esac
15594         ;;
15595       esac
15596       ;;
15597
15598     osf3* | osf4* | osf5*)
15599       lt_prog_compiler_wl_F77='-Wl,'
15600       # All OSF/1 code is PIC.
15601       lt_prog_compiler_static_F77='-non_shared'
15602       ;;
15603
15604     rdos*)
15605       lt_prog_compiler_static_F77='-non_shared'
15606       ;;
15607
15608     solaris*)
15609       lt_prog_compiler_pic_F77='-KPIC'
15610       lt_prog_compiler_static_F77='-Bstatic'
15611       case $cc_basename in
15612       f77* | f90* | f95*)
15613         lt_prog_compiler_wl_F77='-Qoption ld ';;
15614       *)
15615         lt_prog_compiler_wl_F77='-Wl,';;
15616       esac
15617       ;;
15618
15619     sunos4*)
15620       lt_prog_compiler_wl_F77='-Qoption ld '
15621       lt_prog_compiler_pic_F77='-PIC'
15622       lt_prog_compiler_static_F77='-Bstatic'
15623       ;;
15624
15625     sysv4 | sysv4.2uw2* | sysv4.3*)
15626       lt_prog_compiler_wl_F77='-Wl,'
15627       lt_prog_compiler_pic_F77='-KPIC'
15628       lt_prog_compiler_static_F77='-Bstatic'
15629       ;;
15630
15631     sysv4*MP*)
15632       if test -d /usr/nec ;then
15633         lt_prog_compiler_pic_F77='-Kconform_pic'
15634         lt_prog_compiler_static_F77='-Bstatic'
15635       fi
15636       ;;
15637
15638     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15639       lt_prog_compiler_wl_F77='-Wl,'
15640       lt_prog_compiler_pic_F77='-KPIC'
15641       lt_prog_compiler_static_F77='-Bstatic'
15642       ;;
15643
15644     unicos*)
15645       lt_prog_compiler_wl_F77='-Wl,'
15646       lt_prog_compiler_can_build_shared_F77=no
15647       ;;
15648
15649     uts4*)
15650       lt_prog_compiler_pic_F77='-pic'
15651       lt_prog_compiler_static_F77='-Bstatic'
15652       ;;
15653
15654     *)
15655       lt_prog_compiler_can_build_shared_F77=no
15656       ;;
15657     esac
15658   fi
15659
15660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15661 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15662
15663 #
15664 # Check to make sure the PIC flag actually works.
15665 #
15666 if test -n "$lt_prog_compiler_pic_F77"; then
15667
15668 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15669 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15670 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673   lt_prog_compiler_pic_works_F77=no
15674   ac_outfile=conftest.$ac_objext
15675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15676    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15677    # Insert the option either (1) after the last *FLAGS variable, or
15678    # (2) before a word containing "conftest.", or (3) at the end.
15679    # Note that $ac_compile itself does not contain backslashes and begins
15680    # with a dollar sign (not a hyphen), so the echo should work correctly.
15681    # The option is referenced via a variable to avoid confusing sed.
15682    lt_compile=`echo "$ac_compile" | $SED \
15683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15685    -e 's:$: $lt_compiler_flag:'`
15686    (eval echo "\"\$as_me:15686: $lt_compile\"" >&5)
15687    (eval "$lt_compile" 2>conftest.err)
15688    ac_status=$?
15689    cat conftest.err >&5
15690    echo "$as_me:15690: \$? = $ac_status" >&5
15691    if (exit $ac_status) && test -s "$ac_outfile"; then
15692      # The compiler can only warn and ignore the option if not recognized
15693      # So say no if there are warnings other than the usual output.
15694      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15697        lt_prog_compiler_pic_works_F77=yes
15698      fi
15699    fi
15700    $rm conftest*
15701
15702 fi
15703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15704 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15705
15706 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15707     case $lt_prog_compiler_pic_F77 in
15708      "" | " "*) ;;
15709      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15710      esac
15711 else
15712     lt_prog_compiler_pic_F77=
15713      lt_prog_compiler_can_build_shared_F77=no
15714 fi
15715
15716 fi
15717 case $host_os in
15718   # For platforms which do not support PIC, -DPIC is meaningless:
15719   *djgpp*)
15720     lt_prog_compiler_pic_F77=
15721     ;;
15722   *)
15723     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15724     ;;
15725 esac
15726
15727 #
15728 # Check to make sure the static flag actually works.
15729 #
15730 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15731 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15732 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15733 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   lt_prog_compiler_static_works_F77=no
15737    save_LDFLAGS="$LDFLAGS"
15738    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15739    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15740    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15741      # The linker can only warn and ignore the option if not recognized
15742      # So say no if there are warnings
15743      if test -s conftest.err; then
15744        # Append any errors to the config.log.
15745        cat conftest.err 1>&5
15746        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15747        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15748        if diff conftest.exp conftest.er2 >/dev/null; then
15749          lt_prog_compiler_static_works_F77=yes
15750        fi
15751      else
15752        lt_prog_compiler_static_works_F77=yes
15753      fi
15754    fi
15755    $rm conftest*
15756    LDFLAGS="$save_LDFLAGS"
15757
15758 fi
15759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15760 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15761
15762 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15763     :
15764 else
15765     lt_prog_compiler_static_F77=
15766 fi
15767
15768
15769 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15771 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15772   echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774   lt_cv_prog_compiler_c_o_F77=no
15775    $rm -r conftest 2>/dev/null
15776    mkdir conftest
15777    cd conftest
15778    mkdir out
15779    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15780
15781    lt_compiler_flag="-o out/conftest2.$ac_objext"
15782    # Insert the option either (1) after the last *FLAGS variable, or
15783    # (2) before a word containing "conftest.", or (3) at the end.
15784    # Note that $ac_compile itself does not contain backslashes and begins
15785    # with a dollar sign (not a hyphen), so the echo should work correctly.
15786    lt_compile=`echo "$ac_compile" | $SED \
15787    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789    -e 's:$: $lt_compiler_flag:'`
15790    (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
15791    (eval "$lt_compile" 2>out/conftest.err)
15792    ac_status=$?
15793    cat out/conftest.err >&5
15794    echo "$as_me:15794: \$? = $ac_status" >&5
15795    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15796    then
15797      # The compiler can only warn and ignore the option if not recognized
15798      # So say no if there are warnings
15799      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15800      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15801      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15802        lt_cv_prog_compiler_c_o_F77=yes
15803      fi
15804    fi
15805    chmod u+w . 2>&5
15806    $rm conftest*
15807    # SGI C++ compiler will create directory out/ii_files/ for
15808    # template instantiation
15809    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15810    $rm out/* && rmdir out
15811    cd ..
15812    rmdir conftest
15813    $rm conftest*
15814
15815 fi
15816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15818
15819
15820 hard_links="nottested"
15821 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15822   # do not overwrite the value of need_locks provided by the user
15823   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15824 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15825   hard_links=yes
15826   $rm conftest*
15827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15828   touch conftest.a
15829   ln conftest.a conftest.b 2>&5 || hard_links=no
15830   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15831   { echo "$as_me:$LINENO: result: $hard_links" >&5
15832 echo "${ECHO_T}$hard_links" >&6; }
15833   if test "$hard_links" = no; then
15834     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15835 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15836     need_locks=warn
15837   fi
15838 else
15839   need_locks=no
15840 fi
15841
15842 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15843 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15844
15845   runpath_var=
15846   allow_undefined_flag_F77=
15847   enable_shared_with_static_runtimes_F77=no
15848   archive_cmds_F77=
15849   archive_expsym_cmds_F77=
15850   old_archive_From_new_cmds_F77=
15851   old_archive_from_expsyms_cmds_F77=
15852   export_dynamic_flag_spec_F77=
15853   whole_archive_flag_spec_F77=
15854   thread_safe_flag_spec_F77=
15855   hardcode_libdir_flag_spec_F77=
15856   hardcode_libdir_flag_spec_ld_F77=
15857   hardcode_libdir_separator_F77=
15858   hardcode_direct_F77=no
15859   hardcode_minus_L_F77=no
15860   hardcode_shlibpath_var_F77=unsupported
15861   link_all_deplibs_F77=unknown
15862   hardcode_automatic_F77=no
15863   module_cmds_F77=
15864   module_expsym_cmds_F77=
15865   always_export_symbols_F77=no
15866   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15867   # include_expsyms should be a list of space-separated symbols to be *always*
15868   # included in the symbol list
15869   include_expsyms_F77=
15870   # exclude_expsyms can be an extended regexp of symbols to exclude
15871   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15872   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15873   # as well as any symbol that contains `d'.
15874   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15875   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15876   # platforms (ab)use it in PIC code, but their linkers get confused if
15877   # the symbol is explicitly referenced.  Since portable code cannot
15878   # rely on this symbol name, it's probably fine to never include it in
15879   # preloaded symbol tables.
15880   extract_expsyms_cmds=
15881   # Just being paranoid about ensuring that cc_basename is set.
15882   for cc_temp in $compiler""; do
15883   case $cc_temp in
15884     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15885     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15886     \-*) ;;
15887     *) break;;
15888   esac
15889 done
15890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15891
15892   case $host_os in
15893   cygwin* | mingw* | pw32*)
15894     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15895     # When not using gcc, we currently assume that we are using
15896     # Microsoft Visual C++.
15897     if test "$GCC" != yes; then
15898       with_gnu_ld=no
15899     fi
15900     ;;
15901   interix*)
15902     # we just hope/assume this is gcc and not c89 (= MSVC++)
15903     with_gnu_ld=yes
15904     ;;
15905   openbsd*)
15906     with_gnu_ld=no
15907     ;;
15908   esac
15909
15910   ld_shlibs_F77=yes
15911   if test "$with_gnu_ld" = yes; then
15912     # If archive_cmds runs LD, not CC, wlarc should be empty
15913     wlarc='${wl}'
15914
15915     # Set some defaults for GNU ld with shared library support. These
15916     # are reset later if shared libraries are not supported. Putting them
15917     # here allows them to be overridden if necessary.
15918     runpath_var=LD_RUN_PATH
15919     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15920     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15921     # ancient GNU ld didn't support --whole-archive et. al.
15922     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15923         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15924       else
15925         whole_archive_flag_spec_F77=
15926     fi
15927     supports_anon_versioning=no
15928     case `$LD -v 2>/dev/null` in
15929       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15930       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15931       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15932       *\ 2.11.*) ;; # other 2.11 versions
15933       *) supports_anon_versioning=yes ;;
15934     esac
15935
15936     # See if GNU ld supports shared libraries.
15937     case $host_os in
15938     aix3* | aix4* | aix5*)
15939       # On AIX/PPC, the GNU linker is very broken
15940       if test "$host_cpu" != ia64; then
15941         ld_shlibs_F77=no
15942         cat <<EOF 1>&2
15943
15944 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15945 *** to be unable to reliably create shared libraries on AIX.
15946 *** Therefore, libtool is disabling shared libraries support.  If you
15947 *** really care for shared libraries, you may want to modify your PATH
15948 *** so that a non-GNU linker is found, and then restart.
15949
15950 EOF
15951       fi
15952       ;;
15953
15954     amigaos*)
15955       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)'
15956       hardcode_libdir_flag_spec_F77='-L$libdir'
15957       hardcode_minus_L_F77=yes
15958
15959       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15960       # that the semantics of dynamic libraries on AmigaOS, at least up
15961       # to version 4, is to share data among multiple programs linked
15962       # with the same dynamic library.  Since this doesn't match the
15963       # behavior of shared libraries on other platforms, we can't use
15964       # them.
15965       ld_shlibs_F77=no
15966       ;;
15967
15968     beos*)
15969       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15970         allow_undefined_flag_F77=unsupported
15971         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15972         # support --undefined.  This deserves some investigation.  FIXME
15973         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974       else
15975         ld_shlibs_F77=no
15976       fi
15977       ;;
15978
15979     cygwin* | mingw* | pw32*)
15980       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15981       # as there is no search path for DLLs.
15982       hardcode_libdir_flag_spec_F77='-L$libdir'
15983       allow_undefined_flag_F77=unsupported
15984       always_export_symbols_F77=no
15985       enable_shared_with_static_runtimes_F77=yes
15986       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15987
15988       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15989         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15990         # If the export-symbols file already is a .def file (1st line
15991         # is EXPORTS), use it as is; otherwise, prepend...
15992         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15993           cp $export_symbols $output_objdir/$soname.def;
15994         else
15995           echo EXPORTS > $output_objdir/$soname.def;
15996           cat $export_symbols >> $output_objdir/$soname.def;
15997         fi~
15998         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15999       else
16000         ld_shlibs_F77=no
16001       fi
16002       ;;
16003
16004     interix[3-9]*)
16005       hardcode_direct_F77=no
16006       hardcode_shlibpath_var_F77=no
16007       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16008       export_dynamic_flag_spec_F77='${wl}-E'
16009       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16010       # Instead, shared libraries are loaded at an image base (0x10000000 by
16011       # default) and relocated if they conflict, which is a slow very memory
16012       # consuming and fragmenting process.  To avoid this, we pick a random,
16013       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16014       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16015       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'
16016       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'
16017       ;;
16018
16019     gnu* | linux* | k*bsd*-gnu)
16020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021         tmp_addflag=
16022         case $cc_basename,$host_cpu in
16023         pgcc*)                          # Portland Group C compiler
16024           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'
16025           tmp_addflag=' $pic_flag'
16026           ;;
16027         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16028           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'
16029           tmp_addflag=' $pic_flag -Mnomain' ;;
16030         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16031           tmp_addflag=' -i_dynamic' ;;
16032         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16033           tmp_addflag=' -i_dynamic -nofor_main' ;;
16034         ifc* | ifort*)                  # Intel Fortran compiler
16035           tmp_addflag=' -nofor_main' ;;
16036         esac
16037         case `$CC -V 2>&1 | sed 5q` in
16038         *Sun\ C*)                       # Sun C 5.9
16039           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'
16040           tmp_sharedflag='-G' ;;
16041         *Sun\ F*)                       # Sun Fortran 8.3
16042           tmp_sharedflag='-G' ;;
16043         *)
16044           tmp_sharedflag='-shared' ;;
16045         esac
16046         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16047
16048         if test $supports_anon_versioning = yes; then
16049           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16050   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16051   $echo "local: *; };" >> $output_objdir/$libname.ver~
16052           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16053         fi
16054         link_all_deplibs_F77=no
16055       else
16056         ld_shlibs_F77=no
16057       fi
16058       ;;
16059
16060     netbsd* | netbsdelf*-gnu)
16061       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16063         wlarc=
16064       else
16065         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16067       fi
16068       ;;
16069
16070     solaris*)
16071       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16072         ld_shlibs_F77=no
16073         cat <<EOF 1>&2
16074
16075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16076 *** create shared libraries on Solaris systems.  Therefore, libtool
16077 *** is disabling shared libraries support.  We urge you to upgrade GNU
16078 *** binutils to release 2.9.1 or newer.  Another option is to modify
16079 *** your PATH or compiler configuration so that the native linker is
16080 *** used, and then restart.
16081
16082 EOF
16083       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16084         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16085         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16086       else
16087         ld_shlibs_F77=no
16088       fi
16089       ;;
16090
16091     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16092       case `$LD -v 2>&1` in
16093         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16094         ld_shlibs_F77=no
16095         cat <<_LT_EOF 1>&2
16096
16097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16098 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16099 *** is disabling shared libraries support.  We urge you to upgrade GNU
16100 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16101 *** your PATH or compiler configuration so that the native linker is
16102 *** used, and then restart.
16103
16104 _LT_EOF
16105         ;;
16106         *)
16107           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16108             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16109             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16110             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16111           else
16112             ld_shlibs_F77=no
16113           fi
16114         ;;
16115       esac
16116       ;;
16117
16118     sunos4*)
16119       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16120       wlarc=
16121       hardcode_direct_F77=yes
16122       hardcode_shlibpath_var_F77=no
16123       ;;
16124
16125     *)
16126       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16127         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16129       else
16130         ld_shlibs_F77=no
16131       fi
16132       ;;
16133     esac
16134
16135     if test "$ld_shlibs_F77" = no; then
16136       runpath_var=
16137       hardcode_libdir_flag_spec_F77=
16138       export_dynamic_flag_spec_F77=
16139       whole_archive_flag_spec_F77=
16140     fi
16141   else
16142     # PORTME fill in a description of your system's linker (not GNU ld)
16143     case $host_os in
16144     aix3*)
16145       allow_undefined_flag_F77=unsupported
16146       always_export_symbols_F77=yes
16147       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'
16148       # Note: this linker hardcodes the directories in LIBPATH if there
16149       # are no directories specified by -L.
16150       hardcode_minus_L_F77=yes
16151       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16152         # Neither direct hardcoding nor static linking is supported with a
16153         # broken collect2.
16154         hardcode_direct_F77=unsupported
16155       fi
16156       ;;
16157
16158     aix4* | aix5*)
16159       if test "$host_cpu" = ia64; then
16160         # On IA64, the linker does run time linking by default, so we don't
16161         # have to do anything special.
16162         aix_use_runtimelinking=no
16163         exp_sym_flag='-Bexport'
16164         no_entry_flag=""
16165       else
16166         # If we're using GNU nm, then we don't want the "-C" option.
16167         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16168         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16169           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'
16170         else
16171           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'
16172         fi
16173         aix_use_runtimelinking=no
16174
16175         # Test if we are trying to use run time linking or normal
16176         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16177         # need to do runtime linking.
16178         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16179           for ld_flag in $LDFLAGS; do
16180           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16181             aix_use_runtimelinking=yes
16182             break
16183           fi
16184           done
16185           ;;
16186         esac
16187
16188         exp_sym_flag='-bexport'
16189         no_entry_flag='-bnoentry'
16190       fi
16191
16192       # When large executables or shared objects are built, AIX ld can
16193       # have problems creating the table of contents.  If linking a library
16194       # or program results in "error TOC overflow" add -mminimal-toc to
16195       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16196       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16197
16198       archive_cmds_F77=''
16199       hardcode_direct_F77=yes
16200       hardcode_libdir_separator_F77=':'
16201       link_all_deplibs_F77=yes
16202
16203       if test "$GCC" = yes; then
16204         case $host_os in aix4.[012]|aix4.[012].*)
16205         # We only want to do this on AIX 4.2 and lower, the check
16206         # below for broken collect2 doesn't work under 4.3+
16207           collect2name=`${CC} -print-prog-name=collect2`
16208           if test -f "$collect2name" && \
16209            strings "$collect2name" | grep resolve_lib_name >/dev/null
16210           then
16211           # We have reworked collect2
16212           :
16213           else
16214           # We have old collect2
16215           hardcode_direct_F77=unsupported
16216           # It fails to find uninstalled libraries when the uninstalled
16217           # path is not listed in the libpath.  Setting hardcode_minus_L
16218           # to unsupported forces relinking
16219           hardcode_minus_L_F77=yes
16220           hardcode_libdir_flag_spec_F77='-L$libdir'
16221           hardcode_libdir_separator_F77=
16222           fi
16223           ;;
16224         esac
16225         shared_flag='-shared'
16226         if test "$aix_use_runtimelinking" = yes; then
16227           shared_flag="$shared_flag "'${wl}-G'
16228         fi
16229       else
16230         # not using gcc
16231         if test "$host_cpu" = ia64; then
16232         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16233         # chokes on -Wl,-G. The following line is correct:
16234           shared_flag='-G'
16235         else
16236           if test "$aix_use_runtimelinking" = yes; then
16237             shared_flag='${wl}-G'
16238           else
16239             shared_flag='${wl}-bM:SRE'
16240           fi
16241         fi
16242       fi
16243
16244       # It seems that -bexpall does not export symbols beginning with
16245       # underscore (_), so it is better to generate a list of symbols to export.
16246       always_export_symbols_F77=yes
16247       if test "$aix_use_runtimelinking" = yes; then
16248         # Warning - without using the other runtime loading flags (-brtl),
16249         # -berok will link without error, but may produce a broken library.
16250         allow_undefined_flag_F77='-berok'
16251        # Determine the default libpath from the value encoded in an empty executable.
16252        cat >conftest.$ac_ext <<_ACEOF
16253       program main
16254
16255       end
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261   *) ac_try_echo=$ac_try;;
16262 esac
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264   (eval "$ac_link") 2>conftest.er1
16265   ac_status=$?
16266   grep -v '^ *+' conftest.er1 >conftest.err
16267   rm -f conftest.er1
16268   cat conftest.err >&5
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } && {
16271          test -z "$ac_f77_werror_flag" ||
16272          test ! -s conftest.err
16273        } && test -s conftest$ac_exeext &&
16274        $as_test_x conftest$ac_exeext; then
16275
16276 lt_aix_libpath_sed='
16277     /Import File Strings/,/^$/ {
16278         /^0/ {
16279             s/^0  *\(.*\)$/\1/
16280             p
16281         }
16282     }'
16283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16284 # Check for a 64-bit object if we didn't find anything.
16285 if test -z "$aix_libpath"; then
16286   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16287 fi
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292
16293 fi
16294
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296       conftest$ac_exeext conftest.$ac_ext
16297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16298
16299        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16300         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"
16301        else
16302         if test "$host_cpu" = ia64; then
16303           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16304           allow_undefined_flag_F77="-z nodefs"
16305           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"
16306         else
16307          # Determine the default libpath from the value encoded in an empty executable.
16308          cat >conftest.$ac_ext <<_ACEOF
16309       program main
16310
16311       end
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320   (eval "$ac_link") 2>conftest.er1
16321   ac_status=$?
16322   grep -v '^ *+' conftest.er1 >conftest.err
16323   rm -f conftest.er1
16324   cat conftest.err >&5
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); } && {
16327          test -z "$ac_f77_werror_flag" ||
16328          test ! -s conftest.err
16329        } && test -s conftest$ac_exeext &&
16330        $as_test_x conftest$ac_exeext; then
16331
16332 lt_aix_libpath_sed='
16333     /Import File Strings/,/^$/ {
16334         /^0/ {
16335             s/^0  *\(.*\)$/\1/
16336             p
16337         }
16338     }'
16339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16340 # Check for a 64-bit object if we didn't find anything.
16341 if test -z "$aix_libpath"; then
16342   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16343 fi
16344 else
16345   echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16352       conftest$ac_exeext conftest.$ac_ext
16353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16354
16355          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16356           # Warning - without using the other run time loading flags,
16357           # -berok will link without error, but may produce a broken library.
16358           no_undefined_flag_F77=' ${wl}-bernotok'
16359           allow_undefined_flag_F77=' ${wl}-berok'
16360           # Exported symbols can be pulled into shared objects from archives
16361           whole_archive_flag_spec_F77='$convenience'
16362           archive_cmds_need_lc_F77=yes
16363           # This is similar to how AIX traditionally builds its shared libraries.
16364           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'
16365         fi
16366       fi
16367       ;;
16368
16369     amigaos*)
16370       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)'
16371       hardcode_libdir_flag_spec_F77='-L$libdir'
16372       hardcode_minus_L_F77=yes
16373       # see comment about different semantics on the GNU ld section
16374       ld_shlibs_F77=no
16375       ;;
16376
16377     bsdi[45]*)
16378       export_dynamic_flag_spec_F77=-rdynamic
16379       ;;
16380
16381     cygwin* | mingw* | pw32*)
16382       # When not using gcc, we currently assume that we are using
16383       # Microsoft Visual C++.
16384       # hardcode_libdir_flag_spec is actually meaningless, as there is
16385       # no search path for DLLs.
16386       hardcode_libdir_flag_spec_F77=' '
16387       allow_undefined_flag_F77=unsupported
16388       # Tell ltmain to make .lib files, not .a files.
16389       libext=lib
16390       # Tell ltmain to make .dll files, not .so files.
16391       shrext_cmds=".dll"
16392       # FIXME: Setting linknames here is a bad hack.
16393       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16394       # The linker will automatically build a .lib file if we build a DLL.
16395       old_archive_From_new_cmds_F77='true'
16396       # FIXME: Should let the user specify the lib program.
16397       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16398       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16399       enable_shared_with_static_runtimes_F77=yes
16400       ;;
16401
16402     darwin* | rhapsody*)
16403       case $host_os in
16404         rhapsody* | darwin1.[012])
16405          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16406          ;;
16407        *) # Darwin 1.3 on
16408          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16409            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16410          else
16411            case ${MACOSX_DEPLOYMENT_TARGET} in
16412              10.[012])
16413                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16414                ;;
16415              10.*)
16416                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16417                ;;
16418            esac
16419          fi
16420          ;;
16421       esac
16422       archive_cmds_need_lc_F77=no
16423       hardcode_direct_F77=no
16424       hardcode_automatic_F77=yes
16425       hardcode_shlibpath_var_F77=unsupported
16426       whole_archive_flag_spec_F77=''
16427       link_all_deplibs_F77=yes
16428     if test "$GCC" = yes ; then
16429         output_verbose_link_cmd='echo'
16430         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16431       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16432       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16433       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}'
16434       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}'
16435     else
16436       case $cc_basename in
16437         xlc*)
16438          output_verbose_link_cmd='echo'
16439          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16440          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16442          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}'
16443           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}'
16444           ;;
16445        *)
16446          ld_shlibs_F77=no
16447           ;;
16448       esac
16449     fi
16450       ;;
16451
16452     dgux*)
16453       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454       hardcode_libdir_flag_spec_F77='-L$libdir'
16455       hardcode_shlibpath_var_F77=no
16456       ;;
16457
16458     freebsd1*)
16459       ld_shlibs_F77=no
16460       ;;
16461
16462     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16463     # support.  Future versions do this automatically, but an explicit c++rt0.o
16464     # does not break anything, and helps significantly (at the cost of a little
16465     # extra space).
16466     freebsd2.2*)
16467       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16468       hardcode_libdir_flag_spec_F77='-R$libdir'
16469       hardcode_direct_F77=yes
16470       hardcode_shlibpath_var_F77=no
16471       ;;
16472
16473     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16474     freebsd2*)
16475       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16476       hardcode_direct_F77=yes
16477       hardcode_minus_L_F77=yes
16478       hardcode_shlibpath_var_F77=no
16479       ;;
16480
16481     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16482     freebsd* | dragonfly*)
16483       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16484       hardcode_libdir_flag_spec_F77='-R$libdir'
16485       hardcode_direct_F77=yes
16486       hardcode_shlibpath_var_F77=no
16487       ;;
16488
16489     hpux9*)
16490       if test "$GCC" = yes; then
16491         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'
16492       else
16493         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'
16494       fi
16495       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16496       hardcode_libdir_separator_F77=:
16497       hardcode_direct_F77=yes
16498
16499       # hardcode_minus_L: Not really in the search PATH,
16500       # but as the default location of the library.
16501       hardcode_minus_L_F77=yes
16502       export_dynamic_flag_spec_F77='${wl}-E'
16503       ;;
16504
16505     hpux10*)
16506       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16507         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16508       else
16509         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16510       fi
16511       if test "$with_gnu_ld" = no; then
16512         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16513         hardcode_libdir_separator_F77=:
16514
16515         hardcode_direct_F77=yes
16516         export_dynamic_flag_spec_F77='${wl}-E'
16517
16518         # hardcode_minus_L: Not really in the search PATH,
16519         # but as the default location of the library.
16520         hardcode_minus_L_F77=yes
16521       fi
16522       ;;
16523
16524     hpux11*)
16525       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16526         case $host_cpu in
16527         hppa*64*)
16528           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529           ;;
16530         ia64*)
16531           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16532           ;;
16533         *)
16534           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16535           ;;
16536         esac
16537       else
16538         case $host_cpu in
16539         hppa*64*)
16540           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16541           ;;
16542         ia64*)
16543           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16544           ;;
16545         *)
16546           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16547           ;;
16548         esac
16549       fi
16550       if test "$with_gnu_ld" = no; then
16551         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16552         hardcode_libdir_separator_F77=:
16553
16554         case $host_cpu in
16555         hppa*64*|ia64*)
16556           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16557           hardcode_direct_F77=no
16558           hardcode_shlibpath_var_F77=no
16559           ;;
16560         *)
16561           hardcode_direct_F77=yes
16562           export_dynamic_flag_spec_F77='${wl}-E'
16563
16564           # hardcode_minus_L: Not really in the search PATH,
16565           # but as the default location of the library.
16566           hardcode_minus_L_F77=yes
16567           ;;
16568         esac
16569       fi
16570       ;;
16571
16572     irix5* | irix6* | nonstopux*)
16573       if test "$GCC" = yes; then
16574         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'
16575       else
16576         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'
16577         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16578       fi
16579       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16580       hardcode_libdir_separator_F77=:
16581       link_all_deplibs_F77=yes
16582       ;;
16583
16584     netbsd* | netbsdelf*-gnu)
16585       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16587       else
16588         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16589       fi
16590       hardcode_libdir_flag_spec_F77='-R$libdir'
16591       hardcode_direct_F77=yes
16592       hardcode_shlibpath_var_F77=no
16593       ;;
16594
16595     newsos6)
16596       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597       hardcode_direct_F77=yes
16598       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599       hardcode_libdir_separator_F77=:
16600       hardcode_shlibpath_var_F77=no
16601       ;;
16602
16603     openbsd*)
16604       if test -f /usr/libexec/ld.so; then
16605         hardcode_direct_F77=yes
16606         hardcode_shlibpath_var_F77=no
16607         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16608           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16610           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16611           export_dynamic_flag_spec_F77='${wl}-E'
16612         else
16613           case $host_os in
16614            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16615              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16616              hardcode_libdir_flag_spec_F77='-R$libdir'
16617              ;;
16618            *)
16619              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16621              ;;
16622           esac
16623         fi
16624       else
16625         ld_shlibs_F77=no
16626       fi
16627       ;;
16628
16629     os2*)
16630       hardcode_libdir_flag_spec_F77='-L$libdir'
16631       hardcode_minus_L_F77=yes
16632       allow_undefined_flag_F77=unsupported
16633       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'
16634       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16635       ;;
16636
16637     osf3*)
16638       if test "$GCC" = yes; then
16639         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16640         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'
16641       else
16642         allow_undefined_flag_F77=' -expect_unresolved \*'
16643         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'
16644       fi
16645       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16646       hardcode_libdir_separator_F77=:
16647       ;;
16648
16649     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16650       if test "$GCC" = yes; then
16651         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16652         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'
16653         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16654       else
16655         allow_undefined_flag_F77=' -expect_unresolved \*'
16656         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'
16657         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~
16658         $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'
16659
16660         # Both c and cxx compiler support -rpath directly
16661         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16662       fi
16663       hardcode_libdir_separator_F77=:
16664       ;;
16665
16666     solaris*)
16667       no_undefined_flag_F77=' -z text'
16668       if test "$GCC" = yes; then
16669         wlarc='${wl}'
16670         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16671         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16672           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16673       else
16674         wlarc=''
16675         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16677         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16678       fi
16679       hardcode_libdir_flag_spec_F77='-R$libdir'
16680       hardcode_shlibpath_var_F77=no
16681       case $host_os in
16682       solaris2.[0-5] | solaris2.[0-5].*) ;;
16683       *)
16684         # The compiler driver will combine and reorder linker options,
16685         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16686         # but is careful enough not to reorder.
16687         # Supported since Solaris 2.6 (maybe 2.5.1?)
16688         if test "$GCC" = yes; then
16689           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16690         else
16691           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16692         fi
16693         ;;
16694       esac
16695       link_all_deplibs_F77=yes
16696       ;;
16697
16698     sunos4*)
16699       if test "x$host_vendor" = xsequent; then
16700         # Use $CC to link under sequent, because it throws in some extra .o
16701         # files that make .init and .fini sections work.
16702         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16703       else
16704         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16705       fi
16706       hardcode_libdir_flag_spec_F77='-L$libdir'
16707       hardcode_direct_F77=yes
16708       hardcode_minus_L_F77=yes
16709       hardcode_shlibpath_var_F77=no
16710       ;;
16711
16712     sysv4)
16713       case $host_vendor in
16714         sni)
16715           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716           hardcode_direct_F77=yes # is this really true???
16717         ;;
16718         siemens)
16719           ## LD is ld it makes a PLAMLIB
16720           ## CC just makes a GrossModule.
16721           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16722           reload_cmds_F77='$CC -r -o $output$reload_objs'
16723           hardcode_direct_F77=no
16724         ;;
16725         motorola)
16726           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16728         ;;
16729       esac
16730       runpath_var='LD_RUN_PATH'
16731       hardcode_shlibpath_var_F77=no
16732       ;;
16733
16734     sysv4.3*)
16735       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736       hardcode_shlibpath_var_F77=no
16737       export_dynamic_flag_spec_F77='-Bexport'
16738       ;;
16739
16740     sysv4*MP*)
16741       if test -d /usr/nec; then
16742         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743         hardcode_shlibpath_var_F77=no
16744         runpath_var=LD_RUN_PATH
16745         hardcode_runpath_var=yes
16746         ld_shlibs_F77=yes
16747       fi
16748       ;;
16749
16750     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16751       no_undefined_flag_F77='${wl}-z,text'
16752       archive_cmds_need_lc_F77=no
16753       hardcode_shlibpath_var_F77=no
16754       runpath_var='LD_RUN_PATH'
16755
16756       if test "$GCC" = yes; then
16757         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16758         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16759       else
16760         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16762       fi
16763       ;;
16764
16765     sysv5* | sco3.2v5* | sco5v6*)
16766       # Note: We can NOT use -z defs as we might desire, because we do not
16767       # link with -lc, and that would cause any symbols used from libc to
16768       # always be unresolved, which means just about no library would
16769       # ever link correctly.  If we're not using GNU ld we use -z text
16770       # though, which does catch some bad symbols but isn't as heavy-handed
16771       # as -z defs.
16772       no_undefined_flag_F77='${wl}-z,text'
16773       allow_undefined_flag_F77='${wl}-z,nodefs'
16774       archive_cmds_need_lc_F77=no
16775       hardcode_shlibpath_var_F77=no
16776       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16777       hardcode_libdir_separator_F77=':'
16778       link_all_deplibs_F77=yes
16779       export_dynamic_flag_spec_F77='${wl}-Bexport'
16780       runpath_var='LD_RUN_PATH'
16781
16782       if test "$GCC" = yes; then
16783         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16784         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785       else
16786         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788       fi
16789       ;;
16790
16791     uts4*)
16792       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16793       hardcode_libdir_flag_spec_F77='-L$libdir'
16794       hardcode_shlibpath_var_F77=no
16795       ;;
16796
16797     *)
16798       ld_shlibs_F77=no
16799       ;;
16800     esac
16801   fi
16802
16803 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16804 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16805 test "$ld_shlibs_F77" = no && can_build_shared=no
16806
16807 #
16808 # Do we need to explicitly link libc?
16809 #
16810 case "x$archive_cmds_need_lc_F77" in
16811 x|xyes)
16812   # Assume -lc should be added
16813   archive_cmds_need_lc_F77=yes
16814
16815   if test "$enable_shared" = yes && test "$GCC" = yes; then
16816     case $archive_cmds_F77 in
16817     *'~'*)
16818       # FIXME: we may have to deal with multi-command sequences.
16819       ;;
16820     '$CC '*)
16821       # Test whether the compiler implicitly links with -lc since on some
16822       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16823       # to ld, don't add -lc before -lgcc.
16824       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16826       $rm conftest*
16827       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16828
16829       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830   (eval $ac_compile) 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } 2>conftest.err; then
16834         soname=conftest
16835         lib=conftest
16836         libobjs=conftest.$ac_objext
16837         deplibs=
16838         wl=$lt_prog_compiler_wl_F77
16839         pic_flag=$lt_prog_compiler_pic_F77
16840         compiler_flags=-v
16841         linker_flags=-v
16842         verstring=
16843         output_objdir=.
16844         libname=conftest
16845         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16846         allow_undefined_flag_F77=
16847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16848   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }
16852         then
16853           archive_cmds_need_lc_F77=no
16854         else
16855           archive_cmds_need_lc_F77=yes
16856         fi
16857         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16858       else
16859         cat conftest.err 1>&5
16860       fi
16861       $rm conftest*
16862       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16864       ;;
16865     esac
16866   fi
16867   ;;
16868 esac
16869
16870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16872 library_names_spec=
16873 libname_spec='lib$name'
16874 soname_spec=
16875 shrext_cmds=".so"
16876 postinstall_cmds=
16877 postuninstall_cmds=
16878 finish_cmds=
16879 finish_eval=
16880 shlibpath_var=
16881 shlibpath_overrides_runpath=unknown
16882 version_type=none
16883 dynamic_linker="$host_os ld.so"
16884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16885
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16888
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16892
16893 case $host_os in
16894 aix3*)
16895   version_type=linux
16896   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897   shlibpath_var=LIBPATH
16898
16899   # AIX 3 has no versioning support, so we append a major version to the name.
16900   soname_spec='${libname}${release}${shared_ext}$major'
16901   ;;
16902
16903 aix4* | aix5*)
16904   version_type=linux
16905   need_lib_prefix=no
16906   need_version=no
16907   hardcode_into_libs=yes
16908   if test "$host_cpu" = ia64; then
16909     # AIX 5 supports IA64
16910     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911     shlibpath_var=LD_LIBRARY_PATH
16912   else
16913     # With GCC up to 2.95.x, collect2 would create an import file
16914     # for dependence libraries.  The import file would start with
16915     # the line `#! .'.  This would cause the generated library to
16916     # depend on `.', always an invalid library.  This was fixed in
16917     # development snapshots of GCC prior to 3.0.
16918     case $host_os in
16919       aix4 | aix4.[01] | aix4.[01].*)
16920       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16921            echo ' yes '
16922            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16923         :
16924       else
16925         can_build_shared=no
16926       fi
16927       ;;
16928     esac
16929     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930     # soname into executable. Probably we can add versioning support to
16931     # collect2, so additional links can be useful in future.
16932     if test "$aix_use_runtimelinking" = yes; then
16933       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934       # instead of lib<name>.a to let people know that these are not
16935       # typical AIX shared libraries.
16936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937     else
16938       # We preserve .a as extension for shared libraries through AIX4.2
16939       # and later when we are not doing run time linking.
16940       library_names_spec='${libname}${release}.a $libname.a'
16941       soname_spec='${libname}${release}${shared_ext}$major'
16942     fi
16943     shlibpath_var=LIBPATH
16944   fi
16945   ;;
16946
16947 amigaos*)
16948   library_names_spec='$libname.ixlibrary $libname.a'
16949   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16950   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'
16951   ;;
16952
16953 beos*)
16954   library_names_spec='${libname}${shared_ext}'
16955   dynamic_linker="$host_os ld.so"
16956   shlibpath_var=LIBRARY_PATH
16957   ;;
16958
16959 bsdi[45]*)
16960   version_type=linux
16961   need_version=no
16962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963   soname_spec='${libname}${release}${shared_ext}$major'
16964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16968   # the default ld.so.conf also contains /usr/contrib/lib and
16969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16970   # libtool to hard-code these into programs
16971   ;;
16972
16973 cygwin* | mingw* | pw32*)
16974   version_type=windows
16975   shrext_cmds=".dll"
16976   need_version=no
16977   need_lib_prefix=no
16978
16979   case $GCC,$host_os in
16980   yes,cygwin* | yes,mingw* | yes,pw32*)
16981     library_names_spec='$libname.dll.a'
16982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16983     postinstall_cmds='base_file=`basename \${file}`~
16984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16985       dldir=$destdir/`dirname \$dlpath`~
16986       test -d \$dldir || mkdir -p \$dldir~
16987       $install_prog $dir/$dlname \$dldir/$dlname~
16988       chmod a+x \$dldir/$dlname'
16989     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16990       dlpath=$dir/\$dldll~
16991        $rm \$dlpath'
16992     shlibpath_overrides_runpath=yes
16993
16994     case $host_os in
16995     cygwin*)
16996       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16997       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16999       ;;
17000     mingw*)
17001       # MinGW DLLs use traditional 'lib' prefix
17002       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17003       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17005         # It is most probably a Windows format PATH printed by
17006         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17007         # path with ; separators, and with drive letters. We can handle the
17008         # drive letters (cygwin fileutils understands them), so leave them,
17009         # especially as we might pass files found there to a mingw objdump,
17010         # which wouldn't understand a cygwinified path. Ahh.
17011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012       else
17013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014       fi
17015       ;;
17016     pw32*)
17017       # pw32 DLLs use 'pw' prefix rather than 'lib'
17018       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019       ;;
17020     esac
17021     ;;
17022
17023   *)
17024     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17025     ;;
17026   esac
17027   dynamic_linker='Win32 ld.exe'
17028   # FIXME: first we should search . and the directory the executable is in
17029   shlibpath_var=PATH
17030   ;;
17031
17032 darwin* | rhapsody*)
17033   dynamic_linker="$host_os dyld"
17034   version_type=darwin
17035   need_lib_prefix=no
17036   need_version=no
17037   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17038   soname_spec='${libname}${release}${major}$shared_ext'
17039   shlibpath_overrides_runpath=yes
17040   shlibpath_var=DYLD_LIBRARY_PATH
17041   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17042
17043   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17044   ;;
17045
17046 dgux*)
17047   version_type=linux
17048   need_lib_prefix=no
17049   need_version=no
17050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17051   soname_spec='${libname}${release}${shared_ext}$major'
17052   shlibpath_var=LD_LIBRARY_PATH
17053   ;;
17054
17055 freebsd1*)
17056   dynamic_linker=no
17057   ;;
17058
17059 freebsd* | dragonfly*)
17060   # DragonFly does not have aout.  When/if they implement a new
17061   # versioning mechanism, adjust this.
17062   if test -x /usr/bin/objformat; then
17063     objformat=`/usr/bin/objformat`
17064   else
17065     case $host_os in
17066     freebsd[123]*) objformat=aout ;;
17067     *) objformat=elf ;;
17068     esac
17069   fi
17070   version_type=freebsd-$objformat
17071   case $version_type in
17072     freebsd-elf*)
17073       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17074       need_version=no
17075       need_lib_prefix=no
17076       ;;
17077     freebsd-*)
17078       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17079       need_version=yes
17080       ;;
17081   esac
17082   shlibpath_var=LD_LIBRARY_PATH
17083   case $host_os in
17084   freebsd2*)
17085     shlibpath_overrides_runpath=yes
17086     ;;
17087   freebsd3.[01]* | freebsdelf3.[01]*)
17088     shlibpath_overrides_runpath=yes
17089     hardcode_into_libs=yes
17090     ;;
17091   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17092   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17093     shlibpath_overrides_runpath=no
17094     hardcode_into_libs=yes
17095     ;;
17096   *) # from 4.6 on, and DragonFly
17097     shlibpath_overrides_runpath=yes
17098     hardcode_into_libs=yes
17099     ;;
17100   esac
17101   ;;
17102
17103 gnu*)
17104   version_type=linux
17105   need_lib_prefix=no
17106   need_version=no
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   hardcode_into_libs=yes
17111   ;;
17112
17113 hpux9* | hpux10* | hpux11*)
17114   # Give a soname corresponding to the major version so that dld.sl refuses to
17115   # link against other versions.
17116   version_type=sunos
17117   need_lib_prefix=no
17118   need_version=no
17119   case $host_cpu in
17120   ia64*)
17121     shrext_cmds='.so'
17122     hardcode_into_libs=yes
17123     dynamic_linker="$host_os dld.so"
17124     shlibpath_var=LD_LIBRARY_PATH
17125     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127     soname_spec='${libname}${release}${shared_ext}$major'
17128     if test "X$HPUX_IA64_MODE" = X32; then
17129       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17130     else
17131       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17132     fi
17133     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17134     ;;
17135    hppa*64*)
17136      shrext_cmds='.sl'
17137      hardcode_into_libs=yes
17138      dynamic_linker="$host_os dld.sl"
17139      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17140      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142      soname_spec='${libname}${release}${shared_ext}$major'
17143      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17144      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17145      ;;
17146    *)
17147     shrext_cmds='.sl'
17148     dynamic_linker="$host_os dld.sl"
17149     shlibpath_var=SHLIB_PATH
17150     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152     soname_spec='${libname}${release}${shared_ext}$major'
17153     ;;
17154   esac
17155   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17156   postinstall_cmds='chmod 555 $lib'
17157   ;;
17158
17159 interix[3-9]*)
17160   version_type=linux
17161   need_lib_prefix=no
17162   need_version=no
17163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   shlibpath_overrides_runpath=no
17168   hardcode_into_libs=yes
17169   ;;
17170
17171 irix5* | irix6* | nonstopux*)
17172   case $host_os in
17173     nonstopux*) version_type=nonstopux ;;
17174     *)
17175         if test "$lt_cv_prog_gnu_ld" = yes; then
17176                 version_type=linux
17177         else
17178                 version_type=irix
17179         fi ;;
17180   esac
17181   need_lib_prefix=no
17182   need_version=no
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17185   case $host_os in
17186   irix5* | nonstopux*)
17187     libsuff= shlibsuff=
17188     ;;
17189   *)
17190     case $LD in # libtool.m4 will add one of these switches to LD
17191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17192       libsuff= shlibsuff= libmagic=32-bit;;
17193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17194       libsuff=32 shlibsuff=N32 libmagic=N32;;
17195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17197     *) libsuff= shlibsuff= libmagic=never-match;;
17198     esac
17199     ;;
17200   esac
17201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17202   shlibpath_overrides_runpath=no
17203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17205   hardcode_into_libs=yes
17206   ;;
17207
17208 # No shared lib support for Linux oldld, aout, or coff.
17209 linux*oldld* | linux*aout* | linux*coff*)
17210   dynamic_linker=no
17211   ;;
17212
17213 # This must be Linux ELF.
17214 linux* | k*bsd*-gnu)
17215   version_type=linux
17216   need_lib_prefix=no
17217   need_version=no
17218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219   soname_spec='${libname}${release}${shared_ext}$major'
17220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17221   shlibpath_var=LD_LIBRARY_PATH
17222   shlibpath_overrides_runpath=no
17223   # This implies no fast_install, which is unacceptable.
17224   # Some rework will be needed to allow for fast_install
17225   # before this can be enabled.
17226   hardcode_into_libs=yes
17227
17228   # Append ld.so.conf contents to the search path
17229   if test -f /etc/ld.so.conf; then
17230     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' ' '`
17231     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17232   fi
17233
17234   # We used to test for /lib/ld.so.1 and disable shared libraries on
17235   # powerpc, because MkLinux only supported shared libraries with the
17236   # GNU dynamic linker.  Since this was broken with cross compilers,
17237   # most powerpc-linux boxes support dynamic linking these days and
17238   # people can always --disable-shared, the test was removed, and we
17239   # assume the GNU/Linux dynamic linker is in use.
17240   dynamic_linker='GNU/Linux ld.so'
17241   ;;
17242
17243 netbsdelf*-gnu)
17244   version_type=linux
17245   need_lib_prefix=no
17246   need_version=no
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17248   soname_spec='${libname}${release}${shared_ext}$major'
17249   shlibpath_var=LD_LIBRARY_PATH
17250   shlibpath_overrides_runpath=no
17251   hardcode_into_libs=yes
17252   dynamic_linker='NetBSD ld.elf_so'
17253   ;;
17254
17255 netbsd*)
17256   version_type=sunos
17257   need_lib_prefix=no
17258   need_version=no
17259   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17262     dynamic_linker='NetBSD (a.out) ld.so'
17263   else
17264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17265     soname_spec='${libname}${release}${shared_ext}$major'
17266     dynamic_linker='NetBSD ld.elf_so'
17267   fi
17268   shlibpath_var=LD_LIBRARY_PATH
17269   shlibpath_overrides_runpath=yes
17270   hardcode_into_libs=yes
17271   ;;
17272
17273 newsos6)
17274   version_type=linux
17275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=yes
17278   ;;
17279
17280 nto-qnx*)
17281   version_type=linux
17282   need_lib_prefix=no
17283   need_version=no
17284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285   soname_spec='${libname}${release}${shared_ext}$major'
17286   shlibpath_var=LD_LIBRARY_PATH
17287   shlibpath_overrides_runpath=yes
17288   ;;
17289
17290 openbsd*)
17291   version_type=sunos
17292   sys_lib_dlsearch_path_spec="/usr/lib"
17293   need_lib_prefix=no
17294   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17295   case $host_os in
17296     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17297     *)                         need_version=no  ;;
17298   esac
17299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17301   shlibpath_var=LD_LIBRARY_PATH
17302   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17303     case $host_os in
17304       openbsd2.[89] | openbsd2.[89].*)
17305         shlibpath_overrides_runpath=no
17306         ;;
17307       *)
17308         shlibpath_overrides_runpath=yes
17309         ;;
17310       esac
17311   else
17312     shlibpath_overrides_runpath=yes
17313   fi
17314   ;;
17315
17316 os2*)
17317   libname_spec='$name'
17318   shrext_cmds=".dll"
17319   need_lib_prefix=no
17320   library_names_spec='$libname${shared_ext} $libname.a'
17321   dynamic_linker='OS/2 ld.exe'
17322   shlibpath_var=LIBPATH
17323   ;;
17324
17325 osf3* | osf4* | osf5*)
17326   version_type=osf
17327   need_lib_prefix=no
17328   need_version=no
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331   shlibpath_var=LD_LIBRARY_PATH
17332   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17333   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17334   ;;
17335
17336 rdos*)
17337   dynamic_linker=no
17338   ;;
17339
17340 solaris*)
17341   version_type=linux
17342   need_lib_prefix=no
17343   need_version=no
17344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345   soname_spec='${libname}${release}${shared_ext}$major'
17346   shlibpath_var=LD_LIBRARY_PATH
17347   shlibpath_overrides_runpath=yes
17348   hardcode_into_libs=yes
17349   # ldd complains unless libraries are executable
17350   postinstall_cmds='chmod +x $lib'
17351   ;;
17352
17353 sunos4*)
17354   version_type=sunos
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17356   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   shlibpath_overrides_runpath=yes
17359   if test "$with_gnu_ld" = yes; then
17360     need_lib_prefix=no
17361   fi
17362   need_version=yes
17363   ;;
17364
17365 sysv4 | sysv4.3*)
17366   version_type=linux
17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368   soname_spec='${libname}${release}${shared_ext}$major'
17369   shlibpath_var=LD_LIBRARY_PATH
17370   case $host_vendor in
17371     sni)
17372       shlibpath_overrides_runpath=no
17373       need_lib_prefix=no
17374       export_dynamic_flag_spec='${wl}-Blargedynsym'
17375       runpath_var=LD_RUN_PATH
17376       ;;
17377     siemens)
17378       need_lib_prefix=no
17379       ;;
17380     motorola)
17381       need_lib_prefix=no
17382       need_version=no
17383       shlibpath_overrides_runpath=no
17384       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17385       ;;
17386   esac
17387   ;;
17388
17389 sysv4*MP*)
17390   if test -d /usr/nec ;then
17391     version_type=linux
17392     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17393     soname_spec='$libname${shared_ext}.$major'
17394     shlibpath_var=LD_LIBRARY_PATH
17395   fi
17396   ;;
17397
17398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17399   version_type=freebsd-elf
17400   need_lib_prefix=no
17401   need_version=no
17402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17403   soname_spec='${libname}${release}${shared_ext}$major'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   hardcode_into_libs=yes
17406   if test "$with_gnu_ld" = yes; then
17407     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17408     shlibpath_overrides_runpath=no
17409   else
17410     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17411     shlibpath_overrides_runpath=yes
17412     case $host_os in
17413       sco3.2v5*)
17414         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17415         ;;
17416     esac
17417   fi
17418   sys_lib_dlsearch_path_spec='/usr/lib'
17419   ;;
17420
17421 uts4*)
17422   version_type=linux
17423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17424   soname_spec='${libname}${release}${shared_ext}$major'
17425   shlibpath_var=LD_LIBRARY_PATH
17426   ;;
17427
17428 *)
17429   dynamic_linker=no
17430   ;;
17431 esac
17432 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17433 echo "${ECHO_T}$dynamic_linker" >&6; }
17434 test "$dynamic_linker" = no && can_build_shared=no
17435
17436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17437 if test "$GCC" = yes; then
17438   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17439 fi
17440
17441 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17443 hardcode_action_F77=
17444 if test -n "$hardcode_libdir_flag_spec_F77" || \
17445    test -n "$runpath_var_F77" || \
17446    test "X$hardcode_automatic_F77" = "Xyes" ; then
17447
17448   # We can hardcode non-existant directories.
17449   if test "$hardcode_direct_F77" != no &&
17450      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17451      # have to relink, otherwise we might link with an installed library
17452      # when we should be linking with a yet-to-be-installed one
17453      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17454      test "$hardcode_minus_L_F77" != no; then
17455     # Linking always hardcodes the temporary library directory.
17456     hardcode_action_F77=relink
17457   else
17458     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17459     hardcode_action_F77=immediate
17460   fi
17461 else
17462   # We cannot hardcode anything, or else we can only hardcode existing
17463   # directories.
17464   hardcode_action_F77=unsupported
17465 fi
17466 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17467 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17468
17469 if test "$hardcode_action_F77" = relink; then
17470   # Fast installation is not supported
17471   enable_fast_install=no
17472 elif test "$shlibpath_overrides_runpath" = yes ||
17473      test "$enable_shared" = no; then
17474   # Fast installation is not necessary
17475   enable_fast_install=needless
17476 fi
17477
17478
17479 # The else clause should only fire when bootstrapping the
17480 # libtool distribution, otherwise you forgot to ship ltmain.sh
17481 # with your package, and you will get complaints that there are
17482 # no rules to generate ltmain.sh.
17483 if test -f "$ltmain"; then
17484   # See if we are running on zsh, and set the options which allow our commands through
17485   # without removal of \ escapes.
17486   if test -n "${ZSH_VERSION+set}" ; then
17487     setopt NO_GLOB_SUBST
17488   fi
17489   # Now quote all the things that may contain metacharacters while being
17490   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17491   # variables and quote the copies for generation of the libtool script.
17492   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17493     SED SHELL STRIP \
17494     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17495     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17496     deplibs_check_method reload_flag reload_cmds need_locks \
17497     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17498     lt_cv_sys_global_symbol_to_c_name_address \
17499     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17500     old_postinstall_cmds old_postuninstall_cmds \
17501     compiler_F77 \
17502     CC_F77 \
17503     LD_F77 \
17504     lt_prog_compiler_wl_F77 \
17505     lt_prog_compiler_pic_F77 \
17506     lt_prog_compiler_static_F77 \
17507     lt_prog_compiler_no_builtin_flag_F77 \
17508     export_dynamic_flag_spec_F77 \
17509     thread_safe_flag_spec_F77 \
17510     whole_archive_flag_spec_F77 \
17511     enable_shared_with_static_runtimes_F77 \
17512     old_archive_cmds_F77 \
17513     old_archive_from_new_cmds_F77 \
17514     predep_objects_F77 \
17515     postdep_objects_F77 \
17516     predeps_F77 \
17517     postdeps_F77 \
17518     compiler_lib_search_path_F77 \
17519     archive_cmds_F77 \
17520     archive_expsym_cmds_F77 \
17521     postinstall_cmds_F77 \
17522     postuninstall_cmds_F77 \
17523     old_archive_from_expsyms_cmds_F77 \
17524     allow_undefined_flag_F77 \
17525     no_undefined_flag_F77 \
17526     export_symbols_cmds_F77 \
17527     hardcode_libdir_flag_spec_F77 \
17528     hardcode_libdir_flag_spec_ld_F77 \
17529     hardcode_libdir_separator_F77 \
17530     hardcode_automatic_F77 \
17531     module_cmds_F77 \
17532     module_expsym_cmds_F77 \
17533     lt_cv_prog_compiler_c_o_F77 \
17534     fix_srcfile_path_F77 \
17535     exclude_expsyms_F77 \
17536     include_expsyms_F77; do
17537
17538     case $var in
17539     old_archive_cmds_F77 | \
17540     old_archive_from_new_cmds_F77 | \
17541     archive_cmds_F77 | \
17542     archive_expsym_cmds_F77 | \
17543     module_cmds_F77 | \
17544     module_expsym_cmds_F77 | \
17545     old_archive_from_expsyms_cmds_F77 | \
17546     export_symbols_cmds_F77 | \
17547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17548     postinstall_cmds | postuninstall_cmds | \
17549     old_postinstall_cmds | old_postuninstall_cmds | \
17550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17551       # Double-quote double-evaled strings.
17552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17553       ;;
17554     *)
17555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17556       ;;
17557     esac
17558   done
17559
17560   case $lt_echo in
17561   *'\$0 --fallback-echo"')
17562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17563     ;;
17564   esac
17565
17566 cfgfile="$ofile"
17567
17568   cat <<__EOF__ >> "$cfgfile"
17569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17570
17571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17572
17573 # Shell to use when invoking shell scripts.
17574 SHELL=$lt_SHELL
17575
17576 # Whether or not to build shared libraries.
17577 build_libtool_libs=$enable_shared
17578
17579 # Whether or not to build static libraries.
17580 build_old_libs=$enable_static
17581
17582 # Whether or not to add -lc for building shared libraries.
17583 build_libtool_need_lc=$archive_cmds_need_lc_F77
17584
17585 # Whether or not to disallow shared libs when runtime libs are static
17586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17587
17588 # Whether or not to optimize for fast installation.
17589 fast_install=$enable_fast_install
17590
17591 # The host system.
17592 host_alias=$host_alias
17593 host=$host
17594 host_os=$host_os
17595
17596 # The build system.
17597 build_alias=$build_alias
17598 build=$build
17599 build_os=$build_os
17600
17601 # An echo program that does not interpret backslashes.
17602 echo=$lt_echo
17603
17604 # The archiver.
17605 AR=$lt_AR
17606 AR_FLAGS=$lt_AR_FLAGS
17607
17608 # A C compiler.
17609 LTCC=$lt_LTCC
17610
17611 # LTCC compiler flags.
17612 LTCFLAGS=$lt_LTCFLAGS
17613
17614 # A language-specific compiler.
17615 CC=$lt_compiler_F77
17616
17617 # Is the compiler the GNU C compiler?
17618 with_gcc=$GCC_F77
17619
17620 # An ERE matcher.
17621 EGREP=$lt_EGREP
17622
17623 # The linker used to build libraries.
17624 LD=$lt_LD_F77
17625
17626 # Whether we need hard or soft links.
17627 LN_S=$lt_LN_S
17628
17629 # A BSD-compatible nm program.
17630 NM=$lt_NM
17631
17632 # A symbol stripping program
17633 STRIP=$lt_STRIP
17634
17635 # Used to examine libraries when file_magic_cmd begins "file"
17636 MAGIC_CMD=$MAGIC_CMD
17637
17638 # Used on cygwin: DLL creation program.
17639 DLLTOOL="$DLLTOOL"
17640
17641 # Used on cygwin: object dumper.
17642 OBJDUMP="$OBJDUMP"
17643
17644 # Used on cygwin: assembler.
17645 AS="$AS"
17646
17647 # The name of the directory that contains temporary libtool files.
17648 objdir=$objdir
17649
17650 # How to create reloadable object files.
17651 reload_flag=$lt_reload_flag
17652 reload_cmds=$lt_reload_cmds
17653
17654 # How to pass a linker flag through the compiler.
17655 wl=$lt_lt_prog_compiler_wl_F77
17656
17657 # Object file suffix (normally "o").
17658 objext="$ac_objext"
17659
17660 # Old archive suffix (normally "a").
17661 libext="$libext"
17662
17663 # Shared library suffix (normally ".so").
17664 shrext_cmds='$shrext_cmds'
17665
17666 # Executable file suffix (normally "").
17667 exeext="$exeext"
17668
17669 # Additional compiler flags for building library objects.
17670 pic_flag=$lt_lt_prog_compiler_pic_F77
17671 pic_mode=$pic_mode
17672
17673 # What is the maximum length of a command?
17674 max_cmd_len=$lt_cv_sys_max_cmd_len
17675
17676 # Does compiler simultaneously support -c and -o options?
17677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17678
17679 # Must we lock files when doing compilation?
17680 need_locks=$lt_need_locks
17681
17682 # Do we need the lib prefix for modules?
17683 need_lib_prefix=$need_lib_prefix
17684
17685 # Do we need a version for libraries?
17686 need_version=$need_version
17687
17688 # Whether dlopen is supported.
17689 dlopen_support=$enable_dlopen
17690
17691 # Whether dlopen of programs is supported.
17692 dlopen_self=$enable_dlopen_self
17693
17694 # Whether dlopen of statically linked programs is supported.
17695 dlopen_self_static=$enable_dlopen_self_static
17696
17697 # Compiler flag to prevent dynamic linking.
17698 link_static_flag=$lt_lt_prog_compiler_static_F77
17699
17700 # Compiler flag to turn off builtin functions.
17701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17702
17703 # Compiler flag to allow reflexive dlopens.
17704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17705
17706 # Compiler flag to generate shared objects directly from archives.
17707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17708
17709 # Compiler flag to generate thread-safe objects.
17710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17711
17712 # Library versioning type.
17713 version_type=$version_type
17714
17715 # Format of library name prefix.
17716 libname_spec=$lt_libname_spec
17717
17718 # List of archive names.  First name is the real one, the rest are links.
17719 # The last name is the one that the linker finds with -lNAME.
17720 library_names_spec=$lt_library_names_spec
17721
17722 # The coded name of the library, if different from the real name.
17723 soname_spec=$lt_soname_spec
17724
17725 # Commands used to build and install an old-style archive.
17726 RANLIB=$lt_RANLIB
17727 old_archive_cmds=$lt_old_archive_cmds_F77
17728 old_postinstall_cmds=$lt_old_postinstall_cmds
17729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17730
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17733
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17736
17737 # Commands used to build and install a shared archive.
17738 archive_cmds=$lt_archive_cmds_F77
17739 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17740 postinstall_cmds=$lt_postinstall_cmds
17741 postuninstall_cmds=$lt_postuninstall_cmds
17742
17743 # Commands used to build a loadable module (assumed same as above if empty)
17744 module_cmds=$lt_module_cmds_F77
17745 module_expsym_cmds=$lt_module_expsym_cmds_F77
17746
17747 # Commands to strip libraries.
17748 old_striplib=$lt_old_striplib
17749 striplib=$lt_striplib
17750
17751 # Dependencies to place before the objects being linked to create a
17752 # shared library.
17753 predep_objects=$lt_predep_objects_F77
17754
17755 # Dependencies to place after the objects being linked to create a
17756 # shared library.
17757 postdep_objects=$lt_postdep_objects_F77
17758
17759 # Dependencies to place before the objects being linked to create a
17760 # shared library.
17761 predeps=$lt_predeps_F77
17762
17763 # Dependencies to place after the objects being linked to create a
17764 # shared library.
17765 postdeps=$lt_postdeps_F77
17766
17767 # The library search path used internally by the compiler when linking
17768 # a shared library.
17769 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17770
17771 # Method to check whether dependent libraries are shared objects.
17772 deplibs_check_method=$lt_deplibs_check_method
17773
17774 # Command to use when deplibs_check_method == file_magic.
17775 file_magic_cmd=$lt_file_magic_cmd
17776
17777 # Flag that allows shared libraries with undefined symbols to be built.
17778 allow_undefined_flag=$lt_allow_undefined_flag_F77
17779
17780 # Flag that forces no undefined symbols.
17781 no_undefined_flag=$lt_no_undefined_flag_F77
17782
17783 # Commands used to finish a libtool library installation in a directory.
17784 finish_cmds=$lt_finish_cmds
17785
17786 # Same as above, but a single script fragment to be evaled but not shown.
17787 finish_eval=$lt_finish_eval
17788
17789 # Take the output of nm and produce a listing of raw symbols and C names.
17790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17791
17792 # Transform the output of nm in a proper C declaration
17793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17794
17795 # Transform the output of nm in a C name address pair
17796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17797
17798 # This is the shared library runtime path variable.
17799 runpath_var=$runpath_var
17800
17801 # This is the shared library path variable.
17802 shlibpath_var=$shlibpath_var
17803
17804 # Is shlibpath searched before the hard-coded library search path?
17805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17806
17807 # How to hardcode a shared library path into an executable.
17808 hardcode_action=$hardcode_action_F77
17809
17810 # Whether we should hardcode library paths into libraries.
17811 hardcode_into_libs=$hardcode_into_libs
17812
17813 # Flag to hardcode \$libdir into a binary during linking.
17814 # This must work even if \$libdir does not exist.
17815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17816
17817 # If ld is used when linking, flag to hardcode \$libdir into
17818 # a binary during linking. This must work even if \$libdir does
17819 # not exist.
17820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17821
17822 # Whether we need a single -rpath flag with a separated argument.
17823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17824
17825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17826 # resulting binary.
17827 hardcode_direct=$hardcode_direct_F77
17828
17829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17830 # resulting binary.
17831 hardcode_minus_L=$hardcode_minus_L_F77
17832
17833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17834 # the resulting binary.
17835 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17836
17837 # Set to yes if building a shared library automatically hardcodes DIR into the library
17838 # and all subsequent libraries and executables linked against it.
17839 hardcode_automatic=$hardcode_automatic_F77
17840
17841 # Variables whose values should be saved in libtool wrapper scripts and
17842 # restored at relink time.
17843 variables_saved_for_relink="$variables_saved_for_relink"
17844
17845 # Whether libtool must link a program against all its dependency libraries.
17846 link_all_deplibs=$link_all_deplibs_F77
17847
17848 # Compile-time system search path for libraries
17849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17850
17851 # Run-time system search path for libraries
17852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17853
17854 # Fix the shell variable \$srcfile for the compiler.
17855 fix_srcfile_path=$lt_fix_srcfile_path
17856
17857 # Set to yes if exported symbols are required.
17858 always_export_symbols=$always_export_symbols_F77
17859
17860 # The commands to list exported symbols.
17861 export_symbols_cmds=$lt_export_symbols_cmds_F77
17862
17863 # The commands to extract the exported symbol list from a shared archive.
17864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17865
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms_F77
17868
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms_F77
17871
17872 # ### END LIBTOOL TAG CONFIG: $tagname
17873
17874 __EOF__
17875
17876
17877 else
17878   # If there is no Makefile yet, we rely on a make rule to execute
17879   # `config.status --recheck' to rerun these tests and create the
17880   # libtool script then.
17881   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17882   if test -f "$ltmain_in"; then
17883     test -f Makefile && make "$ltmain"
17884   fi
17885 fi
17886
17887
17888 ac_ext=c
17889 ac_cpp='$CPP $CPPFLAGS'
17890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17893
17894 CC="$lt_save_CC"
17895
17896         else
17897           tagname=""
17898         fi
17899         ;;
17900
17901       GCJ)
17902         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17903
17904
17905 # Source file extension for Java test sources.
17906 ac_ext=java
17907
17908 # Object file extension for compiled Java test sources.
17909 objext=o
17910 objext_GCJ=$objext
17911
17912 # Code to be used in simple compile tests
17913 lt_simple_compile_test_code="class foo {}"
17914
17915 # Code to be used in simple link tests
17916 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17917
17918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17919
17920 # If no C compiler was specified, use CC.
17921 LTCC=${LTCC-"$CC"}
17922
17923 # If no C compiler flags were specified, use CFLAGS.
17924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17925
17926 # Allow CC to be a program name with arguments.
17927 compiler=$CC
17928
17929
17930 # save warnings/boilerplate of simple test code
17931 ac_outfile=conftest.$ac_objext
17932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17934 _lt_compiler_boilerplate=`cat conftest.err`
17935 $rm conftest*
17936
17937 ac_outfile=conftest.$ac_objext
17938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17940 _lt_linker_boilerplate=`cat conftest.err`
17941 $rm conftest*
17942
17943
17944 # Allow CC to be a program name with arguments.
17945 lt_save_CC="$CC"
17946 CC=${GCJ-"gcj"}
17947 compiler=$CC
17948 compiler_GCJ=$CC
17949 for cc_temp in $compiler""; do
17950   case $cc_temp in
17951     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17952     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17953     \-*) ;;
17954     *) break;;
17955   esac
17956 done
17957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17958
17959
17960 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17961 archive_cmds_need_lc_GCJ=no
17962
17963 old_archive_cmds_GCJ=$old_archive_cmds
17964
17965
17966 lt_prog_compiler_no_builtin_flag_GCJ=
17967
17968 if test "$GCC" = yes; then
17969   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17970
17971
17972 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17973 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977   lt_cv_prog_compiler_rtti_exceptions=no
17978   ac_outfile=conftest.$ac_objext
17979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17980    lt_compiler_flag="-fno-rtti -fno-exceptions"
17981    # Insert the option either (1) after the last *FLAGS variable, or
17982    # (2) before a word containing "conftest.", or (3) at the end.
17983    # Note that $ac_compile itself does not contain backslashes and begins
17984    # with a dollar sign (not a hyphen), so the echo should work correctly.
17985    # The option is referenced via a variable to avoid confusing sed.
17986    lt_compile=`echo "$ac_compile" | $SED \
17987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17989    -e 's:$: $lt_compiler_flag:'`
17990    (eval echo "\"\$as_me:17990: $lt_compile\"" >&5)
17991    (eval "$lt_compile" 2>conftest.err)
17992    ac_status=$?
17993    cat conftest.err >&5
17994    echo "$as_me:17994: \$? = $ac_status" >&5
17995    if (exit $ac_status) && test -s "$ac_outfile"; then
17996      # The compiler can only warn and ignore the option if not recognized
17997      # So say no if there are warnings other than the usual output.
17998      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18001        lt_cv_prog_compiler_rtti_exceptions=yes
18002      fi
18003    fi
18004    $rm conftest*
18005
18006 fi
18007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18008 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18009
18010 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18011     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18012 else
18013     :
18014 fi
18015
18016 fi
18017
18018 lt_prog_compiler_wl_GCJ=
18019 lt_prog_compiler_pic_GCJ=
18020 lt_prog_compiler_static_GCJ=
18021
18022 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18023 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18024
18025   if test "$GCC" = yes; then
18026     lt_prog_compiler_wl_GCJ='-Wl,'
18027     lt_prog_compiler_static_GCJ='-static'
18028
18029     case $host_os in
18030       aix*)
18031       # All AIX code is PIC.
18032       if test "$host_cpu" = ia64; then
18033         # AIX 5 now supports IA64 processor
18034         lt_prog_compiler_static_GCJ='-Bstatic'
18035       fi
18036       ;;
18037
18038     amigaos*)
18039       # FIXME: we need at least 68020 code to build shared libraries, but
18040       # adding the `-m68020' flag to GCC prevents building anything better,
18041       # like `-m68040'.
18042       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18043       ;;
18044
18045     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18046       # PIC is the default for these OSes.
18047       ;;
18048
18049     mingw* | cygwin* | pw32* | os2*)
18050       # This hack is so that the source file can tell whether it is being
18051       # built for inclusion in a dll (and should export symbols for example).
18052       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18053       # (--disable-auto-import) libraries
18054       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18055       ;;
18056
18057     darwin* | rhapsody*)
18058       # PIC is the default on this platform
18059       # Common symbols not allowed in MH_DYLIB files
18060       lt_prog_compiler_pic_GCJ='-fno-common'
18061       ;;
18062
18063     interix[3-9]*)
18064       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18065       # Instead, we relocate shared libraries at runtime.
18066       ;;
18067
18068     msdosdjgpp*)
18069       # Just because we use GCC doesn't mean we suddenly get shared libraries
18070       # on systems that don't support them.
18071       lt_prog_compiler_can_build_shared_GCJ=no
18072       enable_shared=no
18073       ;;
18074
18075     sysv4*MP*)
18076       if test -d /usr/nec; then
18077         lt_prog_compiler_pic_GCJ=-Kconform_pic
18078       fi
18079       ;;
18080
18081     hpux*)
18082       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18083       # not for PA HP-UX.
18084       case $host_cpu in
18085       hppa*64*|ia64*)
18086         # +Z the default
18087         ;;
18088       *)
18089         lt_prog_compiler_pic_GCJ='-fPIC'
18090         ;;
18091       esac
18092       ;;
18093
18094     *)
18095       lt_prog_compiler_pic_GCJ='-fPIC'
18096       ;;
18097     esac
18098   else
18099     # PORTME Check for flag to pass linker flags through the system compiler.
18100     case $host_os in
18101     aix*)
18102       lt_prog_compiler_wl_GCJ='-Wl,'
18103       if test "$host_cpu" = ia64; then
18104         # AIX 5 now supports IA64 processor
18105         lt_prog_compiler_static_GCJ='-Bstatic'
18106       else
18107         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18108       fi
18109       ;;
18110       darwin*)
18111         # PIC is the default on this platform
18112         # Common symbols not allowed in MH_DYLIB files
18113        case $cc_basename in
18114          xlc*)
18115          lt_prog_compiler_pic_GCJ='-qnocommon'
18116          lt_prog_compiler_wl_GCJ='-Wl,'
18117          ;;
18118        esac
18119        ;;
18120
18121     mingw* | cygwin* | pw32* | os2*)
18122       # This hack is so that the source file can tell whether it is being
18123       # built for inclusion in a dll (and should export symbols for example).
18124       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18125       ;;
18126
18127     hpux9* | hpux10* | hpux11*)
18128       lt_prog_compiler_wl_GCJ='-Wl,'
18129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18130       # not for PA HP-UX.
18131       case $host_cpu in
18132       hppa*64*|ia64*)
18133         # +Z the default
18134         ;;
18135       *)
18136         lt_prog_compiler_pic_GCJ='+Z'
18137         ;;
18138       esac
18139       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18140       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18141       ;;
18142
18143     irix5* | irix6* | nonstopux*)
18144       lt_prog_compiler_wl_GCJ='-Wl,'
18145       # PIC (with -KPIC) is the default.
18146       lt_prog_compiler_static_GCJ='-non_shared'
18147       ;;
18148
18149     newsos6)
18150       lt_prog_compiler_pic_GCJ='-KPIC'
18151       lt_prog_compiler_static_GCJ='-Bstatic'
18152       ;;
18153
18154     linux* | k*bsd*-gnu)
18155       case $cc_basename in
18156       icc* | ecc*)
18157         lt_prog_compiler_wl_GCJ='-Wl,'
18158         lt_prog_compiler_pic_GCJ='-KPIC'
18159         lt_prog_compiler_static_GCJ='-static'
18160         ;;
18161       pgcc* | pgf77* | pgf90* | pgf95*)
18162         # Portland Group compilers (*not* the Pentium gcc compiler,
18163         # which looks to be a dead project)
18164         lt_prog_compiler_wl_GCJ='-Wl,'
18165         lt_prog_compiler_pic_GCJ='-fpic'
18166         lt_prog_compiler_static_GCJ='-Bstatic'
18167         ;;
18168       ccc*)
18169         lt_prog_compiler_wl_GCJ='-Wl,'
18170         # All Alpha code is PIC.
18171         lt_prog_compiler_static_GCJ='-non_shared'
18172         ;;
18173       *)
18174         case `$CC -V 2>&1 | sed 5q` in
18175         *Sun\ C*)
18176           # Sun C 5.9
18177           lt_prog_compiler_pic_GCJ='-KPIC'
18178           lt_prog_compiler_static_GCJ='-Bstatic'
18179           lt_prog_compiler_wl_GCJ='-Wl,'
18180           ;;
18181         *Sun\ F*)
18182           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18183           lt_prog_compiler_pic_GCJ='-KPIC'
18184           lt_prog_compiler_static_GCJ='-Bstatic'
18185           lt_prog_compiler_wl_GCJ=''
18186           ;;
18187         esac
18188         ;;
18189       esac
18190       ;;
18191
18192     osf3* | osf4* | osf5*)
18193       lt_prog_compiler_wl_GCJ='-Wl,'
18194       # All OSF/1 code is PIC.
18195       lt_prog_compiler_static_GCJ='-non_shared'
18196       ;;
18197
18198     rdos*)
18199       lt_prog_compiler_static_GCJ='-non_shared'
18200       ;;
18201
18202     solaris*)
18203       lt_prog_compiler_pic_GCJ='-KPIC'
18204       lt_prog_compiler_static_GCJ='-Bstatic'
18205       case $cc_basename in
18206       f77* | f90* | f95*)
18207         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18208       *)
18209         lt_prog_compiler_wl_GCJ='-Wl,';;
18210       esac
18211       ;;
18212
18213     sunos4*)
18214       lt_prog_compiler_wl_GCJ='-Qoption ld '
18215       lt_prog_compiler_pic_GCJ='-PIC'
18216       lt_prog_compiler_static_GCJ='-Bstatic'
18217       ;;
18218
18219     sysv4 | sysv4.2uw2* | sysv4.3*)
18220       lt_prog_compiler_wl_GCJ='-Wl,'
18221       lt_prog_compiler_pic_GCJ='-KPIC'
18222       lt_prog_compiler_static_GCJ='-Bstatic'
18223       ;;
18224
18225     sysv4*MP*)
18226       if test -d /usr/nec ;then
18227         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18228         lt_prog_compiler_static_GCJ='-Bstatic'
18229       fi
18230       ;;
18231
18232     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18233       lt_prog_compiler_wl_GCJ='-Wl,'
18234       lt_prog_compiler_pic_GCJ='-KPIC'
18235       lt_prog_compiler_static_GCJ='-Bstatic'
18236       ;;
18237
18238     unicos*)
18239       lt_prog_compiler_wl_GCJ='-Wl,'
18240       lt_prog_compiler_can_build_shared_GCJ=no
18241       ;;
18242
18243     uts4*)
18244       lt_prog_compiler_pic_GCJ='-pic'
18245       lt_prog_compiler_static_GCJ='-Bstatic'
18246       ;;
18247
18248     *)
18249       lt_prog_compiler_can_build_shared_GCJ=no
18250       ;;
18251     esac
18252   fi
18253
18254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18255 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18256
18257 #
18258 # Check to make sure the PIC flag actually works.
18259 #
18260 if test -n "$lt_prog_compiler_pic_GCJ"; then
18261
18262 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18264 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   lt_prog_compiler_pic_works_GCJ=no
18268   ac_outfile=conftest.$ac_objext
18269    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18270    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18271    # Insert the option either (1) after the last *FLAGS variable, or
18272    # (2) before a word containing "conftest.", or (3) at the end.
18273    # Note that $ac_compile itself does not contain backslashes and begins
18274    # with a dollar sign (not a hyphen), so the echo should work correctly.
18275    # The option is referenced via a variable to avoid confusing sed.
18276    lt_compile=`echo "$ac_compile" | $SED \
18277    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18278    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18279    -e 's:$: $lt_compiler_flag:'`
18280    (eval echo "\"\$as_me:18280: $lt_compile\"" >&5)
18281    (eval "$lt_compile" 2>conftest.err)
18282    ac_status=$?
18283    cat conftest.err >&5
18284    echo "$as_me:18284: \$? = $ac_status" >&5
18285    if (exit $ac_status) && test -s "$ac_outfile"; then
18286      # The compiler can only warn and ignore the option if not recognized
18287      # So say no if there are warnings other than the usual output.
18288      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18289      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18290      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18291        lt_prog_compiler_pic_works_GCJ=yes
18292      fi
18293    fi
18294    $rm conftest*
18295
18296 fi
18297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18298 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18299
18300 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18301     case $lt_prog_compiler_pic_GCJ in
18302      "" | " "*) ;;
18303      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18304      esac
18305 else
18306     lt_prog_compiler_pic_GCJ=
18307      lt_prog_compiler_can_build_shared_GCJ=no
18308 fi
18309
18310 fi
18311 case $host_os in
18312   # For platforms which do not support PIC, -DPIC is meaningless:
18313   *djgpp*)
18314     lt_prog_compiler_pic_GCJ=
18315     ;;
18316   *)
18317     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18318     ;;
18319 esac
18320
18321 #
18322 # Check to make sure the static flag actually works.
18323 #
18324 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18325 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18326 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18327 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   lt_prog_compiler_static_works_GCJ=no
18331    save_LDFLAGS="$LDFLAGS"
18332    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18333    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18334    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18335      # The linker can only warn and ignore the option if not recognized
18336      # So say no if there are warnings
18337      if test -s conftest.err; then
18338        # Append any errors to the config.log.
18339        cat conftest.err 1>&5
18340        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18341        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18342        if diff conftest.exp conftest.er2 >/dev/null; then
18343          lt_prog_compiler_static_works_GCJ=yes
18344        fi
18345      else
18346        lt_prog_compiler_static_works_GCJ=yes
18347      fi
18348    fi
18349    $rm conftest*
18350    LDFLAGS="$save_LDFLAGS"
18351
18352 fi
18353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18354 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18355
18356 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18357     :
18358 else
18359     lt_prog_compiler_static_GCJ=
18360 fi
18361
18362
18363 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18364 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18365 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   lt_cv_prog_compiler_c_o_GCJ=no
18369    $rm -r conftest 2>/dev/null
18370    mkdir conftest
18371    cd conftest
18372    mkdir out
18373    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18374
18375    lt_compiler_flag="-o out/conftest2.$ac_objext"
18376    # Insert the option either (1) after the last *FLAGS variable, or
18377    # (2) before a word containing "conftest.", or (3) at the end.
18378    # Note that $ac_compile itself does not contain backslashes and begins
18379    # with a dollar sign (not a hyphen), so the echo should work correctly.
18380    lt_compile=`echo "$ac_compile" | $SED \
18381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18383    -e 's:$: $lt_compiler_flag:'`
18384    (eval echo "\"\$as_me:18384: $lt_compile\"" >&5)
18385    (eval "$lt_compile" 2>out/conftest.err)
18386    ac_status=$?
18387    cat out/conftest.err >&5
18388    echo "$as_me:18388: \$? = $ac_status" >&5
18389    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18390    then
18391      # The compiler can only warn and ignore the option if not recognized
18392      # So say no if there are warnings
18393      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18394      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18395      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18396        lt_cv_prog_compiler_c_o_GCJ=yes
18397      fi
18398    fi
18399    chmod u+w . 2>&5
18400    $rm conftest*
18401    # SGI C++ compiler will create directory out/ii_files/ for
18402    # template instantiation
18403    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18404    $rm out/* && rmdir out
18405    cd ..
18406    rmdir conftest
18407    $rm conftest*
18408
18409 fi
18410 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18412
18413
18414 hard_links="nottested"
18415 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18416   # do not overwrite the value of need_locks provided by the user
18417   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18419   hard_links=yes
18420   $rm conftest*
18421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18422   touch conftest.a
18423   ln conftest.a conftest.b 2>&5 || hard_links=no
18424   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18425   { echo "$as_me:$LINENO: result: $hard_links" >&5
18426 echo "${ECHO_T}$hard_links" >&6; }
18427   if test "$hard_links" = no; then
18428     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18430     need_locks=warn
18431   fi
18432 else
18433   need_locks=no
18434 fi
18435
18436 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18438
18439   runpath_var=
18440   allow_undefined_flag_GCJ=
18441   enable_shared_with_static_runtimes_GCJ=no
18442   archive_cmds_GCJ=
18443   archive_expsym_cmds_GCJ=
18444   old_archive_From_new_cmds_GCJ=
18445   old_archive_from_expsyms_cmds_GCJ=
18446   export_dynamic_flag_spec_GCJ=
18447   whole_archive_flag_spec_GCJ=
18448   thread_safe_flag_spec_GCJ=
18449   hardcode_libdir_flag_spec_GCJ=
18450   hardcode_libdir_flag_spec_ld_GCJ=
18451   hardcode_libdir_separator_GCJ=
18452   hardcode_direct_GCJ=no
18453   hardcode_minus_L_GCJ=no
18454   hardcode_shlibpath_var_GCJ=unsupported
18455   link_all_deplibs_GCJ=unknown
18456   hardcode_automatic_GCJ=no
18457   module_cmds_GCJ=
18458   module_expsym_cmds_GCJ=
18459   always_export_symbols_GCJ=no
18460   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18461   # include_expsyms should be a list of space-separated symbols to be *always*
18462   # included in the symbol list
18463   include_expsyms_GCJ=
18464   # exclude_expsyms can be an extended regexp of symbols to exclude
18465   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18466   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18467   # as well as any symbol that contains `d'.
18468   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18469   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18470   # platforms (ab)use it in PIC code, but their linkers get confused if
18471   # the symbol is explicitly referenced.  Since portable code cannot
18472   # rely on this symbol name, it's probably fine to never include it in
18473   # preloaded symbol tables.
18474   extract_expsyms_cmds=
18475   # Just being paranoid about ensuring that cc_basename is set.
18476   for cc_temp in $compiler""; do
18477   case $cc_temp in
18478     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18479     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18480     \-*) ;;
18481     *) break;;
18482   esac
18483 done
18484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18485
18486   case $host_os in
18487   cygwin* | mingw* | pw32*)
18488     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18489     # When not using gcc, we currently assume that we are using
18490     # Microsoft Visual C++.
18491     if test "$GCC" != yes; then
18492       with_gnu_ld=no
18493     fi
18494     ;;
18495   interix*)
18496     # we just hope/assume this is gcc and not c89 (= MSVC++)
18497     with_gnu_ld=yes
18498     ;;
18499   openbsd*)
18500     with_gnu_ld=no
18501     ;;
18502   esac
18503
18504   ld_shlibs_GCJ=yes
18505   if test "$with_gnu_ld" = yes; then
18506     # If archive_cmds runs LD, not CC, wlarc should be empty
18507     wlarc='${wl}'
18508
18509     # Set some defaults for GNU ld with shared library support. These
18510     # are reset later if shared libraries are not supported. Putting them
18511     # here allows them to be overridden if necessary.
18512     runpath_var=LD_RUN_PATH
18513     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18514     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18515     # ancient GNU ld didn't support --whole-archive et. al.
18516     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18517         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18518       else
18519         whole_archive_flag_spec_GCJ=
18520     fi
18521     supports_anon_versioning=no
18522     case `$LD -v 2>/dev/null` in
18523       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18524       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18525       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18526       *\ 2.11.*) ;; # other 2.11 versions
18527       *) supports_anon_versioning=yes ;;
18528     esac
18529
18530     # See if GNU ld supports shared libraries.
18531     case $host_os in
18532     aix3* | aix4* | aix5*)
18533       # On AIX/PPC, the GNU linker is very broken
18534       if test "$host_cpu" != ia64; then
18535         ld_shlibs_GCJ=no
18536         cat <<EOF 1>&2
18537
18538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18539 *** to be unable to reliably create shared libraries on AIX.
18540 *** Therefore, libtool is disabling shared libraries support.  If you
18541 *** really care for shared libraries, you may want to modify your PATH
18542 *** so that a non-GNU linker is found, and then restart.
18543
18544 EOF
18545       fi
18546       ;;
18547
18548     amigaos*)
18549       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)'
18550       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18551       hardcode_minus_L_GCJ=yes
18552
18553       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18554       # that the semantics of dynamic libraries on AmigaOS, at least up
18555       # to version 4, is to share data among multiple programs linked
18556       # with the same dynamic library.  Since this doesn't match the
18557       # behavior of shared libraries on other platforms, we can't use
18558       # them.
18559       ld_shlibs_GCJ=no
18560       ;;
18561
18562     beos*)
18563       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18564         allow_undefined_flag_GCJ=unsupported
18565         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18566         # support --undefined.  This deserves some investigation.  FIXME
18567         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18568       else
18569         ld_shlibs_GCJ=no
18570       fi
18571       ;;
18572
18573     cygwin* | mingw* | pw32*)
18574       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18575       # as there is no search path for DLLs.
18576       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18577       allow_undefined_flag_GCJ=unsupported
18578       always_export_symbols_GCJ=no
18579       enable_shared_with_static_runtimes_GCJ=yes
18580       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18581
18582       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18583         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18584         # If the export-symbols file already is a .def file (1st line
18585         # is EXPORTS), use it as is; otherwise, prepend...
18586         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18587           cp $export_symbols $output_objdir/$soname.def;
18588         else
18589           echo EXPORTS > $output_objdir/$soname.def;
18590           cat $export_symbols >> $output_objdir/$soname.def;
18591         fi~
18592         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18593       else
18594         ld_shlibs_GCJ=no
18595       fi
18596       ;;
18597
18598     interix[3-9]*)
18599       hardcode_direct_GCJ=no
18600       hardcode_shlibpath_var_GCJ=no
18601       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18602       export_dynamic_flag_spec_GCJ='${wl}-E'
18603       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18604       # Instead, shared libraries are loaded at an image base (0x10000000 by
18605       # default) and relocated if they conflict, which is a slow very memory
18606       # consuming and fragmenting process.  To avoid this, we pick a random,
18607       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18608       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18609       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'
18610       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'
18611       ;;
18612
18613     gnu* | linux* | k*bsd*-gnu)
18614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615         tmp_addflag=
18616         case $cc_basename,$host_cpu in
18617         pgcc*)                          # Portland Group C compiler
18618           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'
18619           tmp_addflag=' $pic_flag'
18620           ;;
18621         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18622           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'
18623           tmp_addflag=' $pic_flag -Mnomain' ;;
18624         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18625           tmp_addflag=' -i_dynamic' ;;
18626         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18627           tmp_addflag=' -i_dynamic -nofor_main' ;;
18628         ifc* | ifort*)                  # Intel Fortran compiler
18629           tmp_addflag=' -nofor_main' ;;
18630         esac
18631         case `$CC -V 2>&1 | sed 5q` in
18632         *Sun\ C*)                       # Sun C 5.9
18633           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'
18634           tmp_sharedflag='-G' ;;
18635         *Sun\ F*)                       # Sun Fortran 8.3
18636           tmp_sharedflag='-G' ;;
18637         *)
18638           tmp_sharedflag='-shared' ;;
18639         esac
18640         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641
18642         if test $supports_anon_versioning = yes; then
18643           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18644   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18645   $echo "local: *; };" >> $output_objdir/$libname.ver~
18646           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18647         fi
18648         link_all_deplibs_GCJ=no
18649       else
18650         ld_shlibs_GCJ=no
18651       fi
18652       ;;
18653
18654     netbsd* | netbsdelf*-gnu)
18655       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18656         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18657         wlarc=
18658       else
18659         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18661       fi
18662       ;;
18663
18664     solaris*)
18665       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18666         ld_shlibs_GCJ=no
18667         cat <<EOF 1>&2
18668
18669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18670 *** create shared libraries on Solaris systems.  Therefore, libtool
18671 *** is disabling shared libraries support.  We urge you to upgrade GNU
18672 *** binutils to release 2.9.1 or newer.  Another option is to modify
18673 *** your PATH or compiler configuration so that the native linker is
18674 *** used, and then restart.
18675
18676 EOF
18677       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18678         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18680       else
18681         ld_shlibs_GCJ=no
18682       fi
18683       ;;
18684
18685     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18686       case `$LD -v 2>&1` in
18687         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18688         ld_shlibs_GCJ=no
18689         cat <<_LT_EOF 1>&2
18690
18691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18692 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18693 *** is disabling shared libraries support.  We urge you to upgrade GNU
18694 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18695 *** your PATH or compiler configuration so that the native linker is
18696 *** used, and then restart.
18697
18698 _LT_EOF
18699         ;;
18700         *)
18701           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18703             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18704             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18705           else
18706             ld_shlibs_GCJ=no
18707           fi
18708         ;;
18709       esac
18710       ;;
18711
18712     sunos4*)
18713       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18714       wlarc=
18715       hardcode_direct_GCJ=yes
18716       hardcode_shlibpath_var_GCJ=no
18717       ;;
18718
18719     *)
18720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18721         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18723       else
18724         ld_shlibs_GCJ=no
18725       fi
18726       ;;
18727     esac
18728
18729     if test "$ld_shlibs_GCJ" = no; then
18730       runpath_var=
18731       hardcode_libdir_flag_spec_GCJ=
18732       export_dynamic_flag_spec_GCJ=
18733       whole_archive_flag_spec_GCJ=
18734     fi
18735   else
18736     # PORTME fill in a description of your system's linker (not GNU ld)
18737     case $host_os in
18738     aix3*)
18739       allow_undefined_flag_GCJ=unsupported
18740       always_export_symbols_GCJ=yes
18741       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'
18742       # Note: this linker hardcodes the directories in LIBPATH if there
18743       # are no directories specified by -L.
18744       hardcode_minus_L_GCJ=yes
18745       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18746         # Neither direct hardcoding nor static linking is supported with a
18747         # broken collect2.
18748         hardcode_direct_GCJ=unsupported
18749       fi
18750       ;;
18751
18752     aix4* | aix5*)
18753       if test "$host_cpu" = ia64; then
18754         # On IA64, the linker does run time linking by default, so we don't
18755         # have to do anything special.
18756         aix_use_runtimelinking=no
18757         exp_sym_flag='-Bexport'
18758         no_entry_flag=""
18759       else
18760         # If we're using GNU nm, then we don't want the "-C" option.
18761         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18762         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18763           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'
18764         else
18765           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'
18766         fi
18767         aix_use_runtimelinking=no
18768
18769         # Test if we are trying to use run time linking or normal
18770         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18771         # need to do runtime linking.
18772         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18773           for ld_flag in $LDFLAGS; do
18774           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18775             aix_use_runtimelinking=yes
18776             break
18777           fi
18778           done
18779           ;;
18780         esac
18781
18782         exp_sym_flag='-bexport'
18783         no_entry_flag='-bnoentry'
18784       fi
18785
18786       # When large executables or shared objects are built, AIX ld can
18787       # have problems creating the table of contents.  If linking a library
18788       # or program results in "error TOC overflow" add -mminimal-toc to
18789       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18790       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18791
18792       archive_cmds_GCJ=''
18793       hardcode_direct_GCJ=yes
18794       hardcode_libdir_separator_GCJ=':'
18795       link_all_deplibs_GCJ=yes
18796
18797       if test "$GCC" = yes; then
18798         case $host_os in aix4.[012]|aix4.[012].*)
18799         # We only want to do this on AIX 4.2 and lower, the check
18800         # below for broken collect2 doesn't work under 4.3+
18801           collect2name=`${CC} -print-prog-name=collect2`
18802           if test -f "$collect2name" && \
18803            strings "$collect2name" | grep resolve_lib_name >/dev/null
18804           then
18805           # We have reworked collect2
18806           :
18807           else
18808           # We have old collect2
18809           hardcode_direct_GCJ=unsupported
18810           # It fails to find uninstalled libraries when the uninstalled
18811           # path is not listed in the libpath.  Setting hardcode_minus_L
18812           # to unsupported forces relinking
18813           hardcode_minus_L_GCJ=yes
18814           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18815           hardcode_libdir_separator_GCJ=
18816           fi
18817           ;;
18818         esac
18819         shared_flag='-shared'
18820         if test "$aix_use_runtimelinking" = yes; then
18821           shared_flag="$shared_flag "'${wl}-G'
18822         fi
18823       else
18824         # not using gcc
18825         if test "$host_cpu" = ia64; then
18826         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18827         # chokes on -Wl,-G. The following line is correct:
18828           shared_flag='-G'
18829         else
18830           if test "$aix_use_runtimelinking" = yes; then
18831             shared_flag='${wl}-G'
18832           else
18833             shared_flag='${wl}-bM:SRE'
18834           fi
18835         fi
18836       fi
18837
18838       # It seems that -bexpall does not export symbols beginning with
18839       # underscore (_), so it is better to generate a list of symbols to export.
18840       always_export_symbols_GCJ=yes
18841       if test "$aix_use_runtimelinking" = yes; then
18842         # Warning - without using the other runtime loading flags (-brtl),
18843         # -berok will link without error, but may produce a broken library.
18844         allow_undefined_flag_GCJ='-berok'
18845        # Determine the default libpath from the value encoded in an empty executable.
18846        cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852
18853 int
18854 main ()
18855 {
18856
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_link") 2>conftest.er1
18869   ac_status=$?
18870   grep -v '^ *+' conftest.er1 >conftest.err
18871   rm -f conftest.er1
18872   cat conftest.err >&5
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } && {
18875          test -z "$ac_c_werror_flag" ||
18876          test ! -s conftest.err
18877        } && test -s conftest$ac_exeext &&
18878        $as_test_x conftest$ac_exeext; then
18879
18880 lt_aix_libpath_sed='
18881     /Import File Strings/,/^$/ {
18882         /^0/ {
18883             s/^0  *\(.*\)$/\1/
18884             p
18885         }
18886     }'
18887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18888 # Check for a 64-bit object if we didn't find anything.
18889 if test -z "$aix_libpath"; then
18890   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18891 fi
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896
18897 fi
18898
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900       conftest$ac_exeext conftest.$ac_ext
18901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18902
18903        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18904         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"
18905        else
18906         if test "$host_cpu" = ia64; then
18907           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18908           allow_undefined_flag_GCJ="-z nodefs"
18909           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"
18910         else
18911          # Determine the default libpath from the value encoded in an empty executable.
18912          cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918
18919 int
18920 main ()
18921 {
18922
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_link") 2>conftest.er1
18935   ac_status=$?
18936   grep -v '^ *+' conftest.er1 >conftest.err
18937   rm -f conftest.er1
18938   cat conftest.err >&5
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } && {
18941          test -z "$ac_c_werror_flag" ||
18942          test ! -s conftest.err
18943        } && test -s conftest$ac_exeext &&
18944        $as_test_x conftest$ac_exeext; then
18945
18946 lt_aix_libpath_sed='
18947     /Import File Strings/,/^$/ {
18948         /^0/ {
18949             s/^0  *\(.*\)$/\1/
18950             p
18951         }
18952     }'
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18957 fi
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962
18963 fi
18964
18965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18966       conftest$ac_exeext conftest.$ac_ext
18967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18968
18969          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18970           # Warning - without using the other run time loading flags,
18971           # -berok will link without error, but may produce a broken library.
18972           no_undefined_flag_GCJ=' ${wl}-bernotok'
18973           allow_undefined_flag_GCJ=' ${wl}-berok'
18974           # Exported symbols can be pulled into shared objects from archives
18975           whole_archive_flag_spec_GCJ='$convenience'
18976           archive_cmds_need_lc_GCJ=yes
18977           # This is similar to how AIX traditionally builds its shared libraries.
18978           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'
18979         fi
18980       fi
18981       ;;
18982
18983     amigaos*)
18984       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)'
18985       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18986       hardcode_minus_L_GCJ=yes
18987       # see comment about different semantics on the GNU ld section
18988       ld_shlibs_GCJ=no
18989       ;;
18990
18991     bsdi[45]*)
18992       export_dynamic_flag_spec_GCJ=-rdynamic
18993       ;;
18994
18995     cygwin* | mingw* | pw32*)
18996       # When not using gcc, we currently assume that we are using
18997       # Microsoft Visual C++.
18998       # hardcode_libdir_flag_spec is actually meaningless, as there is
18999       # no search path for DLLs.
19000       hardcode_libdir_flag_spec_GCJ=' '
19001       allow_undefined_flag_GCJ=unsupported
19002       # Tell ltmain to make .lib files, not .a files.
19003       libext=lib
19004       # Tell ltmain to make .dll files, not .so files.
19005       shrext_cmds=".dll"
19006       # FIXME: Setting linknames here is a bad hack.
19007       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19008       # The linker will automatically build a .lib file if we build a DLL.
19009       old_archive_From_new_cmds_GCJ='true'
19010       # FIXME: Should let the user specify the lib program.
19011       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19012       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19013       enable_shared_with_static_runtimes_GCJ=yes
19014       ;;
19015
19016     darwin* | rhapsody*)
19017       case $host_os in
19018         rhapsody* | darwin1.[012])
19019          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19020          ;;
19021        *) # Darwin 1.3 on
19022          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19023            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19024          else
19025            case ${MACOSX_DEPLOYMENT_TARGET} in
19026              10.[012])
19027                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19028                ;;
19029              10.*)
19030                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19031                ;;
19032            esac
19033          fi
19034          ;;
19035       esac
19036       archive_cmds_need_lc_GCJ=no
19037       hardcode_direct_GCJ=no
19038       hardcode_automatic_GCJ=yes
19039       hardcode_shlibpath_var_GCJ=unsupported
19040       whole_archive_flag_spec_GCJ=''
19041       link_all_deplibs_GCJ=yes
19042     if test "$GCC" = yes ; then
19043         output_verbose_link_cmd='echo'
19044         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19045       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19046       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19047       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}'
19048       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}'
19049     else
19050       case $cc_basename in
19051         xlc*)
19052          output_verbose_link_cmd='echo'
19053          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19054          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19055           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19056          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}'
19057           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}'
19058           ;;
19059        *)
19060          ld_shlibs_GCJ=no
19061           ;;
19062       esac
19063     fi
19064       ;;
19065
19066     dgux*)
19067       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19068       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19069       hardcode_shlibpath_var_GCJ=no
19070       ;;
19071
19072     freebsd1*)
19073       ld_shlibs_GCJ=no
19074       ;;
19075
19076     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19077     # support.  Future versions do this automatically, but an explicit c++rt0.o
19078     # does not break anything, and helps significantly (at the cost of a little
19079     # extra space).
19080     freebsd2.2*)
19081       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19082       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083       hardcode_direct_GCJ=yes
19084       hardcode_shlibpath_var_GCJ=no
19085       ;;
19086
19087     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19088     freebsd2*)
19089       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19090       hardcode_direct_GCJ=yes
19091       hardcode_minus_L_GCJ=yes
19092       hardcode_shlibpath_var_GCJ=no
19093       ;;
19094
19095     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19096     freebsd* | dragonfly*)
19097       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19098       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19099       hardcode_direct_GCJ=yes
19100       hardcode_shlibpath_var_GCJ=no
19101       ;;
19102
19103     hpux9*)
19104       if test "$GCC" = yes; then
19105         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'
19106       else
19107         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'
19108       fi
19109       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110       hardcode_libdir_separator_GCJ=:
19111       hardcode_direct_GCJ=yes
19112
19113       # hardcode_minus_L: Not really in the search PATH,
19114       # but as the default location of the library.
19115       hardcode_minus_L_GCJ=yes
19116       export_dynamic_flag_spec_GCJ='${wl}-E'
19117       ;;
19118
19119     hpux10*)
19120       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19121         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19122       else
19123         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19124       fi
19125       if test "$with_gnu_ld" = no; then
19126         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19127         hardcode_libdir_separator_GCJ=:
19128
19129         hardcode_direct_GCJ=yes
19130         export_dynamic_flag_spec_GCJ='${wl}-E'
19131
19132         # hardcode_minus_L: Not really in the search PATH,
19133         # but as the default location of the library.
19134         hardcode_minus_L_GCJ=yes
19135       fi
19136       ;;
19137
19138     hpux11*)
19139       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19140         case $host_cpu in
19141         hppa*64*)
19142           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19143           ;;
19144         ia64*)
19145           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19146           ;;
19147         *)
19148           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19149           ;;
19150         esac
19151       else
19152         case $host_cpu in
19153         hppa*64*)
19154           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19155           ;;
19156         ia64*)
19157           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19158           ;;
19159         *)
19160           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19161           ;;
19162         esac
19163       fi
19164       if test "$with_gnu_ld" = no; then
19165         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19166         hardcode_libdir_separator_GCJ=:
19167
19168         case $host_cpu in
19169         hppa*64*|ia64*)
19170           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19171           hardcode_direct_GCJ=no
19172           hardcode_shlibpath_var_GCJ=no
19173           ;;
19174         *)
19175           hardcode_direct_GCJ=yes
19176           export_dynamic_flag_spec_GCJ='${wl}-E'
19177
19178           # hardcode_minus_L: Not really in the search PATH,
19179           # but as the default location of the library.
19180           hardcode_minus_L_GCJ=yes
19181           ;;
19182         esac
19183       fi
19184       ;;
19185
19186     irix5* | irix6* | nonstopux*)
19187       if test "$GCC" = yes; then
19188         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'
19189       else
19190         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'
19191         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19192       fi
19193       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194       hardcode_libdir_separator_GCJ=:
19195       link_all_deplibs_GCJ=yes
19196       ;;
19197
19198     netbsd* | netbsdelf*-gnu)
19199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19201       else
19202         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19203       fi
19204       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205       hardcode_direct_GCJ=yes
19206       hardcode_shlibpath_var_GCJ=no
19207       ;;
19208
19209     newsos6)
19210       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211       hardcode_direct_GCJ=yes
19212       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213       hardcode_libdir_separator_GCJ=:
19214       hardcode_shlibpath_var_GCJ=no
19215       ;;
19216
19217     openbsd*)
19218       if test -f /usr/libexec/ld.so; then
19219         hardcode_direct_GCJ=yes
19220         hardcode_shlibpath_var_GCJ=no
19221         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19222           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19223           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19224           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19225           export_dynamic_flag_spec_GCJ='${wl}-E'
19226         else
19227           case $host_os in
19228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19229              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19230              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19231              ;;
19232            *)
19233              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19234              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19235              ;;
19236           esac
19237         fi
19238       else
19239         ld_shlibs_GCJ=no
19240       fi
19241       ;;
19242
19243     os2*)
19244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245       hardcode_minus_L_GCJ=yes
19246       allow_undefined_flag_GCJ=unsupported
19247       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'
19248       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19249       ;;
19250
19251     osf3*)
19252       if test "$GCC" = yes; then
19253         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19254         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'
19255       else
19256         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19257         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'
19258       fi
19259       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19260       hardcode_libdir_separator_GCJ=:
19261       ;;
19262
19263     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19264       if test "$GCC" = yes; then
19265         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266         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'
19267         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19268       else
19269         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270         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'
19271         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~
19272         $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'
19273
19274         # Both c and cxx compiler support -rpath directly
19275         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19276       fi
19277       hardcode_libdir_separator_GCJ=:
19278       ;;
19279
19280     solaris*)
19281       no_undefined_flag_GCJ=' -z text'
19282       if test "$GCC" = yes; then
19283         wlarc='${wl}'
19284         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19286           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19287       else
19288         wlarc=''
19289         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19291         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19292       fi
19293       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294       hardcode_shlibpath_var_GCJ=no
19295       case $host_os in
19296       solaris2.[0-5] | solaris2.[0-5].*) ;;
19297       *)
19298         # The compiler driver will combine and reorder linker options,
19299         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19300         # but is careful enough not to reorder.
19301         # Supported since Solaris 2.6 (maybe 2.5.1?)
19302         if test "$GCC" = yes; then
19303           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19304         else
19305           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19306         fi
19307         ;;
19308       esac
19309       link_all_deplibs_GCJ=yes
19310       ;;
19311
19312     sunos4*)
19313       if test "x$host_vendor" = xsequent; then
19314         # Use $CC to link under sequent, because it throws in some extra .o
19315         # files that make .init and .fini sections work.
19316         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19317       else
19318         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19319       fi
19320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19321       hardcode_direct_GCJ=yes
19322       hardcode_minus_L_GCJ=yes
19323       hardcode_shlibpath_var_GCJ=no
19324       ;;
19325
19326     sysv4)
19327       case $host_vendor in
19328         sni)
19329           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330           hardcode_direct_GCJ=yes # is this really true???
19331         ;;
19332         siemens)
19333           ## LD is ld it makes a PLAMLIB
19334           ## CC just makes a GrossModule.
19335           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19336           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19337           hardcode_direct_GCJ=no
19338         ;;
19339         motorola)
19340           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19341           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19342         ;;
19343       esac
19344       runpath_var='LD_RUN_PATH'
19345       hardcode_shlibpath_var_GCJ=no
19346       ;;
19347
19348     sysv4.3*)
19349       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19350       hardcode_shlibpath_var_GCJ=no
19351       export_dynamic_flag_spec_GCJ='-Bexport'
19352       ;;
19353
19354     sysv4*MP*)
19355       if test -d /usr/nec; then
19356         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357         hardcode_shlibpath_var_GCJ=no
19358         runpath_var=LD_RUN_PATH
19359         hardcode_runpath_var=yes
19360         ld_shlibs_GCJ=yes
19361       fi
19362       ;;
19363
19364     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19365       no_undefined_flag_GCJ='${wl}-z,text'
19366       archive_cmds_need_lc_GCJ=no
19367       hardcode_shlibpath_var_GCJ=no
19368       runpath_var='LD_RUN_PATH'
19369
19370       if test "$GCC" = yes; then
19371         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19373       else
19374         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376       fi
19377       ;;
19378
19379     sysv5* | sco3.2v5* | sco5v6*)
19380       # Note: We can NOT use -z defs as we might desire, because we do not
19381       # link with -lc, and that would cause any symbols used from libc to
19382       # always be unresolved, which means just about no library would
19383       # ever link correctly.  If we're not using GNU ld we use -z text
19384       # though, which does catch some bad symbols but isn't as heavy-handed
19385       # as -z defs.
19386       no_undefined_flag_GCJ='${wl}-z,text'
19387       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19388       archive_cmds_need_lc_GCJ=no
19389       hardcode_shlibpath_var_GCJ=no
19390       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19391       hardcode_libdir_separator_GCJ=':'
19392       link_all_deplibs_GCJ=yes
19393       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19394       runpath_var='LD_RUN_PATH'
19395
19396       if test "$GCC" = yes; then
19397         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19398         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19399       else
19400         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19401         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19402       fi
19403       ;;
19404
19405     uts4*)
19406       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19408       hardcode_shlibpath_var_GCJ=no
19409       ;;
19410
19411     *)
19412       ld_shlibs_GCJ=no
19413       ;;
19414     esac
19415   fi
19416
19417 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19418 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19419 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19420
19421 #
19422 # Do we need to explicitly link libc?
19423 #
19424 case "x$archive_cmds_need_lc_GCJ" in
19425 x|xyes)
19426   # Assume -lc should be added
19427   archive_cmds_need_lc_GCJ=yes
19428
19429   if test "$enable_shared" = yes && test "$GCC" = yes; then
19430     case $archive_cmds_GCJ in
19431     *'~'*)
19432       # FIXME: we may have to deal with multi-command sequences.
19433       ;;
19434     '$CC '*)
19435       # Test whether the compiler implicitly links with -lc since on some
19436       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19437       # to ld, don't add -lc before -lgcc.
19438       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19440       $rm conftest*
19441       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19442
19443       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444   (eval $ac_compile) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } 2>conftest.err; then
19448         soname=conftest
19449         lib=conftest
19450         libobjs=conftest.$ac_objext
19451         deplibs=
19452         wl=$lt_prog_compiler_wl_GCJ
19453         pic_flag=$lt_prog_compiler_pic_GCJ
19454         compiler_flags=-v
19455         linker_flags=-v
19456         verstring=
19457         output_objdir=.
19458         libname=conftest
19459         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460         allow_undefined_flag_GCJ=
19461         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }
19466         then
19467           archive_cmds_need_lc_GCJ=no
19468         else
19469           archive_cmds_need_lc_GCJ=yes
19470         fi
19471         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19472       else
19473         cat conftest.err 1>&5
19474       fi
19475       $rm conftest*
19476       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19478       ;;
19479     esac
19480   fi
19481   ;;
19482 esac
19483
19484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19486 library_names_spec=
19487 libname_spec='lib$name'
19488 soname_spec=
19489 shrext_cmds=".so"
19490 postinstall_cmds=
19491 postuninstall_cmds=
19492 finish_cmds=
19493 finish_eval=
19494 shlibpath_var=
19495 shlibpath_overrides_runpath=unknown
19496 version_type=none
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19499
19500 need_lib_prefix=unknown
19501 hardcode_into_libs=no
19502
19503 # when you set need_version to no, make sure it does not cause -set_version
19504 # flags to be left without arguments
19505 need_version=unknown
19506
19507 case $host_os in
19508 aix3*)
19509   version_type=linux
19510   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19511   shlibpath_var=LIBPATH
19512
19513   # AIX 3 has no versioning support, so we append a major version to the name.
19514   soname_spec='${libname}${release}${shared_ext}$major'
19515   ;;
19516
19517 aix4* | aix5*)
19518   version_type=linux
19519   need_lib_prefix=no
19520   need_version=no
19521   hardcode_into_libs=yes
19522   if test "$host_cpu" = ia64; then
19523     # AIX 5 supports IA64
19524     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19525     shlibpath_var=LD_LIBRARY_PATH
19526   else
19527     # With GCC up to 2.95.x, collect2 would create an import file
19528     # for dependence libraries.  The import file would start with
19529     # the line `#! .'.  This would cause the generated library to
19530     # depend on `.', always an invalid library.  This was fixed in
19531     # development snapshots of GCC prior to 3.0.
19532     case $host_os in
19533       aix4 | aix4.[01] | aix4.[01].*)
19534       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19535            echo ' yes '
19536            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19537         :
19538       else
19539         can_build_shared=no
19540       fi
19541       ;;
19542     esac
19543     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19544     # soname into executable. Probably we can add versioning support to
19545     # collect2, so additional links can be useful in future.
19546     if test "$aix_use_runtimelinking" = yes; then
19547       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19548       # instead of lib<name>.a to let people know that these are not
19549       # typical AIX shared libraries.
19550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551     else
19552       # We preserve .a as extension for shared libraries through AIX4.2
19553       # and later when we are not doing run time linking.
19554       library_names_spec='${libname}${release}.a $libname.a'
19555       soname_spec='${libname}${release}${shared_ext}$major'
19556     fi
19557     shlibpath_var=LIBPATH
19558   fi
19559   ;;
19560
19561 amigaos*)
19562   library_names_spec='$libname.ixlibrary $libname.a'
19563   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19564   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'
19565   ;;
19566
19567 beos*)
19568   library_names_spec='${libname}${shared_ext}'
19569   dynamic_linker="$host_os ld.so"
19570   shlibpath_var=LIBRARY_PATH
19571   ;;
19572
19573 bsdi[45]*)
19574   version_type=linux
19575   need_version=no
19576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19577   soname_spec='${libname}${release}${shared_ext}$major'
19578   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19579   shlibpath_var=LD_LIBRARY_PATH
19580   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19581   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19582   # the default ld.so.conf also contains /usr/contrib/lib and
19583   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19584   # libtool to hard-code these into programs
19585   ;;
19586
19587 cygwin* | mingw* | pw32*)
19588   version_type=windows
19589   shrext_cmds=".dll"
19590   need_version=no
19591   need_lib_prefix=no
19592
19593   case $GCC,$host_os in
19594   yes,cygwin* | yes,mingw* | yes,pw32*)
19595     library_names_spec='$libname.dll.a'
19596     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19597     postinstall_cmds='base_file=`basename \${file}`~
19598       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19599       dldir=$destdir/`dirname \$dlpath`~
19600       test -d \$dldir || mkdir -p \$dldir~
19601       $install_prog $dir/$dlname \$dldir/$dlname~
19602       chmod a+x \$dldir/$dlname'
19603     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19604       dlpath=$dir/\$dldll~
19605        $rm \$dlpath'
19606     shlibpath_overrides_runpath=yes
19607
19608     case $host_os in
19609     cygwin*)
19610       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19611       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19612       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19613       ;;
19614     mingw*)
19615       # MinGW DLLs use traditional 'lib' prefix
19616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19617       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19618       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19619         # It is most probably a Windows format PATH printed by
19620         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19621         # path with ; separators, and with drive letters. We can handle the
19622         # drive letters (cygwin fileutils understands them), so leave them,
19623         # especially as we might pass files found there to a mingw objdump,
19624         # which wouldn't understand a cygwinified path. Ahh.
19625         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19626       else
19627         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19628       fi
19629       ;;
19630     pw32*)
19631       # pw32 DLLs use 'pw' prefix rather than 'lib'
19632       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19633       ;;
19634     esac
19635     ;;
19636
19637   *)
19638     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19639     ;;
19640   esac
19641   dynamic_linker='Win32 ld.exe'
19642   # FIXME: first we should search . and the directory the executable is in
19643   shlibpath_var=PATH
19644   ;;
19645
19646 darwin* | rhapsody*)
19647   dynamic_linker="$host_os dyld"
19648   version_type=darwin
19649   need_lib_prefix=no
19650   need_version=no
19651   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19652   soname_spec='${libname}${release}${major}$shared_ext'
19653   shlibpath_overrides_runpath=yes
19654   shlibpath_var=DYLD_LIBRARY_PATH
19655   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19656
19657   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19658   ;;
19659
19660 dgux*)
19661   version_type=linux
19662   need_lib_prefix=no
19663   need_version=no
19664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19665   soname_spec='${libname}${release}${shared_ext}$major'
19666   shlibpath_var=LD_LIBRARY_PATH
19667   ;;
19668
19669 freebsd1*)
19670   dynamic_linker=no
19671   ;;
19672
19673 freebsd* | dragonfly*)
19674   # DragonFly does not have aout.  When/if they implement a new
19675   # versioning mechanism, adjust this.
19676   if test -x /usr/bin/objformat; then
19677     objformat=`/usr/bin/objformat`
19678   else
19679     case $host_os in
19680     freebsd[123]*) objformat=aout ;;
19681     *) objformat=elf ;;
19682     esac
19683   fi
19684   version_type=freebsd-$objformat
19685   case $version_type in
19686     freebsd-elf*)
19687       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19688       need_version=no
19689       need_lib_prefix=no
19690       ;;
19691     freebsd-*)
19692       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19693       need_version=yes
19694       ;;
19695   esac
19696   shlibpath_var=LD_LIBRARY_PATH
19697   case $host_os in
19698   freebsd2*)
19699     shlibpath_overrides_runpath=yes
19700     ;;
19701   freebsd3.[01]* | freebsdelf3.[01]*)
19702     shlibpath_overrides_runpath=yes
19703     hardcode_into_libs=yes
19704     ;;
19705   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19706   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19707     shlibpath_overrides_runpath=no
19708     hardcode_into_libs=yes
19709     ;;
19710   *) # from 4.6 on, and DragonFly
19711     shlibpath_overrides_runpath=yes
19712     hardcode_into_libs=yes
19713     ;;
19714   esac
19715   ;;
19716
19717 gnu*)
19718   version_type=linux
19719   need_lib_prefix=no
19720   need_version=no
19721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19722   soname_spec='${libname}${release}${shared_ext}$major'
19723   shlibpath_var=LD_LIBRARY_PATH
19724   hardcode_into_libs=yes
19725   ;;
19726
19727 hpux9* | hpux10* | hpux11*)
19728   # Give a soname corresponding to the major version so that dld.sl refuses to
19729   # link against other versions.
19730   version_type=sunos
19731   need_lib_prefix=no
19732   need_version=no
19733   case $host_cpu in
19734   ia64*)
19735     shrext_cmds='.so'
19736     hardcode_into_libs=yes
19737     dynamic_linker="$host_os dld.so"
19738     shlibpath_var=LD_LIBRARY_PATH
19739     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741     soname_spec='${libname}${release}${shared_ext}$major'
19742     if test "X$HPUX_IA64_MODE" = X32; then
19743       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19744     else
19745       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19746     fi
19747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19748     ;;
19749    hppa*64*)
19750      shrext_cmds='.sl'
19751      hardcode_into_libs=yes
19752      dynamic_linker="$host_os dld.sl"
19753      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19754      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756      soname_spec='${libname}${release}${shared_ext}$major'
19757      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19758      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19759      ;;
19760    *)
19761     shrext_cmds='.sl'
19762     dynamic_linker="$host_os dld.sl"
19763     shlibpath_var=SHLIB_PATH
19764     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766     soname_spec='${libname}${release}${shared_ext}$major'
19767     ;;
19768   esac
19769   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19770   postinstall_cmds='chmod 555 $lib'
19771   ;;
19772
19773 interix[3-9]*)
19774   version_type=linux
19775   need_lib_prefix=no
19776   need_version=no
19777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19778   soname_spec='${libname}${release}${shared_ext}$major'
19779   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19780   shlibpath_var=LD_LIBRARY_PATH
19781   shlibpath_overrides_runpath=no
19782   hardcode_into_libs=yes
19783   ;;
19784
19785 irix5* | irix6* | nonstopux*)
19786   case $host_os in
19787     nonstopux*) version_type=nonstopux ;;
19788     *)
19789         if test "$lt_cv_prog_gnu_ld" = yes; then
19790                 version_type=linux
19791         else
19792                 version_type=irix
19793         fi ;;
19794   esac
19795   need_lib_prefix=no
19796   need_version=no
19797   soname_spec='${libname}${release}${shared_ext}$major'
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19799   case $host_os in
19800   irix5* | nonstopux*)
19801     libsuff= shlibsuff=
19802     ;;
19803   *)
19804     case $LD in # libtool.m4 will add one of these switches to LD
19805     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19806       libsuff= shlibsuff= libmagic=32-bit;;
19807     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19808       libsuff=32 shlibsuff=N32 libmagic=N32;;
19809     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19810       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19811     *) libsuff= shlibsuff= libmagic=never-match;;
19812     esac
19813     ;;
19814   esac
19815   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19816   shlibpath_overrides_runpath=no
19817   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19818   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19819   hardcode_into_libs=yes
19820   ;;
19821
19822 # No shared lib support for Linux oldld, aout, or coff.
19823 linux*oldld* | linux*aout* | linux*coff*)
19824   dynamic_linker=no
19825   ;;
19826
19827 # This must be Linux ELF.
19828 linux* | k*bsd*-gnu)
19829   version_type=linux
19830   need_lib_prefix=no
19831   need_version=no
19832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833   soname_spec='${libname}${release}${shared_ext}$major'
19834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19835   shlibpath_var=LD_LIBRARY_PATH
19836   shlibpath_overrides_runpath=no
19837   # This implies no fast_install, which is unacceptable.
19838   # Some rework will be needed to allow for fast_install
19839   # before this can be enabled.
19840   hardcode_into_libs=yes
19841
19842   # Append ld.so.conf contents to the search path
19843   if test -f /etc/ld.so.conf; then
19844     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' ' '`
19845     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19846   fi
19847
19848   # We used to test for /lib/ld.so.1 and disable shared libraries on
19849   # powerpc, because MkLinux only supported shared libraries with the
19850   # GNU dynamic linker.  Since this was broken with cross compilers,
19851   # most powerpc-linux boxes support dynamic linking these days and
19852   # people can always --disable-shared, the test was removed, and we
19853   # assume the GNU/Linux dynamic linker is in use.
19854   dynamic_linker='GNU/Linux ld.so'
19855   ;;
19856
19857 netbsdelf*-gnu)
19858   version_type=linux
19859   need_lib_prefix=no
19860   need_version=no
19861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19862   soname_spec='${libname}${release}${shared_ext}$major'
19863   shlibpath_var=LD_LIBRARY_PATH
19864   shlibpath_overrides_runpath=no
19865   hardcode_into_libs=yes
19866   dynamic_linker='NetBSD ld.elf_so'
19867   ;;
19868
19869 netbsd*)
19870   version_type=sunos
19871   need_lib_prefix=no
19872   need_version=no
19873   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19875     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19876     dynamic_linker='NetBSD (a.out) ld.so'
19877   else
19878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19879     soname_spec='${libname}${release}${shared_ext}$major'
19880     dynamic_linker='NetBSD ld.elf_so'
19881   fi
19882   shlibpath_var=LD_LIBRARY_PATH
19883   shlibpath_overrides_runpath=yes
19884   hardcode_into_libs=yes
19885   ;;
19886
19887 newsos6)
19888   version_type=linux
19889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19890   shlibpath_var=LD_LIBRARY_PATH
19891   shlibpath_overrides_runpath=yes
19892   ;;
19893
19894 nto-qnx*)
19895   version_type=linux
19896   need_lib_prefix=no
19897   need_version=no
19898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19899   soname_spec='${libname}${release}${shared_ext}$major'
19900   shlibpath_var=LD_LIBRARY_PATH
19901   shlibpath_overrides_runpath=yes
19902   ;;
19903
19904 openbsd*)
19905   version_type=sunos
19906   sys_lib_dlsearch_path_spec="/usr/lib"
19907   need_lib_prefix=no
19908   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19909   case $host_os in
19910     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19911     *)                         need_version=no  ;;
19912   esac
19913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19914   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19915   shlibpath_var=LD_LIBRARY_PATH
19916   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19917     case $host_os in
19918       openbsd2.[89] | openbsd2.[89].*)
19919         shlibpath_overrides_runpath=no
19920         ;;
19921       *)
19922         shlibpath_overrides_runpath=yes
19923         ;;
19924       esac
19925   else
19926     shlibpath_overrides_runpath=yes
19927   fi
19928   ;;
19929
19930 os2*)
19931   libname_spec='$name'
19932   shrext_cmds=".dll"
19933   need_lib_prefix=no
19934   library_names_spec='$libname${shared_ext} $libname.a'
19935   dynamic_linker='OS/2 ld.exe'
19936   shlibpath_var=LIBPATH
19937   ;;
19938
19939 osf3* | osf4* | osf5*)
19940   version_type=osf
19941   need_lib_prefix=no
19942   need_version=no
19943   soname_spec='${libname}${release}${shared_ext}$major'
19944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19945   shlibpath_var=LD_LIBRARY_PATH
19946   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19947   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19948   ;;
19949
19950 rdos*)
19951   dynamic_linker=no
19952   ;;
19953
19954 solaris*)
19955   version_type=linux
19956   need_lib_prefix=no
19957   need_version=no
19958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19959   soname_spec='${libname}${release}${shared_ext}$major'
19960   shlibpath_var=LD_LIBRARY_PATH
19961   shlibpath_overrides_runpath=yes
19962   hardcode_into_libs=yes
19963   # ldd complains unless libraries are executable
19964   postinstall_cmds='chmod +x $lib'
19965   ;;
19966
19967 sunos4*)
19968   version_type=sunos
19969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19970   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19971   shlibpath_var=LD_LIBRARY_PATH
19972   shlibpath_overrides_runpath=yes
19973   if test "$with_gnu_ld" = yes; then
19974     need_lib_prefix=no
19975   fi
19976   need_version=yes
19977   ;;
19978
19979 sysv4 | sysv4.3*)
19980   version_type=linux
19981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982   soname_spec='${libname}${release}${shared_ext}$major'
19983   shlibpath_var=LD_LIBRARY_PATH
19984   case $host_vendor in
19985     sni)
19986       shlibpath_overrides_runpath=no
19987       need_lib_prefix=no
19988       export_dynamic_flag_spec='${wl}-Blargedynsym'
19989       runpath_var=LD_RUN_PATH
19990       ;;
19991     siemens)
19992       need_lib_prefix=no
19993       ;;
19994     motorola)
19995       need_lib_prefix=no
19996       need_version=no
19997       shlibpath_overrides_runpath=no
19998       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19999       ;;
20000   esac
20001   ;;
20002
20003 sysv4*MP*)
20004   if test -d /usr/nec ;then
20005     version_type=linux
20006     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20007     soname_spec='$libname${shared_ext}.$major'
20008     shlibpath_var=LD_LIBRARY_PATH
20009   fi
20010   ;;
20011
20012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20013   version_type=freebsd-elf
20014   need_lib_prefix=no
20015   need_version=no
20016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20017   soname_spec='${libname}${release}${shared_ext}$major'
20018   shlibpath_var=LD_LIBRARY_PATH
20019   hardcode_into_libs=yes
20020   if test "$with_gnu_ld" = yes; then
20021     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20022     shlibpath_overrides_runpath=no
20023   else
20024     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20025     shlibpath_overrides_runpath=yes
20026     case $host_os in
20027       sco3.2v5*)
20028         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20029         ;;
20030     esac
20031   fi
20032   sys_lib_dlsearch_path_spec='/usr/lib'
20033   ;;
20034
20035 uts4*)
20036   version_type=linux
20037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20038   soname_spec='${libname}${release}${shared_ext}$major'
20039   shlibpath_var=LD_LIBRARY_PATH
20040   ;;
20041
20042 *)
20043   dynamic_linker=no
20044   ;;
20045 esac
20046 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20047 echo "${ECHO_T}$dynamic_linker" >&6; }
20048 test "$dynamic_linker" = no && can_build_shared=no
20049
20050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20051 if test "$GCC" = yes; then
20052   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20053 fi
20054
20055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20057 hardcode_action_GCJ=
20058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20059    test -n "$runpath_var_GCJ" || \
20060    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20061
20062   # We can hardcode non-existant directories.
20063   if test "$hardcode_direct_GCJ" != no &&
20064      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20065      # have to relink, otherwise we might link with an installed library
20066      # when we should be linking with a yet-to-be-installed one
20067      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20068      test "$hardcode_minus_L_GCJ" != no; then
20069     # Linking always hardcodes the temporary library directory.
20070     hardcode_action_GCJ=relink
20071   else
20072     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20073     hardcode_action_GCJ=immediate
20074   fi
20075 else
20076   # We cannot hardcode anything, or else we can only hardcode existing
20077   # directories.
20078   hardcode_action_GCJ=unsupported
20079 fi
20080 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20081 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20082
20083 if test "$hardcode_action_GCJ" = relink; then
20084   # Fast installation is not supported
20085   enable_fast_install=no
20086 elif test "$shlibpath_overrides_runpath" = yes ||
20087      test "$enable_shared" = no; then
20088   # Fast installation is not necessary
20089   enable_fast_install=needless
20090 fi
20091
20092
20093 # The else clause should only fire when bootstrapping the
20094 # libtool distribution, otherwise you forgot to ship ltmain.sh
20095 # with your package, and you will get complaints that there are
20096 # no rules to generate ltmain.sh.
20097 if test -f "$ltmain"; then
20098   # See if we are running on zsh, and set the options which allow our commands through
20099   # without removal of \ escapes.
20100   if test -n "${ZSH_VERSION+set}" ; then
20101     setopt NO_GLOB_SUBST
20102   fi
20103   # Now quote all the things that may contain metacharacters while being
20104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20105   # variables and quote the copies for generation of the libtool script.
20106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20107     SED SHELL STRIP \
20108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20110     deplibs_check_method reload_flag reload_cmds need_locks \
20111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20112     lt_cv_sys_global_symbol_to_c_name_address \
20113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20114     old_postinstall_cmds old_postuninstall_cmds \
20115     compiler_GCJ \
20116     CC_GCJ \
20117     LD_GCJ \
20118     lt_prog_compiler_wl_GCJ \
20119     lt_prog_compiler_pic_GCJ \
20120     lt_prog_compiler_static_GCJ \
20121     lt_prog_compiler_no_builtin_flag_GCJ \
20122     export_dynamic_flag_spec_GCJ \
20123     thread_safe_flag_spec_GCJ \
20124     whole_archive_flag_spec_GCJ \
20125     enable_shared_with_static_runtimes_GCJ \
20126     old_archive_cmds_GCJ \
20127     old_archive_from_new_cmds_GCJ \
20128     predep_objects_GCJ \
20129     postdep_objects_GCJ \
20130     predeps_GCJ \
20131     postdeps_GCJ \
20132     compiler_lib_search_path_GCJ \
20133     archive_cmds_GCJ \
20134     archive_expsym_cmds_GCJ \
20135     postinstall_cmds_GCJ \
20136     postuninstall_cmds_GCJ \
20137     old_archive_from_expsyms_cmds_GCJ \
20138     allow_undefined_flag_GCJ \
20139     no_undefined_flag_GCJ \
20140     export_symbols_cmds_GCJ \
20141     hardcode_libdir_flag_spec_GCJ \
20142     hardcode_libdir_flag_spec_ld_GCJ \
20143     hardcode_libdir_separator_GCJ \
20144     hardcode_automatic_GCJ \
20145     module_cmds_GCJ \
20146     module_expsym_cmds_GCJ \
20147     lt_cv_prog_compiler_c_o_GCJ \
20148     fix_srcfile_path_GCJ \
20149     exclude_expsyms_GCJ \
20150     include_expsyms_GCJ; do
20151
20152     case $var in
20153     old_archive_cmds_GCJ | \
20154     old_archive_from_new_cmds_GCJ | \
20155     archive_cmds_GCJ | \
20156     archive_expsym_cmds_GCJ | \
20157     module_cmds_GCJ | \
20158     module_expsym_cmds_GCJ | \
20159     old_archive_from_expsyms_cmds_GCJ | \
20160     export_symbols_cmds_GCJ | \
20161     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20162     postinstall_cmds | postuninstall_cmds | \
20163     old_postinstall_cmds | old_postuninstall_cmds | \
20164     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20165       # Double-quote double-evaled strings.
20166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20167       ;;
20168     *)
20169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20170       ;;
20171     esac
20172   done
20173
20174   case $lt_echo in
20175   *'\$0 --fallback-echo"')
20176     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20177     ;;
20178   esac
20179
20180 cfgfile="$ofile"
20181
20182   cat <<__EOF__ >> "$cfgfile"
20183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20184
20185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20186
20187 # Shell to use when invoking shell scripts.
20188 SHELL=$lt_SHELL
20189
20190 # Whether or not to build shared libraries.
20191 build_libtool_libs=$enable_shared
20192
20193 # Whether or not to build static libraries.
20194 build_old_libs=$enable_static
20195
20196 # Whether or not to add -lc for building shared libraries.
20197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20198
20199 # Whether or not to disallow shared libs when runtime libs are static
20200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20201
20202 # Whether or not to optimize for fast installation.
20203 fast_install=$enable_fast_install
20204
20205 # The host system.
20206 host_alias=$host_alias
20207 host=$host
20208 host_os=$host_os
20209
20210 # The build system.
20211 build_alias=$build_alias
20212 build=$build
20213 build_os=$build_os
20214
20215 # An echo program that does not interpret backslashes.
20216 echo=$lt_echo
20217
20218 # The archiver.
20219 AR=$lt_AR
20220 AR_FLAGS=$lt_AR_FLAGS
20221
20222 # A C compiler.
20223 LTCC=$lt_LTCC
20224
20225 # LTCC compiler flags.
20226 LTCFLAGS=$lt_LTCFLAGS
20227
20228 # A language-specific compiler.
20229 CC=$lt_compiler_GCJ
20230
20231 # Is the compiler the GNU C compiler?
20232 with_gcc=$GCC_GCJ
20233
20234 # An ERE matcher.
20235 EGREP=$lt_EGREP
20236
20237 # The linker used to build libraries.
20238 LD=$lt_LD_GCJ
20239
20240 # Whether we need hard or soft links.
20241 LN_S=$lt_LN_S
20242
20243 # A BSD-compatible nm program.
20244 NM=$lt_NM
20245
20246 # A symbol stripping program
20247 STRIP=$lt_STRIP
20248
20249 # Used to examine libraries when file_magic_cmd begins "file"
20250 MAGIC_CMD=$MAGIC_CMD
20251
20252 # Used on cygwin: DLL creation program.
20253 DLLTOOL="$DLLTOOL"
20254
20255 # Used on cygwin: object dumper.
20256 OBJDUMP="$OBJDUMP"
20257
20258 # Used on cygwin: assembler.
20259 AS="$AS"
20260
20261 # The name of the directory that contains temporary libtool files.
20262 objdir=$objdir
20263
20264 # How to create reloadable object files.
20265 reload_flag=$lt_reload_flag
20266 reload_cmds=$lt_reload_cmds
20267
20268 # How to pass a linker flag through the compiler.
20269 wl=$lt_lt_prog_compiler_wl_GCJ
20270
20271 # Object file suffix (normally "o").
20272 objext="$ac_objext"
20273
20274 # Old archive suffix (normally "a").
20275 libext="$libext"
20276
20277 # Shared library suffix (normally ".so").
20278 shrext_cmds='$shrext_cmds'
20279
20280 # Executable file suffix (normally "").
20281 exeext="$exeext"
20282
20283 # Additional compiler flags for building library objects.
20284 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20285 pic_mode=$pic_mode
20286
20287 # What is the maximum length of a command?
20288 max_cmd_len=$lt_cv_sys_max_cmd_len
20289
20290 # Does compiler simultaneously support -c and -o options?
20291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20292
20293 # Must we lock files when doing compilation?
20294 need_locks=$lt_need_locks
20295
20296 # Do we need the lib prefix for modules?
20297 need_lib_prefix=$need_lib_prefix
20298
20299 # Do we need a version for libraries?
20300 need_version=$need_version
20301
20302 # Whether dlopen is supported.
20303 dlopen_support=$enable_dlopen
20304
20305 # Whether dlopen of programs is supported.
20306 dlopen_self=$enable_dlopen_self
20307
20308 # Whether dlopen of statically linked programs is supported.
20309 dlopen_self_static=$enable_dlopen_self_static
20310
20311 # Compiler flag to prevent dynamic linking.
20312 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20313
20314 # Compiler flag to turn off builtin functions.
20315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20316
20317 # Compiler flag to allow reflexive dlopens.
20318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20319
20320 # Compiler flag to generate shared objects directly from archives.
20321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20322
20323 # Compiler flag to generate thread-safe objects.
20324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20325
20326 # Library versioning type.
20327 version_type=$version_type
20328
20329 # Format of library name prefix.
20330 libname_spec=$lt_libname_spec
20331
20332 # List of archive names.  First name is the real one, the rest are links.
20333 # The last name is the one that the linker finds with -lNAME.
20334 library_names_spec=$lt_library_names_spec
20335
20336 # The coded name of the library, if different from the real name.
20337 soname_spec=$lt_soname_spec
20338
20339 # Commands used to build and install an old-style archive.
20340 RANLIB=$lt_RANLIB
20341 old_archive_cmds=$lt_old_archive_cmds_GCJ
20342 old_postinstall_cmds=$lt_old_postinstall_cmds
20343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20344
20345 # Create an old-style archive from a shared archive.
20346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20347
20348 # Create a temporary old-style archive to link instead of a shared archive.
20349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20350
20351 # Commands used to build and install a shared archive.
20352 archive_cmds=$lt_archive_cmds_GCJ
20353 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20354 postinstall_cmds=$lt_postinstall_cmds
20355 postuninstall_cmds=$lt_postuninstall_cmds
20356
20357 # Commands used to build a loadable module (assumed same as above if empty)
20358 module_cmds=$lt_module_cmds_GCJ
20359 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20360
20361 # Commands to strip libraries.
20362 old_striplib=$lt_old_striplib
20363 striplib=$lt_striplib
20364
20365 # Dependencies to place before the objects being linked to create a
20366 # shared library.
20367 predep_objects=$lt_predep_objects_GCJ
20368
20369 # Dependencies to place after the objects being linked to create a
20370 # shared library.
20371 postdep_objects=$lt_postdep_objects_GCJ
20372
20373 # Dependencies to place before the objects being linked to create a
20374 # shared library.
20375 predeps=$lt_predeps_GCJ
20376
20377 # Dependencies to place after the objects being linked to create a
20378 # shared library.
20379 postdeps=$lt_postdeps_GCJ
20380
20381 # The library search path used internally by the compiler when linking
20382 # a shared library.
20383 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20384
20385 # Method to check whether dependent libraries are shared objects.
20386 deplibs_check_method=$lt_deplibs_check_method
20387
20388 # Command to use when deplibs_check_method == file_magic.
20389 file_magic_cmd=$lt_file_magic_cmd
20390
20391 # Flag that allows shared libraries with undefined symbols to be built.
20392 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20393
20394 # Flag that forces no undefined symbols.
20395 no_undefined_flag=$lt_no_undefined_flag_GCJ
20396
20397 # Commands used to finish a libtool library installation in a directory.
20398 finish_cmds=$lt_finish_cmds
20399
20400 # Same as above, but a single script fragment to be evaled but not shown.
20401 finish_eval=$lt_finish_eval
20402
20403 # Take the output of nm and produce a listing of raw symbols and C names.
20404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20405
20406 # Transform the output of nm in a proper C declaration
20407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20408
20409 # Transform the output of nm in a C name address pair
20410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20411
20412 # This is the shared library runtime path variable.
20413 runpath_var=$runpath_var
20414
20415 # This is the shared library path variable.
20416 shlibpath_var=$shlibpath_var
20417
20418 # Is shlibpath searched before the hard-coded library search path?
20419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20420
20421 # How to hardcode a shared library path into an executable.
20422 hardcode_action=$hardcode_action_GCJ
20423
20424 # Whether we should hardcode library paths into libraries.
20425 hardcode_into_libs=$hardcode_into_libs
20426
20427 # Flag to hardcode \$libdir into a binary during linking.
20428 # This must work even if \$libdir does not exist.
20429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20430
20431 # If ld is used when linking, flag to hardcode \$libdir into
20432 # a binary during linking. This must work even if \$libdir does
20433 # not exist.
20434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20435
20436 # Whether we need a single -rpath flag with a separated argument.
20437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20438
20439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20440 # resulting binary.
20441 hardcode_direct=$hardcode_direct_GCJ
20442
20443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20444 # resulting binary.
20445 hardcode_minus_L=$hardcode_minus_L_GCJ
20446
20447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20448 # the resulting binary.
20449 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20450
20451 # Set to yes if building a shared library automatically hardcodes DIR into the library
20452 # and all subsequent libraries and executables linked against it.
20453 hardcode_automatic=$hardcode_automatic_GCJ
20454
20455 # Variables whose values should be saved in libtool wrapper scripts and
20456 # restored at relink time.
20457 variables_saved_for_relink="$variables_saved_for_relink"
20458
20459 # Whether libtool must link a program against all its dependency libraries.
20460 link_all_deplibs=$link_all_deplibs_GCJ
20461
20462 # Compile-time system search path for libraries
20463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20464
20465 # Run-time system search path for libraries
20466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20467
20468 # Fix the shell variable \$srcfile for the compiler.
20469 fix_srcfile_path=$lt_fix_srcfile_path
20470
20471 # Set to yes if exported symbols are required.
20472 always_export_symbols=$always_export_symbols_GCJ
20473
20474 # The commands to list exported symbols.
20475 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20476
20477 # The commands to extract the exported symbol list from a shared archive.
20478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20479
20480 # Symbols that should not be listed in the preloaded symbols.
20481 exclude_expsyms=$lt_exclude_expsyms_GCJ
20482
20483 # Symbols that must always be exported.
20484 include_expsyms=$lt_include_expsyms_GCJ
20485
20486 # ### END LIBTOOL TAG CONFIG: $tagname
20487
20488 __EOF__
20489
20490
20491 else
20492   # If there is no Makefile yet, we rely on a make rule to execute
20493   # `config.status --recheck' to rerun these tests and create the
20494   # libtool script then.
20495   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20496   if test -f "$ltmain_in"; then
20497     test -f Makefile && make "$ltmain"
20498   fi
20499 fi
20500
20501
20502 ac_ext=c
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508 CC="$lt_save_CC"
20509
20510         else
20511           tagname=""
20512         fi
20513         ;;
20514
20515       RC)
20516
20517
20518 # Source file extension for RC test sources.
20519 ac_ext=rc
20520
20521 # Object file extension for compiled RC test sources.
20522 objext=o
20523 objext_RC=$objext
20524
20525 # Code to be used in simple compile tests
20526 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20527
20528 # Code to be used in simple link tests
20529 lt_simple_link_test_code="$lt_simple_compile_test_code"
20530
20531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20532
20533 # If no C compiler was specified, use CC.
20534 LTCC=${LTCC-"$CC"}
20535
20536 # If no C compiler flags were specified, use CFLAGS.
20537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20538
20539 # Allow CC to be a program name with arguments.
20540 compiler=$CC
20541
20542
20543 # save warnings/boilerplate of simple test code
20544 ac_outfile=conftest.$ac_objext
20545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20547 _lt_compiler_boilerplate=`cat conftest.err`
20548 $rm conftest*
20549
20550 ac_outfile=conftest.$ac_objext
20551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_linker_boilerplate=`cat conftest.err`
20554 $rm conftest*
20555
20556
20557 # Allow CC to be a program name with arguments.
20558 lt_save_CC="$CC"
20559 CC=${RC-"windres"}
20560 compiler=$CC
20561 compiler_RC=$CC
20562 for cc_temp in $compiler""; do
20563   case $cc_temp in
20564     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20565     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20566     \-*) ;;
20567     *) break;;
20568   esac
20569 done
20570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20571
20572 lt_cv_prog_compiler_c_o_RC=yes
20573
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579   # See if we are running on zsh, and set the options which allow our commands through
20580   # without removal of \ escapes.
20581   if test -n "${ZSH_VERSION+set}" ; then
20582     setopt NO_GLOB_SUBST
20583   fi
20584   # Now quote all the things that may contain metacharacters while being
20585   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20586   # variables and quote the copies for generation of the libtool script.
20587   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20588     SED SHELL STRIP \
20589     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591     deplibs_check_method reload_flag reload_cmds need_locks \
20592     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593     lt_cv_sys_global_symbol_to_c_name_address \
20594     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595     old_postinstall_cmds old_postuninstall_cmds \
20596     compiler_RC \
20597     CC_RC \
20598     LD_RC \
20599     lt_prog_compiler_wl_RC \
20600     lt_prog_compiler_pic_RC \
20601     lt_prog_compiler_static_RC \
20602     lt_prog_compiler_no_builtin_flag_RC \
20603     export_dynamic_flag_spec_RC \
20604     thread_safe_flag_spec_RC \
20605     whole_archive_flag_spec_RC \
20606     enable_shared_with_static_runtimes_RC \
20607     old_archive_cmds_RC \
20608     old_archive_from_new_cmds_RC \
20609     predep_objects_RC \
20610     postdep_objects_RC \
20611     predeps_RC \
20612     postdeps_RC \
20613     compiler_lib_search_path_RC \
20614     archive_cmds_RC \
20615     archive_expsym_cmds_RC \
20616     postinstall_cmds_RC \
20617     postuninstall_cmds_RC \
20618     old_archive_from_expsyms_cmds_RC \
20619     allow_undefined_flag_RC \
20620     no_undefined_flag_RC \
20621     export_symbols_cmds_RC \
20622     hardcode_libdir_flag_spec_RC \
20623     hardcode_libdir_flag_spec_ld_RC \
20624     hardcode_libdir_separator_RC \
20625     hardcode_automatic_RC \
20626     module_cmds_RC \
20627     module_expsym_cmds_RC \
20628     lt_cv_prog_compiler_c_o_RC \
20629     fix_srcfile_path_RC \
20630     exclude_expsyms_RC \
20631     include_expsyms_RC; do
20632
20633     case $var in
20634     old_archive_cmds_RC | \
20635     old_archive_from_new_cmds_RC | \
20636     archive_cmds_RC | \
20637     archive_expsym_cmds_RC | \
20638     module_cmds_RC | \
20639     module_expsym_cmds_RC | \
20640     old_archive_from_expsyms_cmds_RC | \
20641     export_symbols_cmds_RC | \
20642     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20643     postinstall_cmds | postuninstall_cmds | \
20644     old_postinstall_cmds | old_postuninstall_cmds | \
20645     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20646       # Double-quote double-evaled strings.
20647       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20648       ;;
20649     *)
20650       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20651       ;;
20652     esac
20653   done
20654
20655   case $lt_echo in
20656   *'\$0 --fallback-echo"')
20657     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20658     ;;
20659   esac
20660
20661 cfgfile="$ofile"
20662
20663   cat <<__EOF__ >> "$cfgfile"
20664 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20665
20666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20667
20668 # Shell to use when invoking shell scripts.
20669 SHELL=$lt_SHELL
20670
20671 # Whether or not to build shared libraries.
20672 build_libtool_libs=$enable_shared
20673
20674 # Whether or not to build static libraries.
20675 build_old_libs=$enable_static
20676
20677 # Whether or not to add -lc for building shared libraries.
20678 build_libtool_need_lc=$archive_cmds_need_lc_RC
20679
20680 # Whether or not to disallow shared libs when runtime libs are static
20681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20682
20683 # Whether or not to optimize for fast installation.
20684 fast_install=$enable_fast_install
20685
20686 # The host system.
20687 host_alias=$host_alias
20688 host=$host
20689 host_os=$host_os
20690
20691 # The build system.
20692 build_alias=$build_alias
20693 build=$build
20694 build_os=$build_os
20695
20696 # An echo program that does not interpret backslashes.
20697 echo=$lt_echo
20698
20699 # The archiver.
20700 AR=$lt_AR
20701 AR_FLAGS=$lt_AR_FLAGS
20702
20703 # A C compiler.
20704 LTCC=$lt_LTCC
20705
20706 # LTCC compiler flags.
20707 LTCFLAGS=$lt_LTCFLAGS
20708
20709 # A language-specific compiler.
20710 CC=$lt_compiler_RC
20711
20712 # Is the compiler the GNU C compiler?
20713 with_gcc=$GCC_RC
20714
20715 # An ERE matcher.
20716 EGREP=$lt_EGREP
20717
20718 # The linker used to build libraries.
20719 LD=$lt_LD_RC
20720
20721 # Whether we need hard or soft links.
20722 LN_S=$lt_LN_S
20723
20724 # A BSD-compatible nm program.
20725 NM=$lt_NM
20726
20727 # A symbol stripping program
20728 STRIP=$lt_STRIP
20729
20730 # Used to examine libraries when file_magic_cmd begins "file"
20731 MAGIC_CMD=$MAGIC_CMD
20732
20733 # Used on cygwin: DLL creation program.
20734 DLLTOOL="$DLLTOOL"
20735
20736 # Used on cygwin: object dumper.
20737 OBJDUMP="$OBJDUMP"
20738
20739 # Used on cygwin: assembler.
20740 AS="$AS"
20741
20742 # The name of the directory that contains temporary libtool files.
20743 objdir=$objdir
20744
20745 # How to create reloadable object files.
20746 reload_flag=$lt_reload_flag
20747 reload_cmds=$lt_reload_cmds
20748
20749 # How to pass a linker flag through the compiler.
20750 wl=$lt_lt_prog_compiler_wl_RC
20751
20752 # Object file suffix (normally "o").
20753 objext="$ac_objext"
20754
20755 # Old archive suffix (normally "a").
20756 libext="$libext"
20757
20758 # Shared library suffix (normally ".so").
20759 shrext_cmds='$shrext_cmds'
20760
20761 # Executable file suffix (normally "").
20762 exeext="$exeext"
20763
20764 # Additional compiler flags for building library objects.
20765 pic_flag=$lt_lt_prog_compiler_pic_RC
20766 pic_mode=$pic_mode
20767
20768 # What is the maximum length of a command?
20769 max_cmd_len=$lt_cv_sys_max_cmd_len
20770
20771 # Does compiler simultaneously support -c and -o options?
20772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20773
20774 # Must we lock files when doing compilation?
20775 need_locks=$lt_need_locks
20776
20777 # Do we need the lib prefix for modules?
20778 need_lib_prefix=$need_lib_prefix
20779
20780 # Do we need a version for libraries?
20781 need_version=$need_version
20782
20783 # Whether dlopen is supported.
20784 dlopen_support=$enable_dlopen
20785
20786 # Whether dlopen of programs is supported.
20787 dlopen_self=$enable_dlopen_self
20788
20789 # Whether dlopen of statically linked programs is supported.
20790 dlopen_self_static=$enable_dlopen_self_static
20791
20792 # Compiler flag to prevent dynamic linking.
20793 link_static_flag=$lt_lt_prog_compiler_static_RC
20794
20795 # Compiler flag to turn off builtin functions.
20796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20797
20798 # Compiler flag to allow reflexive dlopens.
20799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20800
20801 # Compiler flag to generate shared objects directly from archives.
20802 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20803
20804 # Compiler flag to generate thread-safe objects.
20805 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20806
20807 # Library versioning type.
20808 version_type=$version_type
20809
20810 # Format of library name prefix.
20811 libname_spec=$lt_libname_spec
20812
20813 # List of archive names.  First name is the real one, the rest are links.
20814 # The last name is the one that the linker finds with -lNAME.
20815 library_names_spec=$lt_library_names_spec
20816
20817 # The coded name of the library, if different from the real name.
20818 soname_spec=$lt_soname_spec
20819
20820 # Commands used to build and install an old-style archive.
20821 RANLIB=$lt_RANLIB
20822 old_archive_cmds=$lt_old_archive_cmds_RC
20823 old_postinstall_cmds=$lt_old_postinstall_cmds
20824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20825
20826 # Create an old-style archive from a shared archive.
20827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20828
20829 # Create a temporary old-style archive to link instead of a shared archive.
20830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20831
20832 # Commands used to build and install a shared archive.
20833 archive_cmds=$lt_archive_cmds_RC
20834 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20835 postinstall_cmds=$lt_postinstall_cmds
20836 postuninstall_cmds=$lt_postuninstall_cmds
20837
20838 # Commands used to build a loadable module (assumed same as above if empty)
20839 module_cmds=$lt_module_cmds_RC
20840 module_expsym_cmds=$lt_module_expsym_cmds_RC
20841
20842 # Commands to strip libraries.
20843 old_striplib=$lt_old_striplib
20844 striplib=$lt_striplib
20845
20846 # Dependencies to place before the objects being linked to create a
20847 # shared library.
20848 predep_objects=$lt_predep_objects_RC
20849
20850 # Dependencies to place after the objects being linked to create a
20851 # shared library.
20852 postdep_objects=$lt_postdep_objects_RC
20853
20854 # Dependencies to place before the objects being linked to create a
20855 # shared library.
20856 predeps=$lt_predeps_RC
20857
20858 # Dependencies to place after the objects being linked to create a
20859 # shared library.
20860 postdeps=$lt_postdeps_RC
20861
20862 # The library search path used internally by the compiler when linking
20863 # a shared library.
20864 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20865
20866 # Method to check whether dependent libraries are shared objects.
20867 deplibs_check_method=$lt_deplibs_check_method
20868
20869 # Command to use when deplibs_check_method == file_magic.
20870 file_magic_cmd=$lt_file_magic_cmd
20871
20872 # Flag that allows shared libraries with undefined symbols to be built.
20873 allow_undefined_flag=$lt_allow_undefined_flag_RC
20874
20875 # Flag that forces no undefined symbols.
20876 no_undefined_flag=$lt_no_undefined_flag_RC
20877
20878 # Commands used to finish a libtool library installation in a directory.
20879 finish_cmds=$lt_finish_cmds
20880
20881 # Same as above, but a single script fragment to be evaled but not shown.
20882 finish_eval=$lt_finish_eval
20883
20884 # Take the output of nm and produce a listing of raw symbols and C names.
20885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20886
20887 # Transform the output of nm in a proper C declaration
20888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20889
20890 # Transform the output of nm in a C name address pair
20891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20892
20893 # This is the shared library runtime path variable.
20894 runpath_var=$runpath_var
20895
20896 # This is the shared library path variable.
20897 shlibpath_var=$shlibpath_var
20898
20899 # Is shlibpath searched before the hard-coded library search path?
20900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20901
20902 # How to hardcode a shared library path into an executable.
20903 hardcode_action=$hardcode_action_RC
20904
20905 # Whether we should hardcode library paths into libraries.
20906 hardcode_into_libs=$hardcode_into_libs
20907
20908 # Flag to hardcode \$libdir into a binary during linking.
20909 # This must work even if \$libdir does not exist.
20910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20911
20912 # If ld is used when linking, flag to hardcode \$libdir into
20913 # a binary during linking. This must work even if \$libdir does
20914 # not exist.
20915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20916
20917 # Whether we need a single -rpath flag with a separated argument.
20918 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20919
20920 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20921 # resulting binary.
20922 hardcode_direct=$hardcode_direct_RC
20923
20924 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20925 # resulting binary.
20926 hardcode_minus_L=$hardcode_minus_L_RC
20927
20928 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20929 # the resulting binary.
20930 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20931
20932 # Set to yes if building a shared library automatically hardcodes DIR into the library
20933 # and all subsequent libraries and executables linked against it.
20934 hardcode_automatic=$hardcode_automatic_RC
20935
20936 # Variables whose values should be saved in libtool wrapper scripts and
20937 # restored at relink time.
20938 variables_saved_for_relink="$variables_saved_for_relink"
20939
20940 # Whether libtool must link a program against all its dependency libraries.
20941 link_all_deplibs=$link_all_deplibs_RC
20942
20943 # Compile-time system search path for libraries
20944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20945
20946 # Run-time system search path for libraries
20947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20948
20949 # Fix the shell variable \$srcfile for the compiler.
20950 fix_srcfile_path=$lt_fix_srcfile_path
20951
20952 # Set to yes if exported symbols are required.
20953 always_export_symbols=$always_export_symbols_RC
20954
20955 # The commands to list exported symbols.
20956 export_symbols_cmds=$lt_export_symbols_cmds_RC
20957
20958 # The commands to extract the exported symbol list from a shared archive.
20959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20960
20961 # Symbols that should not be listed in the preloaded symbols.
20962 exclude_expsyms=$lt_exclude_expsyms_RC
20963
20964 # Symbols that must always be exported.
20965 include_expsyms=$lt_include_expsyms_RC
20966
20967 # ### END LIBTOOL TAG CONFIG: $tagname
20968
20969 __EOF__
20970
20971
20972 else
20973   # If there is no Makefile yet, we rely on a make rule to execute
20974   # `config.status --recheck' to rerun these tests and create the
20975   # libtool script then.
20976   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20977   if test -f "$ltmain_in"; then
20978     test -f Makefile && make "$ltmain"
20979   fi
20980 fi
20981
20982
20983 ac_ext=c
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989 CC="$lt_save_CC"
20990
20991         ;;
20992
20993       *)
20994         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20995 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20996    { (exit 1); exit 1; }; }
20997         ;;
20998       esac
20999
21000       # Append the new tag name to the list of available tags.
21001       if test -n "$tagname" ; then
21002       available_tags="$available_tags $tagname"
21003     fi
21004     fi
21005   done
21006   IFS="$lt_save_ifs"
21007
21008   # Now substitute the updated list of available tags.
21009   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21010     mv "${ofile}T" "$ofile"
21011     chmod +x "$ofile"
21012   else
21013     rm -f "${ofile}T"
21014     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21015 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21016    { (exit 1); exit 1; }; }
21017   fi
21018 fi
21019
21020
21021
21022 # This can be used to rebuild libtool when needed
21023 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21024
21025 # Always use our own libtool.
21026 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21027
21028 # Prevent multiple expansion
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049 if test "x$CC" != xcc; then
21050   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21051 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21052 else
21053   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21054 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21055 fi
21056 set dummy $CC; ac_cc=`echo $2 |
21057                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21058 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061   cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067
21068 int
21069 main ()
21070 {
21071
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 # Make sure it works both with $CC and with simple cc.
21077 # We do the test twice because some compilers refuse to overwrite an
21078 # existing .o file with -o, though they will create one.
21079 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21080 rm -f conftest2.*
21081 if { (case "(($ac_try" in
21082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083   *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086   (eval "$ac_try") 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } &&
21090    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_try") 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); };
21099 then
21100   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21101   if test "x$CC" != xcc; then
21102     # Test first that cc exists at all.
21103     if { ac_try='cc -c conftest.$ac_ext >&5'
21104   { (case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_try") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21114       rm -f conftest2.*
21115       if { (case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_try") 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); } &&
21124          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_try") 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); };
21133       then
21134         # cc works too.
21135         :
21136       else
21137         # cc exists but doesn't like -o.
21138         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21139       fi
21140     fi
21141   fi
21142 else
21143   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21144 fi
21145 rm -f core conftest*
21146
21147 fi
21148 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21149   { echo "$as_me:$LINENO: result: yes" >&5
21150 echo "${ECHO_T}yes" >&6; }
21151 else
21152   { echo "$as_me:$LINENO: result: no" >&5
21153 echo "${ECHO_T}no" >&6; }
21154
21155 cat >>confdefs.h <<\_ACEOF
21156 #define NO_MINUS_C_MINUS_O 1
21157 _ACEOF
21158
21159 fi
21160
21161 # FIXME: we rely on the cache variable name because
21162 # there is no other way.
21163 set dummy $CC
21164 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21165 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21166    # Losing compiler, so override with the script.
21167    # FIXME: It is wrong to rewrite CC.
21168    # But if we don't then we get into trouble of one sort or another.
21169    # A longer-term fix would be to have automake use am__CC in this case,
21170    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21171    CC="$am_aux_dir/compile $CC"
21172 fi
21173
21174
21175 if test "x$cross_compiling" = "xno"; then
21176         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21177 else
21178         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21179 fi
21180
21181
21182
21183 if test -n "$ac_tool_prefix"; then
21184   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21185 set dummy ${ac_tool_prefix}ar; ac_word=$2
21186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21188 if test "${ac_cv_prog_AR+set}" = set; then
21189   echo $ECHO_N "(cached) $ECHO_C" >&6
21190 else
21191   if test -n "$AR"; then
21192   ac_cv_prog_AR="$AR" # Let the user override the test.
21193 else
21194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21196 do
21197   IFS=$as_save_IFS
21198   test -z "$as_dir" && as_dir=.
21199   for ac_exec_ext in '' $ac_executable_extensions; do
21200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21201     ac_cv_prog_AR="${ac_tool_prefix}ar"
21202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21203     break 2
21204   fi
21205 done
21206 done
21207 IFS=$as_save_IFS
21208
21209 fi
21210 fi
21211 AR=$ac_cv_prog_AR
21212 if test -n "$AR"; then
21213   { echo "$as_me:$LINENO: result: $AR" >&5
21214 echo "${ECHO_T}$AR" >&6; }
21215 else
21216   { echo "$as_me:$LINENO: result: no" >&5
21217 echo "${ECHO_T}no" >&6; }
21218 fi
21219
21220
21221 fi
21222 if test -z "$ac_cv_prog_AR"; then
21223   ac_ct_AR=$AR
21224   # Extract the first word of "ar", so it can be a program name with args.
21225 set dummy ar; ac_word=$2
21226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21229   echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231   if test -n "$ac_ct_AR"; then
21232   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21233 else
21234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21236 do
21237   IFS=$as_save_IFS
21238   test -z "$as_dir" && as_dir=.
21239   for ac_exec_ext in '' $ac_executable_extensions; do
21240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21241     ac_cv_prog_ac_ct_AR="ar"
21242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21243     break 2
21244   fi
21245 done
21246 done
21247 IFS=$as_save_IFS
21248
21249 fi
21250 fi
21251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21252 if test -n "$ac_ct_AR"; then
21253   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21254 echo "${ECHO_T}$ac_ct_AR" >&6; }
21255 else
21256   { echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6; }
21258 fi
21259
21260   if test "x$ac_ct_AR" = x; then
21261     AR=""
21262   else
21263     case $cross_compiling:$ac_tool_warned in
21264 yes:)
21265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21266 whose name does not start with the host triplet.  If you think this
21267 configuration is useful to you, please write to autoconf@gnu.org." >&5
21268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21269 whose name does not start with the host triplet.  If you think this
21270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21271 ac_tool_warned=yes ;;
21272 esac
21273     AR=$ac_ct_AR
21274   fi
21275 else
21276   AR="$ac_cv_prog_AR"
21277 fi
21278
21279 if test -n "$ac_tool_prefix"; then
21280   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21281 set dummy ${ac_tool_prefix}ld; ac_word=$2
21282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21284 if test "${ac_cv_prog_LD+set}" = set; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287   if test -n "$LD"; then
21288   ac_cv_prog_LD="$LD" # Let the user override the test.
21289 else
21290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21291 for as_dir in $PATH
21292 do
21293   IFS=$as_save_IFS
21294   test -z "$as_dir" && as_dir=.
21295   for ac_exec_ext in '' $ac_executable_extensions; do
21296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21297     ac_cv_prog_LD="${ac_tool_prefix}ld"
21298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21299     break 2
21300   fi
21301 done
21302 done
21303 IFS=$as_save_IFS
21304
21305 fi
21306 fi
21307 LD=$ac_cv_prog_LD
21308 if test -n "$LD"; then
21309   { echo "$as_me:$LINENO: result: $LD" >&5
21310 echo "${ECHO_T}$LD" >&6; }
21311 else
21312   { echo "$as_me:$LINENO: result: no" >&5
21313 echo "${ECHO_T}no" >&6; }
21314 fi
21315
21316
21317 fi
21318 if test -z "$ac_cv_prog_LD"; then
21319   ac_ct_LD=$LD
21320   # Extract the first word of "ld", so it can be a program name with args.
21321 set dummy ld; ac_word=$2
21322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21324 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21325   echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327   if test -n "$ac_ct_LD"; then
21328   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21329 else
21330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21331 for as_dir in $PATH
21332 do
21333   IFS=$as_save_IFS
21334   test -z "$as_dir" && as_dir=.
21335   for ac_exec_ext in '' $ac_executable_extensions; do
21336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21337     ac_cv_prog_ac_ct_LD="ld"
21338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21339     break 2
21340   fi
21341 done
21342 done
21343 IFS=$as_save_IFS
21344
21345 fi
21346 fi
21347 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21348 if test -n "$ac_ct_LD"; then
21349   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21350 echo "${ECHO_T}$ac_ct_LD" >&6; }
21351 else
21352   { echo "$as_me:$LINENO: result: no" >&5
21353 echo "${ECHO_T}no" >&6; }
21354 fi
21355
21356   if test "x$ac_ct_LD" = x; then
21357     LD=""
21358   else
21359     case $cross_compiling:$ac_tool_warned in
21360 yes:)
21361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21362 whose name does not start with the host triplet.  If you think this
21363 configuration is useful to you, please write to autoconf@gnu.org." >&5
21364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21365 whose name does not start with the host triplet.  If you think this
21366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21367 ac_tool_warned=yes ;;
21368 esac
21369     LD=$ac_ct_LD
21370   fi
21371 else
21372   LD="$ac_cv_prog_LD"
21373 fi
21374
21375
21376 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21378 if test "${ac_cv_header_stdc+set}" = set; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #include <stdlib.h>
21388 #include <stdarg.h>
21389 #include <string.h>
21390 #include <float.h>
21391
21392 int
21393 main ()
21394 {
21395
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_compile") 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } && {
21414          test -z "$ac_c_werror_flag" ||
21415          test ! -s conftest.err
21416        } && test -s conftest.$ac_objext; then
21417   ac_cv_header_stdc=yes
21418 else
21419   echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422         ac_cv_header_stdc=no
21423 fi
21424
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426
21427 if test $ac_cv_header_stdc = yes; then
21428   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21429   cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <string.h>
21436
21437 _ACEOF
21438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21439   $EGREP "memchr" >/dev/null 2>&1; then
21440   :
21441 else
21442   ac_cv_header_stdc=no
21443 fi
21444 rm -f conftest*
21445
21446 fi
21447
21448 if test $ac_cv_header_stdc = yes; then
21449   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21450   cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 #include <stdlib.h>
21457
21458 _ACEOF
21459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21460   $EGREP "free" >/dev/null 2>&1; then
21461   :
21462 else
21463   ac_cv_header_stdc=no
21464 fi
21465 rm -f conftest*
21466
21467 fi
21468
21469 if test $ac_cv_header_stdc = yes; then
21470   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21471   if test "$cross_compiling" = yes; then
21472   :
21473 else
21474   cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <ctype.h>
21481 #include <stdlib.h>
21482 #if ((' ' & 0x0FF) == 0x020)
21483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21485 #else
21486 # define ISLOWER(c) \
21487                    (('a' <= (c) && (c) <= 'i') \
21488                      || ('j' <= (c) && (c) <= 'r') \
21489                      || ('s' <= (c) && (c) <= 'z'))
21490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21491 #endif
21492
21493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21494 int
21495 main ()
21496 {
21497   int i;
21498   for (i = 0; i < 256; i++)
21499     if (XOR (islower (i), ISLOWER (i))
21500         || toupper (i) != TOUPPER (i))
21501       return 2;
21502   return 0;
21503 }
21504 _ACEOF
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_link") 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516   { (case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_try") 2>&5
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   :
21526 else
21527   echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21530
21531 ( exit $ac_status )
21532 ac_cv_header_stdc=no
21533 fi
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21535 fi
21536
21537
21538 fi
21539 fi
21540 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21541 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21542 if test $ac_cv_header_stdc = yes; then
21543
21544 cat >>confdefs.h <<\_ACEOF
21545 #define STDC_HEADERS 1
21546 _ACEOF
21547
21548 fi
21549
21550
21551   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21552 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21553   if test "${knfsd_cv_glibc2+set}" = set; then
21554   echo $ECHO_N "(cached) $ECHO_C" >&6
21555 else
21556   cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562
21563       #include <features.h>
21564       #if !defined(__GLIBC__)
21565       # error Nope
21566       #endif
21567
21568 _ACEOF
21569 if { (ac_try="$ac_cpp conftest.$ac_ext"
21570 case "(($ac_try" in
21571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572   *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } >/dev/null && {
21582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21583          test ! -s conftest.err
21584        }; then
21585   knfsd_cv_glibc2=yes
21586 else
21587   echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590   knfsd_cv_glibc2=no
21591 fi
21592
21593 rm -f conftest.err conftest.$ac_ext
21594 fi
21595
21596   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21597 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21598   if test $knfsd_cv_glibc2 = yes; then
21599     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21600     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21601   fi
21602
21603
21604   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21605 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21606   if test "${knfsd_cv_bsd_signals+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609   if test "$cross_compiling" = yes; then
21610
21611       case "$host_os" in
21612         *linux*) knfsd_cv_bsd_signals=no;;
21613         *bsd*)   knfsd_cv_bsd_signals=yes;;
21614         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21615 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21616    { (exit 1); exit 1; }; };;
21617       esac
21618
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626
21627         #include <signal.h>
21628         #include <unistd.h>
21629         #include <sys/wait.h>
21630
21631         static int counter = 0;
21632         static RETSIGTYPE handler(int num) { counter++; }
21633
21634         int main()
21635         {
21636                 int     s;
21637                 if ((s = fork()) < 0) return 1;
21638                 if (s != 0) {
21639                         if (wait(&s) < 0) return 1;
21640                         return WIFSIGNALED(s)? 1 : 0;
21641                 }
21642
21643                 signal(SIGHUP, handler);
21644                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21645                 return (counter == 2)? 0 : 1;
21646         }
21647
21648 _ACEOF
21649 rm -f conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_link") 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21660   { (case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_try") 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   knfsd_cv_bsd_signals=yes
21670 else
21671   echo "$as_me: program exited with status $ac_status" >&5
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 ( exit $ac_status )
21676 knfsd_cv_bsd_signals=no
21677 fi
21678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 fi
21680
21681
21682 fi
21683      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21684 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21685     test $knfsd_cv_bsd_signals = yes &&
21686 cat >>confdefs.h <<\_ACEOF
21687 #define HAVE_BSD_SIGNALS 1
21688 _ACEOF
21689
21690
21691
21692 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21693 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21694 if test "${ac_cv_func_gethostbyname+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21705 #define gethostbyname innocuous_gethostbyname
21706
21707 /* System header to define __stub macros and hopefully few prototypes,
21708     which can conflict with char gethostbyname (); below.
21709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21710     <limits.h> exists even on freestanding compilers.  */
21711
21712 #ifdef __STDC__
21713 # include <limits.h>
21714 #else
21715 # include <assert.h>
21716 #endif
21717
21718 #undef gethostbyname
21719
21720 /* Override any GCC internal prototype to avoid an error.
21721    Use char because int might match the return type of a GCC
21722    builtin and then its argument prototype would still apply.  */
21723 #ifdef __cplusplus
21724 extern "C"
21725 #endif
21726 char gethostbyname ();
21727 /* The GNU C library defines this for functions which it implements
21728     to always fail with ENOSYS.  Some functions are actually named
21729     something starting with __ and the normal name is an alias.  */
21730 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21731 choke me
21732 #endif
21733
21734 int
21735 main ()
21736 {
21737 return gethostbyname ();
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_link") 2>conftest.er1
21750   ac_status=$?
21751   grep -v '^ *+' conftest.er1 >conftest.err
21752   rm -f conftest.er1
21753   cat conftest.err >&5
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && {
21756          test -z "$ac_c_werror_flag" ||
21757          test ! -s conftest.err
21758        } && test -s conftest$ac_exeext &&
21759        $as_test_x conftest$ac_exeext; then
21760   ac_cv_func_gethostbyname=yes
21761 else
21762   echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765         ac_cv_func_gethostbyname=no
21766 fi
21767
21768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21769       conftest$ac_exeext conftest.$ac_ext
21770 fi
21771 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21772 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21773 if test $ac_cv_func_gethostbyname = yes; then
21774   :
21775 else
21776   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21777 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21778 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781   ac_check_lib_save_LIBS=$LIBS
21782 LIBS="-lnsl  $LIBS"
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789
21790 /* Override any GCC internal prototype to avoid an error.
21791    Use char because int might match the return type of a GCC
21792    builtin and then its argument prototype would still apply.  */
21793 #ifdef __cplusplus
21794 extern "C"
21795 #endif
21796 char gethostbyname ();
21797 int
21798 main ()
21799 {
21800 return gethostbyname ();
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_link") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } && {
21819          test -z "$ac_c_werror_flag" ||
21820          test ! -s conftest.err
21821        } && test -s conftest$ac_exeext &&
21822        $as_test_x conftest$ac_exeext; then
21823   ac_cv_lib_nsl_gethostbyname=yes
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828         ac_cv_lib_nsl_gethostbyname=no
21829 fi
21830
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832       conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21834 fi
21835 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21836 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21837 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21838   LIBNSL="-lnsl"
21839 fi
21840
21841 fi
21842
21843
21844
21845 { echo "$as_me:$LINENO: checking for connect" >&5
21846 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21847 if test "${ac_cv_func_connect+set}" = set; then
21848   echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850   cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21858 #define connect innocuous_connect
21859
21860 /* System header to define __stub macros and hopefully few prototypes,
21861     which can conflict with char connect (); below.
21862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21863     <limits.h> exists even on freestanding compilers.  */
21864
21865 #ifdef __STDC__
21866 # include <limits.h>
21867 #else
21868 # include <assert.h>
21869 #endif
21870
21871 #undef connect
21872
21873 /* Override any GCC internal prototype to avoid an error.
21874    Use char because int might match the return type of a GCC
21875    builtin and then its argument prototype would still apply.  */
21876 #ifdef __cplusplus
21877 extern "C"
21878 #endif
21879 char connect ();
21880 /* The GNU C library defines this for functions which it implements
21881     to always fail with ENOSYS.  Some functions are actually named
21882     something starting with __ and the normal name is an alias.  */
21883 #if defined __stub_connect || defined __stub___connect
21884 choke me
21885 #endif
21886
21887 int
21888 main ()
21889 {
21890 return connect ();
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_link") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } && {
21909          test -z "$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        } && test -s conftest$ac_exeext &&
21912        $as_test_x conftest$ac_exeext; then
21913   ac_cv_func_connect=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918         ac_cv_func_connect=no
21919 fi
21920
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922       conftest$ac_exeext conftest.$ac_ext
21923 fi
21924 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21925 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21926 if test $ac_cv_func_connect = yes; then
21927   :
21928 else
21929   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21930 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21931 if test "${ac_cv_lib_socket_connect+set}" = set; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lsocket $LIBNSL $LIBS"
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942
21943 /* Override any GCC internal prototype to avoid an error.
21944    Use char because int might match the return type of a GCC
21945    builtin and then its argument prototype would still apply.  */
21946 #ifdef __cplusplus
21947 extern "C"
21948 #endif
21949 char connect ();
21950 int
21951 main ()
21952 {
21953 return connect ();
21954   ;
21955   return 0;
21956 }
21957 _ACEOF
21958 rm -f conftest.$ac_objext conftest$ac_exeext
21959 if { (ac_try="$ac_link"
21960 case "(($ac_try" in
21961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962   *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965   (eval "$ac_link") 2>conftest.er1
21966   ac_status=$?
21967   grep -v '^ *+' conftest.er1 >conftest.err
21968   rm -f conftest.er1
21969   cat conftest.err >&5
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); } && {
21972          test -z "$ac_c_werror_flag" ||
21973          test ! -s conftest.err
21974        } && test -s conftest$ac_exeext &&
21975        $as_test_x conftest$ac_exeext; then
21976   ac_cv_lib_socket_connect=yes
21977 else
21978   echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981         ac_cv_lib_socket_connect=no
21982 fi
21983
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985       conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21987 fi
21988 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21989 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21990 if test $ac_cv_lib_socket_connect = yes; then
21991   LIBSOCKET="-lsocket"
21992 else
21993   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21994 echo "$as_me: error: Function 'socket' not found." >&2;}
21995    { (exit 1); exit 1; }; }
21996 fi
21997
21998 fi
21999
22000
22001 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22002 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22003 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22004   echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006   ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lcrypt  $LIBS"
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h.  */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h.  */
22014
22015 /* Override any GCC internal prototype to avoid an error.
22016    Use char because int might match the return type of a GCC
22017    builtin and then its argument prototype would still apply.  */
22018 #ifdef __cplusplus
22019 extern "C"
22020 #endif
22021 char crypt ();
22022 int
22023 main ()
22024 {
22025 return crypt ();
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_link") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } && {
22044          test -z "$ac_c_werror_flag" ||
22045          test ! -s conftest.err
22046        } && test -s conftest$ac_exeext &&
22047        $as_test_x conftest$ac_exeext; then
22048   ac_cv_lib_crypt_crypt=yes
22049 else
22050   echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053         ac_cv_lib_crypt_crypt=no
22054 fi
22055
22056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22057       conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22059 fi
22060 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22061 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22062 if test $ac_cv_lib_crypt_crypt = yes; then
22063   LIBCRYPT="-lcrypt"
22064 fi
22065
22066 if test "$enable_nfsv4" = yes; then
22067     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22068 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22069 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22070   echo $ECHO_N "(cached) $ECHO_C" >&6
22071 else
22072   ac_check_lib_save_LIBS=$LIBS
22073 LIBS="-levent  $LIBS"
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080
22081 /* Override any GCC internal prototype to avoid an error.
22082    Use char because int might match the return type of a GCC
22083    builtin and then its argument prototype would still apply.  */
22084 #ifdef __cplusplus
22085 extern "C"
22086 #endif
22087 char event_dispatch ();
22088 int
22089 main ()
22090 {
22091 return event_dispatch ();
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_link") 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && {
22110          test -z "$ac_c_werror_flag" ||
22111          test ! -s conftest.err
22112        } && test -s conftest$ac_exeext &&
22113        $as_test_x conftest$ac_exeext; then
22114   ac_cv_lib_event_event_dispatch=yes
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119         ac_cv_lib_event_event_dispatch=no
22120 fi
22121
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123       conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22125 fi
22126 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22127 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22128 if test $ac_cv_lib_event_event_dispatch = yes; then
22129   libevent=1
22130 else
22131   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22132 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22133    { (exit 1); exit 1; }; }
22134 fi
22135
22136     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22137 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22138 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22139   echo $ECHO_N "(cached) $ECHO_C" >&6
22140 else
22141   ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-lnfsidmap  $LIBS"
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149
22150 /* Override any GCC internal prototype to avoid an error.
22151    Use char because int might match the return type of a GCC
22152    builtin and then its argument prototype would still apply.  */
22153 #ifdef __cplusplus
22154 extern "C"
22155 #endif
22156 char nfs4_init_name_mapping ();
22157 int
22158 main ()
22159 {
22160 return nfs4_init_name_mapping ();
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 rm -f conftest.$ac_objext conftest$ac_exeext
22166 if { (ac_try="$ac_link"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_link") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } && {
22179          test -z "$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        } && test -s conftest$ac_exeext &&
22182        $as_test_x conftest$ac_exeext; then
22183   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22189 fi
22190
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192       conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22194 fi
22195 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22196 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22197 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22198   libnfsidmap=1
22199 else
22200   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22201 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22202    { (exit 1); exit 1; }; }
22203 fi
22204
22205
22206 for ac_header in event.h
22207 do
22208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22210   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 fi
22215 ac_res=`eval echo '${'$as_ac_Header'}'`
22216                { echo "$as_me:$LINENO: result: $ac_res" >&5
22217 echo "${ECHO_T}$ac_res" >&6; }
22218 else
22219   # Is the header compilable?
22220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228 $ac_includes_default
22229 #include <$ac_header>
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238   (eval "$ac_compile") 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } && {
22245          test -z "$ac_c_werror_flag" ||
22246          test ! -s conftest.err
22247        } && test -s conftest.$ac_objext; then
22248   ac_header_compiler=yes
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253         ac_header_compiler=no
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22258 echo "${ECHO_T}$ac_header_compiler" >&6; }
22259
22260 # Is the header present?
22261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22263 cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269 #include <$ac_header>
22270 _ACEOF
22271 if { (ac_try="$ac_cpp conftest.$ac_ext"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } >/dev/null && {
22284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        }; then
22287   ac_header_preproc=yes
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292   ac_header_preproc=no
22293 fi
22294
22295 rm -f conftest.err conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22297 echo "${ECHO_T}$ac_header_preproc" >&6; }
22298
22299 # So?  What about this header?
22300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22301   yes:no: )
22302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22306     ac_header_preproc=yes
22307     ;;
22308   no:yes:* )
22309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22321     ( cat <<\_ASBOX
22322 ## ------------------------------- ##
22323 ## Report this to nfs@lists.sf.net ##
22324 ## ------------------------------- ##
22325 _ASBOX
22326      ) | sed "s/^/$as_me: WARNING:     /" >&2
22327     ;;
22328 esac
22329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22332   echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334   eval "$as_ac_Header=\$ac_header_preproc"
22335 fi
22336 ac_res=`eval echo '${'$as_ac_Header'}'`
22337                { echo "$as_me:$LINENO: result: $ac_res" >&5
22338 echo "${ECHO_T}$ac_res" >&6; }
22339
22340 fi
22341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22342   cat >>confdefs.h <<_ACEOF
22343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22344 _ACEOF
22345
22346 else
22347   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22348 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22349    { (exit 1); exit 1; }; }
22350 fi
22351
22352 done
22353
22354
22355 for ac_header in nfsidmap.h
22356 do
22357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362   echo $ECHO_N "(cached) $ECHO_C" >&6
22363 fi
22364 ac_res=`eval echo '${'$as_ac_Header'}'`
22365                { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 else
22368   # Is the header compilable?
22369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22371 cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h.  */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h.  */
22377 $ac_includes_default
22378 #include <$ac_header>
22379 _ACEOF
22380 rm -f conftest.$ac_objext
22381 if { (ac_try="$ac_compile"
22382 case "(($ac_try" in
22383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384   *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387   (eval "$ac_compile") 2>conftest.er1
22388   ac_status=$?
22389   grep -v '^ *+' conftest.er1 >conftest.err
22390   rm -f conftest.er1
22391   cat conftest.err >&5
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && {
22394          test -z "$ac_c_werror_flag" ||
22395          test ! -s conftest.err
22396        } && test -s conftest.$ac_objext; then
22397   ac_header_compiler=yes
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402         ac_header_compiler=no
22403 fi
22404
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22407 echo "${ECHO_T}$ac_header_compiler" >&6; }
22408
22409 # Is the header present?
22410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22412 cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h.  */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h.  */
22418 #include <$ac_header>
22419 _ACEOF
22420 if { (ac_try="$ac_cpp conftest.$ac_ext"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } >/dev/null && {
22433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22434          test ! -s conftest.err
22435        }; then
22436   ac_header_preproc=yes
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441   ac_header_preproc=no
22442 fi
22443
22444 rm -f conftest.err conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22446 echo "${ECHO_T}$ac_header_preproc" >&6; }
22447
22448 # So?  What about this header?
22449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22450   yes:no: )
22451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22455     ac_header_preproc=yes
22456     ;;
22457   no:yes:* )
22458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22470     ( cat <<\_ASBOX
22471 ## ------------------------------- ##
22472 ## Report this to nfs@lists.sf.net ##
22473 ## ------------------------------- ##
22474 _ASBOX
22475      ) | sed "s/^/$as_me: WARNING:     /" >&2
22476     ;;
22477 esac
22478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   eval "$as_ac_Header=\$ac_header_preproc"
22484 fi
22485 ac_res=`eval echo '${'$as_ac_Header'}'`
22486                { echo "$as_me:$LINENO: result: $ac_res" >&5
22487 echo "${ECHO_T}$ac_res" >&6; }
22488
22489 fi
22490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22491   cat >>confdefs.h <<_ACEOF
22492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22493 _ACEOF
22494
22495 else
22496   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22497 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22498    { (exit 1); exit 1; }; }
22499 fi
22500
22501 done
22502
22503             if test "$enable_gss" = yes; then
22504
22505
22506 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22507         if test -n "$ac_tool_prefix"; then
22508   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22509 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22512 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22513   echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515   case $PKG_CONFIG in
22516   [\\/]* | ?:[\\/]*)
22517   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22518   ;;
22519   *)
22520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22521 for as_dir in $PATH
22522 do
22523   IFS=$as_save_IFS
22524   test -z "$as_dir" && as_dir=.
22525   for ac_exec_ext in '' $ac_executable_extensions; do
22526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22527     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22529     break 2
22530   fi
22531 done
22532 done
22533 IFS=$as_save_IFS
22534
22535   ;;
22536 esac
22537 fi
22538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22539 if test -n "$PKG_CONFIG"; then
22540   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22541 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22542 else
22543   { echo "$as_me:$LINENO: result: no" >&5
22544 echo "${ECHO_T}no" >&6; }
22545 fi
22546
22547
22548 fi
22549 if test -z "$ac_cv_path_PKG_CONFIG"; then
22550   ac_pt_PKG_CONFIG=$PKG_CONFIG
22551   # Extract the first word of "pkg-config", so it can be a program name with args.
22552 set dummy pkg-config; ac_word=$2
22553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22555 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22556   echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558   case $ac_pt_PKG_CONFIG in
22559   [\\/]* | ?:[\\/]*)
22560   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22561   ;;
22562   *)
22563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22564 for as_dir in $PATH
22565 do
22566   IFS=$as_save_IFS
22567   test -z "$as_dir" && as_dir=.
22568   for ac_exec_ext in '' $ac_executable_extensions; do
22569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22570     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22572     break 2
22573   fi
22574 done
22575 done
22576 IFS=$as_save_IFS
22577
22578   ;;
22579 esac
22580 fi
22581 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22582 if test -n "$ac_pt_PKG_CONFIG"; then
22583   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22584 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22585 else
22586   { echo "$as_me:$LINENO: result: no" >&5
22587 echo "${ECHO_T}no" >&6; }
22588 fi
22589
22590   if test "x$ac_pt_PKG_CONFIG" = x; then
22591     PKG_CONFIG=""
22592   else
22593     case $cross_compiling:$ac_tool_warned in
22594 yes:)
22595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22596 whose name does not start with the host triplet.  If you think this
22597 configuration is useful to you, please write to autoconf@gnu.org." >&5
22598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22599 whose name does not start with the host triplet.  If you think this
22600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22601 ac_tool_warned=yes ;;
22602 esac
22603     PKG_CONFIG=$ac_pt_PKG_CONFIG
22604   fi
22605 else
22606   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22607 fi
22608
22609 fi
22610 if test -n "$PKG_CONFIG"; then
22611         _pkg_min_version=0.9.0
22612         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22613 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22614         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22615                 { echo "$as_me:$LINENO: result: yes" >&5
22616 echo "${ECHO_T}yes" >&6; }
22617         else
22618                 { echo "$as_me:$LINENO: result: no" >&5
22619 echo "${ECHO_T}no" >&6; }
22620                 PKG_CONFIG=""
22621         fi
22622
22623 fi
22624
22625 pkg_failed=no
22626 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22627 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22628
22629 if test -n "$PKG_CONFIG"; then
22630     if test -n "$RPCSECGSS_CFLAGS"; then
22631         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22632     else
22633         if test -n "$PKG_CONFIG" && \
22634     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22635   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22636   ac_status=$?
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); }; then
22639   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22640 else
22641   pkg_failed=yes
22642 fi
22643     fi
22644 else
22645         pkg_failed=untried
22646 fi
22647 if test -n "$PKG_CONFIG"; then
22648     if test -n "$RPCSECGSS_LIBS"; then
22649         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22650     else
22651         if test -n "$PKG_CONFIG" && \
22652     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22653   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); }; then
22657   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22658 else
22659   pkg_failed=yes
22660 fi
22661     fi
22662 else
22663         pkg_failed=untried
22664 fi
22665
22666
22667
22668 if test $pkg_failed = yes; then
22669
22670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22671         _pkg_short_errors_supported=yes
22672 else
22673         _pkg_short_errors_supported=no
22674 fi
22675         if test $_pkg_short_errors_supported = yes; then
22676                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22677         else
22678                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22679         fi
22680         # Put the nasty error message in config.log where it belongs
22681         echo "$RPCSECGSS_PKG_ERRORS" >&5
22682
22683         { echo "$as_me:$LINENO: result: no" >&5
22684 echo "${ECHO_T}no" >&6; }
22685                 { { 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
22686 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;}
22687    { (exit 1); exit 1; }; }
22688
22689
22690 elif test $pkg_failed = untried; then
22691         { { 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
22692 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;}
22693    { (exit 1); exit 1; }; }
22694
22695
22696 else
22697         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22698         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22699         { echo "$as_me:$LINENO: result: yes" >&5
22700 echo "${ECHO_T}yes" >&6; }
22701         :
22702 fi
22703
22704 pkg_failed=no
22705 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22706 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22707
22708 if test -n "$PKG_CONFIG"; then
22709     if test -n "$GSSAPI_CFLAGS"; then
22710         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22711     else
22712         if test -n "$PKG_CONFIG" && \
22713     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22714   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; then
22718   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22719 else
22720   pkg_failed=yes
22721 fi
22722     fi
22723 else
22724         pkg_failed=untried
22725 fi
22726 if test -n "$PKG_CONFIG"; then
22727     if test -n "$GSSAPI_LIBS"; then
22728         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22729     else
22730         if test -n "$PKG_CONFIG" && \
22731     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22732   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22733   ac_status=$?
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); }; then
22736   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22737 else
22738   pkg_failed=yes
22739 fi
22740     fi
22741 else
22742         pkg_failed=untried
22743 fi
22744
22745
22746
22747 if test $pkg_failed = yes; then
22748
22749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22750         _pkg_short_errors_supported=yes
22751 else
22752         _pkg_short_errors_supported=no
22753 fi
22754         if test $_pkg_short_errors_supported = yes; then
22755                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22756         else
22757                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22758         fi
22759         # Put the nasty error message in config.log where it belongs
22760         echo "$GSSAPI_PKG_ERRORS" >&5
22761
22762         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22763
22764 $GSSAPI_PKG_ERRORS
22765
22766 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22767 installed software in a non-standard prefix.
22768
22769 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22770 and GSSAPI_LIBS to avoid the need to call pkg-config.
22771 See the pkg-config man page for more details.
22772 " >&5
22773 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22774
22775 $GSSAPI_PKG_ERRORS
22776
22777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22778 installed software in a non-standard prefix.
22779
22780 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22781 and GSSAPI_LIBS to avoid the need to call pkg-config.
22782 See the pkg-config man page for more details.
22783 " >&2;}
22784    { (exit 1); exit 1; }; }
22785 elif test $pkg_failed = untried; then
22786         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22787 is in your PATH or set the PKG_CONFIG environment variable to the full
22788 path to pkg-config.
22789
22790 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22791 and GSSAPI_LIBS to avoid the need to call pkg-config.
22792 See the pkg-config man page for more details.
22793
22794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22795 See \`config.log' for more details." >&5
22796 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22797 is in your PATH or set the PKG_CONFIG environment variable to the full
22798 path to pkg-config.
22799
22800 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22801 and GSSAPI_LIBS to avoid the need to call pkg-config.
22802 See the pkg-config man page for more details.
22803
22804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22805 See \`config.log' for more details." >&2;}
22806    { (exit 1); exit 1; }; }
22807 else
22808         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22809         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22810         { echo "$as_me:$LINENO: result: yes" >&5
22811 echo "${ECHO_T}yes" >&6; }
22812         :
22813 fi
22814     fi
22815
22816 fi
22817 if test "$knfsd_cv_glibc2" = no; then
22818     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22819 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22820 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   ac_check_lib_save_LIBS=$LIBS
22824 LIBS="-lbsd  $LIBS"
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831
22832 /* Override any GCC internal prototype to avoid an error.
22833    Use char because int might match the return type of a GCC
22834    builtin and then its argument prototype would still apply.  */
22835 #ifdef __cplusplus
22836 extern "C"
22837 #endif
22838 char daemon ();
22839 int
22840 main ()
22841 {
22842 return daemon ();
22843   ;
22844   return 0;
22845 }
22846 _ACEOF
22847 rm -f conftest.$ac_objext conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851   *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854   (eval "$ac_link") 2>conftest.er1
22855   ac_status=$?
22856   grep -v '^ *+' conftest.er1 >conftest.err
22857   rm -f conftest.er1
22858   cat conftest.err >&5
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); } && {
22861          test -z "$ac_c_werror_flag" ||
22862          test ! -s conftest.err
22863        } && test -s conftest$ac_exeext &&
22864        $as_test_x conftest$ac_exeext; then
22865   ac_cv_lib_bsd_daemon=yes
22866 else
22867   echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22869
22870         ac_cv_lib_bsd_daemon=no
22871 fi
22872
22873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22874       conftest$ac_exeext conftest.$ac_ext
22875 LIBS=$ac_check_lib_save_LIBS
22876 fi
22877 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22878 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22879 if test $ac_cv_lib_bsd_daemon = yes; then
22880   LIBBSD="-lbsd"
22881 fi
22882
22883 fi
22884
22885 if test "$choose_blkid" != no; then
22886    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22887 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22888 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22889   echo $ECHO_N "(cached) $ECHO_C" >&6
22890 else
22891   ac_check_lib_save_LIBS=$LIBS
22892 LIBS="-lblkid  $LIBS"
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899
22900 /* Override any GCC internal prototype to avoid an error.
22901    Use char because int might match the return type of a GCC
22902    builtin and then its argument prototype would still apply.  */
22903 #ifdef __cplusplus
22904 extern "C"
22905 #endif
22906 char blkid_get_library_version ();
22907 int
22908 main ()
22909 {
22910 return blkid_get_library_version ();
22911   ;
22912   return 0;
22913 }
22914 _ACEOF
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919   *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922   (eval "$ac_link") 2>conftest.er1
22923   ac_status=$?
22924   grep -v '^ *+' conftest.er1 >conftest.err
22925   rm -f conftest.er1
22926   cat conftest.err >&5
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); } && {
22929          test -z "$ac_c_werror_flag" ||
22930          test ! -s conftest.err
22931        } && test -s conftest$ac_exeext &&
22932        $as_test_x conftest$ac_exeext; then
22933   ac_cv_lib_blkid_blkid_get_library_version=yes
22934 else
22935   echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938         ac_cv_lib_blkid_blkid_get_library_version=no
22939 fi
22940
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942       conftest$ac_exeext conftest.$ac_ext
22943 LIBS=$ac_check_lib_save_LIBS
22944 fi
22945 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22946 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22947 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22948   LIBBLKID="-lblkid"
22949 else
22950   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22951 echo "$as_me: error: libblkid needed" >&2;}
22952    { (exit 1); exit 1; }; }
22953 fi
22954
22955    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22956   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22957 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22958 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22959   echo $ECHO_N "(cached) $ECHO_C" >&6
22960 fi
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22963 else
22964   # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22966 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973 $ac_includes_default
22974 #include <blkid/blkid.h>
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_compile") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_c_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest.$ac_objext; then
22993   ac_header_compiler=yes
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         ac_header_compiler=no
22999 fi
23000
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23004
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23007 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 #include <blkid/blkid.h>
23015 _ACEOF
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019   *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23023   ac_status=$?
23024   grep -v '^ *+' conftest.er1 >conftest.err
23025   rm -f conftest.er1
23026   cat conftest.err >&5
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); } >/dev/null && {
23029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030          test ! -s conftest.err
23031        }; then
23032   ac_header_preproc=yes
23033 else
23034   echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23036
23037   ac_header_preproc=no
23038 fi
23039
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23043
23044 # So?  What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046   yes:no: )
23047     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23051     ac_header_preproc=yes
23052     ;;
23053   no:yes:* )
23054     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23056     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23058     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23060     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23062     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23064     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23066     ( cat <<\_ASBOX
23067 ## ------------------------------- ##
23068 ## Report this to nfs@lists.sf.net ##
23069 ## ------------------------------- ##
23070 _ASBOX
23071      ) | sed "s/^/$as_me: WARNING:     /" >&2
23072     ;;
23073 esac
23074 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23075 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23076 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23077   echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23080 fi
23081 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23082 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23083
23084 fi
23085 if test $ac_cv_header_blkid_blkid_h = yes; then
23086   :
23087 else
23088   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23089 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23090    { (exit 1); exit 1; }; }
23091 fi
23092
23093
23094
23095   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23096 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23097   if test "${libblkid_is_recent+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100
23101     saved_LIBS="$LIBS"
23102     LIBS=-lblkid
23103     if test "$cross_compiling" = yes; then
23104   libblkid_is_recent=unknown
23105 else
23106   cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112
23113         #include <blkid/blkid.h>
23114         int main()
23115         {
23116                 int vers = blkid_get_library_version(0, 0);
23117                 return vers >= 140 ? 0 : 1;
23118         }
23119
23120 _ACEOF
23121 rm -f conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_link") 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23132   { (case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_try") 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; }; then
23141   libblkid_is_recent=yes
23142 else
23143   echo "$as_me: program exited with status $ac_status" >&5
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147 ( exit $ac_status )
23148 libblkid_is_recent=no
23149 fi
23150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23151 fi
23152
23153
23154     LIBS="$saved_LIBS"
23155
23156 fi
23157   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23158 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23159
23160    if test $choose_blkid = yes; then
23161       use_blkid=1
23162       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23163 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23164    else
23165       if test $libblkid_is_recent = yes
23166       then use_blkid=1
23167       else use_blkid=0
23168            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23169 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23170       fi
23171     fi
23172
23173 cat >>confdefs.h <<_ACEOF
23174 #define USE_BLKID $use_blkid
23175 _ACEOF
23176
23177 fi
23178
23179
23180
23181
23182
23183 if test "$enable_gss" = yes; then
23184
23185 for ac_header in nfsidmap.h
23186 do
23187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23189   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192   echo $ECHO_N "(cached) $ECHO_C" >&6
23193 fi
23194 ac_res=`eval echo '${'$as_ac_Header'}'`
23195                { echo "$as_me:$LINENO: result: $ac_res" >&5
23196 echo "${ECHO_T}$ac_res" >&6; }
23197 else
23198   # Is the header compilable?
23199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 $ac_includes_default
23208 #include <$ac_header>
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217   (eval "$ac_compile") 2>conftest.er1
23218   ac_status=$?
23219   grep -v '^ *+' conftest.er1 >conftest.err
23220   rm -f conftest.er1
23221   cat conftest.err >&5
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); } && {
23224          test -z "$ac_c_werror_flag" ||
23225          test ! -s conftest.err
23226        } && test -s conftest.$ac_objext; then
23227   ac_header_compiler=yes
23228 else
23229   echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232         ac_header_compiler=no
23233 fi
23234
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6; }
23238
23239 # Is the header present?
23240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 #include <$ac_header>
23249 _ACEOF
23250 if { (ac_try="$ac_cpp conftest.$ac_ext"
23251 case "(($ac_try" in
23252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253   *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23257   ac_status=$?
23258   grep -v '^ *+' conftest.er1 >conftest.err
23259   rm -f conftest.er1
23260   cat conftest.err >&5
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); } >/dev/null && {
23263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23264          test ! -s conftest.err
23265        }; then
23266   ac_header_preproc=yes
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271   ac_header_preproc=no
23272 fi
23273
23274 rm -f conftest.err conftest.$ac_ext
23275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23276 echo "${ECHO_T}$ac_header_preproc" >&6; }
23277
23278 # So?  What about this header?
23279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23280   yes:no: )
23281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23285     ac_header_preproc=yes
23286     ;;
23287   no:yes:* )
23288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23300     ( cat <<\_ASBOX
23301 ## ------------------------------- ##
23302 ## Report this to nfs@lists.sf.net ##
23303 ## ------------------------------- ##
23304 _ASBOX
23305      ) | sed "s/^/$as_me: WARNING:     /" >&2
23306     ;;
23307 esac
23308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23311   echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313   eval "$as_ac_Header=\$ac_header_preproc"
23314 fi
23315 ac_res=`eval echo '${'$as_ac_Header'}'`
23316                { echo "$as_me:$LINENO: result: $ac_res" >&5
23317 echo "${ECHO_T}$ac_res" >&6; }
23318
23319 fi
23320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23321   cat >>confdefs.h <<_ACEOF
23322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23323 _ACEOF
23324
23325 else
23326   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23327 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23328    { (exit 1); exit 1; }; }
23329 fi
23330
23331 done
23332
23333
23334 for ac_header in spkm3.h
23335 do
23336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23338   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23341   echo $ECHO_N "(cached) $ECHO_C" >&6
23342 fi
23343 ac_res=`eval echo '${'$as_ac_Header'}'`
23344                { echo "$as_me:$LINENO: result: $ac_res" >&5
23345 echo "${ECHO_T}$ac_res" >&6; }
23346 else
23347   # Is the header compilable?
23348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356 $ac_includes_default
23357 #include <$ac_header>
23358 _ACEOF
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363   *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366   (eval "$ac_compile") 2>conftest.er1
23367   ac_status=$?
23368   grep -v '^ *+' conftest.er1 >conftest.err
23369   rm -f conftest.er1
23370   cat conftest.err >&5
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && {
23373          test -z "$ac_c_werror_flag" ||
23374          test ! -s conftest.err
23375        } && test -s conftest.$ac_objext; then
23376   ac_header_compiler=yes
23377 else
23378   echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23380
23381         ac_header_compiler=no
23382 fi
23383
23384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23386 echo "${ECHO_T}$ac_header_compiler" >&6; }
23387
23388 # Is the header present?
23389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 #include <$ac_header>
23398 _ACEOF
23399 if { (ac_try="$ac_cpp conftest.$ac_ext"
23400 case "(($ac_try" in
23401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402   *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23406   ac_status=$?
23407   grep -v '^ *+' conftest.er1 >conftest.err
23408   rm -f conftest.er1
23409   cat conftest.err >&5
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); } >/dev/null && {
23412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23413          test ! -s conftest.err
23414        }; then
23415   ac_header_preproc=yes
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420   ac_header_preproc=no
23421 fi
23422
23423 rm -f conftest.err conftest.$ac_ext
23424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23425 echo "${ECHO_T}$ac_header_preproc" >&6; }
23426
23427 # So?  What about this header?
23428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23429   yes:no: )
23430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23434     ac_header_preproc=yes
23435     ;;
23436   no:yes:* )
23437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23449     ( cat <<\_ASBOX
23450 ## ------------------------------- ##
23451 ## Report this to nfs@lists.sf.net ##
23452 ## ------------------------------- ##
23453 _ASBOX
23454      ) | sed "s/^/$as_me: WARNING:     /" >&2
23455     ;;
23456 esac
23457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460   echo $ECHO_N "(cached) $ECHO_C" >&6
23461 else
23462   eval "$as_ac_Header=\$ac_header_preproc"
23463 fi
23464 ac_res=`eval echo '${'$as_ac_Header'}'`
23465                { echo "$as_me:$LINENO: result: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23467
23468 fi
23469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23470   cat >>confdefs.h <<_ACEOF
23471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23472 _ACEOF
23473
23474 else
23475   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23476 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23477 fi
23478
23479 done
23480
23481     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23482 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23483 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23484   echo $ECHO_N "(cached) $ECHO_C" >&6
23485 else
23486   ac_check_lib_save_LIBS=$LIBS
23487 LIBS="-lnfsidmap  $LIBS"
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h.  */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h.  */
23494
23495 /* Override any GCC internal prototype to avoid an error.
23496    Use char because int might match the return type of a GCC
23497    builtin and then its argument prototype would still apply.  */
23498 #ifdef __cplusplus
23499 extern "C"
23500 #endif
23501 char nfs4_set_debug ();
23502 int
23503 main ()
23504 {
23505 return nfs4_set_debug ();
23506   ;
23507   return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514   *) ac_try_echo=$ac_try;;
23515 esac
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517   (eval "$ac_link") 2>conftest.er1
23518   ac_status=$?
23519   grep -v '^ *+' conftest.er1 >conftest.err
23520   rm -f conftest.er1
23521   cat conftest.err >&5
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); } && {
23524          test -z "$ac_c_werror_flag" ||
23525          test ! -s conftest.err
23526        } && test -s conftest$ac_exeext &&
23527        $as_test_x conftest$ac_exeext; then
23528   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23534 fi
23535
23536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23537       conftest$ac_exeext conftest.$ac_ext
23538 LIBS=$ac_check_lib_save_LIBS
23539 fi
23540 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23541 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23542 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23543
23544 cat >>confdefs.h <<\_ACEOF
23545 #define HAVE_NFS4_SET_DEBUG 1
23546 _ACEOF
23547
23548 fi
23549
23550
23551
23552   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23553 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23554
23555 # Check whether --with-krb5 was given.
23556 if test "${with_krb5+set}" = set; then
23557   withval=$with_krb5;  case "$withval" in
23558     yes|no)
23559        krb5_with=""
23560        ;;
23561     *)
23562        krb5_with="$withval"
23563        ;;
23564     esac
23565
23566 fi
23567
23568
23569   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23570              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23571             K5CONFIG=""
23572     if test -f $dir/bin/krb5-config; then
23573       K5CONFIG=$dir/bin/krb5-config
23574     elif test -f "/usr/kerberos/bin/krb5-config"; then
23575       K5CONFIG="/usr/kerberos/bin/krb5-config"
23576     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23577       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23578     fi
23579     if test "$K5CONFIG" != ""; then
23580       KRBCFLAGS=`$K5CONFIG --cflags`
23581       KRBLIBS=`$K5CONFIG --libs gssapi`
23582       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23583
23584 cat >>confdefs.h <<_ACEOF
23585 #define KRB5_VERSION $K5VERS
23586 _ACEOF
23587
23588       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23589                 \( -f $dir/lib/libgssapi_krb5.a -o \
23590                    -f $dir/lib64/libgssapi_krb5.a -o \
23591                    -f $dir/lib64/libgssapi_krb5.so -o \
23592                    -f $dir/lib/libgssapi_krb5.so \) ; then
23593
23594 cat >>confdefs.h <<\_ACEOF
23595 #define HAVE_KRB5 1
23596 _ACEOF
23597
23598          KRBDIR="$dir"
23599                      if test $K5VERS -le 131; then
23600
23601 cat >>confdefs.h <<\_ACEOF
23602 #define USE_GSS_KRB5_CCACHE_NAME 1
23603 _ACEOF
23604
23605          fi
23606          gssapi_lib=gssapi_krb5
23607          break
23608                   elif test \( -f $dir/include/heim_err.h -o\
23609                  -f $dir/include/heimdal/heim_err.h \) -a \
23610                 -f $dir/lib/libroken.a; then
23611
23612 cat >>confdefs.h <<\_ACEOF
23613 #define HAVE_HEIMDAL 1
23614 _ACEOF
23615
23616          KRBDIR="$dir"
23617          gssapi_lib=gssapi
23618         break
23619       fi
23620     fi
23621   done
23622     if test "x$KRBDIR" = "x"; then
23623     if test "x$krb5_with" = "x"; then
23624       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23625 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23626    { (exit 1); exit 1; }; }
23627     else
23628       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23629 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23630    { (exit 1); exit 1; }; }
23631     fi
23632   fi
23633   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23634 echo "${ECHO_T}$KRBDIR" >&6; }
23635
23636     echo "The current KRBDIR is $KRBDIR"
23637   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23638        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23639     KRBLDFLAGS="";
23640   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23641     KRBLDFLAGS="";
23642   else
23643     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23644   fi
23645
23646     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23647 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23648 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23649 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   ac_check_lib_save_LIBS=$LIBS
23653 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660
23661 /* Override any GCC internal prototype to avoid an error.
23662    Use char because int might match the return type of a GCC
23663    builtin and then its argument prototype would still apply.  */
23664 #ifdef __cplusplus
23665 extern "C"
23666 #endif
23667 char gss_krb5_export_lucid_sec_context ();
23668 int
23669 main ()
23670 {
23671 return gss_krb5_export_lucid_sec_context ();
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680   *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683   (eval "$ac_link") 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } && {
23690          test -z "$ac_c_werror_flag" ||
23691          test ! -s conftest.err
23692        } && test -s conftest$ac_exeext &&
23693        $as_test_x conftest$ac_exeext; then
23694   eval "$as_ac_Lib=yes"
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         eval "$as_ac_Lib=no"
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703       conftest$ac_exeext conftest.$ac_ext
23704 LIBS=$ac_check_lib_save_LIBS
23705 fi
23706 ac_res=`eval echo '${'$as_ac_Lib'}'`
23707                { echo "$as_me:$LINENO: result: $ac_res" >&5
23708 echo "${ECHO_T}$ac_res" >&6; }
23709 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23710
23711 cat >>confdefs.h <<\_ACEOF
23712 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23713 _ACEOF
23714
23715 fi
23716
23717   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23718 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23719 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23720 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   ac_check_lib_save_LIBS=$LIBS
23724 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23725 cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731
23732 /* Override any GCC internal prototype to avoid an error.
23733    Use char because int might match the return type of a GCC
23734    builtin and then its argument prototype would still apply.  */
23735 #ifdef __cplusplus
23736 extern "C"
23737 #endif
23738 char gss_krb5_set_allowable_enctypes ();
23739 int
23740 main ()
23741 {
23742 return gss_krb5_set_allowable_enctypes ();
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_link") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest$ac_exeext &&
23764        $as_test_x conftest$ac_exeext; then
23765   eval "$as_ac_Lib=yes"
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770         eval "$as_ac_Lib=no"
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774       conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23776 fi
23777 ac_res=`eval echo '${'$as_ac_Lib'}'`
23778                { echo "$as_me:$LINENO: result: $ac_res" >&5
23779 echo "${ECHO_T}$ac_res" >&6; }
23780 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23781
23782 cat >>confdefs.h <<\_ACEOF
23783 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23784 _ACEOF
23785
23786 fi
23787
23788   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23789 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23790 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23791 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   ac_check_lib_save_LIBS=$LIBS
23795 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802
23803 /* Override any GCC internal prototype to avoid an error.
23804    Use char because int might match the return type of a GCC
23805    builtin and then its argument prototype would still apply.  */
23806 #ifdef __cplusplus
23807 extern "C"
23808 #endif
23809 char gss_krb5_ccache_name ();
23810 int
23811 main ()
23812 {
23813 return gss_krb5_ccache_name ();
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822   *) ac_try_echo=$ac_try;;
23823 esac
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825   (eval "$ac_link") 2>conftest.er1
23826   ac_status=$?
23827   grep -v '^ *+' conftest.er1 >conftest.err
23828   rm -f conftest.er1
23829   cat conftest.err >&5
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); } && {
23832          test -z "$ac_c_werror_flag" ||
23833          test ! -s conftest.err
23834        } && test -s conftest$ac_exeext &&
23835        $as_test_x conftest$ac_exeext; then
23836   eval "$as_ac_Lib=yes"
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841         eval "$as_ac_Lib=no"
23842 fi
23843
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845       conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 ac_res=`eval echo '${'$as_ac_Lib'}'`
23849                { echo "$as_me:$LINENO: result: $ac_res" >&5
23850 echo "${ECHO_T}$ac_res" >&6; }
23851 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23852
23853 cat >>confdefs.h <<\_ACEOF
23854 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23855 _ACEOF
23856
23857 fi
23858
23859
23860     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23861 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23862 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23863 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23864   echo $ECHO_N "(cached) $ECHO_C" >&6
23865 else
23866   ac_check_lib_save_LIBS=$LIBS
23867 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23868 cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874
23875 /* Override any GCC internal prototype to avoid an error.
23876    Use char because int might match the return type of a GCC
23877    builtin and then its argument prototype would still apply.  */
23878 #ifdef __cplusplus
23879 extern "C"
23880 #endif
23881 char krb5_get_error_message ();
23882 int
23883 main ()
23884 {
23885 return krb5_get_error_message ();
23886   ;
23887   return 0;
23888 }
23889 _ACEOF
23890 rm -f conftest.$ac_objext conftest$ac_exeext
23891 if { (ac_try="$ac_link"
23892 case "(($ac_try" in
23893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894   *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897   (eval "$ac_link") 2>conftest.er1
23898   ac_status=$?
23899   grep -v '^ *+' conftest.er1 >conftest.err
23900   rm -f conftest.er1
23901   cat conftest.err >&5
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); } && {
23904          test -z "$ac_c_werror_flag" ||
23905          test ! -s conftest.err
23906        } && test -s conftest$ac_exeext &&
23907        $as_test_x conftest$ac_exeext; then
23908   eval "$as_ac_Lib=yes"
23909 else
23910   echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23912
23913         eval "$as_ac_Lib=no"
23914 fi
23915
23916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23917       conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23919 fi
23920 ac_res=`eval echo '${'$as_ac_Lib'}'`
23921                { echo "$as_me:$LINENO: result: $ac_res" >&5
23922 echo "${ECHO_T}$ac_res" >&6; }
23923 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23924
23925 cat >>confdefs.h <<\_ACEOF
23926 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23927 _ACEOF
23928
23929 fi
23930
23931
23932     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23933 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23934 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23935 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938   ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946
23947 /* Override any GCC internal prototype to avoid an error.
23948    Use char because int might match the return type of a GCC
23949    builtin and then its argument prototype would still apply.  */
23950 #ifdef __cplusplus
23951 extern "C"
23952 #endif
23953 char krb5_get_init_creds_opt_set_addressless ();
23954 int
23955 main ()
23956 {
23957 return krb5_get_init_creds_opt_set_addressless ();
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_link") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_c_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest$ac_exeext &&
23979        $as_test_x conftest$ac_exeext; then
23980   eval "$as_ac_Lib=yes"
23981 else
23982   echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23984
23985         eval "$as_ac_Lib=no"
23986 fi
23987
23988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23989       conftest$ac_exeext conftest.$ac_ext
23990 LIBS=$ac_check_lib_save_LIBS
23991 fi
23992 ac_res=`eval echo '${'$as_ac_Lib'}'`
23993                { echo "$as_me:$LINENO: result: $ac_res" >&5
23994 echo "${ECHO_T}$ac_res" >&6; }
23995 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23996
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
23999 _ACEOF
24000
24001 fi
24002
24003
24004     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24005     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24006 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24007   fi
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24018 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24019 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24020   echo $ECHO_N "(cached) $ECHO_C" >&6
24021 else
24022   ac_check_lib_save_LIBS=$LIBS
24023 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030
24031 /* Override any GCC internal prototype to avoid an error.
24032    Use char because int might match the return type of a GCC
24033    builtin and then its argument prototype would still apply.  */
24034 #ifdef __cplusplus
24035 extern "C"
24036 #endif
24037 char authgss_create_default ();
24038 int
24039 main ()
24040 {
24041 return authgss_create_default ();
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext conftest$ac_exeext
24047 if { (ac_try="$ac_link"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_link") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_c_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest$ac_exeext &&
24063        $as_test_x conftest$ac_exeext; then
24064   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24065 else
24066   echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068
24069         ac_cv_lib_rpcsecgss_authgss_create_default=no
24070 fi
24071
24072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073       conftest$ac_exeext conftest.$ac_ext
24074 LIBS=$ac_check_lib_save_LIBS
24075 fi
24076 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24077 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24078 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24079   librpcsecgss=1
24080 else
24081   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24082 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24083    { (exit 1); exit 1; }; }
24084 fi
24085
24086   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24087 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24088 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091   ac_check_lib_save_LIBS=$LIBS
24092 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24093 cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24099
24100 /* Override any GCC internal prototype to avoid an error.
24101    Use char because int might match the return type of a GCC
24102    builtin and then its argument prototype would still apply.  */
24103 #ifdef __cplusplus
24104 extern "C"
24105 #endif
24106 char authgss_set_debug_level ();
24107 int
24108 main ()
24109 {
24110 return authgss_set_debug_level ();
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_link") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } && {
24129          test -z "$ac_c_werror_flag" ||
24130          test ! -s conftest.err
24131        } && test -s conftest$ac_exeext &&
24132        $as_test_x conftest$ac_exeext; then
24133   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24134 else
24135   echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24139 fi
24140
24141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24142       conftest$ac_exeext conftest.$ac_ext
24143 LIBS=$ac_check_lib_save_LIBS
24144 fi
24145 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24146 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24147 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24148
24149 cat >>confdefs.h <<\_ACEOF
24150 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24151 _ACEOF
24152
24153 fi
24154
24155
24156 fi
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24182                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24183                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24184                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24185                  syslog.h unistd.h com_err.h et/com_err.h \
24186                  ifaddrs.h
24187 do
24188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24193   echo $ECHO_N "(cached) $ECHO_C" >&6
24194 fi
24195 ac_res=`eval echo '${'$as_ac_Header'}'`
24196                { echo "$as_me:$LINENO: result: $ac_res" >&5
24197 echo "${ECHO_T}$ac_res" >&6; }
24198 else
24199   # Is the header compilable?
24200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24202 cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208 $ac_includes_default
24209 #include <$ac_header>
24210 _ACEOF
24211 rm -f conftest.$ac_objext
24212 if { (ac_try="$ac_compile"
24213 case "(($ac_try" in
24214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215   *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218   (eval "$ac_compile") 2>conftest.er1
24219   ac_status=$?
24220   grep -v '^ *+' conftest.er1 >conftest.err
24221   rm -f conftest.er1
24222   cat conftest.err >&5
24223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224   (exit $ac_status); } && {
24225          test -z "$ac_c_werror_flag" ||
24226          test ! -s conftest.err
24227        } && test -s conftest.$ac_objext; then
24228   ac_header_compiler=yes
24229 else
24230   echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24232
24233         ac_header_compiler=no
24234 fi
24235
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24238 echo "${ECHO_T}$ac_header_compiler" >&6; }
24239
24240 # Is the header present?
24241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24243 cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h.  */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h.  */
24249 #include <$ac_header>
24250 _ACEOF
24251 if { (ac_try="$ac_cpp conftest.$ac_ext"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } >/dev/null && {
24264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24265          test ! -s conftest.err
24266        }; then
24267   ac_header_preproc=yes
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272   ac_header_preproc=no
24273 fi
24274
24275 rm -f conftest.err conftest.$ac_ext
24276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24277 echo "${ECHO_T}$ac_header_preproc" >&6; }
24278
24279 # So?  What about this header?
24280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24281   yes:no: )
24282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24286     ac_header_preproc=yes
24287     ;;
24288   no:yes:* )
24289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24301     ( cat <<\_ASBOX
24302 ## ------------------------------- ##
24303 ## Report this to nfs@lists.sf.net ##
24304 ## ------------------------------- ##
24305 _ASBOX
24306      ) | sed "s/^/$as_me: WARNING:     /" >&2
24307     ;;
24308 esac
24309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312   echo $ECHO_N "(cached) $ECHO_C" >&6
24313 else
24314   eval "$as_ac_Header=\$ac_header_preproc"
24315 fi
24316 ac_res=`eval echo '${'$as_ac_Header'}'`
24317                { echo "$as_me:$LINENO: result: $ac_res" >&5
24318 echo "${ECHO_T}$ac_res" >&6; }
24319
24320 fi
24321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24322   cat >>confdefs.h <<_ACEOF
24323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24324 _ACEOF
24325
24326 fi
24327
24328 done
24329
24330
24331 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24332 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24333 if test "${ac_cv_c_const+set}" = set; then
24334   echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336   cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h.  */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h.  */
24342
24343 int
24344 main ()
24345 {
24346 /* FIXME: Include the comments suggested by Paul. */
24347 #ifndef __cplusplus
24348   /* Ultrix mips cc rejects this.  */
24349   typedef int charset[2];
24350   const charset cs;
24351   /* SunOS 4.1.1 cc rejects this.  */
24352   char const *const *pcpcc;
24353   char **ppc;
24354   /* NEC SVR4.0.2 mips cc rejects this.  */
24355   struct point {int x, y;};
24356   static struct point const zero = {0,0};
24357   /* AIX XL C 1.02.0.0 rejects this.
24358      It does not let you subtract one const X* pointer from another in
24359      an arm of an if-expression whose if-part is not a constant
24360      expression */
24361   const char *g = "string";
24362   pcpcc = &g + (g ? g-g : 0);
24363   /* HPUX 7.0 cc rejects these. */
24364   ++pcpcc;
24365   ppc = (char**) pcpcc;
24366   pcpcc = (char const *const *) ppc;
24367   { /* SCO 3.2v4 cc rejects this.  */
24368     char *t;
24369     char const *s = 0 ? (char *) 0 : (char const *) 0;
24370
24371     *t++ = 0;
24372     if (s) return 0;
24373   }
24374   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24375     int x[] = {25, 17};
24376     const int *foo = &x[0];
24377     ++foo;
24378   }
24379   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24380     typedef const int *iptr;
24381     iptr p = 0;
24382     ++p;
24383   }
24384   { /* AIX XL C 1.02.0.0 rejects this saying
24385        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24386     struct s { int j; const int *ap[3]; };
24387     struct s *b; b->j = 5;
24388   }
24389   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24390     const int foo = 10;
24391     if (!foo) return 0;
24392   }
24393   return !cs[0] && !zero.x;
24394 #endif
24395
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_compile") 2>conftest.er1
24408   ac_status=$?
24409   grep -v '^ *+' conftest.er1 >conftest.err
24410   rm -f conftest.er1
24411   cat conftest.err >&5
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } && {
24414          test -z "$ac_c_werror_flag" ||
24415          test ! -s conftest.err
24416        } && test -s conftest.$ac_objext; then
24417   ac_cv_c_const=yes
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422         ac_cv_c_const=no
24423 fi
24424
24425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24426 fi
24427 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24428 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24429 if test $ac_cv_c_const = no; then
24430
24431 cat >>confdefs.h <<\_ACEOF
24432 #define const
24433 _ACEOF
24434
24435 fi
24436
24437 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24439 if test "${ac_cv_type_uid_t+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442   cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h.  */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h.  */
24448 #include <sys/types.h>
24449
24450 _ACEOF
24451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24452   $EGREP "uid_t" >/dev/null 2>&1; then
24453   ac_cv_type_uid_t=yes
24454 else
24455   ac_cv_type_uid_t=no
24456 fi
24457 rm -f conftest*
24458
24459 fi
24460 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24461 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24462 if test $ac_cv_type_uid_t = no; then
24463
24464 cat >>confdefs.h <<\_ACEOF
24465 #define uid_t int
24466 _ACEOF
24467
24468
24469 cat >>confdefs.h <<\_ACEOF
24470 #define gid_t int
24471 _ACEOF
24472
24473 fi
24474
24475 { echo "$as_me:$LINENO: checking for inline" >&5
24476 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24477 if test "${ac_cv_c_inline+set}" = set; then
24478   echo $ECHO_N "(cached) $ECHO_C" >&6
24479 else
24480   ac_cv_c_inline=no
24481 for ac_kw in inline __inline__ __inline; do
24482   cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488 #ifndef __cplusplus
24489 typedef int foo_t;
24490 static $ac_kw foo_t static_foo () {return 0; }
24491 $ac_kw foo_t foo () {return 0; }
24492 #endif
24493
24494 _ACEOF
24495 rm -f conftest.$ac_objext
24496 if { (ac_try="$ac_compile"
24497 case "(($ac_try" in
24498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499   *) ac_try_echo=$ac_try;;
24500 esac
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502   (eval "$ac_compile") 2>conftest.er1
24503   ac_status=$?
24504   grep -v '^ *+' conftest.er1 >conftest.err
24505   rm -f conftest.er1
24506   cat conftest.err >&5
24507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508   (exit $ac_status); } && {
24509          test -z "$ac_c_werror_flag" ||
24510          test ! -s conftest.err
24511        } && test -s conftest.$ac_objext; then
24512   ac_cv_c_inline=$ac_kw
24513 else
24514   echo "$as_me: failed program was:" >&5
24515 sed 's/^/| /' conftest.$ac_ext >&5
24516
24517
24518 fi
24519
24520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24521   test "$ac_cv_c_inline" != no && break
24522 done
24523
24524 fi
24525 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24526 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24527
24528
24529 case $ac_cv_c_inline in
24530   inline | yes) ;;
24531   *)
24532     case $ac_cv_c_inline in
24533       no) ac_val=;;
24534       *) ac_val=$ac_cv_c_inline;;
24535     esac
24536     cat >>confdefs.h <<_ACEOF
24537 #ifndef __cplusplus
24538 #define inline $ac_val
24539 #endif
24540 _ACEOF
24541     ;;
24542 esac
24543
24544 { echo "$as_me:$LINENO: checking for off_t" >&5
24545 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24546 if test "${ac_cv_type_off_t+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 $ac_includes_default
24556 typedef off_t ac__type_new_;
24557 int
24558 main ()
24559 {
24560 if ((ac__type_new_ *) 0)
24561   return 0;
24562 if (sizeof (ac__type_new_))
24563   return 0;
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575   (eval "$ac_compile") 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } && {
24582          test -z "$ac_c_werror_flag" ||
24583          test ! -s conftest.err
24584        } && test -s conftest.$ac_objext; then
24585   ac_cv_type_off_t=yes
24586 else
24587   echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24589
24590         ac_cv_type_off_t=no
24591 fi
24592
24593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594 fi
24595 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24596 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24597 if test $ac_cv_type_off_t = yes; then
24598   :
24599 else
24600
24601 cat >>confdefs.h <<_ACEOF
24602 #define off_t long int
24603 _ACEOF
24604
24605 fi
24606
24607 { echo "$as_me:$LINENO: checking for pid_t" >&5
24608 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24609 if test "${ac_cv_type_pid_t+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612   cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 $ac_includes_default
24619 typedef pid_t ac__type_new_;
24620 int
24621 main ()
24622 {
24623 if ((ac__type_new_ *) 0)
24624   return 0;
24625 if (sizeof (ac__type_new_))
24626   return 0;
24627   ;
24628   return 0;
24629 }
24630 _ACEOF
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635   *) ac_try_echo=$ac_try;;
24636 esac
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638   (eval "$ac_compile") 2>conftest.er1
24639   ac_status=$?
24640   grep -v '^ *+' conftest.er1 >conftest.err
24641   rm -f conftest.er1
24642   cat conftest.err >&5
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } && {
24645          test -z "$ac_c_werror_flag" ||
24646          test ! -s conftest.err
24647        } && test -s conftest.$ac_objext; then
24648   ac_cv_type_pid_t=yes
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         ac_cv_type_pid_t=no
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 fi
24658 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24659 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24660 if test $ac_cv_type_pid_t = yes; then
24661   :
24662 else
24663
24664 cat >>confdefs.h <<_ACEOF
24665 #define pid_t int
24666 _ACEOF
24667
24668 fi
24669
24670 { echo "$as_me:$LINENO: checking for size_t" >&5
24671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24672 if test "${ac_cv_type_size_t+set}" = set; then
24673   echo $ECHO_N "(cached) $ECHO_C" >&6
24674 else
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 $ac_includes_default
24682 typedef size_t ac__type_new_;
24683 int
24684 main ()
24685 {
24686 if ((ac__type_new_ *) 0)
24687   return 0;
24688 if (sizeof (ac__type_new_))
24689   return 0;
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 rm -f conftest.$ac_objext
24695 if { (ac_try="$ac_compile"
24696 case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_compile") 2>conftest.er1
24702   ac_status=$?
24703   grep -v '^ *+' conftest.er1 >conftest.err
24704   rm -f conftest.er1
24705   cat conftest.err >&5
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); } && {
24708          test -z "$ac_c_werror_flag" ||
24709          test ! -s conftest.err
24710        } && test -s conftest.$ac_objext; then
24711   ac_cv_type_size_t=yes
24712 else
24713   echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716         ac_cv_type_size_t=no
24717 fi
24718
24719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24720 fi
24721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24723 if test $ac_cv_type_size_t = yes; then
24724   :
24725 else
24726
24727 cat >>confdefs.h <<_ACEOF
24728 #define size_t unsigned int
24729 _ACEOF
24730
24731 fi
24732
24733 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24735 if test "${ac_cv_header_time+set}" = set; then
24736   echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738   cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h.  */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h.  */
24744 #include <sys/types.h>
24745 #include <sys/time.h>
24746 #include <time.h>
24747
24748 int
24749 main ()
24750 {
24751 if ((struct tm *) 0)
24752 return 0;
24753   ;
24754   return 0;
24755 }
24756 _ACEOF
24757 rm -f conftest.$ac_objext
24758 if { (ac_try="$ac_compile"
24759 case "(($ac_try" in
24760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761   *) ac_try_echo=$ac_try;;
24762 esac
24763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764   (eval "$ac_compile") 2>conftest.er1
24765   ac_status=$?
24766   grep -v '^ *+' conftest.er1 >conftest.err
24767   rm -f conftest.er1
24768   cat conftest.err >&5
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); } && {
24771          test -z "$ac_c_werror_flag" ||
24772          test ! -s conftest.err
24773        } && test -s conftest.$ac_objext; then
24774   ac_cv_header_time=yes
24775 else
24776   echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779         ac_cv_header_time=no
24780 fi
24781
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 fi
24784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24786 if test $ac_cv_header_time = yes; then
24787
24788 cat >>confdefs.h <<\_ACEOF
24789 #define TIME_WITH_SYS_TIME 1
24790 _ACEOF
24791
24792 fi
24793
24794 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24795 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24796 if test "${ac_cv_struct_tm+set}" = set; then
24797   echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799   cat >conftest.$ac_ext <<_ACEOF
24800 /* confdefs.h.  */
24801 _ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h.  */
24805 #include <sys/types.h>
24806 #include <time.h>
24807
24808 int
24809 main ()
24810 {
24811 struct tm tm;
24812                                      int *p = &tm.tm_sec;
24813                                      return !p;
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822   *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825   (eval "$ac_compile") 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && {
24832          test -z "$ac_c_werror_flag" ||
24833          test ! -s conftest.err
24834        } && test -s conftest.$ac_objext; then
24835   ac_cv_struct_tm=time.h
24836 else
24837   echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840         ac_cv_struct_tm=sys/time.h
24841 fi
24842
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844 fi
24845 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24846 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24847 if test $ac_cv_struct_tm = sys/time.h; then
24848
24849 cat >>confdefs.h <<\_ACEOF
24850 #define TM_IN_SYS_TIME 1
24851 _ACEOF
24852
24853 fi
24854
24855
24856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24857 # for constant arguments.  Useless!
24858 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24860 if test "${ac_cv_working_alloca_h+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 #include <alloca.h>
24870 int
24871 main ()
24872 {
24873 char *p = (char *) alloca (2 * sizeof (int));
24874                           if (p) return 0;
24875   ;
24876   return 0;
24877 }
24878 _ACEOF
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (ac_try="$ac_link"
24881 case "(($ac_try" in
24882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883   *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886   (eval "$ac_link") 2>conftest.er1
24887   ac_status=$?
24888   grep -v '^ *+' conftest.er1 >conftest.err
24889   rm -f conftest.er1
24890   cat conftest.err >&5
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } && {
24893          test -z "$ac_c_werror_flag" ||
24894          test ! -s conftest.err
24895        } && test -s conftest$ac_exeext &&
24896        $as_test_x conftest$ac_exeext; then
24897   ac_cv_working_alloca_h=yes
24898 else
24899   echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902         ac_cv_working_alloca_h=no
24903 fi
24904
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906       conftest$ac_exeext conftest.$ac_ext
24907 fi
24908 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24909 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24910 if test $ac_cv_working_alloca_h = yes; then
24911
24912 cat >>confdefs.h <<\_ACEOF
24913 #define HAVE_ALLOCA_H 1
24914 _ACEOF
24915
24916 fi
24917
24918 { echo "$as_me:$LINENO: checking for alloca" >&5
24919 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24920 if test "${ac_cv_func_alloca_works+set}" = set; then
24921   echo $ECHO_N "(cached) $ECHO_C" >&6
24922 else
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 #ifdef __GNUC__
24930 # define alloca __builtin_alloca
24931 #else
24932 # ifdef _MSC_VER
24933 #  include <malloc.h>
24934 #  define alloca _alloca
24935 # else
24936 #  ifdef HAVE_ALLOCA_H
24937 #   include <alloca.h>
24938 #  else
24939 #   ifdef _AIX
24940  #pragma alloca
24941 #   else
24942 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24943 char *alloca ();
24944 #    endif
24945 #   endif
24946 #  endif
24947 # endif
24948 #endif
24949
24950 int
24951 main ()
24952 {
24953 char *p = (char *) alloca (1);
24954                                     if (p) return 0;
24955   ;
24956   return 0;
24957 }
24958 _ACEOF
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (ac_try="$ac_link"
24961 case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966   (eval "$ac_link") 2>conftest.er1
24967   ac_status=$?
24968   grep -v '^ *+' conftest.er1 >conftest.err
24969   rm -f conftest.er1
24970   cat conftest.err >&5
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); } && {
24973          test -z "$ac_c_werror_flag" ||
24974          test ! -s conftest.err
24975        } && test -s conftest$ac_exeext &&
24976        $as_test_x conftest$ac_exeext; then
24977   ac_cv_func_alloca_works=yes
24978 else
24979   echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982         ac_cv_func_alloca_works=no
24983 fi
24984
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986       conftest$ac_exeext conftest.$ac_ext
24987 fi
24988 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24989 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24990
24991 if test $ac_cv_func_alloca_works = yes; then
24992
24993 cat >>confdefs.h <<\_ACEOF
24994 #define HAVE_ALLOCA 1
24995 _ACEOF
24996
24997 else
24998   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24999 # that cause trouble.  Some versions do not even contain alloca or
25000 # contain a buggy version.  If you still want to use their alloca,
25001 # use ar to extract alloca.o from them instead of compiling alloca.c.
25002
25003 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25004
25005 cat >>confdefs.h <<\_ACEOF
25006 #define C_ALLOCA 1
25007 _ACEOF
25008
25009
25010 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25011 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25012 if test "${ac_cv_os_cray+set}" = set; then
25013   echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015   cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 #if defined CRAY && ! defined CRAY2
25022 webecray
25023 #else
25024 wenotbecray
25025 #endif
25026
25027 _ACEOF
25028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25029   $EGREP "webecray" >/dev/null 2>&1; then
25030   ac_cv_os_cray=yes
25031 else
25032   ac_cv_os_cray=no
25033 fi
25034 rm -f conftest*
25035
25036 fi
25037 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25038 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25039 if test $ac_cv_os_cray = yes; then
25040   for ac_func in _getb67 GETB67 getb67; do
25041     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25045   echo $ECHO_N "(cached) $ECHO_C" >&6
25046 else
25047   cat >conftest.$ac_ext <<_ACEOF
25048 /* confdefs.h.  */
25049 _ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h.  */
25053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25055 #define $ac_func innocuous_$ac_func
25056
25057 /* System header to define __stub macros and hopefully few prototypes,
25058     which can conflict with char $ac_func (); below.
25059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25060     <limits.h> exists even on freestanding compilers.  */
25061
25062 #ifdef __STDC__
25063 # include <limits.h>
25064 #else
25065 # include <assert.h>
25066 #endif
25067
25068 #undef $ac_func
25069
25070 /* Override any GCC internal prototype to avoid an error.
25071    Use char because int might match the return type of a GCC
25072    builtin and then its argument prototype would still apply.  */
25073 #ifdef __cplusplus
25074 extern "C"
25075 #endif
25076 char $ac_func ();
25077 /* The GNU C library defines this for functions which it implements
25078     to always fail with ENOSYS.  Some functions are actually named
25079     something starting with __ and the normal name is an alias.  */
25080 #if defined __stub_$ac_func || defined __stub___$ac_func
25081 choke me
25082 #endif
25083
25084 int
25085 main ()
25086 {
25087 return $ac_func ();
25088   ;
25089   return 0;
25090 }
25091 _ACEOF
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096   *) ac_try_echo=$ac_try;;
25097 esac
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099   (eval "$ac_link") 2>conftest.er1
25100   ac_status=$?
25101   grep -v '^ *+' conftest.er1 >conftest.err
25102   rm -f conftest.er1
25103   cat conftest.err >&5
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); } && {
25106          test -z "$ac_c_werror_flag" ||
25107          test ! -s conftest.err
25108        } && test -s conftest$ac_exeext &&
25109        $as_test_x conftest$ac_exeext; then
25110   eval "$as_ac_var=yes"
25111 else
25112   echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115         eval "$as_ac_var=no"
25116 fi
25117
25118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25119       conftest$ac_exeext conftest.$ac_ext
25120 fi
25121 ac_res=`eval echo '${'$as_ac_var'}'`
25122                { echo "$as_me:$LINENO: result: $ac_res" >&5
25123 echo "${ECHO_T}$ac_res" >&6; }
25124 if test `eval echo '${'$as_ac_var'}'` = yes; then
25125
25126 cat >>confdefs.h <<_ACEOF
25127 #define CRAY_STACKSEG_END $ac_func
25128 _ACEOF
25129
25130     break
25131 fi
25132
25133   done
25134 fi
25135
25136 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25137 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25138 if test "${ac_cv_c_stack_direction+set}" = set; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141   if test "$cross_compiling" = yes; then
25142   ac_cv_c_stack_direction=0
25143 else
25144   cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h.  */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h.  */
25150 $ac_includes_default
25151 int
25152 find_stack_direction ()
25153 {
25154   static char *addr = 0;
25155   auto char dummy;
25156   if (addr == 0)
25157     {
25158       addr = &dummy;
25159       return find_stack_direction ();
25160     }
25161   else
25162     return (&dummy > addr) ? 1 : -1;
25163 }
25164
25165 int
25166 main ()
25167 {
25168   return find_stack_direction () < 0;
25169 }
25170 _ACEOF
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178   (eval "$ac_link") 2>&5
25179   ac_status=$?
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182   { (case "(($ac_try" in
25183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184   *) ac_try_echo=$ac_try;;
25185 esac
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187   (eval "$ac_try") 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; }; then
25191   ac_cv_c_stack_direction=1
25192 else
25193   echo "$as_me: program exited with status $ac_status" >&5
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197 ( exit $ac_status )
25198 ac_cv_c_stack_direction=-1
25199 fi
25200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25201 fi
25202
25203
25204 fi
25205 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25206 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25207
25208 cat >>confdefs.h <<_ACEOF
25209 #define STACK_DIRECTION $ac_cv_c_stack_direction
25210 _ACEOF
25211
25212
25213 fi
25214
25215
25216
25217
25218
25219
25220 ac_header_dirent=no
25221 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25222   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25223 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25224 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25226   echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228   cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h.  */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h.  */
25234 #include <sys/types.h>
25235 #include <$ac_hdr>
25236
25237 int
25238 main ()
25239 {
25240 if ((DIR *) 0)
25241 return 0;
25242   ;
25243   return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250   *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253   (eval "$ac_compile") 2>conftest.er1
25254   ac_status=$?
25255   grep -v '^ *+' conftest.er1 >conftest.err
25256   rm -f conftest.er1
25257   cat conftest.err >&5
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); } && {
25260          test -z "$ac_c_werror_flag" ||
25261          test ! -s conftest.err
25262        } && test -s conftest.$ac_objext; then
25263   eval "$as_ac_Header=yes"
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268         eval "$as_ac_Header=no"
25269 fi
25270
25271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25272 fi
25273 ac_res=`eval echo '${'$as_ac_Header'}'`
25274                { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25277   cat >>confdefs.h <<_ACEOF
25278 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25279 _ACEOF
25280
25281 ac_header_dirent=$ac_hdr; break
25282 fi
25283
25284 done
25285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25286 if test $ac_header_dirent = dirent.h; then
25287   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25289 if test "${ac_cv_search_opendir+set}" = set; then
25290   echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292   ac_func_search_save_LIBS=$LIBS
25293 cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299
25300 /* Override any GCC internal prototype to avoid an error.
25301    Use char because int might match the return type of a GCC
25302    builtin and then its argument prototype would still apply.  */
25303 #ifdef __cplusplus
25304 extern "C"
25305 #endif
25306 char opendir ();
25307 int
25308 main ()
25309 {
25310 return opendir ();
25311   ;
25312   return 0;
25313 }
25314 _ACEOF
25315 for ac_lib in '' dir; do
25316   if test -z "$ac_lib"; then
25317     ac_res="none required"
25318   else
25319     ac_res=-l$ac_lib
25320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25321   fi
25322   rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326   *) ac_try_echo=$ac_try;;
25327 esac
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329   (eval "$ac_link") 2>conftest.er1
25330   ac_status=$?
25331   grep -v '^ *+' conftest.er1 >conftest.err
25332   rm -f conftest.er1
25333   cat conftest.err >&5
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); } && {
25336          test -z "$ac_c_werror_flag" ||
25337          test ! -s conftest.err
25338        } && test -s conftest$ac_exeext &&
25339        $as_test_x conftest$ac_exeext; then
25340   ac_cv_search_opendir=$ac_res
25341 else
25342   echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25344
25345
25346 fi
25347
25348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25349       conftest$ac_exeext
25350   if test "${ac_cv_search_opendir+set}" = set; then
25351   break
25352 fi
25353 done
25354 if test "${ac_cv_search_opendir+set}" = set; then
25355   :
25356 else
25357   ac_cv_search_opendir=no
25358 fi
25359 rm conftest.$ac_ext
25360 LIBS=$ac_func_search_save_LIBS
25361 fi
25362 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25363 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25364 ac_res=$ac_cv_search_opendir
25365 if test "$ac_res" != no; then
25366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25367
25368 fi
25369
25370 else
25371   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25373 if test "${ac_cv_search_opendir+set}" = set; then
25374   echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376   ac_func_search_save_LIBS=$LIBS
25377 cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h.  */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h.  */
25383
25384 /* Override any GCC internal prototype to avoid an error.
25385    Use char because int might match the return type of a GCC
25386    builtin and then its argument prototype would still apply.  */
25387 #ifdef __cplusplus
25388 extern "C"
25389 #endif
25390 char opendir ();
25391 int
25392 main ()
25393 {
25394 return opendir ();
25395   ;
25396   return 0;
25397 }
25398 _ACEOF
25399 for ac_lib in '' x; do
25400   if test -z "$ac_lib"; then
25401     ac_res="none required"
25402   else
25403     ac_res=-l$ac_lib
25404     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25405   fi
25406   rm -f conftest.$ac_objext conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410   *) ac_try_echo=$ac_try;;
25411 esac
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413   (eval "$ac_link") 2>conftest.er1
25414   ac_status=$?
25415   grep -v '^ *+' conftest.er1 >conftest.err
25416   rm -f conftest.er1
25417   cat conftest.err >&5
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); } && {
25420          test -z "$ac_c_werror_flag" ||
25421          test ! -s conftest.err
25422        } && test -s conftest$ac_exeext &&
25423        $as_test_x conftest$ac_exeext; then
25424   ac_cv_search_opendir=$ac_res
25425 else
25426   echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25428
25429
25430 fi
25431
25432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25433       conftest$ac_exeext
25434   if test "${ac_cv_search_opendir+set}" = set; then
25435   break
25436 fi
25437 done
25438 if test "${ac_cv_search_opendir+set}" = set; then
25439   :
25440 else
25441   ac_cv_search_opendir=no
25442 fi
25443 rm conftest.$ac_ext
25444 LIBS=$ac_func_search_save_LIBS
25445 fi
25446 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25447 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25448 ac_res=$ac_cv_search_opendir
25449 if test "$ac_res" != no; then
25450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25451
25452 fi
25453
25454 fi
25455
25456 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25457 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_closedir_void+set}" = set; then
25459   echo $ECHO_N "(cached) $ECHO_C" >&6
25460 else
25461   if test "$cross_compiling" = yes; then
25462   ac_cv_func_closedir_void=yes
25463 else
25464   cat >conftest.$ac_ext <<_ACEOF
25465 /* confdefs.h.  */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h.  */
25470 $ac_includes_default
25471 #include <$ac_header_dirent>
25472 #ifndef __cplusplus
25473 int closedir ();
25474 #endif
25475
25476 int
25477 main ()
25478 {
25479 return closedir (opendir (".")) != 0;
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest$ac_exeext
25485 if { (ac_try="$ac_link"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_link") 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495   { (case "(($ac_try" in
25496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497   *) ac_try_echo=$ac_try;;
25498 esac
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500   (eval "$ac_try") 2>&5
25501   ac_status=$?
25502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); }; }; then
25504   ac_cv_func_closedir_void=no
25505 else
25506   echo "$as_me: program exited with status $ac_status" >&5
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 ( exit $ac_status )
25511 ac_cv_func_closedir_void=yes
25512 fi
25513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25514 fi
25515
25516
25517 fi
25518 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25519 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25520 if test $ac_cv_func_closedir_void = yes; then
25521
25522 cat >>confdefs.h <<\_ACEOF
25523 #define CLOSEDIR_VOID 1
25524 _ACEOF
25525
25526 fi
25527
25528 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25529 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25530 if test "${ac_cv_lib_error_at_line+set}" = set; then
25531   echo $ECHO_N "(cached) $ECHO_C" >&6
25532 else
25533   cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539 #include <error.h>
25540 int
25541 main ()
25542 {
25543 error_at_line (0, 0, "", 0, "an error occurred");
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (ac_try="$ac_link"
25550 case "(($ac_try" in
25551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552   *) ac_try_echo=$ac_try;;
25553 esac
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555   (eval "$ac_link") 2>conftest.er1
25556   ac_status=$?
25557   grep -v '^ *+' conftest.er1 >conftest.err
25558   rm -f conftest.er1
25559   cat conftest.err >&5
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); } && {
25562          test -z "$ac_c_werror_flag" ||
25563          test ! -s conftest.err
25564        } && test -s conftest$ac_exeext &&
25565        $as_test_x conftest$ac_exeext; then
25566   ac_cv_lib_error_at_line=yes
25567 else
25568   echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571         ac_cv_lib_error_at_line=no
25572 fi
25573
25574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25575       conftest$ac_exeext conftest.$ac_ext
25576 fi
25577 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25578 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25579 if test $ac_cv_lib_error_at_line = no; then
25580   case " $LIBOBJS " in
25581   *" error.$ac_objext "* ) ;;
25582   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25583  ;;
25584 esac
25585
25586 fi
25587
25588
25589 for ac_header in vfork.h
25590 do
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 fi
25598 ac_res=`eval echo '${'$as_ac_Header'}'`
25599                { echo "$as_me:$LINENO: result: $ac_res" >&5
25600 echo "${ECHO_T}$ac_res" >&6; }
25601 else
25602   # Is the header compilable?
25603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25605 cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h.  */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h.  */
25611 $ac_includes_default
25612 #include <$ac_header>
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618   *) ac_try_echo=$ac_try;;
25619 esac
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621   (eval "$ac_compile") 2>conftest.er1
25622   ac_status=$?
25623   grep -v '^ *+' conftest.er1 >conftest.err
25624   rm -f conftest.er1
25625   cat conftest.err >&5
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); } && {
25628          test -z "$ac_c_werror_flag" ||
25629          test ! -s conftest.err
25630        } && test -s conftest.$ac_objext; then
25631   ac_header_compiler=yes
25632 else
25633   echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25635
25636         ac_header_compiler=no
25637 fi
25638
25639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25641 echo "${ECHO_T}$ac_header_compiler" >&6; }
25642
25643 # Is the header present?
25644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25646 cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h.  */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h.  */
25652 #include <$ac_header>
25653 _ACEOF
25654 if { (ac_try="$ac_cpp conftest.$ac_ext"
25655 case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } >/dev/null && {
25667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25668          test ! -s conftest.err
25669        }; then
25670   ac_header_preproc=yes
25671 else
25672   echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25674
25675   ac_header_preproc=no
25676 fi
25677
25678 rm -f conftest.err conftest.$ac_ext
25679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25680 echo "${ECHO_T}$ac_header_preproc" >&6; }
25681
25682 # So?  What about this header?
25683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25684   yes:no: )
25685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25689     ac_header_preproc=yes
25690     ;;
25691   no:yes:* )
25692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25704     ( cat <<\_ASBOX
25705 ## ------------------------------- ##
25706 ## Report this to nfs@lists.sf.net ##
25707 ## ------------------------------- ##
25708 _ASBOX
25709      ) | sed "s/^/$as_me: WARNING:     /" >&2
25710     ;;
25711 esac
25712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 else
25717   eval "$as_ac_Header=\$ac_header_preproc"
25718 fi
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720                { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25722
25723 fi
25724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25725   cat >>confdefs.h <<_ACEOF
25726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25727 _ACEOF
25728
25729 fi
25730
25731 done
25732
25733
25734
25735 for ac_func in fork vfork
25736 do
25737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25751 #define $ac_func innocuous_$ac_func
25752
25753 /* System header to define __stub macros and hopefully few prototypes,
25754     which can conflict with char $ac_func (); below.
25755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25756     <limits.h> exists even on freestanding compilers.  */
25757
25758 #ifdef __STDC__
25759 # include <limits.h>
25760 #else
25761 # include <assert.h>
25762 #endif
25763
25764 #undef $ac_func
25765
25766 /* Override any GCC internal prototype to avoid an error.
25767    Use char because int might match the return type of a GCC
25768    builtin and then its argument prototype would still apply.  */
25769 #ifdef __cplusplus
25770 extern "C"
25771 #endif
25772 char $ac_func ();
25773 /* The GNU C library defines this for functions which it implements
25774     to always fail with ENOSYS.  Some functions are actually named
25775     something starting with __ and the normal name is an alias.  */
25776 #if defined __stub_$ac_func || defined __stub___$ac_func
25777 choke me
25778 #endif
25779
25780 int
25781 main ()
25782 {
25783 return $ac_func ();
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (ac_try="$ac_link"
25790 case "(($ac_try" in
25791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792   *) ac_try_echo=$ac_try;;
25793 esac
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795   (eval "$ac_link") 2>conftest.er1
25796   ac_status=$?
25797   grep -v '^ *+' conftest.er1 >conftest.err
25798   rm -f conftest.er1
25799   cat conftest.err >&5
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } && {
25802          test -z "$ac_c_werror_flag" ||
25803          test ! -s conftest.err
25804        } && test -s conftest$ac_exeext &&
25805        $as_test_x conftest$ac_exeext; then
25806   eval "$as_ac_var=yes"
25807 else
25808   echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25810
25811         eval "$as_ac_var=no"
25812 fi
25813
25814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25815       conftest$ac_exeext conftest.$ac_ext
25816 fi
25817 ac_res=`eval echo '${'$as_ac_var'}'`
25818                { echo "$as_me:$LINENO: result: $ac_res" >&5
25819 echo "${ECHO_T}$ac_res" >&6; }
25820 if test `eval echo '${'$as_ac_var'}'` = yes; then
25821   cat >>confdefs.h <<_ACEOF
25822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25823 _ACEOF
25824
25825 fi
25826 done
25827
25828 if test "x$ac_cv_func_fork" = xyes; then
25829   { echo "$as_me:$LINENO: checking for working fork" >&5
25830 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25831 if test "${ac_cv_func_fork_works+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   if test "$cross_compiling" = yes; then
25835   ac_cv_func_fork_works=cross
25836 else
25837   cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843 $ac_includes_default
25844 int
25845 main ()
25846 {
25847
25848           /* By Ruediger Kuhlmann. */
25849           return fork () < 0;
25850
25851   ;
25852   return 0;
25853 }
25854 _ACEOF
25855 rm -f conftest$ac_exeext
25856 if { (ac_try="$ac_link"
25857 case "(($ac_try" in
25858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859   *) ac_try_echo=$ac_try;;
25860 esac
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862   (eval "$ac_link") 2>&5
25863   ac_status=$?
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25866   { (case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_try") 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; }; then
25875   ac_cv_func_fork_works=yes
25876 else
25877   echo "$as_me: program exited with status $ac_status" >&5
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 ( exit $ac_status )
25882 ac_cv_func_fork_works=no
25883 fi
25884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25885 fi
25886
25887
25888 fi
25889 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25890 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25891
25892 else
25893   ac_cv_func_fork_works=$ac_cv_func_fork
25894 fi
25895 if test "x$ac_cv_func_fork_works" = xcross; then
25896   case $host in
25897     *-*-amigaos* | *-*-msdosdjgpp*)
25898       # Override, as these systems have only a dummy fork() stub
25899       ac_cv_func_fork_works=no
25900       ;;
25901     *)
25902       ac_cv_func_fork_works=yes
25903       ;;
25904   esac
25905   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25906 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25907 fi
25908 ac_cv_func_vfork_works=$ac_cv_func_vfork
25909 if test "x$ac_cv_func_vfork" = xyes; then
25910   { echo "$as_me:$LINENO: checking for working vfork" >&5
25911 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25912 if test "${ac_cv_func_vfork_works+set}" = set; then
25913   echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915   if test "$cross_compiling" = yes; then
25916   ac_cv_func_vfork_works=cross
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 /* Thanks to Paul Eggert for this test.  */
25925 $ac_includes_default
25926 #include <sys/wait.h>
25927 #ifdef HAVE_VFORK_H
25928 # include <vfork.h>
25929 #endif
25930 /* On some sparc systems, changes by the child to local and incoming
25931    argument registers are propagated back to the parent.  The compiler
25932    is told about this with #include <vfork.h>, but some compilers
25933    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25934    static variable whose address is put into a register that is
25935    clobbered by the vfork.  */
25936 static void
25937 #ifdef __cplusplus
25938 sparc_address_test (int arg)
25939 # else
25940 sparc_address_test (arg) int arg;
25941 #endif
25942 {
25943   static pid_t child;
25944   if (!child) {
25945     child = vfork ();
25946     if (child < 0) {
25947       perror ("vfork");
25948       _exit(2);
25949     }
25950     if (!child) {
25951       arg = getpid();
25952       write(-1, "", 0);
25953       _exit (arg);
25954     }
25955   }
25956 }
25957
25958 int
25959 main ()
25960 {
25961   pid_t parent = getpid ();
25962   pid_t child;
25963
25964   sparc_address_test (0);
25965
25966   child = vfork ();
25967
25968   if (child == 0) {
25969     /* Here is another test for sparc vfork register problems.  This
25970        test uses lots of local variables, at least as many local
25971        variables as main has allocated so far including compiler
25972        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25973        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25974        reuse the register of parent for one of the local variables,
25975        since it will think that parent can't possibly be used any more
25976        in this routine.  Assigning to the local variable will thus
25977        munge parent in the parent process.  */
25978     pid_t
25979       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25980       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25981     /* Convince the compiler that p..p7 are live; otherwise, it might
25982        use the same hardware register for all 8 local variables.  */
25983     if (p != p1 || p != p2 || p != p3 || p != p4
25984         || p != p5 || p != p6 || p != p7)
25985       _exit(1);
25986
25987     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25988        from child file descriptors.  If the child closes a descriptor
25989        before it execs or exits, this munges the parent's descriptor
25990        as well.  Test for this by closing stdout in the child.  */
25991     _exit(close(fileno(stdout)) != 0);
25992   } else {
25993     int status;
25994     struct stat st;
25995
25996     while (wait(&status) != child)
25997       ;
25998     return (
25999          /* Was there some problem with vforking?  */
26000          child < 0
26001
26002          /* Did the child fail?  (This shouldn't happen.)  */
26003          || status
26004
26005          /* Did the vfork/compiler bug occur?  */
26006          || parent != getpid()
26007
26008          /* Did the file descriptor bug occur?  */
26009          || fstat(fileno(stdout), &st) != 0
26010          );
26011   }
26012 }
26013 _ACEOF
26014 rm -f conftest$ac_exeext
26015 if { (ac_try="$ac_link"
26016 case "(($ac_try" in
26017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018   *) ac_try_echo=$ac_try;;
26019 esac
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021   (eval "$ac_link") 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025   { (case "(($ac_try" in
26026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027   *) ac_try_echo=$ac_try;;
26028 esac
26029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26030   (eval "$ac_try") 2>&5
26031   ac_status=$?
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); }; }; then
26034   ac_cv_func_vfork_works=yes
26035 else
26036   echo "$as_me: program exited with status $ac_status" >&5
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040 ( exit $ac_status )
26041 ac_cv_func_vfork_works=no
26042 fi
26043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26044 fi
26045
26046
26047 fi
26048 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26049 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26050
26051 fi;
26052 if test "x$ac_cv_func_fork_works" = xcross; then
26053   ac_cv_func_vfork_works=$ac_cv_func_vfork
26054   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26055 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26056 fi
26057
26058 if test "x$ac_cv_func_vfork_works" = xyes; then
26059
26060 cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_WORKING_VFORK 1
26062 _ACEOF
26063
26064 else
26065
26066 cat >>confdefs.h <<\_ACEOF
26067 #define vfork fork
26068 _ACEOF
26069
26070 fi
26071 if test "x$ac_cv_func_fork_works" = xyes; then
26072
26073 cat >>confdefs.h <<\_ACEOF
26074 #define HAVE_WORKING_FORK 1
26075 _ACEOF
26076
26077 fi
26078
26079 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26080 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26081 if test "${ac_cv_type_getgroups+set}" = set; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084   if test "$cross_compiling" = yes; then
26085   ac_cv_type_getgroups=cross
26086 else
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 /* Thanks to Mike Rendell for this test.  */
26094 $ac_includes_default
26095 #define NGID 256
26096 #undef MAX
26097 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26098
26099 int
26100 main ()
26101 {
26102   gid_t gidset[NGID];
26103   int i, n;
26104   union { gid_t gval; long int lval; }  val;
26105
26106   val.lval = -1;
26107   for (i = 0; i < NGID; i++)
26108     gidset[i] = val.gval;
26109   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26110                  gidset);
26111   /* Exit non-zero if getgroups seems to require an array of ints.  This
26112      happens when gid_t is short int but getgroups modifies an array
26113      of ints.  */
26114   return n > 0 && gidset[n] != val.gval;
26115 }
26116 _ACEOF
26117 rm -f conftest$ac_exeext
26118 if { (ac_try="$ac_link"
26119 case "(($ac_try" in
26120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121   *) ac_try_echo=$ac_try;;
26122 esac
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124   (eval "$ac_link") 2>&5
26125   ac_status=$?
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26128   { (case "(($ac_try" in
26129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130   *) ac_try_echo=$ac_try;;
26131 esac
26132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26133   (eval "$ac_try") 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; }; then
26137   ac_cv_type_getgroups=gid_t
26138 else
26139   echo "$as_me: program exited with status $ac_status" >&5
26140 echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26142
26143 ( exit $ac_status )
26144 ac_cv_type_getgroups=int
26145 fi
26146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26147 fi
26148
26149
26150 if test $ac_cv_type_getgroups = cross; then
26151         cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157 #include <unistd.h>
26158
26159 _ACEOF
26160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26161   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26162   ac_cv_type_getgroups=gid_t
26163 else
26164   ac_cv_type_getgroups=int
26165 fi
26166 rm -f conftest*
26167
26168 fi
26169 fi
26170 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26171 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26172
26173 cat >>confdefs.h <<_ACEOF
26174 #define GETGROUPS_T $ac_cv_type_getgroups
26175 _ACEOF
26176
26177
26178 { echo "$as_me:$LINENO: checking for getgroups" >&5
26179 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26180 if test "${ac_cv_func_getgroups+set}" = set; then
26181   echo $ECHO_N "(cached) $ECHO_C" >&6
26182 else
26183   cat >conftest.$ac_ext <<_ACEOF
26184 /* confdefs.h.  */
26185 _ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h.  */
26189 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26191 #define getgroups innocuous_getgroups
26192
26193 /* System header to define __stub macros and hopefully few prototypes,
26194     which can conflict with char getgroups (); below.
26195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26196     <limits.h> exists even on freestanding compilers.  */
26197
26198 #ifdef __STDC__
26199 # include <limits.h>
26200 #else
26201 # include <assert.h>
26202 #endif
26203
26204 #undef getgroups
26205
26206 /* Override any GCC internal prototype to avoid an error.
26207    Use char because int might match the return type of a GCC
26208    builtin and then its argument prototype would still apply.  */
26209 #ifdef __cplusplus
26210 extern "C"
26211 #endif
26212 char getgroups ();
26213 /* The GNU C library defines this for functions which it implements
26214     to always fail with ENOSYS.  Some functions are actually named
26215     something starting with __ and the normal name is an alias.  */
26216 #if defined __stub_getgroups || defined __stub___getgroups
26217 choke me
26218 #endif
26219
26220 int
26221 main ()
26222 {
26223 return getgroups ();
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest.$ac_objext conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235   (eval "$ac_link") 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } && {
26242          test -z "$ac_c_werror_flag" ||
26243          test ! -s conftest.err
26244        } && test -s conftest$ac_exeext &&
26245        $as_test_x conftest$ac_exeext; then
26246   ac_cv_func_getgroups=yes
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         ac_cv_func_getgroups=no
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26255       conftest$ac_exeext conftest.$ac_ext
26256 fi
26257 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26258 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26259
26260
26261 # If we don't yet have getgroups, see if it's in -lbsd.
26262 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26263 ac_save_LIBS=$LIBS
26264 if test $ac_cv_func_getgroups = no; then
26265   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26266 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26267 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26268   echo $ECHO_N "(cached) $ECHO_C" >&6
26269 else
26270   ac_check_lib_save_LIBS=$LIBS
26271 LIBS="-lbsd  $LIBS"
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278
26279 /* Override any GCC internal prototype to avoid an error.
26280    Use char because int might match the return type of a GCC
26281    builtin and then its argument prototype would still apply.  */
26282 #ifdef __cplusplus
26283 extern "C"
26284 #endif
26285 char getgroups ();
26286 int
26287 main ()
26288 {
26289 return getgroups ();
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301   (eval "$ac_link") 2>conftest.er1
26302   ac_status=$?
26303   grep -v '^ *+' conftest.er1 >conftest.err
26304   rm -f conftest.er1
26305   cat conftest.err >&5
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); } && {
26308          test -z "$ac_c_werror_flag" ||
26309          test ! -s conftest.err
26310        } && test -s conftest$ac_exeext &&
26311        $as_test_x conftest$ac_exeext; then
26312   ac_cv_lib_bsd_getgroups=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317         ac_cv_lib_bsd_getgroups=no
26318 fi
26319
26320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321       conftest$ac_exeext conftest.$ac_ext
26322 LIBS=$ac_check_lib_save_LIBS
26323 fi
26324 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26325 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26326 if test $ac_cv_lib_bsd_getgroups = yes; then
26327   GETGROUPS_LIB=-lbsd
26328 fi
26329
26330 fi
26331
26332 # Run the program to test the functionality of the system-supplied
26333 # getgroups function only if there is such a function.
26334 if test $ac_cv_func_getgroups = yes; then
26335   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26336 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26337 if test "${ac_cv_func_getgroups_works+set}" = set; then
26338   echo $ECHO_N "(cached) $ECHO_C" >&6
26339 else
26340   if test "$cross_compiling" = yes; then
26341   ac_cv_func_getgroups_works=no
26342 else
26343   cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349 $ac_includes_default
26350 int
26351 main ()
26352 {
26353 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26354        return getgroups (0, 0) == -1;
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 rm -f conftest$ac_exeext
26360 if { (ac_try="$ac_link"
26361 case "(($ac_try" in
26362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363   *) ac_try_echo=$ac_try;;
26364 esac
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366   (eval "$ac_link") 2>&5
26367   ac_status=$?
26368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26370   { (case "(($ac_try" in
26371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372   *) ac_try_echo=$ac_try;;
26373 esac
26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375   (eval "$ac_try") 2>&5
26376   ac_status=$?
26377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378   (exit $ac_status); }; }; then
26379   ac_cv_func_getgroups_works=yes
26380 else
26381   echo "$as_me: program exited with status $ac_status" >&5
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385 ( exit $ac_status )
26386 ac_cv_func_getgroups_works=no
26387 fi
26388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26389 fi
26390
26391
26392
26393 fi
26394 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26395 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26396   if test $ac_cv_func_getgroups_works = yes; then
26397
26398 cat >>confdefs.h <<\_ACEOF
26399 #define HAVE_GETGROUPS 1
26400 _ACEOF
26401
26402   fi
26403 fi
26404 LIBS=$ac_save_LIBS
26405
26406 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26407 # -lseq on Dynix/PTX, -lgen on Unixware.
26408 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26409 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26410 if test "${ac_cv_search_getmntent+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   ac_func_search_save_LIBS=$LIBS
26414 cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420
26421 /* Override any GCC internal prototype to avoid an error.
26422    Use char because int might match the return type of a GCC
26423    builtin and then its argument prototype would still apply.  */
26424 #ifdef __cplusplus
26425 extern "C"
26426 #endif
26427 char getmntent ();
26428 int
26429 main ()
26430 {
26431 return getmntent ();
26432   ;
26433   return 0;
26434 }
26435 _ACEOF
26436 for ac_lib in '' sun seq gen; do
26437   if test -z "$ac_lib"; then
26438     ac_res="none required"
26439   else
26440     ac_res=-l$ac_lib
26441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26442   fi
26443   rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447   *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450   (eval "$ac_link") 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } && {
26457          test -z "$ac_c_werror_flag" ||
26458          test ! -s conftest.err
26459        } && test -s conftest$ac_exeext &&
26460        $as_test_x conftest$ac_exeext; then
26461   ac_cv_search_getmntent=$ac_res
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466
26467 fi
26468
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26470       conftest$ac_exeext
26471   if test "${ac_cv_search_getmntent+set}" = set; then
26472   break
26473 fi
26474 done
26475 if test "${ac_cv_search_getmntent+set}" = set; then
26476   :
26477 else
26478   ac_cv_search_getmntent=no
26479 fi
26480 rm conftest.$ac_ext
26481 LIBS=$ac_func_search_save_LIBS
26482 fi
26483 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26484 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26485 ac_res=$ac_cv_search_getmntent
26486 if test "$ac_res" != no; then
26487   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26488   ac_cv_func_getmntent=yes
26489
26490 cat >>confdefs.h <<\_ACEOF
26491 #define HAVE_GETMNTENT 1
26492 _ACEOF
26493
26494 else
26495   ac_cv_func_getmntent=no
26496 fi
26497
26498
26499 if test $ac_cv_c_compiler_gnu = yes; then
26500     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26501 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26502 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26503   echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26505     ac_pattern="Autoconf.*'x'"
26506   cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h.  */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h.  */
26512 #include <sgtty.h>
26513 Autoconf TIOCGETP
26514 _ACEOF
26515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26516   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26517   ac_cv_prog_gcc_traditional=yes
26518 else
26519   ac_cv_prog_gcc_traditional=no
26520 fi
26521 rm -f conftest*
26522
26523
26524   if test $ac_cv_prog_gcc_traditional = no; then
26525     cat >conftest.$ac_ext <<_ACEOF
26526 /* confdefs.h.  */
26527 _ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h.  */
26531 #include <termio.h>
26532 Autoconf TCGETA
26533 _ACEOF
26534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26535   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26536   ac_cv_prog_gcc_traditional=yes
26537 fi
26538 rm -f conftest*
26539
26540   fi
26541 fi
26542 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26543 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26544   if test $ac_cv_prog_gcc_traditional = yes; then
26545     CC="$CC -traditional"
26546   fi
26547 fi
26548
26549 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26550 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26551 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   rm -f conftest.sym conftest.file
26555 echo >conftest.file
26556 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26557   if test "$cross_compiling" = yes; then
26558   ac_cv_func_lstat_dereferences_slashed_symlink=no
26559 else
26560   cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566 $ac_includes_default
26567 int
26568 main ()
26569 {
26570 struct stat sbuf;
26571      /* Linux will dereference the symlink and fail.
26572         That is better in the sense that it means we will not
26573         have to compile and use the lstat wrapper.  */
26574      return lstat ("conftest.sym/", &sbuf) == 0;
26575   ;
26576   return 0;
26577 }
26578 _ACEOF
26579 rm -f conftest$ac_exeext
26580 if { (ac_try="$ac_link"
26581 case "(($ac_try" in
26582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583   *) ac_try_echo=$ac_try;;
26584 esac
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586   (eval "$ac_link") 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26590   { (case "(($ac_try" in
26591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592   *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595   (eval "$ac_try") 2>&5
26596   ac_status=$?
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); }; }; then
26599   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26600 else
26601   echo "$as_me: program exited with status $ac_status" >&5
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605 ( exit $ac_status )
26606 ac_cv_func_lstat_dereferences_slashed_symlink=no
26607 fi
26608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26609 fi
26610
26611
26612 else
26613   # If the `ln -s' command failed, then we probably don't even
26614   # have an lstat function.
26615   ac_cv_func_lstat_dereferences_slashed_symlink=no
26616 fi
26617 rm -f conftest.sym conftest.file
26618
26619 fi
26620 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26621 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26622
26623 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26624
26625 cat >>confdefs.h <<_ACEOF
26626 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26627 _ACEOF
26628
26629
26630 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26631   case " $LIBOBJS " in
26632   *" lstat.$ac_objext "* ) ;;
26633   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26634  ;;
26635 esac
26636
26637 fi
26638
26639 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26640 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26641 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26642   echo $ECHO_N "(cached) $ECHO_C" >&6
26643 else
26644   if test "$cross_compiling" = yes; then
26645   ac_cv_func_lstat_empty_string_bug=yes
26646 else
26647   cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653 $ac_includes_default
26654 int
26655 main ()
26656 {
26657 struct stat sbuf;
26658   return lstat ("", &sbuf) == 0;
26659   ;
26660   return 0;
26661 }
26662 _ACEOF
26663 rm -f conftest$ac_exeext
26664 if { (ac_try="$ac_link"
26665 case "(($ac_try" in
26666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667   *) ac_try_echo=$ac_try;;
26668 esac
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670   (eval "$ac_link") 2>&5
26671   ac_status=$?
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26674   { (case "(($ac_try" in
26675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676   *) ac_try_echo=$ac_try;;
26677 esac
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679   (eval "$ac_try") 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; }; then
26683   ac_cv_func_lstat_empty_string_bug=no
26684 else
26685   echo "$as_me: program exited with status $ac_status" >&5
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689 ( exit $ac_status )
26690 ac_cv_func_lstat_empty_string_bug=yes
26691 fi
26692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26693 fi
26694
26695
26696 fi
26697 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26698 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26699 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26700   case " $LIBOBJS " in
26701   *" lstat.$ac_objext "* ) ;;
26702   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26703  ;;
26704 esac
26705
26706
26707 cat >>confdefs.h <<_ACEOF
26708 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26709 _ACEOF
26710
26711 fi
26712
26713 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26714 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26715 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26716   echo $ECHO_N "(cached) $ECHO_C" >&6
26717 else
26718   rm -f conftest.sym conftest.file
26719 echo >conftest.file
26720 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26721   if test "$cross_compiling" = yes; then
26722   ac_cv_func_lstat_dereferences_slashed_symlink=no
26723 else
26724   cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 $ac_includes_default
26731 int
26732 main ()
26733 {
26734 struct stat sbuf;
26735      /* Linux will dereference the symlink and fail.
26736         That is better in the sense that it means we will not
26737         have to compile and use the lstat wrapper.  */
26738      return lstat ("conftest.sym/", &sbuf) == 0;
26739   ;
26740   return 0;
26741 }
26742 _ACEOF
26743 rm -f conftest$ac_exeext
26744 if { (ac_try="$ac_link"
26745 case "(($ac_try" in
26746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747   *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750   (eval "$ac_link") 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26754   { (case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759   (eval "$ac_try") 2>&5
26760   ac_status=$?
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); }; }; then
26763   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26764 else
26765   echo "$as_me: program exited with status $ac_status" >&5
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769 ( exit $ac_status )
26770 ac_cv_func_lstat_dereferences_slashed_symlink=no
26771 fi
26772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26773 fi
26774
26775
26776 else
26777   # If the `ln -s' command failed, then we probably don't even
26778   # have an lstat function.
26779   ac_cv_func_lstat_dereferences_slashed_symlink=no
26780 fi
26781 rm -f conftest.sym conftest.file
26782
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26785 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26786
26787 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26788
26789 cat >>confdefs.h <<_ACEOF
26790 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26791 _ACEOF
26792
26793
26794 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26795   case " $LIBOBJS " in
26796   *" lstat.$ac_objext "* ) ;;
26797   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26798  ;;
26799 esac
26800
26801 fi
26802
26803 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26804 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26805 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26806   echo $ECHO_N "(cached) $ECHO_C" >&6
26807 else
26808   cat >conftest.$ac_ext <<_ACEOF
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 #include <sys/types.h>
26815 int
26816 main ()
26817 {
26818 return makedev(0, 0);
26819   ;
26820   return 0;
26821 }
26822 _ACEOF
26823 rm -f conftest.$ac_objext conftest$ac_exeext
26824 if { (ac_try="$ac_link"
26825 case "(($ac_try" in
26826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827   *) ac_try_echo=$ac_try;;
26828 esac
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830   (eval "$ac_link") 2>conftest.er1
26831   ac_status=$?
26832   grep -v '^ *+' conftest.er1 >conftest.err
26833   rm -f conftest.er1
26834   cat conftest.err >&5
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); } && {
26837          test -z "$ac_c_werror_flag" ||
26838          test ! -s conftest.err
26839        } && test -s conftest$ac_exeext &&
26840        $as_test_x conftest$ac_exeext; then
26841   ac_cv_header_sys_types_h_makedev=yes
26842 else
26843   echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846         ac_cv_header_sys_types_h_makedev=no
26847 fi
26848
26849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26850       conftest$ac_exeext conftest.$ac_ext
26851
26852 fi
26853 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26854 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26855
26856 if test $ac_cv_header_sys_types_h_makedev = no; then
26857 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26858   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26859 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26860 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26861   echo $ECHO_N "(cached) $ECHO_C" >&6
26862 fi
26863 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26864 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26865 else
26866   # Is the header compilable?
26867 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26868 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26869 cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h.  */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h.  */
26875 $ac_includes_default
26876 #include <sys/mkdev.h>
26877 _ACEOF
26878 rm -f conftest.$ac_objext
26879 if { (ac_try="$ac_compile"
26880 case "(($ac_try" in
26881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26882   *) ac_try_echo=$ac_try;;
26883 esac
26884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26885   (eval "$ac_compile") 2>conftest.er1
26886   ac_status=$?
26887   grep -v '^ *+' conftest.er1 >conftest.err
26888   rm -f conftest.er1
26889   cat conftest.err >&5
26890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); } && {
26892          test -z "$ac_c_werror_flag" ||
26893          test ! -s conftest.err
26894        } && test -s conftest.$ac_objext; then
26895   ac_header_compiler=yes
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900         ac_header_compiler=no
26901 fi
26902
26903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6; }
26906
26907 # Is the header present?
26908 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26909 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26910 cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916 #include <sys/mkdev.h>
26917 _ACEOF
26918 if { (ac_try="$ac_cpp conftest.$ac_ext"
26919 case "(($ac_try" in
26920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921   *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26925   ac_status=$?
26926   grep -v '^ *+' conftest.er1 >conftest.err
26927   rm -f conftest.er1
26928   cat conftest.err >&5
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); } >/dev/null && {
26931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26932          test ! -s conftest.err
26933        }; then
26934   ac_header_preproc=yes
26935 else
26936   echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26938
26939   ac_header_preproc=no
26940 fi
26941
26942 rm -f conftest.err conftest.$ac_ext
26943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26944 echo "${ECHO_T}$ac_header_preproc" >&6; }
26945
26946 # So?  What about this header?
26947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26948   yes:no: )
26949     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26950 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26951     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26952 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26953     ac_header_preproc=yes
26954     ;;
26955   no:yes:* )
26956     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26958     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26960     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26961 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26962     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26963 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26964     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26965 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26966     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26967 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26968     ( cat <<\_ASBOX
26969 ## ------------------------------- ##
26970 ## Report this to nfs@lists.sf.net ##
26971 ## ------------------------------- ##
26972 _ASBOX
26973      ) | sed "s/^/$as_me: WARNING:     /" >&2
26974     ;;
26975 esac
26976 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26977 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26978 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26979   echo $ECHO_N "(cached) $ECHO_C" >&6
26980 else
26981   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26982 fi
26983 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26984 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26985
26986 fi
26987 if test $ac_cv_header_sys_mkdev_h = yes; then
26988
26989 cat >>confdefs.h <<\_ACEOF
26990 #define MAJOR_IN_MKDEV 1
26991 _ACEOF
26992
26993 fi
26994
26995
26996
26997   if test $ac_cv_header_sys_mkdev_h = no; then
26998     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26999   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27000 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27001 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27002   echo $ECHO_N "(cached) $ECHO_C" >&6
27003 fi
27004 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27005 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27006 else
27007   # Is the header compilable?
27008 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27009 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 $ac_includes_default
27017 #include <sys/sysmacros.h>
27018 _ACEOF
27019 rm -f conftest.$ac_objext
27020 if { (ac_try="$ac_compile"
27021 case "(($ac_try" in
27022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023   *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026   (eval "$ac_compile") 2>conftest.er1
27027   ac_status=$?
27028   grep -v '^ *+' conftest.er1 >conftest.err
27029   rm -f conftest.er1
27030   cat conftest.err >&5
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); } && {
27033          test -z "$ac_c_werror_flag" ||
27034          test ! -s conftest.err
27035        } && test -s conftest.$ac_objext; then
27036   ac_header_compiler=yes
27037 else
27038   echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041         ac_header_compiler=no
27042 fi
27043
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27046 echo "${ECHO_T}$ac_header_compiler" >&6; }
27047
27048 # Is the header present?
27049 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27050 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27051 cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 #include <sys/sysmacros.h>
27058 _ACEOF
27059 if { (ac_try="$ac_cpp conftest.$ac_ext"
27060 case "(($ac_try" in
27061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062   *) ac_try_echo=$ac_try;;
27063 esac
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27066   ac_status=$?
27067   grep -v '^ *+' conftest.er1 >conftest.err
27068   rm -f conftest.er1
27069   cat conftest.err >&5
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } >/dev/null && {
27072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27073          test ! -s conftest.err
27074        }; then
27075   ac_header_preproc=yes
27076 else
27077   echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080   ac_header_preproc=no
27081 fi
27082
27083 rm -f conftest.err conftest.$ac_ext
27084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27085 echo "${ECHO_T}$ac_header_preproc" >&6; }
27086
27087 # So?  What about this header?
27088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27089   yes:no: )
27090     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27091 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27092     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27093 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27094     ac_header_preproc=yes
27095     ;;
27096   no:yes:* )
27097     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27098 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27099     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27100 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27101     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27102 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27103     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27104 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27107     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27108 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27109     ( cat <<\_ASBOX
27110 ## ------------------------------- ##
27111 ## Report this to nfs@lists.sf.net ##
27112 ## ------------------------------- ##
27113 _ASBOX
27114      ) | sed "s/^/$as_me: WARNING:     /" >&2
27115     ;;
27116 esac
27117 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27118 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27119 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27123 fi
27124 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27125 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27126
27127 fi
27128 if test $ac_cv_header_sys_sysmacros_h = yes; then
27129
27130 cat >>confdefs.h <<\_ACEOF
27131 #define MAJOR_IN_SYSMACROS 1
27132 _ACEOF
27133
27134 fi
27135
27136
27137   fi
27138 fi
27139
27140 #AC_FUNC_MALLOC
27141 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27142 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27143 if test "${ac_cv_func_memcmp_working+set}" = set; then
27144   echo $ECHO_N "(cached) $ECHO_C" >&6
27145 else
27146   if test "$cross_compiling" = yes; then
27147   ac_cv_func_memcmp_working=no
27148 else
27149   cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h.  */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h.  */
27155 $ac_includes_default
27156 int
27157 main ()
27158 {
27159
27160   /* Some versions of memcmp are not 8-bit clean.  */
27161   char c0 = '\100', c1 = '\200', c2 = '\201';
27162   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27163     return 1;
27164
27165   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27166      or more and with at least one buffer not starting on a 4-byte boundary.
27167      William Lewis provided this test program.   */
27168   {
27169     char foo[21];
27170     char bar[21];
27171     int i;
27172     for (i = 0; i < 4; i++)
27173       {
27174         char *a = foo + i;
27175         char *b = bar + i;
27176         strcpy (a, "--------01111111");
27177         strcpy (b, "--------10000000");
27178         if (memcmp (a, b, 16) >= 0)
27179           return 1;
27180       }
27181     return 0;
27182   }
27183
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_link") 2>&5
27196   ac_status=$?
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27199   { (case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_try") 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); }; }; then
27208   ac_cv_func_memcmp_working=yes
27209 else
27210   echo "$as_me: program exited with status $ac_status" >&5
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214 ( exit $ac_status )
27215 ac_cv_func_memcmp_working=no
27216 fi
27217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27218 fi
27219
27220
27221 fi
27222 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27223 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27224 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27225   *" memcmp.$ac_objext "* ) ;;
27226   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27227  ;;
27228 esac
27229
27230
27231 #AC_FUNC_REALLOC
27232
27233
27234 for ac_header in sys/select.h sys/socket.h
27235 do
27236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27238   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27241   echo $ECHO_N "(cached) $ECHO_C" >&6
27242 fi
27243 ac_res=`eval echo '${'$as_ac_Header'}'`
27244                { echo "$as_me:$LINENO: result: $ac_res" >&5
27245 echo "${ECHO_T}$ac_res" >&6; }
27246 else
27247   # Is the header compilable?
27248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27250 cat >conftest.$ac_ext <<_ACEOF
27251 /* confdefs.h.  */
27252 _ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h.  */
27256 $ac_includes_default
27257 #include <$ac_header>
27258 _ACEOF
27259 rm -f conftest.$ac_objext
27260 if { (ac_try="$ac_compile"
27261 case "(($ac_try" in
27262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263   *) ac_try_echo=$ac_try;;
27264 esac
27265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266   (eval "$ac_compile") 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } && {
27273          test -z "$ac_c_werror_flag" ||
27274          test ! -s conftest.err
27275        } && test -s conftest.$ac_objext; then
27276   ac_header_compiler=yes
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281         ac_header_compiler=no
27282 fi
27283
27284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27286 echo "${ECHO_T}$ac_header_compiler" >&6; }
27287
27288 # Is the header present?
27289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27291 cat >conftest.$ac_ext <<_ACEOF
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297 #include <$ac_header>
27298 _ACEOF
27299 if { (ac_try="$ac_cpp conftest.$ac_ext"
27300 case "(($ac_try" in
27301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302   *) ac_try_echo=$ac_try;;
27303 esac
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27306   ac_status=$?
27307   grep -v '^ *+' conftest.er1 >conftest.err
27308   rm -f conftest.er1
27309   cat conftest.err >&5
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); } >/dev/null && {
27312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27313          test ! -s conftest.err
27314        }; then
27315   ac_header_preproc=yes
27316 else
27317   echo "$as_me: failed program was:" >&5
27318 sed 's/^/| /' conftest.$ac_ext >&5
27319
27320   ac_header_preproc=no
27321 fi
27322
27323 rm -f conftest.err conftest.$ac_ext
27324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27325 echo "${ECHO_T}$ac_header_preproc" >&6; }
27326
27327 # So?  What about this header?
27328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27329   yes:no: )
27330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27334     ac_header_preproc=yes
27335     ;;
27336   no:yes:* )
27337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27349     ( cat <<\_ASBOX
27350 ## ------------------------------- ##
27351 ## Report this to nfs@lists.sf.net ##
27352 ## ------------------------------- ##
27353 _ASBOX
27354      ) | sed "s/^/$as_me: WARNING:     /" >&2
27355     ;;
27356 esac
27357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27360   echo $ECHO_N "(cached) $ECHO_C" >&6
27361 else
27362   eval "$as_ac_Header=\$ac_header_preproc"
27363 fi
27364 ac_res=`eval echo '${'$as_ac_Header'}'`
27365                { echo "$as_me:$LINENO: result: $ac_res" >&5
27366 echo "${ECHO_T}$ac_res" >&6; }
27367
27368 fi
27369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27370   cat >>confdefs.h <<_ACEOF
27371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27372 _ACEOF
27373
27374 fi
27375
27376 done
27377
27378 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27379 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27380 if test "${ac_cv_func_select_args+set}" = set; then
27381   echo $ECHO_N "(cached) $ECHO_C" >&6
27382 else
27383   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27384  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27385   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27386    cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392 $ac_includes_default
27393 #ifdef HAVE_SYS_SELECT_H
27394 # include <sys/select.h>
27395 #endif
27396 #ifdef HAVE_SYS_SOCKET_H
27397 # include <sys/socket.h>
27398 #endif
27399
27400 int
27401 main ()
27402 {
27403 extern int select ($ac_arg1,
27404                                             $ac_arg234, $ac_arg234, $ac_arg234,
27405                                             $ac_arg5);
27406   ;
27407   return 0;
27408 }
27409 _ACEOF
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414   *) ac_try_echo=$ac_try;;
27415 esac
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417   (eval "$ac_compile") 2>conftest.er1
27418   ac_status=$?
27419   grep -v '^ *+' conftest.er1 >conftest.err
27420   rm -f conftest.er1
27421   cat conftest.err >&5
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); } && {
27424          test -z "$ac_c_werror_flag" ||
27425          test ! -s conftest.err
27426        } && test -s conftest.$ac_objext; then
27427   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27428 else
27429   echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432
27433 fi
27434
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436   done
27437  done
27438 done
27439 # Provide a safe default value.
27440 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27441
27442 fi
27443 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27444 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27445 ac_save_IFS=$IFS; IFS=','
27446 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27447 IFS=$ac_save_IFS
27448 shift
27449
27450 cat >>confdefs.h <<_ACEOF
27451 #define SELECT_TYPE_ARG1 $1
27452 _ACEOF
27453
27454
27455 cat >>confdefs.h <<_ACEOF
27456 #define SELECT_TYPE_ARG234 ($2)
27457 _ACEOF
27458
27459
27460 cat >>confdefs.h <<_ACEOF
27461 #define SELECT_TYPE_ARG5 ($3)
27462 _ACEOF
27463
27464 rm -f conftest*
27465
27466 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27467 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27468 if test "${ac_cv_type_signal+set}" = set; then
27469   echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27471   cat >conftest.$ac_ext <<_ACEOF
27472 /* confdefs.h.  */
27473 _ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h.  */
27477 #include <sys/types.h>
27478 #include <signal.h>
27479
27480 int
27481 main ()
27482 {
27483 return *(signal (0, 0)) (0) == 1;
27484   ;
27485   return 0;
27486 }
27487 _ACEOF
27488 rm -f conftest.$ac_objext
27489 if { (ac_try="$ac_compile"
27490 case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495   (eval "$ac_compile") 2>conftest.er1
27496   ac_status=$?
27497   grep -v '^ *+' conftest.er1 >conftest.err
27498   rm -f conftest.er1
27499   cat conftest.err >&5
27500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501   (exit $ac_status); } && {
27502          test -z "$ac_c_werror_flag" ||
27503          test ! -s conftest.err
27504        } && test -s conftest.$ac_objext; then
27505   ac_cv_type_signal=int
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510         ac_cv_type_signal=void
27511 fi
27512
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514 fi
27515 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27516 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27517
27518 cat >>confdefs.h <<_ACEOF
27519 #define RETSIGTYPE $ac_cv_type_signal
27520 _ACEOF
27521
27522
27523 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27524 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27525 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27526   echo $ECHO_N "(cached) $ECHO_C" >&6
27527 else
27528   if test "$cross_compiling" = yes; then
27529   ac_cv_func_stat_empty_string_bug=yes
27530 else
27531   cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537 $ac_includes_default
27538 int
27539 main ()
27540 {
27541 struct stat sbuf;
27542   return stat ("", &sbuf) == 0;
27543   ;
27544   return 0;
27545 }
27546 _ACEOF
27547 rm -f conftest$ac_exeext
27548 if { (ac_try="$ac_link"
27549 case "(($ac_try" in
27550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551   *) ac_try_echo=$ac_try;;
27552 esac
27553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554   (eval "$ac_link") 2>&5
27555   ac_status=$?
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27558   { (case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_try") 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; }; then
27567   ac_cv_func_stat_empty_string_bug=no
27568 else
27569   echo "$as_me: program exited with status $ac_status" >&5
27570 echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27572
27573 ( exit $ac_status )
27574 ac_cv_func_stat_empty_string_bug=yes
27575 fi
27576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27577 fi
27578
27579
27580 fi
27581 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27582 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27583 if test $ac_cv_func_stat_empty_string_bug = yes; then
27584   case " $LIBOBJS " in
27585   *" stat.$ac_objext "* ) ;;
27586   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27587  ;;
27588 esac
27589
27590
27591 cat >>confdefs.h <<_ACEOF
27592 #define HAVE_STAT_EMPTY_STRING_BUG 1
27593 _ACEOF
27594
27595 fi
27596
27597
27598 for ac_func in vprintf
27599 do
27600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27614 #define $ac_func innocuous_$ac_func
27615
27616 /* System header to define __stub macros and hopefully few prototypes,
27617     which can conflict with char $ac_func (); below.
27618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619     <limits.h> exists even on freestanding compilers.  */
27620
27621 #ifdef __STDC__
27622 # include <limits.h>
27623 #else
27624 # include <assert.h>
27625 #endif
27626
27627 #undef $ac_func
27628
27629 /* Override any GCC internal prototype to avoid an error.
27630    Use char because int might match the return type of a GCC
27631    builtin and then its argument prototype would still apply.  */
27632 #ifdef __cplusplus
27633 extern "C"
27634 #endif
27635 char $ac_func ();
27636 /* The GNU C library defines this for functions which it implements
27637     to always fail with ENOSYS.  Some functions are actually named
27638     something starting with __ and the normal name is an alias.  */
27639 #if defined __stub_$ac_func || defined __stub___$ac_func
27640 choke me
27641 #endif
27642
27643 int
27644 main ()
27645 {
27646 return $ac_func ();
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655   *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658   (eval "$ac_link") 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } && {
27665          test -z "$ac_c_werror_flag" ||
27666          test ! -s conftest.err
27667        } && test -s conftest$ac_exeext &&
27668        $as_test_x conftest$ac_exeext; then
27669   eval "$as_ac_var=yes"
27670 else
27671   echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27673
27674         eval "$as_ac_var=no"
27675 fi
27676
27677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27678       conftest$ac_exeext conftest.$ac_ext
27679 fi
27680 ac_res=`eval echo '${'$as_ac_var'}'`
27681                { echo "$as_me:$LINENO: result: $ac_res" >&5
27682 echo "${ECHO_T}$ac_res" >&6; }
27683 if test `eval echo '${'$as_ac_var'}'` = yes; then
27684   cat >>confdefs.h <<_ACEOF
27685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27686 _ACEOF
27687
27688 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27689 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27690 if test "${ac_cv_func__doprnt+set}" = set; then
27691   echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693   cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27701 #define _doprnt innocuous__doprnt
27702
27703 /* System header to define __stub macros and hopefully few prototypes,
27704     which can conflict with char _doprnt (); below.
27705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27706     <limits.h> exists even on freestanding compilers.  */
27707
27708 #ifdef __STDC__
27709 # include <limits.h>
27710 #else
27711 # include <assert.h>
27712 #endif
27713
27714 #undef _doprnt
27715
27716 /* Override any GCC internal prototype to avoid an error.
27717    Use char because int might match the return type of a GCC
27718    builtin and then its argument prototype would still apply.  */
27719 #ifdef __cplusplus
27720 extern "C"
27721 #endif
27722 char _doprnt ();
27723 /* The GNU C library defines this for functions which it implements
27724     to always fail with ENOSYS.  Some functions are actually named
27725     something starting with __ and the normal name is an alias.  */
27726 #if defined __stub__doprnt || defined __stub____doprnt
27727 choke me
27728 #endif
27729
27730 int
27731 main ()
27732 {
27733 return _doprnt ();
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 rm -f conftest.$ac_objext conftest$ac_exeext
27739 if { (ac_try="$ac_link"
27740 case "(($ac_try" in
27741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742   *) ac_try_echo=$ac_try;;
27743 esac
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745   (eval "$ac_link") 2>conftest.er1
27746   ac_status=$?
27747   grep -v '^ *+' conftest.er1 >conftest.err
27748   rm -f conftest.er1
27749   cat conftest.err >&5
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); } && {
27752          test -z "$ac_c_werror_flag" ||
27753          test ! -s conftest.err
27754        } && test -s conftest$ac_exeext &&
27755        $as_test_x conftest$ac_exeext; then
27756   ac_cv_func__doprnt=yes
27757 else
27758   echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27760
27761         ac_cv_func__doprnt=no
27762 fi
27763
27764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27765       conftest$ac_exeext conftest.$ac_ext
27766 fi
27767 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27768 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27769 if test $ac_cv_func__doprnt = yes; then
27770
27771 cat >>confdefs.h <<\_ACEOF
27772 #define HAVE_DOPRNT 1
27773 _ACEOF
27774
27775 fi
27776
27777 fi
27778 done
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27811                gethostbyaddr gethostbyname gethostname getmntent \
27812                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27813                realpath rmdir select socket strcasecmp strchr strdup \
27814                strerror strrchr strtol strtoul sigprocmask
27815 do
27816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27820   echo $ECHO_N "(cached) $ECHO_C" >&6
27821 else
27822   cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27830 #define $ac_func innocuous_$ac_func
27831
27832 /* System header to define __stub macros and hopefully few prototypes,
27833     which can conflict with char $ac_func (); below.
27834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27835     <limits.h> exists even on freestanding compilers.  */
27836
27837 #ifdef __STDC__
27838 # include <limits.h>
27839 #else
27840 # include <assert.h>
27841 #endif
27842
27843 #undef $ac_func
27844
27845 /* Override any GCC internal prototype to avoid an error.
27846    Use char because int might match the return type of a GCC
27847    builtin and then its argument prototype would still apply.  */
27848 #ifdef __cplusplus
27849 extern "C"
27850 #endif
27851 char $ac_func ();
27852 /* The GNU C library defines this for functions which it implements
27853     to always fail with ENOSYS.  Some functions are actually named
27854     something starting with __ and the normal name is an alias.  */
27855 #if defined __stub_$ac_func || defined __stub___$ac_func
27856 choke me
27857 #endif
27858
27859 int
27860 main ()
27861 {
27862 return $ac_func ();
27863   ;
27864   return 0;
27865 }
27866 _ACEOF
27867 rm -f conftest.$ac_objext conftest$ac_exeext
27868 if { (ac_try="$ac_link"
27869 case "(($ac_try" in
27870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871   *) ac_try_echo=$ac_try;;
27872 esac
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874   (eval "$ac_link") 2>conftest.er1
27875   ac_status=$?
27876   grep -v '^ *+' conftest.er1 >conftest.err
27877   rm -f conftest.er1
27878   cat conftest.err >&5
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); } && {
27881          test -z "$ac_c_werror_flag" ||
27882          test ! -s conftest.err
27883        } && test -s conftest$ac_exeext &&
27884        $as_test_x conftest$ac_exeext; then
27885   eval "$as_ac_var=yes"
27886 else
27887   echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890         eval "$as_ac_var=no"
27891 fi
27892
27893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27894       conftest$ac_exeext conftest.$ac_ext
27895 fi
27896 ac_res=`eval echo '${'$as_ac_var'}'`
27897                { echo "$as_me:$LINENO: result: $ac_res" >&5
27898 echo "${ECHO_T}$ac_res" >&6; }
27899 if test `eval echo '${'$as_ac_var'}'` = yes; then
27900   cat >>confdefs.h <<_ACEOF
27901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27902 _ACEOF
27903
27904 fi
27905 done
27906
27907
27908
27909 { echo "$as_me:$LINENO: checking for short" >&5
27910 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27911 if test "${ac_cv_type_short+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h.  */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h.  */
27920 $ac_includes_default
27921 typedef short ac__type_new_;
27922 int
27923 main ()
27924 {
27925 if ((ac__type_new_ *) 0)
27926   return 0;
27927 if (sizeof (ac__type_new_))
27928   return 0;
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_compile") 2>conftest.er1
27941   ac_status=$?
27942   grep -v '^ *+' conftest.er1 >conftest.err
27943   rm -f conftest.er1
27944   cat conftest.err >&5
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } && {
27947          test -z "$ac_c_werror_flag" ||
27948          test ! -s conftest.err
27949        } && test -s conftest.$ac_objext; then
27950   ac_cv_type_short=yes
27951 else
27952   echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27954
27955         ac_cv_type_short=no
27956 fi
27957
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27959 fi
27960 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27961 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27962
27963 # The cast to long int works around a bug in the HP C Compiler
27964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27966 # This bug is HP SR number 8606223364.
27967 { echo "$as_me:$LINENO: checking size of short" >&5
27968 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27969 if test "${ac_cv_sizeof_short+set}" = set; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   if test "$cross_compiling" = yes; then
27973   # Depending upon the size, compute the lo and hi bounds.
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980 $ac_includes_default
27981    typedef short ac__type_sizeof_;
27982 int
27983 main ()
27984 {
27985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27986 test_array [0] = 0
27987
27988   ;
27989   return 0;
27990 }
27991 _ACEOF
27992 rm -f conftest.$ac_objext
27993 if { (ac_try="$ac_compile"
27994 case "(($ac_try" in
27995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996   *) ac_try_echo=$ac_try;;
27997 esac
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999   (eval "$ac_compile") 2>conftest.er1
28000   ac_status=$?
28001   grep -v '^ *+' conftest.er1 >conftest.err
28002   rm -f conftest.er1
28003   cat conftest.err >&5
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); } && {
28006          test -z "$ac_c_werror_flag" ||
28007          test ! -s conftest.err
28008        } && test -s conftest.$ac_objext; then
28009   ac_lo=0 ac_mid=0
28010   while :; do
28011     cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h.  */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h.  */
28017 $ac_includes_default
28018    typedef short ac__type_sizeof_;
28019 int
28020 main ()
28021 {
28022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28023 test_array [0] = 0
28024
28025   ;
28026   return 0;
28027 }
28028 _ACEOF
28029 rm -f conftest.$ac_objext
28030 if { (ac_try="$ac_compile"
28031 case "(($ac_try" in
28032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033   *) ac_try_echo=$ac_try;;
28034 esac
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036   (eval "$ac_compile") 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } && {
28043          test -z "$ac_c_werror_flag" ||
28044          test ! -s conftest.err
28045        } && test -s conftest.$ac_objext; then
28046   ac_hi=$ac_mid; break
28047 else
28048   echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28050
28051         ac_lo=`expr $ac_mid + 1`
28052                         if test $ac_lo -le $ac_mid; then
28053                           ac_lo= ac_hi=
28054                           break
28055                         fi
28056                         ac_mid=`expr 2 '*' $ac_mid + 1`
28057 fi
28058
28059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28060   done
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065         cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071 $ac_includes_default
28072    typedef short ac__type_sizeof_;
28073 int
28074 main ()
28075 {
28076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28077 test_array [0] = 0
28078
28079   ;
28080   return 0;
28081 }
28082 _ACEOF
28083 rm -f conftest.$ac_objext
28084 if { (ac_try="$ac_compile"
28085 case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_compile") 2>conftest.er1
28091   ac_status=$?
28092   grep -v '^ *+' conftest.er1 >conftest.err
28093   rm -f conftest.er1
28094   cat conftest.err >&5
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); } && {
28097          test -z "$ac_c_werror_flag" ||
28098          test ! -s conftest.err
28099        } && test -s conftest.$ac_objext; then
28100   ac_hi=-1 ac_mid=-1
28101   while :; do
28102     cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108 $ac_includes_default
28109    typedef short ac__type_sizeof_;
28110 int
28111 main ()
28112 {
28113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28114 test_array [0] = 0
28115
28116   ;
28117   return 0;
28118 }
28119 _ACEOF
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124   *) ac_try_echo=$ac_try;;
28125 esac
28126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127   (eval "$ac_compile") 2>conftest.er1
28128   ac_status=$?
28129   grep -v '^ *+' conftest.er1 >conftest.err
28130   rm -f conftest.er1
28131   cat conftest.err >&5
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } && {
28134          test -z "$ac_c_werror_flag" ||
28135          test ! -s conftest.err
28136        } && test -s conftest.$ac_objext; then
28137   ac_lo=$ac_mid; break
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142         ac_hi=`expr '(' $ac_mid ')' - 1`
28143                         if test $ac_mid -le $ac_hi; then
28144                           ac_lo= ac_hi=
28145                           break
28146                         fi
28147                         ac_mid=`expr 2 '*' $ac_mid`
28148 fi
28149
28150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28151   done
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156         ac_lo= ac_hi=
28157 fi
28158
28159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160 fi
28161
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 # Binary search between lo and hi bounds.
28164 while test "x$ac_lo" != "x$ac_hi"; do
28165   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 $ac_includes_default
28173    typedef short ac__type_sizeof_;
28174 int
28175 main ()
28176 {
28177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28178 test_array [0] = 0
28179
28180   ;
28181   return 0;
28182 }
28183 _ACEOF
28184 rm -f conftest.$ac_objext
28185 if { (ac_try="$ac_compile"
28186 case "(($ac_try" in
28187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188   *) ac_try_echo=$ac_try;;
28189 esac
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191   (eval "$ac_compile") 2>conftest.er1
28192   ac_status=$?
28193   grep -v '^ *+' conftest.er1 >conftest.err
28194   rm -f conftest.er1
28195   cat conftest.err >&5
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); } && {
28198          test -z "$ac_c_werror_flag" ||
28199          test ! -s conftest.err
28200        } && test -s conftest.$ac_objext; then
28201   ac_hi=$ac_mid
28202 else
28203   echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28205
28206         ac_lo=`expr '(' $ac_mid ')' + 1`
28207 fi
28208
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28210 done
28211 case $ac_lo in
28212 ?*) ac_cv_sizeof_short=$ac_lo;;
28213 '') if test "$ac_cv_type_short" = yes; then
28214      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28215 See \`config.log' for more details." >&5
28216 echo "$as_me: error: cannot compute sizeof (short)
28217 See \`config.log' for more details." >&2;}
28218    { (exit 77); exit 77; }; }
28219    else
28220      ac_cv_sizeof_short=0
28221    fi ;;
28222 esac
28223 else
28224   cat >conftest.$ac_ext <<_ACEOF
28225 /* confdefs.h.  */
28226 _ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h.  */
28230 $ac_includes_default
28231    typedef short ac__type_sizeof_;
28232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28234 #include <stdio.h>
28235 #include <stdlib.h>
28236 int
28237 main ()
28238 {
28239
28240   FILE *f = fopen ("conftest.val", "w");
28241   if (! f)
28242     return 1;
28243   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28244     {
28245       long int i = longval ();
28246       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28247         return 1;
28248       fprintf (f, "%ld\n", i);
28249     }
28250   else
28251     {
28252       unsigned long int i = ulongval ();
28253       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28254         return 1;
28255       fprintf (f, "%lu\n", i);
28256     }
28257   return ferror (f) || fclose (f) != 0;
28258
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 rm -f conftest$ac_exeext
28264 if { (ac_try="$ac_link"
28265 case "(($ac_try" in
28266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267   *) ac_try_echo=$ac_try;;
28268 esac
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270   (eval "$ac_link") 2>&5
28271   ac_status=$?
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28274   { (case "(($ac_try" in
28275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276   *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279   (eval "$ac_try") 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; }; then
28283   ac_cv_sizeof_short=`cat conftest.val`
28284 else
28285   echo "$as_me: program exited with status $ac_status" >&5
28286 echo "$as_me: failed program was:" >&5
28287 sed 's/^/| /' conftest.$ac_ext >&5
28288
28289 ( exit $ac_status )
28290 if test "$ac_cv_type_short" = yes; then
28291      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28292 See \`config.log' for more details." >&5
28293 echo "$as_me: error: cannot compute sizeof (short)
28294 See \`config.log' for more details." >&2;}
28295    { (exit 77); exit 77; }; }
28296    else
28297      ac_cv_sizeof_short=0
28298    fi
28299 fi
28300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28301 fi
28302 rm -f conftest.val
28303 fi
28304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28305 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28306
28307
28308
28309 cat >>confdefs.h <<_ACEOF
28310 #define SIZEOF_SHORT $ac_cv_sizeof_short
28311 _ACEOF
28312
28313
28314 { echo "$as_me:$LINENO: checking for int" >&5
28315 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28316 if test "${ac_cv_type_int+set}" = set; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319   cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h.  */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h.  */
28325 $ac_includes_default
28326 typedef int ac__type_new_;
28327 int
28328 main ()
28329 {
28330 if ((ac__type_new_ *) 0)
28331   return 0;
28332 if (sizeof (ac__type_new_))
28333   return 0;
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345   (eval "$ac_compile") 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } && {
28352          test -z "$ac_c_werror_flag" ||
28353          test ! -s conftest.err
28354        } && test -s conftest.$ac_objext; then
28355   ac_cv_type_int=yes
28356 else
28357   echo "$as_me: failed program was:" >&5
28358 sed 's/^/| /' conftest.$ac_ext >&5
28359
28360         ac_cv_type_int=no
28361 fi
28362
28363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28364 fi
28365 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28366 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28367
28368 # The cast to long int works around a bug in the HP C Compiler
28369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28371 # This bug is HP SR number 8606223364.
28372 { echo "$as_me:$LINENO: checking size of int" >&5
28373 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28374 if test "${ac_cv_sizeof_int+set}" = set; then
28375   echo $ECHO_N "(cached) $ECHO_C" >&6
28376 else
28377   if test "$cross_compiling" = yes; then
28378   # Depending upon the size, compute the lo and hi bounds.
28379 cat >conftest.$ac_ext <<_ACEOF
28380 /* confdefs.h.  */
28381 _ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h.  */
28385 $ac_includes_default
28386    typedef int ac__type_sizeof_;
28387 int
28388 main ()
28389 {
28390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28391 test_array [0] = 0
28392
28393   ;
28394   return 0;
28395 }
28396 _ACEOF
28397 rm -f conftest.$ac_objext
28398 if { (ac_try="$ac_compile"
28399 case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404   (eval "$ac_compile") 2>conftest.er1
28405   ac_status=$?
28406   grep -v '^ *+' conftest.er1 >conftest.err
28407   rm -f conftest.er1
28408   cat conftest.err >&5
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); } && {
28411          test -z "$ac_c_werror_flag" ||
28412          test ! -s conftest.err
28413        } && test -s conftest.$ac_objext; then
28414   ac_lo=0 ac_mid=0
28415   while :; do
28416     cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h.  */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h.  */
28422 $ac_includes_default
28423    typedef int ac__type_sizeof_;
28424 int
28425 main ()
28426 {
28427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28428 test_array [0] = 0
28429
28430   ;
28431   return 0;
28432 }
28433 _ACEOF
28434 rm -f conftest.$ac_objext
28435 if { (ac_try="$ac_compile"
28436 case "(($ac_try" in
28437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438   *) ac_try_echo=$ac_try;;
28439 esac
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441   (eval "$ac_compile") 2>conftest.er1
28442   ac_status=$?
28443   grep -v '^ *+' conftest.er1 >conftest.err
28444   rm -f conftest.er1
28445   cat conftest.err >&5
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); } && {
28448          test -z "$ac_c_werror_flag" ||
28449          test ! -s conftest.err
28450        } && test -s conftest.$ac_objext; then
28451   ac_hi=$ac_mid; break
28452 else
28453   echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28455
28456         ac_lo=`expr $ac_mid + 1`
28457                         if test $ac_lo -le $ac_mid; then
28458                           ac_lo= ac_hi=
28459                           break
28460                         fi
28461                         ac_mid=`expr 2 '*' $ac_mid + 1`
28462 fi
28463
28464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465   done
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470         cat >conftest.$ac_ext <<_ACEOF
28471 /* confdefs.h.  */
28472 _ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h.  */
28476 $ac_includes_default
28477    typedef int ac__type_sizeof_;
28478 int
28479 main ()
28480 {
28481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28482 test_array [0] = 0
28483
28484   ;
28485   return 0;
28486 }
28487 _ACEOF
28488 rm -f conftest.$ac_objext
28489 if { (ac_try="$ac_compile"
28490 case "(($ac_try" in
28491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492   *) ac_try_echo=$ac_try;;
28493 esac
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495   (eval "$ac_compile") 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } && {
28502          test -z "$ac_c_werror_flag" ||
28503          test ! -s conftest.err
28504        } && test -s conftest.$ac_objext; then
28505   ac_hi=-1 ac_mid=-1
28506   while :; do
28507     cat >conftest.$ac_ext <<_ACEOF
28508 /* confdefs.h.  */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h.  */
28513 $ac_includes_default
28514    typedef int ac__type_sizeof_;
28515 int
28516 main ()
28517 {
28518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28519 test_array [0] = 0
28520
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext
28526 if { (ac_try="$ac_compile"
28527 case "(($ac_try" in
28528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529   *) ac_try_echo=$ac_try;;
28530 esac
28531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532   (eval "$ac_compile") 2>conftest.er1
28533   ac_status=$?
28534   grep -v '^ *+' conftest.er1 >conftest.err
28535   rm -f conftest.er1
28536   cat conftest.err >&5
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); } && {
28539          test -z "$ac_c_werror_flag" ||
28540          test ! -s conftest.err
28541        } && test -s conftest.$ac_objext; then
28542   ac_lo=$ac_mid; break
28543 else
28544   echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28546
28547         ac_hi=`expr '(' $ac_mid ')' - 1`
28548                         if test $ac_mid -le $ac_hi; then
28549                           ac_lo= ac_hi=
28550                           break
28551                         fi
28552                         ac_mid=`expr 2 '*' $ac_mid`
28553 fi
28554
28555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28556   done
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561         ac_lo= ac_hi=
28562 fi
28563
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 fi
28566
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 # Binary search between lo and hi bounds.
28569 while test "x$ac_lo" != "x$ac_hi"; do
28570   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28571   cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h.  */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h.  */
28577 $ac_includes_default
28578    typedef int ac__type_sizeof_;
28579 int
28580 main ()
28581 {
28582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28583 test_array [0] = 0
28584
28585   ;
28586   return 0;
28587 }
28588 _ACEOF
28589 rm -f conftest.$ac_objext
28590 if { (ac_try="$ac_compile"
28591 case "(($ac_try" in
28592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593   *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596   (eval "$ac_compile") 2>conftest.er1
28597   ac_status=$?
28598   grep -v '^ *+' conftest.er1 >conftest.err
28599   rm -f conftest.er1
28600   cat conftest.err >&5
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && {
28603          test -z "$ac_c_werror_flag" ||
28604          test ! -s conftest.err
28605        } && test -s conftest.$ac_objext; then
28606   ac_hi=$ac_mid
28607 else
28608   echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28610
28611         ac_lo=`expr '(' $ac_mid ')' + 1`
28612 fi
28613
28614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28615 done
28616 case $ac_lo in
28617 ?*) ac_cv_sizeof_int=$ac_lo;;
28618 '') if test "$ac_cv_type_int" = yes; then
28619      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28620 See \`config.log' for more details." >&5
28621 echo "$as_me: error: cannot compute sizeof (int)
28622 See \`config.log' for more details." >&2;}
28623    { (exit 77); exit 77; }; }
28624    else
28625      ac_cv_sizeof_int=0
28626    fi ;;
28627 esac
28628 else
28629   cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635 $ac_includes_default
28636    typedef int ac__type_sizeof_;
28637 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28638 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28639 #include <stdio.h>
28640 #include <stdlib.h>
28641 int
28642 main ()
28643 {
28644
28645   FILE *f = fopen ("conftest.val", "w");
28646   if (! f)
28647     return 1;
28648   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28649     {
28650       long int i = longval ();
28651       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28652         return 1;
28653       fprintf (f, "%ld\n", i);
28654     }
28655   else
28656     {
28657       unsigned long int i = ulongval ();
28658       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28659         return 1;
28660       fprintf (f, "%lu\n", i);
28661     }
28662   return ferror (f) || fclose (f) != 0;
28663
28664   ;
28665   return 0;
28666 }
28667 _ACEOF
28668 rm -f conftest$ac_exeext
28669 if { (ac_try="$ac_link"
28670 case "(($ac_try" in
28671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672   *) ac_try_echo=$ac_try;;
28673 esac
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675   (eval "$ac_link") 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28679   { (case "(($ac_try" in
28680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681   *) ac_try_echo=$ac_try;;
28682 esac
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684   (eval "$ac_try") 2>&5
28685   ac_status=$?
28686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687   (exit $ac_status); }; }; then
28688   ac_cv_sizeof_int=`cat conftest.val`
28689 else
28690   echo "$as_me: program exited with status $ac_status" >&5
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28693
28694 ( exit $ac_status )
28695 if test "$ac_cv_type_int" = yes; then
28696      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28697 See \`config.log' for more details." >&5
28698 echo "$as_me: error: cannot compute sizeof (int)
28699 See \`config.log' for more details." >&2;}
28700    { (exit 77); exit 77; }; }
28701    else
28702      ac_cv_sizeof_int=0
28703    fi
28704 fi
28705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28706 fi
28707 rm -f conftest.val
28708 fi
28709 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28710 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28711
28712
28713
28714 cat >>confdefs.h <<_ACEOF
28715 #define SIZEOF_INT $ac_cv_sizeof_int
28716 _ACEOF
28717
28718
28719 { echo "$as_me:$LINENO: checking for long" >&5
28720 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28721 if test "${ac_cv_type_long+set}" = set; then
28722   echo $ECHO_N "(cached) $ECHO_C" >&6
28723 else
28724   cat >conftest.$ac_ext <<_ACEOF
28725 /* confdefs.h.  */
28726 _ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h.  */
28730 $ac_includes_default
28731 typedef long ac__type_new_;
28732 int
28733 main ()
28734 {
28735 if ((ac__type_new_ *) 0)
28736   return 0;
28737 if (sizeof (ac__type_new_))
28738   return 0;
28739   ;
28740   return 0;
28741 }
28742 _ACEOF
28743 rm -f conftest.$ac_objext
28744 if { (ac_try="$ac_compile"
28745 case "(($ac_try" in
28746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747   *) ac_try_echo=$ac_try;;
28748 esac
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750   (eval "$ac_compile") 2>conftest.er1
28751   ac_status=$?
28752   grep -v '^ *+' conftest.er1 >conftest.err
28753   rm -f conftest.er1
28754   cat conftest.err >&5
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); } && {
28757          test -z "$ac_c_werror_flag" ||
28758          test ! -s conftest.err
28759        } && test -s conftest.$ac_objext; then
28760   ac_cv_type_long=yes
28761 else
28762   echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765         ac_cv_type_long=no
28766 fi
28767
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 fi
28770 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28771 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28772
28773 # The cast to long int works around a bug in the HP C Compiler
28774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28776 # This bug is HP SR number 8606223364.
28777 { echo "$as_me:$LINENO: checking size of long" >&5
28778 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28779 if test "${ac_cv_sizeof_long+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782   if test "$cross_compiling" = yes; then
28783   # Depending upon the size, compute the lo and hi bounds.
28784 cat >conftest.$ac_ext <<_ACEOF
28785 /* confdefs.h.  */
28786 _ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h.  */
28790 $ac_includes_default
28791    typedef long ac__type_sizeof_;
28792 int
28793 main ()
28794 {
28795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28796 test_array [0] = 0
28797
28798   ;
28799   return 0;
28800 }
28801 _ACEOF
28802 rm -f conftest.$ac_objext
28803 if { (ac_try="$ac_compile"
28804 case "(($ac_try" in
28805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28806   *) ac_try_echo=$ac_try;;
28807 esac
28808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28809   (eval "$ac_compile") 2>conftest.er1
28810   ac_status=$?
28811   grep -v '^ *+' conftest.er1 >conftest.err
28812   rm -f conftest.er1
28813   cat conftest.err >&5
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); } && {
28816          test -z "$ac_c_werror_flag" ||
28817          test ! -s conftest.err
28818        } && test -s conftest.$ac_objext; then
28819   ac_lo=0 ac_mid=0
28820   while :; do
28821     cat >conftest.$ac_ext <<_ACEOF
28822 /* confdefs.h.  */
28823 _ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h.  */
28827 $ac_includes_default
28828    typedef long ac__type_sizeof_;
28829 int
28830 main ()
28831 {
28832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28833 test_array [0] = 0
28834
28835   ;
28836   return 0;
28837 }
28838 _ACEOF
28839 rm -f conftest.$ac_objext
28840 if { (ac_try="$ac_compile"
28841 case "(($ac_try" in
28842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843   *) ac_try_echo=$ac_try;;
28844 esac
28845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846   (eval "$ac_compile") 2>conftest.er1
28847   ac_status=$?
28848   grep -v '^ *+' conftest.er1 >conftest.err
28849   rm -f conftest.er1
28850   cat conftest.err >&5
28851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852   (exit $ac_status); } && {
28853          test -z "$ac_c_werror_flag" ||
28854          test ! -s conftest.err
28855        } && test -s conftest.$ac_objext; then
28856   ac_hi=$ac_mid; break
28857 else
28858   echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28860
28861         ac_lo=`expr $ac_mid + 1`
28862                         if test $ac_lo -le $ac_mid; then
28863                           ac_lo= ac_hi=
28864                           break
28865                         fi
28866                         ac_mid=`expr 2 '*' $ac_mid + 1`
28867 fi
28868
28869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28870   done
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875         cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881 $ac_includes_default
28882    typedef long ac__type_sizeof_;
28883 int
28884 main ()
28885 {
28886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28887 test_array [0] = 0
28888
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_compile") 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } && {
28907          test -z "$ac_c_werror_flag" ||
28908          test ! -s conftest.err
28909        } && test -s conftest.$ac_objext; then
28910   ac_hi=-1 ac_mid=-1
28911   while :; do
28912     cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918 $ac_includes_default
28919    typedef long ac__type_sizeof_;
28920 int
28921 main ()
28922 {
28923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28924 test_array [0] = 0
28925
28926   ;
28927   return 0;
28928 }
28929 _ACEOF
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_compile") 2>conftest.er1
28938   ac_status=$?
28939   grep -v '^ *+' conftest.er1 >conftest.err
28940   rm -f conftest.er1
28941   cat conftest.err >&5
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); } && {
28944          test -z "$ac_c_werror_flag" ||
28945          test ! -s conftest.err
28946        } && test -s conftest.$ac_objext; then
28947   ac_lo=$ac_mid; break
28948 else
28949   echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28951
28952         ac_hi=`expr '(' $ac_mid ')' - 1`
28953                         if test $ac_mid -le $ac_hi; then
28954                           ac_lo= ac_hi=
28955                           break
28956                         fi
28957                         ac_mid=`expr 2 '*' $ac_mid`
28958 fi
28959
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28961   done
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966         ac_lo= ac_hi=
28967 fi
28968
28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28970 fi
28971
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 # Binary search between lo and hi bounds.
28974 while test "x$ac_lo" != "x$ac_hi"; do
28975   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28976   cat >conftest.$ac_ext <<_ACEOF
28977 /* confdefs.h.  */
28978 _ACEOF
28979 cat confdefs.h >>conftest.$ac_ext
28980 cat >>conftest.$ac_ext <<_ACEOF
28981 /* end confdefs.h.  */
28982 $ac_includes_default
28983    typedef long ac__type_sizeof_;
28984 int
28985 main ()
28986 {
28987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28988 test_array [0] = 0
28989
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_compile") 2>conftest.er1
29002   ac_status=$?
29003   grep -v '^ *+' conftest.er1 >conftest.err
29004   rm -f conftest.er1
29005   cat conftest.err >&5
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); } && {
29008          test -z "$ac_c_werror_flag" ||
29009          test ! -s conftest.err
29010        } && test -s conftest.$ac_objext; then
29011   ac_hi=$ac_mid
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016         ac_lo=`expr '(' $ac_mid ')' + 1`
29017 fi
29018
29019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29020 done
29021 case $ac_lo in
29022 ?*) ac_cv_sizeof_long=$ac_lo;;
29023 '') if test "$ac_cv_type_long" = yes; then
29024      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29025 See \`config.log' for more details." >&5
29026 echo "$as_me: error: cannot compute sizeof (long)
29027 See \`config.log' for more details." >&2;}
29028    { (exit 77); exit 77; }; }
29029    else
29030      ac_cv_sizeof_long=0
29031    fi ;;
29032 esac
29033 else
29034   cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 $ac_includes_default
29041    typedef long ac__type_sizeof_;
29042 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29043 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29044 #include <stdio.h>
29045 #include <stdlib.h>
29046 int
29047 main ()
29048 {
29049
29050   FILE *f = fopen ("conftest.val", "w");
29051   if (! f)
29052     return 1;
29053   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29054     {
29055       long int i = longval ();
29056       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29057         return 1;
29058       fprintf (f, "%ld\n", i);
29059     }
29060   else
29061     {
29062       unsigned long int i = ulongval ();
29063       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29064         return 1;
29065       fprintf (f, "%lu\n", i);
29066     }
29067   return ferror (f) || fclose (f) != 0;
29068
29069   ;
29070   return 0;
29071 }
29072 _ACEOF
29073 rm -f conftest$ac_exeext
29074 if { (ac_try="$ac_link"
29075 case "(($ac_try" in
29076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077   *) ac_try_echo=$ac_try;;
29078 esac
29079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080   (eval "$ac_link") 2>&5
29081   ac_status=$?
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29084   { (case "(($ac_try" in
29085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086   *) ac_try_echo=$ac_try;;
29087 esac
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089   (eval "$ac_try") 2>&5
29090   ac_status=$?
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); }; }; then
29093   ac_cv_sizeof_long=`cat conftest.val`
29094 else
29095   echo "$as_me: program exited with status $ac_status" >&5
29096 echo "$as_me: failed program was:" >&5
29097 sed 's/^/| /' conftest.$ac_ext >&5
29098
29099 ( exit $ac_status )
29100 if test "$ac_cv_type_long" = yes; then
29101      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29102 See \`config.log' for more details." >&5
29103 echo "$as_me: error: cannot compute sizeof (long)
29104 See \`config.log' for more details." >&2;}
29105    { (exit 77); exit 77; }; }
29106    else
29107      ac_cv_sizeof_long=0
29108    fi
29109 fi
29110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29111 fi
29112 rm -f conftest.val
29113 fi
29114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29115 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29116
29117
29118
29119 cat >>confdefs.h <<_ACEOF
29120 #define SIZEOF_LONG $ac_cv_sizeof_long
29121 _ACEOF
29122
29123
29124 { echo "$as_me:$LINENO: checking for size_t" >&5
29125 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29126 if test "${ac_cv_type_size_t+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135 $ac_includes_default
29136 typedef size_t ac__type_new_;
29137 int
29138 main ()
29139 {
29140 if ((ac__type_new_ *) 0)
29141   return 0;
29142 if (sizeof (ac__type_new_))
29143   return 0;
29144   ;
29145   return 0;
29146 }
29147 _ACEOF
29148 rm -f conftest.$ac_objext
29149 if { (ac_try="$ac_compile"
29150 case "(($ac_try" in
29151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152   *) ac_try_echo=$ac_try;;
29153 esac
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155   (eval "$ac_compile") 2>conftest.er1
29156   ac_status=$?
29157   grep -v '^ *+' conftest.er1 >conftest.err
29158   rm -f conftest.er1
29159   cat conftest.err >&5
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); } && {
29162          test -z "$ac_c_werror_flag" ||
29163          test ! -s conftest.err
29164        } && test -s conftest.$ac_objext; then
29165   ac_cv_type_size_t=yes
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170         ac_cv_type_size_t=no
29171 fi
29172
29173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29174 fi
29175 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29176 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29177
29178 # The cast to long int works around a bug in the HP C Compiler
29179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29181 # This bug is HP SR number 8606223364.
29182 { echo "$as_me:$LINENO: checking size of size_t" >&5
29183 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29184 if test "${ac_cv_sizeof_size_t+set}" = set; then
29185   echo $ECHO_N "(cached) $ECHO_C" >&6
29186 else
29187   if test "$cross_compiling" = yes; then
29188   # Depending upon the size, compute the lo and hi bounds.
29189 cat >conftest.$ac_ext <<_ACEOF
29190 /* confdefs.h.  */
29191 _ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h.  */
29195 $ac_includes_default
29196    typedef size_t ac__type_sizeof_;
29197 int
29198 main ()
29199 {
29200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29201 test_array [0] = 0
29202
29203   ;
29204   return 0;
29205 }
29206 _ACEOF
29207 rm -f conftest.$ac_objext
29208 if { (ac_try="$ac_compile"
29209 case "(($ac_try" in
29210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211   *) ac_try_echo=$ac_try;;
29212 esac
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214   (eval "$ac_compile") 2>conftest.er1
29215   ac_status=$?
29216   grep -v '^ *+' conftest.er1 >conftest.err
29217   rm -f conftest.er1
29218   cat conftest.err >&5
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); } && {
29221          test -z "$ac_c_werror_flag" ||
29222          test ! -s conftest.err
29223        } && test -s conftest.$ac_objext; then
29224   ac_lo=0 ac_mid=0
29225   while :; do
29226     cat >conftest.$ac_ext <<_ACEOF
29227 /* confdefs.h.  */
29228 _ACEOF
29229 cat confdefs.h >>conftest.$ac_ext
29230 cat >>conftest.$ac_ext <<_ACEOF
29231 /* end confdefs.h.  */
29232 $ac_includes_default
29233    typedef size_t ac__type_sizeof_;
29234 int
29235 main ()
29236 {
29237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29238 test_array [0] = 0
29239
29240   ;
29241   return 0;
29242 }
29243 _ACEOF
29244 rm -f conftest.$ac_objext
29245 if { (ac_try="$ac_compile"
29246 case "(($ac_try" in
29247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248   *) ac_try_echo=$ac_try;;
29249 esac
29250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251   (eval "$ac_compile") 2>conftest.er1
29252   ac_status=$?
29253   grep -v '^ *+' conftest.er1 >conftest.err
29254   rm -f conftest.er1
29255   cat conftest.err >&5
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); } && {
29258          test -z "$ac_c_werror_flag" ||
29259          test ! -s conftest.err
29260        } && test -s conftest.$ac_objext; then
29261   ac_hi=$ac_mid; break
29262 else
29263   echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266         ac_lo=`expr $ac_mid + 1`
29267                         if test $ac_lo -le $ac_mid; then
29268                           ac_lo= ac_hi=
29269                           break
29270                         fi
29271                         ac_mid=`expr 2 '*' $ac_mid + 1`
29272 fi
29273
29274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29275   done
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280         cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286 $ac_includes_default
29287    typedef size_t ac__type_sizeof_;
29288 int
29289 main ()
29290 {
29291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29292 test_array [0] = 0
29293
29294   ;
29295   return 0;
29296 }
29297 _ACEOF
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_compile") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } && {
29312          test -z "$ac_c_werror_flag" ||
29313          test ! -s conftest.err
29314        } && test -s conftest.$ac_objext; then
29315   ac_hi=-1 ac_mid=-1
29316   while :; do
29317     cat >conftest.$ac_ext <<_ACEOF
29318 /* confdefs.h.  */
29319 _ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h.  */
29323 $ac_includes_default
29324    typedef size_t ac__type_sizeof_;
29325 int
29326 main ()
29327 {
29328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29329 test_array [0] = 0
29330
29331   ;
29332   return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339   *) ac_try_echo=$ac_try;;
29340 esac
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342   (eval "$ac_compile") 2>conftest.er1
29343   ac_status=$?
29344   grep -v '^ *+' conftest.er1 >conftest.err
29345   rm -f conftest.er1
29346   cat conftest.err >&5
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); } && {
29349          test -z "$ac_c_werror_flag" ||
29350          test ! -s conftest.err
29351        } && test -s conftest.$ac_objext; then
29352   ac_lo=$ac_mid; break
29353 else
29354   echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29356
29357         ac_hi=`expr '(' $ac_mid ')' - 1`
29358                         if test $ac_mid -le $ac_hi; then
29359                           ac_lo= ac_hi=
29360                           break
29361                         fi
29362                         ac_mid=`expr 2 '*' $ac_mid`
29363 fi
29364
29365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29366   done
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_lo= ac_hi=
29372 fi
29373
29374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29375 fi
29376
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 # Binary search between lo and hi bounds.
29379 while test "x$ac_lo" != "x$ac_hi"; do
29380   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29381   cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 $ac_includes_default
29388    typedef size_t ac__type_sizeof_;
29389 int
29390 main ()
29391 {
29392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29393 test_array [0] = 0
29394
29395   ;
29396   return 0;
29397 }
29398 _ACEOF
29399 rm -f conftest.$ac_objext
29400 if { (ac_try="$ac_compile"
29401 case "(($ac_try" in
29402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403   *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406   (eval "$ac_compile") 2>conftest.er1
29407   ac_status=$?
29408   grep -v '^ *+' conftest.er1 >conftest.err
29409   rm -f conftest.er1
29410   cat conftest.err >&5
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); } && {
29413          test -z "$ac_c_werror_flag" ||
29414          test ! -s conftest.err
29415        } && test -s conftest.$ac_objext; then
29416   ac_hi=$ac_mid
29417 else
29418   echo "$as_me: failed program was:" >&5
29419 sed 's/^/| /' conftest.$ac_ext >&5
29420
29421         ac_lo=`expr '(' $ac_mid ')' + 1`
29422 fi
29423
29424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29425 done
29426 case $ac_lo in
29427 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29428 '') if test "$ac_cv_type_size_t" = yes; then
29429      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29430 See \`config.log' for more details." >&5
29431 echo "$as_me: error: cannot compute sizeof (size_t)
29432 See \`config.log' for more details." >&2;}
29433    { (exit 77); exit 77; }; }
29434    else
29435      ac_cv_sizeof_size_t=0
29436    fi ;;
29437 esac
29438 else
29439   cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445 $ac_includes_default
29446    typedef size_t ac__type_sizeof_;
29447 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29448 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29449 #include <stdio.h>
29450 #include <stdlib.h>
29451 int
29452 main ()
29453 {
29454
29455   FILE *f = fopen ("conftest.val", "w");
29456   if (! f)
29457     return 1;
29458   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29459     {
29460       long int i = longval ();
29461       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29462         return 1;
29463       fprintf (f, "%ld\n", i);
29464     }
29465   else
29466     {
29467       unsigned long int i = ulongval ();
29468       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29469         return 1;
29470       fprintf (f, "%lu\n", i);
29471     }
29472   return ferror (f) || fclose (f) != 0;
29473
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest$ac_exeext
29479 if { (ac_try="$ac_link"
29480 case "(($ac_try" in
29481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482   *) ac_try_echo=$ac_try;;
29483 esac
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485   (eval "$ac_link") 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29489   { (case "(($ac_try" in
29490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29491   *) ac_try_echo=$ac_try;;
29492 esac
29493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29494   (eval "$ac_try") 2>&5
29495   ac_status=$?
29496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497   (exit $ac_status); }; }; then
29498   ac_cv_sizeof_size_t=`cat conftest.val`
29499 else
29500   echo "$as_me: program exited with status $ac_status" >&5
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 ( exit $ac_status )
29505 if test "$ac_cv_type_size_t" = yes; then
29506      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29507 See \`config.log' for more details." >&5
29508 echo "$as_me: error: cannot compute sizeof (size_t)
29509 See \`config.log' for more details." >&2;}
29510    { (exit 77); exit 77; }; }
29511    else
29512      ac_cv_sizeof_size_t=0
29513    fi
29514 fi
29515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29516 fi
29517 rm -f conftest.val
29518 fi
29519 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29520 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29521
29522
29523
29524 cat >>confdefs.h <<_ACEOF
29525 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29526 _ACEOF
29527
29528
29529 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29530 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29531 if test "${ac_cv_type_socklen_t+set}" = set; then
29532   echo $ECHO_N "(cached) $ECHO_C" >&6
29533 else
29534   cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540 $ac_includes_default
29541 typedef socklen_t ac__type_new_;
29542 int
29543 main ()
29544 {
29545 if ((ac__type_new_ *) 0)
29546   return 0;
29547 if (sizeof (ac__type_new_))
29548   return 0;
29549   ;
29550   return 0;
29551 }
29552 _ACEOF
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_compile") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } && {
29567          test -z "$ac_c_werror_flag" ||
29568          test ! -s conftest.err
29569        } && test -s conftest.$ac_objext; then
29570   ac_cv_type_socklen_t=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575         ac_cv_type_socklen_t=no
29576 fi
29577
29578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29579 fi
29580 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29581 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29582
29583 # The cast to long int works around a bug in the HP C Compiler
29584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29586 # This bug is HP SR number 8606223364.
29587 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29588 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29589 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29590   echo $ECHO_N "(cached) $ECHO_C" >&6
29591 else
29592   if test "$cross_compiling" = yes; then
29593   # Depending upon the size, compute the lo and hi bounds.
29594 cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 $ac_includes_default
29601    typedef socklen_t ac__type_sizeof_;
29602 int
29603 main ()
29604 {
29605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29606 test_array [0] = 0
29607
29608   ;
29609   return 0;
29610 }
29611 _ACEOF
29612 rm -f conftest.$ac_objext
29613 if { (ac_try="$ac_compile"
29614 case "(($ac_try" in
29615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616   *) ac_try_echo=$ac_try;;
29617 esac
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619   (eval "$ac_compile") 2>conftest.er1
29620   ac_status=$?
29621   grep -v '^ *+' conftest.er1 >conftest.err
29622   rm -f conftest.er1
29623   cat conftest.err >&5
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); } && {
29626          test -z "$ac_c_werror_flag" ||
29627          test ! -s conftest.err
29628        } && test -s conftest.$ac_objext; then
29629   ac_lo=0 ac_mid=0
29630   while :; do
29631     cat >conftest.$ac_ext <<_ACEOF
29632 /* confdefs.h.  */
29633 _ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h.  */
29637 $ac_includes_default
29638    typedef socklen_t ac__type_sizeof_;
29639 int
29640 main ()
29641 {
29642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29643 test_array [0] = 0
29644
29645   ;
29646   return 0;
29647 }
29648 _ACEOF
29649 rm -f conftest.$ac_objext
29650 if { (ac_try="$ac_compile"
29651 case "(($ac_try" in
29652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653   *) ac_try_echo=$ac_try;;
29654 esac
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656   (eval "$ac_compile") 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } && {
29663          test -z "$ac_c_werror_flag" ||
29664          test ! -s conftest.err
29665        } && test -s conftest.$ac_objext; then
29666   ac_hi=$ac_mid; break
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671         ac_lo=`expr $ac_mid + 1`
29672                         if test $ac_lo -le $ac_mid; then
29673                           ac_lo= ac_hi=
29674                           break
29675                         fi
29676                         ac_mid=`expr 2 '*' $ac_mid + 1`
29677 fi
29678
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29680   done
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685         cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691 $ac_includes_default
29692    typedef socklen_t ac__type_sizeof_;
29693 int
29694 main ()
29695 {
29696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29697 test_array [0] = 0
29698
29699   ;
29700   return 0;
29701 }
29702 _ACEOF
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707   *) ac_try_echo=$ac_try;;
29708 esac
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710   (eval "$ac_compile") 2>conftest.er1
29711   ac_status=$?
29712   grep -v '^ *+' conftest.er1 >conftest.err
29713   rm -f conftest.er1
29714   cat conftest.err >&5
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); } && {
29717          test -z "$ac_c_werror_flag" ||
29718          test ! -s conftest.err
29719        } && test -s conftest.$ac_objext; then
29720   ac_hi=-1 ac_mid=-1
29721   while :; do
29722     cat >conftest.$ac_ext <<_ACEOF
29723 /* confdefs.h.  */
29724 _ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h.  */
29728 $ac_includes_default
29729    typedef socklen_t ac__type_sizeof_;
29730 int
29731 main ()
29732 {
29733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29734 test_array [0] = 0
29735
29736   ;
29737   return 0;
29738 }
29739 _ACEOF
29740 rm -f conftest.$ac_objext
29741 if { (ac_try="$ac_compile"
29742 case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747   (eval "$ac_compile") 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } && {
29754          test -z "$ac_c_werror_flag" ||
29755          test ! -s conftest.err
29756        } && test -s conftest.$ac_objext; then
29757   ac_lo=$ac_mid; break
29758 else
29759   echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29761
29762         ac_hi=`expr '(' $ac_mid ')' - 1`
29763                         if test $ac_mid -le $ac_hi; then
29764                           ac_lo= ac_hi=
29765                           break
29766                         fi
29767                         ac_mid=`expr 2 '*' $ac_mid`
29768 fi
29769
29770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29771   done
29772 else
29773   echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29775
29776         ac_lo= ac_hi=
29777 fi
29778
29779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29780 fi
29781
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783 # Binary search between lo and hi bounds.
29784 while test "x$ac_lo" != "x$ac_hi"; do
29785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29786   cat >conftest.$ac_ext <<_ACEOF
29787 /* confdefs.h.  */
29788 _ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h.  */
29792 $ac_includes_default
29793    typedef socklen_t ac__type_sizeof_;
29794 int
29795 main ()
29796 {
29797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29798 test_array [0] = 0
29799
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_compile") 2>conftest.er1
29812   ac_status=$?
29813   grep -v '^ *+' conftest.er1 >conftest.err
29814   rm -f conftest.er1
29815   cat conftest.err >&5
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } && {
29818          test -z "$ac_c_werror_flag" ||
29819          test ! -s conftest.err
29820        } && test -s conftest.$ac_objext; then
29821   ac_hi=$ac_mid
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826         ac_lo=`expr '(' $ac_mid ')' + 1`
29827 fi
29828
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830 done
29831 case $ac_lo in
29832 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29833 '') if test "$ac_cv_type_socklen_t" = yes; then
29834      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29835 See \`config.log' for more details." >&5
29836 echo "$as_me: error: cannot compute sizeof (socklen_t)
29837 See \`config.log' for more details." >&2;}
29838    { (exit 77); exit 77; }; }
29839    else
29840      ac_cv_sizeof_socklen_t=0
29841    fi ;;
29842 esac
29843 else
29844   cat >conftest.$ac_ext <<_ACEOF
29845 /* confdefs.h.  */
29846 _ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h.  */
29850 $ac_includes_default
29851    typedef socklen_t ac__type_sizeof_;
29852 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29853 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29854 #include <stdio.h>
29855 #include <stdlib.h>
29856 int
29857 main ()
29858 {
29859
29860   FILE *f = fopen ("conftest.val", "w");
29861   if (! f)
29862     return 1;
29863   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29864     {
29865       long int i = longval ();
29866       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29867         return 1;
29868       fprintf (f, "%ld\n", i);
29869     }
29870   else
29871     {
29872       unsigned long int i = ulongval ();
29873       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29874         return 1;
29875       fprintf (f, "%lu\n", i);
29876     }
29877   return ferror (f) || fclose (f) != 0;
29878
29879   ;
29880   return 0;
29881 }
29882 _ACEOF
29883 rm -f conftest$ac_exeext
29884 if { (ac_try="$ac_link"
29885 case "(($ac_try" in
29886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887   *) ac_try_echo=$ac_try;;
29888 esac
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890   (eval "$ac_link") 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29894   { (case "(($ac_try" in
29895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896   *) ac_try_echo=$ac_try;;
29897 esac
29898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899   (eval "$ac_try") 2>&5
29900   ac_status=$?
29901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902   (exit $ac_status); }; }; then
29903   ac_cv_sizeof_socklen_t=`cat conftest.val`
29904 else
29905   echo "$as_me: program exited with status $ac_status" >&5
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909 ( exit $ac_status )
29910 if test "$ac_cv_type_socklen_t" = yes; then
29911      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29912 See \`config.log' for more details." >&5
29913 echo "$as_me: error: cannot compute sizeof (socklen_t)
29914 See \`config.log' for more details." >&2;}
29915    { (exit 77); exit 77; }; }
29916    else
29917      ac_cv_sizeof_socklen_t=0
29918    fi
29919 fi
29920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29921 fi
29922 rm -f conftest.val
29923 fi
29924 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29925 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29926
29927
29928
29929 cat >>confdefs.h <<_ACEOF
29930 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29931 _ACEOF
29932
29933
29934
29935
29936
29937 cat >>confdefs.h <<_ACEOF
29938 #define NFS_STATEDIR "$statedir"
29939 _ACEOF
29940
29941
29942 if test "x$cross_compiling" = "xno"; then
29943         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29944         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29945         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29946         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29947 else
29948         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29949         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29950         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29951         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29952 fi
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964 case $host in
29965   *)
29966     ARCHFLAGS="" ;;
29967 esac
29968
29969 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29970
29971 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29972
29973 AM_CFLAGS="$my_am_cflags"
29974
29975
29976 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29977 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29978
29979
29980 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"
29981
29982 cat >confcache <<\_ACEOF
29983 # This file is a shell script that caches the results of configure
29984 # tests run on this system so they can be shared between configure
29985 # scripts and configure runs, see configure's option --config-cache.
29986 # It is not useful on other systems.  If it contains results you don't
29987 # want to keep, you may remove or edit it.
29988 #
29989 # config.status only pays attention to the cache file if you give it
29990 # the --recheck option to rerun configure.
29991 #
29992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29994 # following values.
29995
29996 _ACEOF
29997
29998 # The following way of writing the cache mishandles newlines in values,
29999 # but we know of no workaround that is simple, portable, and efficient.
30000 # So, we kill variables containing newlines.
30001 # Ultrix sh set writes to stderr and can't be redirected directly,
30002 # and sets the high bit in the cache file unless we assign to the vars.
30003 (
30004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30005     eval ac_val=\$$ac_var
30006     case $ac_val in #(
30007     *${as_nl}*)
30008       case $ac_var in #(
30009       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30010 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30011       esac
30012       case $ac_var in #(
30013       _ | IFS | as_nl) ;; #(
30014       *) $as_unset $ac_var ;;
30015       esac ;;
30016     esac
30017   done
30018
30019   (set) 2>&1 |
30020     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30021     *${as_nl}ac_space=\ *)
30022       # `set' does not quote correctly, so add quotes (double-quote
30023       # substitution turns \\\\ into \\, and sed turns \\ into \).
30024       sed -n \
30025         "s/'/'\\\\''/g;
30026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30027       ;; #(
30028     *)
30029       # `set' quotes correctly as required by POSIX, so do not add quotes.
30030       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30031       ;;
30032     esac |
30033     sort
30034 ) |
30035   sed '
30036      /^ac_cv_env_/b end
30037      t clear
30038      :clear
30039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30040      t end
30041      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30042      :end' >>confcache
30043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30044   if test -w "$cache_file"; then
30045     test "x$cache_file" != "x/dev/null" &&
30046       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30047 echo "$as_me: updating cache $cache_file" >&6;}
30048     cat confcache >$cache_file
30049   else
30050     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30051 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30052   fi
30053 fi
30054 rm -f confcache
30055
30056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30057 # Let make expand exec_prefix.
30058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30059
30060 DEFS=-DHAVE_CONFIG_H
30061
30062 ac_libobjs=
30063 ac_ltlibobjs=
30064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30065   # 1. Remove the extension, and $U if already installed.
30066   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30067   ac_i=`echo "$ac_i" | sed "$ac_script"`
30068   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30069   #    will be set to the directory where LIBOBJS objects are built.
30070   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30071   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30072 done
30073 LIBOBJS=$ac_libobjs
30074
30075 LTLIBOBJS=$ac_ltlibobjs
30076
30077
30078 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30079   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30080 Usually this means the macro was only invoked conditionally." >&5
30081 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30082 Usually this means the macro was only invoked conditionally." >&2;}
30083    { (exit 1); exit 1; }; }
30084 fi
30085 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30086   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30087 Usually this means the macro was only invoked conditionally." >&5
30088 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30089 Usually this means the macro was only invoked conditionally." >&2;}
30090    { (exit 1); exit 1; }; }
30091 fi
30092 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30093   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097    { (exit 1); exit 1; }; }
30098 fi
30099 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30100   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104    { (exit 1); exit 1; }; }
30105 fi
30106 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30107   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111    { (exit 1); exit 1; }; }
30112 fi
30113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30114   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118    { (exit 1); exit 1; }; }
30119 fi
30120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30121   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125    { (exit 1); exit 1; }; }
30126 fi
30127 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30128   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132    { (exit 1); exit 1; }; }
30133 fi
30134 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30135   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139    { (exit 1); exit 1; }; }
30140 fi
30141
30142 : ${CONFIG_STATUS=./config.status}
30143 ac_clean_files_save=$ac_clean_files
30144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30147 cat >$CONFIG_STATUS <<_ACEOF
30148 #! $SHELL
30149 # Generated by $as_me.
30150 # Run this file to recreate the current configuration.
30151 # Compiler output produced by configure, useful for debugging
30152 # configure, is in config.log if it exists.
30153
30154 debug=false
30155 ac_cs_recheck=false
30156 ac_cs_silent=false
30157 SHELL=\${CONFIG_SHELL-$SHELL}
30158 _ACEOF
30159
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 ## --------------------- ##
30162 ## M4sh Initialization.  ##
30163 ## --------------------- ##
30164
30165 # Be more Bourne compatible
30166 DUALCASE=1; export DUALCASE # for MKS sh
30167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30168   emulate sh
30169   NULLCMD=:
30170   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30171   # is contrary to our usage.  Disable this feature.
30172   alias -g '${1+"$@"}'='"$@"'
30173   setopt NO_GLOB_SUBST
30174 else
30175   case `(set -o) 2>/dev/null` in
30176   *posix*) set -o posix ;;
30177 esac
30178
30179 fi
30180
30181
30182
30183
30184 # PATH needs CR
30185 # Avoid depending upon Character Ranges.
30186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30189 as_cr_digits='0123456789'
30190 as_cr_alnum=$as_cr_Letters$as_cr_digits
30191
30192 # The user is always right.
30193 if test "${PATH_SEPARATOR+set}" != set; then
30194   echo "#! /bin/sh" >conf$$.sh
30195   echo  "exit 0"   >>conf$$.sh
30196   chmod +x conf$$.sh
30197   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30198     PATH_SEPARATOR=';'
30199   else
30200     PATH_SEPARATOR=:
30201   fi
30202   rm -f conf$$.sh
30203 fi
30204
30205 # Support unset when possible.
30206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30207   as_unset=unset
30208 else
30209   as_unset=false
30210 fi
30211
30212
30213 # IFS
30214 # We need space, tab and new line, in precisely that order.  Quoting is
30215 # there to prevent editors from complaining about space-tab.
30216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30217 # splitting by setting IFS to empty value.)
30218 as_nl='
30219 '
30220 IFS=" ""        $as_nl"
30221
30222 # Find who we are.  Look in the path if we contain no directory separator.
30223 case $0 in
30224   *[\\/]* ) as_myself=$0 ;;
30225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30226 for as_dir in $PATH
30227 do
30228   IFS=$as_save_IFS
30229   test -z "$as_dir" && as_dir=.
30230   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30231 done
30232 IFS=$as_save_IFS
30233
30234      ;;
30235 esac
30236 # We did not find ourselves, most probably we were run as `sh COMMAND'
30237 # in which case we are not to be found in the path.
30238 if test "x$as_myself" = x; then
30239   as_myself=$0
30240 fi
30241 if test ! -f "$as_myself"; then
30242   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30243   { (exit 1); exit 1; }
30244 fi
30245
30246 # Work around bugs in pre-3.0 UWIN ksh.
30247 for as_var in ENV MAIL MAILPATH
30248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30249 done
30250 PS1='$ '
30251 PS2='> '
30252 PS4='+ '
30253
30254 # NLS nuisances.
30255 for as_var in \
30256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30258   LC_TELEPHONE LC_TIME
30259 do
30260   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30261     eval $as_var=C; export $as_var
30262   else
30263     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30264   fi
30265 done
30266
30267 # Required to use basename.
30268 if expr a : '\(a\)' >/dev/null 2>&1 &&
30269    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30270   as_expr=expr
30271 else
30272   as_expr=false
30273 fi
30274
30275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30276   as_basename=basename
30277 else
30278   as_basename=false
30279 fi
30280
30281
30282 # Name of the executable.
30283 as_me=`$as_basename -- "$0" ||
30284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30285          X"$0" : 'X\(//\)$' \| \
30286          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30287 echo X/"$0" |
30288     sed '/^.*\/\([^/][^/]*\)\/*$/{
30289             s//\1/
30290             q
30291           }
30292           /^X\/\(\/\/\)$/{
30293             s//\1/
30294             q
30295           }
30296           /^X\/\(\/\).*/{
30297             s//\1/
30298             q
30299           }
30300           s/.*/./; q'`
30301
30302 # CDPATH.
30303 $as_unset CDPATH
30304
30305
30306
30307   as_lineno_1=$LINENO
30308   as_lineno_2=$LINENO
30309   test "x$as_lineno_1" != "x$as_lineno_2" &&
30310   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30311
30312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30313   # uniformly replaced by the line number.  The first 'sed' inserts a
30314   # line-number line after each line using $LINENO; the second 'sed'
30315   # does the real work.  The second script uses 'N' to pair each
30316   # line-number line with the line containing $LINENO, and appends
30317   # trailing '-' during substitution so that $LINENO is not a special
30318   # case at line end.
30319   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30320   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30321   # E. McMahon (1931-1989) for sed's syntax.  :-)
30322   sed -n '
30323     p
30324     /[$]LINENO/=
30325   ' <$as_myself |
30326     sed '
30327       s/[$]LINENO.*/&-/
30328       t lineno
30329       b
30330       :lineno
30331       N
30332       :loop
30333       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30334       t loop
30335       s/-\n.*//
30336     ' >$as_me.lineno &&
30337   chmod +x "$as_me.lineno" ||
30338     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30339    { (exit 1); exit 1; }; }
30340
30341   # Don't try to exec as it changes $[0], causing all sort of problems
30342   # (the dirname of $[0] is not the place where we might find the
30343   # original and so on.  Autoconf is especially sensitive to this).
30344   . "./$as_me.lineno"
30345   # Exit status is that of the last command.
30346   exit
30347 }
30348
30349
30350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30351   as_dirname=dirname
30352 else
30353   as_dirname=false
30354 fi
30355
30356 ECHO_C= ECHO_N= ECHO_T=
30357 case `echo -n x` in
30358 -n*)
30359   case `echo 'x\c'` in
30360   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30361   *)   ECHO_C='\c';;
30362   esac;;
30363 *)
30364   ECHO_N='-n';;
30365 esac
30366
30367 if expr a : '\(a\)' >/dev/null 2>&1 &&
30368    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30369   as_expr=expr
30370 else
30371   as_expr=false
30372 fi
30373
30374 rm -f conf$$ conf$$.exe conf$$.file
30375 if test -d conf$$.dir; then
30376   rm -f conf$$.dir/conf$$.file
30377 else
30378   rm -f conf$$.dir
30379   mkdir conf$$.dir
30380 fi
30381 echo >conf$$.file
30382 if ln -s conf$$.file conf$$ 2>/dev/null; then
30383   as_ln_s='ln -s'
30384   # ... but there are two gotchas:
30385   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30386   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30387   # In both cases, we have to default to `cp -p'.
30388   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30389     as_ln_s='cp -p'
30390 elif ln conf$$.file conf$$ 2>/dev/null; then
30391   as_ln_s=ln
30392 else
30393   as_ln_s='cp -p'
30394 fi
30395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30396 rmdir conf$$.dir 2>/dev/null
30397
30398 if mkdir -p . 2>/dev/null; then
30399   as_mkdir_p=:
30400 else
30401   test -d ./-p && rmdir ./-p
30402   as_mkdir_p=false
30403 fi
30404
30405 if test -x / >/dev/null 2>&1; then
30406   as_test_x='test -x'
30407 else
30408   if ls -dL / >/dev/null 2>&1; then
30409     as_ls_L_option=L
30410   else
30411     as_ls_L_option=
30412   fi
30413   as_test_x='
30414     eval sh -c '\''
30415       if test -d "$1"; then
30416         test -d "$1/.";
30417       else
30418         case $1 in
30419         -*)set "./$1";;
30420         esac;
30421         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30422         ???[sx]*):;;*)false;;esac;fi
30423     '\'' sh
30424   '
30425 fi
30426 as_executable_p=$as_test_x
30427
30428 # Sed expression to map a string onto a valid CPP name.
30429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30430
30431 # Sed expression to map a string onto a valid variable name.
30432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30433
30434
30435 exec 6>&1
30436
30437 # Save the log message, to keep $[0] and so on meaningful, and to
30438 # report actual input values of CONFIG_FILES etc. instead of their
30439 # values after options handling.
30440 ac_log="
30441 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30442 generated by GNU Autoconf 2.61.  Invocation command line was
30443
30444   CONFIG_FILES    = $CONFIG_FILES
30445   CONFIG_HEADERS  = $CONFIG_HEADERS
30446   CONFIG_LINKS    = $CONFIG_LINKS
30447   CONFIG_COMMANDS = $CONFIG_COMMANDS
30448   $ $0 $@
30449
30450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30451 "
30452
30453 _ACEOF
30454
30455 cat >>$CONFIG_STATUS <<_ACEOF
30456 # Files that config.status was made for.
30457 config_files="$ac_config_files"
30458 config_headers="$ac_config_headers"
30459 config_commands="$ac_config_commands"
30460
30461 _ACEOF
30462
30463 cat >>$CONFIG_STATUS <<\_ACEOF
30464 ac_cs_usage="\
30465 \`$as_me' instantiates files from templates according to the
30466 current configuration.
30467
30468 Usage: $0 [OPTIONS] [FILE]...
30469
30470   -h, --help       print this help, then exit
30471   -V, --version    print version number and configuration settings, then exit
30472   -q, --quiet      do not print progress messages
30473   -d, --debug      don't remove temporary files
30474       --recheck    update $as_me by reconfiguring in the same conditions
30475   --file=FILE[:TEMPLATE]
30476                    instantiate the configuration file FILE
30477   --header=FILE[:TEMPLATE]
30478                    instantiate the configuration header FILE
30479
30480 Configuration files:
30481 $config_files
30482
30483 Configuration headers:
30484 $config_headers
30485
30486 Configuration commands:
30487 $config_commands
30488
30489 Report bugs to <bug-autoconf@gnu.org>."
30490
30491 _ACEOF
30492 cat >>$CONFIG_STATUS <<_ACEOF
30493 ac_cs_version="\\
30494 linux nfs-utils config.status 1.1.0
30495 configured by $0, generated by GNU Autoconf 2.61,
30496   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30497
30498 Copyright (C) 2006 Free Software Foundation, Inc.
30499 This config.status script is free software; the Free Software Foundation
30500 gives unlimited permission to copy, distribute and modify it."
30501
30502 ac_pwd='$ac_pwd'
30503 srcdir='$srcdir'
30504 INSTALL='$INSTALL'
30505 _ACEOF
30506
30507 cat >>$CONFIG_STATUS <<\_ACEOF
30508 # If no file are specified by the user, then we need to provide default
30509 # value.  By we need to know if files were specified by the user.
30510 ac_need_defaults=:
30511 while test $# != 0
30512 do
30513   case $1 in
30514   --*=*)
30515     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30516     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30517     ac_shift=:
30518     ;;
30519   *)
30520     ac_option=$1
30521     ac_optarg=$2
30522     ac_shift=shift
30523     ;;
30524   esac
30525
30526   case $ac_option in
30527   # Handling of the options.
30528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30529     ac_cs_recheck=: ;;
30530   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30531     echo "$ac_cs_version"; exit ;;
30532   --debug | --debu | --deb | --de | --d | -d )
30533     debug=: ;;
30534   --file | --fil | --fi | --f )
30535     $ac_shift
30536     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30537     ac_need_defaults=false;;
30538   --header | --heade | --head | --hea )
30539     $ac_shift
30540     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30541     ac_need_defaults=false;;
30542   --he | --h)
30543     # Conflict between --help and --header
30544     { echo "$as_me: error: ambiguous option: $1
30545 Try \`$0 --help' for more information." >&2
30546    { (exit 1); exit 1; }; };;
30547   --help | --hel | -h )
30548     echo "$ac_cs_usage"; exit ;;
30549   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30550   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30551     ac_cs_silent=: ;;
30552
30553   # This is an error.
30554   -*) { echo "$as_me: error: unrecognized option: $1
30555 Try \`$0 --help' for more information." >&2
30556    { (exit 1); exit 1; }; } ;;
30557
30558   *) ac_config_targets="$ac_config_targets $1"
30559      ac_need_defaults=false ;;
30560
30561   esac
30562   shift
30563 done
30564
30565 ac_configure_extra_args=
30566
30567 if $ac_cs_silent; then
30568   exec 6>/dev/null
30569   ac_configure_extra_args="$ac_configure_extra_args --silent"
30570 fi
30571
30572 _ACEOF
30573 cat >>$CONFIG_STATUS <<_ACEOF
30574 if \$ac_cs_recheck; then
30575   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30576   CONFIG_SHELL=$SHELL
30577   export CONFIG_SHELL
30578   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30579 fi
30580
30581 _ACEOF
30582 cat >>$CONFIG_STATUS <<\_ACEOF
30583 exec 5>>config.log
30584 {
30585   echo
30586   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30587 ## Running $as_me. ##
30588 _ASBOX
30589   echo "$ac_log"
30590 } >&5
30591
30592 _ACEOF
30593 cat >>$CONFIG_STATUS <<_ACEOF
30594 #
30595 # INIT-COMMANDS
30596 #
30597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30598
30599 _ACEOF
30600
30601 cat >>$CONFIG_STATUS <<\_ACEOF
30602
30603 # Handling of arguments.
30604 for ac_config_target in $ac_config_targets
30605 do
30606   case $ac_config_target in
30607     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30608     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30609     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30610     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30611     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30612     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30613     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30614     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30615     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30616     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30617     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30618     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30619     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30620     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30621     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30622     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30623     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30624     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30625     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30626     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30627     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30628     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30629     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30630     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30631     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30632     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30633     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30634     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30635
30636   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30638    { (exit 1); exit 1; }; };;
30639   esac
30640 done
30641
30642
30643 # If the user did not use the arguments to specify the items to instantiate,
30644 # then the envvar interface is used.  Set only those that are not.
30645 # We use the long form for the default assignment because of an extremely
30646 # bizarre bug on SunOS 4.1.3.
30647 if $ac_need_defaults; then
30648   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30649   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30650   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30651 fi
30652
30653 # Have a temporary directory for convenience.  Make it in the build tree
30654 # simply because there is no reason against having it here, and in addition,
30655 # creating and moving files from /tmp can sometimes cause problems.
30656 # Hook for its removal unless debugging.
30657 # Note that there is a small window in which the directory will not be cleaned:
30658 # after its creation but before its name has been assigned to `$tmp'.
30659 $debug ||
30660 {
30661   tmp=
30662   trap 'exit_status=$?
30663   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30664 ' 0
30665   trap '{ (exit 1); exit 1; }' 1 2 13 15
30666 }
30667 # Create a (secure) tmp directory for tmp files.
30668
30669 {
30670   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30671   test -n "$tmp" && test -d "$tmp"
30672 }  ||
30673 {
30674   tmp=./conf$$-$RANDOM
30675   (umask 077 && mkdir "$tmp")
30676 } ||
30677 {
30678    echo "$me: cannot create a temporary directory in ." >&2
30679    { (exit 1); exit 1; }
30680 }
30681
30682 #
30683 # Set up the sed scripts for CONFIG_FILES section.
30684 #
30685
30686 # No need to generate the scripts if there are no CONFIG_FILES.
30687 # This happens for instance when ./config.status config.h
30688 if test -n "$CONFIG_FILES"; then
30689
30690 _ACEOF
30691
30692
30693
30694 ac_delim='%!_!# '
30695 for ac_last_try in false false false false false :; do
30696   cat >conf$$subs.sed <<_ACEOF
30697 SHELL!$SHELL$ac_delim
30698 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30699 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30700 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30701 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30702 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30703 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30704 exec_prefix!$exec_prefix$ac_delim
30705 prefix!$prefix$ac_delim
30706 program_transform_name!$program_transform_name$ac_delim
30707 bindir!$bindir$ac_delim
30708 sbindir!$sbindir$ac_delim
30709 libexecdir!$libexecdir$ac_delim
30710 datarootdir!$datarootdir$ac_delim
30711 datadir!$datadir$ac_delim
30712 sysconfdir!$sysconfdir$ac_delim
30713 sharedstatedir!$sharedstatedir$ac_delim
30714 localstatedir!$localstatedir$ac_delim
30715 includedir!$includedir$ac_delim
30716 oldincludedir!$oldincludedir$ac_delim
30717 docdir!$docdir$ac_delim
30718 infodir!$infodir$ac_delim
30719 htmldir!$htmldir$ac_delim
30720 dvidir!$dvidir$ac_delim
30721 pdfdir!$pdfdir$ac_delim
30722 psdir!$psdir$ac_delim
30723 libdir!$libdir$ac_delim
30724 localedir!$localedir$ac_delim
30725 mandir!$mandir$ac_delim
30726 DEFS!$DEFS$ac_delim
30727 ECHO_C!$ECHO_C$ac_delim
30728 ECHO_N!$ECHO_N$ac_delim
30729 ECHO_T!$ECHO_T$ac_delim
30730 LIBS!$LIBS$ac_delim
30731 build_alias!$build_alias$ac_delim
30732 host_alias!$host_alias$ac_delim
30733 target_alias!$target_alias$ac_delim
30734 build!$build$ac_delim
30735 build_cpu!$build_cpu$ac_delim
30736 build_vendor!$build_vendor$ac_delim
30737 build_os!$build_os$ac_delim
30738 host!$host$ac_delim
30739 host_cpu!$host_cpu$ac_delim
30740 host_vendor!$host_vendor$ac_delim
30741 host_os!$host_os$ac_delim
30742 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30743 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30744 INSTALL_DATA!$INSTALL_DATA$ac_delim
30745 CYGPATH_W!$CYGPATH_W$ac_delim
30746 PACKAGE!$PACKAGE$ac_delim
30747 VERSION!$VERSION$ac_delim
30748 ACLOCAL!$ACLOCAL$ac_delim
30749 AUTOCONF!$AUTOCONF$ac_delim
30750 AUTOMAKE!$AUTOMAKE$ac_delim
30751 AUTOHEADER!$AUTOHEADER$ac_delim
30752 MAKEINFO!$MAKEINFO$ac_delim
30753 install_sh!$install_sh$ac_delim
30754 STRIP!$STRIP$ac_delim
30755 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30756 mkdir_p!$mkdir_p$ac_delim
30757 AWK!$AWK$ac_delim
30758 SET_MAKE!$SET_MAKE$ac_delim
30759 am__leading_dot!$am__leading_dot$ac_delim
30760 AMTAR!$AMTAR$ac_delim
30761 am__tar!$am__tar$ac_delim
30762 am__untar!$am__untar$ac_delim
30763 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30764 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30765 MAINT!$MAINT$ac_delim
30766 RELEASE!$RELEASE$ac_delim
30767 statedir!$statedir$ac_delim
30768 statduser!$statduser$ac_delim
30769 startstatd!$startstatd$ac_delim
30770 enable_nfsv3!$enable_nfsv3$ac_delim
30771 IDMAPD!$IDMAPD$ac_delim
30772 enable_nfsv4!$enable_nfsv4$ac_delim
30773 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30774 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30775 GSSD!$GSSD$ac_delim
30776 SVCGSSD!$SVCGSSD$ac_delim
30777 enable_gss!$enable_gss$ac_delim
30778 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30779 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30780 kprefix!$kprefix$ac_delim
30781 secure_statd!$secure_statd$ac_delim
30782 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30783 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30784 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30785 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30786 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30787 CC!$CC$ac_delim
30788 CFLAGS!$CFLAGS$ac_delim
30789 LDFLAGS!$LDFLAGS$ac_delim
30790 CPPFLAGS!$CPPFLAGS$ac_delim
30791 ac_ct_CC!$ac_ct_CC$ac_delim
30792 EXEEXT!$EXEEXT$ac_delim
30793 OBJEXT!$OBJEXT$ac_delim
30794 _ACEOF
30795
30796   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30797     break
30798   elif $ac_last_try; then
30799     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30801    { (exit 1); exit 1; }; }
30802   else
30803     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30804   fi
30805 done
30806
30807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30808 if test -n "$ac_eof"; then
30809   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30810   ac_eof=`expr $ac_eof + 1`
30811 fi
30812
30813 cat >>$CONFIG_STATUS <<_ACEOF
30814 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30816 _ACEOF
30817 sed '
30818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30819 s/^/s,@/; s/!/@,|#_!!_#|/
30820 :n
30821 t n
30822 s/'"$ac_delim"'$/,g/; t
30823 s/$/\\/; p
30824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30825 ' >>$CONFIG_STATUS <conf$$subs.sed
30826 rm -f conf$$subs.sed
30827 cat >>$CONFIG_STATUS <<_ACEOF
30828 CEOF$ac_eof
30829 _ACEOF
30830
30831
30832 ac_delim='%!_!# '
30833 for ac_last_try in false false false false false :; do
30834   cat >conf$$subs.sed <<_ACEOF
30835 DEPDIR!$DEPDIR$ac_delim
30836 am__include!$am__include$ac_delim
30837 am__quote!$am__quote$ac_delim
30838 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30839 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30840 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30841 CCDEPMODE!$CCDEPMODE$ac_delim
30842 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30843 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30844 LIBWRAP!$LIBWRAP$ac_delim
30845 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30846 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30847 CXX!$CXX$ac_delim
30848 CXXFLAGS!$CXXFLAGS$ac_delim
30849 ac_ct_CXX!$ac_ct_CXX$ac_delim
30850 CXXDEPMODE!$CXXDEPMODE$ac_delim
30851 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30852 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30853 CPP!$CPP$ac_delim
30854 LN_S!$LN_S$ac_delim
30855 SED!$SED$ac_delim
30856 GREP!$GREP$ac_delim
30857 EGREP!$EGREP$ac_delim
30858 ECHO!$ECHO$ac_delim
30859 AR!$AR$ac_delim
30860 RANLIB!$RANLIB$ac_delim
30861 CXXCPP!$CXXCPP$ac_delim
30862 F77!$F77$ac_delim
30863 FFLAGS!$FFLAGS$ac_delim
30864 ac_ct_F77!$ac_ct_F77$ac_delim
30865 LIBTOOL!$LIBTOOL$ac_delim
30866 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30867 LD!$LD$ac_delim
30868 LIBNSL!$LIBNSL$ac_delim
30869 PKG_CONFIG!$PKG_CONFIG$ac_delim
30870 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30871 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30872 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30873 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30874 LIBSOCKET!$LIBSOCKET$ac_delim
30875 LIBCRYPT!$LIBCRYPT$ac_delim
30876 LIBBSD!$LIBBSD$ac_delim
30877 LIBBLKID!$LIBBLKID$ac_delim
30878 KRBDIR!$KRBDIR$ac_delim
30879 KRBLIBS!$KRBLIBS$ac_delim
30880 KRBCFLAGS!$KRBCFLAGS$ac_delim
30881 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30882 K5VERS!$K5VERS$ac_delim
30883 ALLOCA!$ALLOCA$ac_delim
30884 LIBOBJS!$LIBOBJS$ac_delim
30885 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30886 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30887 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30888 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30889 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30890 AM_CFLAGS!$AM_CFLAGS$ac_delim
30891 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30892 LTLIBOBJS!$LTLIBOBJS$ac_delim
30893 _ACEOF
30894
30895   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30896     break
30897   elif $ac_last_try; then
30898     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30900    { (exit 1); exit 1; }; }
30901   else
30902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30903   fi
30904 done
30905
30906 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30907 if test -n "$ac_eof"; then
30908   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30909   ac_eof=`expr $ac_eof + 1`
30910 fi
30911
30912 cat >>$CONFIG_STATUS <<_ACEOF
30913 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30915 _ACEOF
30916 sed '
30917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30918 s/^/s,@/; s/!/@,|#_!!_#|/
30919 :n
30920 t n
30921 s/'"$ac_delim"'$/,g/; t
30922 s/$/\\/; p
30923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30924 ' >>$CONFIG_STATUS <conf$$subs.sed
30925 rm -f conf$$subs.sed
30926 cat >>$CONFIG_STATUS <<_ACEOF
30927 :end
30928 s/|#_!!_#|//g
30929 CEOF$ac_eof
30930 _ACEOF
30931
30932
30933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30935 # trailing colons and then remove the whole line if VPATH becomes empty
30936 # (actually we leave an empty line to preserve line numbers).
30937 if test "x$srcdir" = x.; then
30938   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30939 s/:*\$(srcdir):*/:/
30940 s/:*\${srcdir}:*/:/
30941 s/:*@srcdir@:*/:/
30942 s/^\([^=]*=[     ]*\):*/\1/
30943 s/:*$//
30944 s/^[^=]*=[       ]*$//
30945 }'
30946 fi
30947
30948 cat >>$CONFIG_STATUS <<\_ACEOF
30949 fi # test -n "$CONFIG_FILES"
30950
30951
30952 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30953 do
30954   case $ac_tag in
30955   :[FHLC]) ac_mode=$ac_tag; continue;;
30956   esac
30957   case $ac_mode$ac_tag in
30958   :[FHL]*:*);;
30959   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30960 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30961    { (exit 1); exit 1; }; };;
30962   :[FH]-) ac_tag=-:-;;
30963   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30964   esac
30965   ac_save_IFS=$IFS
30966   IFS=:
30967   set x $ac_tag
30968   IFS=$ac_save_IFS
30969   shift
30970   ac_file=$1
30971   shift
30972
30973   case $ac_mode in
30974   :L) ac_source=$1;;
30975   :[FH])
30976     ac_file_inputs=
30977     for ac_f
30978     do
30979       case $ac_f in
30980       -) ac_f="$tmp/stdin";;
30981       *) # Look for the file first in the build tree, then in the source tree
30982          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30983          # because $ac_f cannot contain `:'.
30984          test -f "$ac_f" ||
30985            case $ac_f in
30986            [\\/$]*) false;;
30987            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30988            esac ||
30989            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30990 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30991    { (exit 1); exit 1; }; };;
30992       esac
30993       ac_file_inputs="$ac_file_inputs $ac_f"
30994     done
30995
30996     # Let's still pretend it is `configure' which instantiates (i.e., don't
30997     # use $as_me), people would be surprised to read:
30998     #    /* config.h.  Generated by config.status.  */
30999     configure_input="Generated from "`IFS=:
31000           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31001     if test x"$ac_file" != x-; then
31002       configure_input="$ac_file.  $configure_input"
31003       { echo "$as_me:$LINENO: creating $ac_file" >&5
31004 echo "$as_me: creating $ac_file" >&6;}
31005     fi
31006
31007     case $ac_tag in
31008     *:-:* | *:-) cat >"$tmp/stdin";;
31009     esac
31010     ;;
31011   esac
31012
31013   ac_dir=`$as_dirname -- "$ac_file" ||
31014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31015          X"$ac_file" : 'X\(//\)[^/]' \| \
31016          X"$ac_file" : 'X\(//\)$' \| \
31017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31018 echo X"$ac_file" |
31019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31020             s//\1/
31021             q
31022           }
31023           /^X\(\/\/\)[^/].*/{
31024             s//\1/
31025             q
31026           }
31027           /^X\(\/\/\)$/{
31028             s//\1/
31029             q
31030           }
31031           /^X\(\/\).*/{
31032             s//\1/
31033             q
31034           }
31035           s/.*/./; q'`
31036   { as_dir="$ac_dir"
31037   case $as_dir in #(
31038   -*) as_dir=./$as_dir;;
31039   esac
31040   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31041     as_dirs=
31042     while :; do
31043       case $as_dir in #(
31044       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31045       *) as_qdir=$as_dir;;
31046       esac
31047       as_dirs="'$as_qdir' $as_dirs"
31048       as_dir=`$as_dirname -- "$as_dir" ||
31049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31050          X"$as_dir" : 'X\(//\)[^/]' \| \
31051          X"$as_dir" : 'X\(//\)$' \| \
31052          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31053 echo X"$as_dir" |
31054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31055             s//\1/
31056             q
31057           }
31058           /^X\(\/\/\)[^/].*/{
31059             s//\1/
31060             q
31061           }
31062           /^X\(\/\/\)$/{
31063             s//\1/
31064             q
31065           }
31066           /^X\(\/\).*/{
31067             s//\1/
31068             q
31069           }
31070           s/.*/./; q'`
31071       test -d "$as_dir" && break
31072     done
31073     test -z "$as_dirs" || eval "mkdir $as_dirs"
31074   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31076    { (exit 1); exit 1; }; }; }
31077   ac_builddir=.
31078
31079 case "$ac_dir" in
31080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31081 *)
31082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31083   # A ".." for each directory in $ac_dir_suffix.
31084   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31085   case $ac_top_builddir_sub in
31086   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31087   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31088   esac ;;
31089 esac
31090 ac_abs_top_builddir=$ac_pwd
31091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31092 # for backward compatibility:
31093 ac_top_builddir=$ac_top_build_prefix
31094
31095 case $srcdir in
31096   .)  # We are building in place.
31097     ac_srcdir=.
31098     ac_top_srcdir=$ac_top_builddir_sub
31099     ac_abs_top_srcdir=$ac_pwd ;;
31100   [\\/]* | ?:[\\/]* )  # Absolute name.
31101     ac_srcdir=$srcdir$ac_dir_suffix;
31102     ac_top_srcdir=$srcdir
31103     ac_abs_top_srcdir=$srcdir ;;
31104   *) # Relative name.
31105     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31106     ac_top_srcdir=$ac_top_build_prefix$srcdir
31107     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31108 esac
31109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31110
31111
31112   case $ac_mode in
31113   :F)
31114   #
31115   # CONFIG_FILE
31116   #
31117
31118   case $INSTALL in
31119   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31120   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31121   esac
31122 _ACEOF
31123
31124 cat >>$CONFIG_STATUS <<\_ACEOF
31125 # If the template does not know about datarootdir, expand it.
31126 # FIXME: This hack should be removed a few years after 2.60.
31127 ac_datarootdir_hack=; ac_datarootdir_seen=
31128
31129 case `sed -n '/datarootdir/ {
31130   p
31131   q
31132 }
31133 /@datadir@/p
31134 /@docdir@/p
31135 /@infodir@/p
31136 /@localedir@/p
31137 /@mandir@/p
31138 ' $ac_file_inputs` in
31139 *datarootdir*) ac_datarootdir_seen=yes;;
31140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31141   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31142 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31143 _ACEOF
31144 cat >>$CONFIG_STATUS <<_ACEOF
31145   ac_datarootdir_hack='
31146   s&@datadir@&$datadir&g
31147   s&@docdir@&$docdir&g
31148   s&@infodir@&$infodir&g
31149   s&@localedir@&$localedir&g
31150   s&@mandir@&$mandir&g
31151     s&\\\${datarootdir}&$datarootdir&g' ;;
31152 esac
31153 _ACEOF
31154
31155 # Neutralize VPATH when `$srcdir' = `.'.
31156 # Shell code in configure.ac might set extrasub.
31157 # FIXME: do we really want to maintain this feature?
31158 cat >>$CONFIG_STATUS <<_ACEOF
31159   sed "$ac_vpsub
31160 $extrasub
31161 _ACEOF
31162 cat >>$CONFIG_STATUS <<\_ACEOF
31163 :t
31164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31165 s&@configure_input@&$configure_input&;t t
31166 s&@top_builddir@&$ac_top_builddir_sub&;t t
31167 s&@srcdir@&$ac_srcdir&;t t
31168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31169 s&@top_srcdir@&$ac_top_srcdir&;t t
31170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31171 s&@builddir@&$ac_builddir&;t t
31172 s&@abs_builddir@&$ac_abs_builddir&;t t
31173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31174 s&@INSTALL@&$ac_INSTALL&;t t
31175 $ac_datarootdir_hack
31176 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31177
31178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31179   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31180   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31181   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31182 which seems to be undefined.  Please make sure it is defined." >&5
31183 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31184 which seems to be undefined.  Please make sure it is defined." >&2;}
31185
31186   rm -f "$tmp/stdin"
31187   case $ac_file in
31188   -) cat "$tmp/out"; rm -f "$tmp/out";;
31189   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31190   esac
31191  ;;
31192   :H)
31193   #
31194   # CONFIG_HEADER
31195   #
31196 _ACEOF
31197
31198 # Transform confdefs.h into a sed script `conftest.defines', that
31199 # substitutes the proper values into config.h.in to produce config.h.
31200 rm -f conftest.defines conftest.tail
31201 # First, append a space to every undef/define line, to ease matching.
31202 echo 's/$/ /' >conftest.defines
31203 # Then, protect against being on the right side of a sed subst, or in
31204 # an unquoted here document, in config.status.  If some macros were
31205 # called several times there might be several #defines for the same
31206 # symbol, which is useless.  But do not sort them, since the last
31207 # AC_DEFINE must be honored.
31208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31209 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31210 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31211 # PARAMS is the parameter list in the macro definition--in most cases, it's
31212 # just an empty string.
31213 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31214 ac_dB='\\)[      (].*,\\1define\\2'
31215 ac_dC=' '
31216 ac_dD=' ,'
31217
31218 uniq confdefs.h |
31219   sed -n '
31220         t rset
31221         :rset
31222         s/^[     ]*#[    ]*define[       ][      ]*//
31223         t ok
31224         d
31225         :ok
31226         s/[\\&,]/\\&/g
31227         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31228         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31229   ' >>conftest.defines
31230
31231 # Remove the space that was appended to ease matching.
31232 # Then replace #undef with comments.  This is necessary, for
31233 # example, in the case of _POSIX_SOURCE, which is predefined and required
31234 # on some systems where configure will not decide to define it.
31235 # (The regexp can be short, since the line contains either #define or #undef.)
31236 echo 's/ $//
31237 s,^[     #]*u.*,/* & */,' >>conftest.defines
31238
31239 # Break up conftest.defines:
31240 ac_max_sed_lines=50
31241
31242 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31243 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31244 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31245 # et cetera.
31246 ac_in='$ac_file_inputs'
31247 ac_out='"$tmp/out1"'
31248 ac_nxt='"$tmp/out2"'
31249
31250 while :
31251 do
31252   # Write a here document:
31253     cat >>$CONFIG_STATUS <<_ACEOF
31254     # First, check the format of the line:
31255     cat >"\$tmp/defines.sed" <<\\CEOF
31256 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31257 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31258 b
31259 :def
31260 _ACEOF
31261   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31262   echo 'CEOF
31263     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31264   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31265   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31266   grep . conftest.tail >/dev/null || break
31267   rm -f conftest.defines
31268   mv conftest.tail conftest.defines
31269 done
31270 rm -f conftest.defines conftest.tail
31271
31272 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31273 cat >>$CONFIG_STATUS <<\_ACEOF
31274   if test x"$ac_file" != x-; then
31275     echo "/* $configure_input  */" >"$tmp/config.h"
31276     cat "$ac_result" >>"$tmp/config.h"
31277     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31278       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31279 echo "$as_me: $ac_file is unchanged" >&6;}
31280     else
31281       rm -f $ac_file
31282       mv "$tmp/config.h" $ac_file
31283     fi
31284   else
31285     echo "/* $configure_input  */"
31286     cat "$ac_result"
31287   fi
31288   rm -f "$tmp/out12"
31289 # Compute $ac_file's index in $config_headers.
31290 _am_stamp_count=1
31291 for _am_header in $config_headers :; do
31292   case $_am_header in
31293     $ac_file | $ac_file:* )
31294       break ;;
31295     * )
31296       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31297   esac
31298 done
31299 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31300 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31301          X$ac_file : 'X\(//\)[^/]' \| \
31302          X$ac_file : 'X\(//\)$' \| \
31303          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31304 echo X$ac_file |
31305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31306             s//\1/
31307             q
31308           }
31309           /^X\(\/\/\)[^/].*/{
31310             s//\1/
31311             q
31312           }
31313           /^X\(\/\/\)$/{
31314             s//\1/
31315             q
31316           }
31317           /^X\(\/\).*/{
31318             s//\1/
31319             q
31320           }
31321           s/.*/./; q'`/stamp-h$_am_stamp_count
31322  ;;
31323
31324   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31325 echo "$as_me: executing $ac_file commands" >&6;}
31326  ;;
31327   esac
31328
31329
31330   case $ac_file$ac_mode in
31331     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31332   # Strip MF so we end up with the name of the file.
31333   mf=`echo "$mf" | sed -e 's/:.*$//'`
31334   # Check whether this is an Automake generated Makefile or not.
31335   # We used to match only the files named `Makefile.in', but
31336   # some people rename them; so instead we look at the file content.
31337   # Grep'ing the first line is not enough: some people post-process
31338   # each Makefile.in and add a new line on top of each file to say so.
31339   # So let's grep whole file.
31340   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31341     dirpart=`$as_dirname -- "$mf" ||
31342 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343          X"$mf" : 'X\(//\)[^/]' \| \
31344          X"$mf" : 'X\(//\)$' \| \
31345          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31346 echo X"$mf" |
31347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31348             s//\1/
31349             q
31350           }
31351           /^X\(\/\/\)[^/].*/{
31352             s//\1/
31353             q
31354           }
31355           /^X\(\/\/\)$/{
31356             s//\1/
31357             q
31358           }
31359           /^X\(\/\).*/{
31360             s//\1/
31361             q
31362           }
31363           s/.*/./; q'`
31364   else
31365     continue
31366   fi
31367   # Extract the definition of DEPDIR, am__include, and am__quote
31368   # from the Makefile without running `make'.
31369   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31370   test -z "$DEPDIR" && continue
31371   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31372   test -z "am__include" && continue
31373   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31374   # When using ansi2knr, U may be empty or an underscore; expand it
31375   U=`sed -n 's/^U = //p' < "$mf"`
31376   # Find all dependency output files, they are included files with
31377   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31378   # simplest approach to changing $(DEPDIR) to its actual value in the
31379   # expansion.
31380   for file in `sed -n "
31381     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31382        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31383     # Make sure the directory exists.
31384     test -f "$dirpart/$file" && continue
31385     fdir=`$as_dirname -- "$file" ||
31386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387          X"$file" : 'X\(//\)[^/]' \| \
31388          X"$file" : 'X\(//\)$' \| \
31389          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31390 echo X"$file" |
31391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31392             s//\1/
31393             q
31394           }
31395           /^X\(\/\/\)[^/].*/{
31396             s//\1/
31397             q
31398           }
31399           /^X\(\/\/\)$/{
31400             s//\1/
31401             q
31402           }
31403           /^X\(\/\).*/{
31404             s//\1/
31405             q
31406           }
31407           s/.*/./; q'`
31408     { as_dir=$dirpart/$fdir
31409   case $as_dir in #(
31410   -*) as_dir=./$as_dir;;
31411   esac
31412   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31413     as_dirs=
31414     while :; do
31415       case $as_dir in #(
31416       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31417       *) as_qdir=$as_dir;;
31418       esac
31419       as_dirs="'$as_qdir' $as_dirs"
31420       as_dir=`$as_dirname -- "$as_dir" ||
31421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31422          X"$as_dir" : 'X\(//\)[^/]' \| \
31423          X"$as_dir" : 'X\(//\)$' \| \
31424          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31425 echo X"$as_dir" |
31426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31427             s//\1/
31428             q
31429           }
31430           /^X\(\/\/\)[^/].*/{
31431             s//\1/
31432             q
31433           }
31434           /^X\(\/\/\)$/{
31435             s//\1/
31436             q
31437           }
31438           /^X\(\/\).*/{
31439             s//\1/
31440             q
31441           }
31442           s/.*/./; q'`
31443       test -d "$as_dir" && break
31444     done
31445     test -z "$as_dirs" || eval "mkdir $as_dirs"
31446   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31447 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31448    { (exit 1); exit 1; }; }; }
31449     # echo "creating $dirpart/$file"
31450     echo '# dummy' > "$dirpart/$file"
31451   done
31452 done
31453  ;;
31454
31455   esac
31456 done # for ac_tag
31457
31458
31459 { (exit 0); exit 0; }
31460 _ACEOF
31461 chmod +x $CONFIG_STATUS
31462 ac_clean_files=$ac_clean_files_save
31463
31464
31465 # configure is writing to config.log, and then calls config.status.
31466 # config.status does its own redirection, appending to config.log.
31467 # Unfortunately, on DOS this fails, as config.log is still kept open
31468 # by configure, so config.status won't be able to write to it; its
31469 # output is simply discarded.  So we exec the FD to /dev/null,
31470 # effectively closing config.log, so it can be properly (re)opened and
31471 # appended to by config.status.  When coming back to configure, we
31472 # need to make the FD available again.
31473 if test "$no_create" != yes; then
31474   ac_cs_success=:
31475   ac_config_status_args=
31476   test "$silent" = yes &&
31477     ac_config_status_args="$ac_config_status_args --quiet"
31478   exec 5>/dev/null
31479   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31480   exec 5>>config.log
31481   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31482   # would make configure fail if this is the last instruction.
31483   $ac_cs_success || { (exit 1); exit 1; }
31484 fi
31485
31486