]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.1
Imported Upstream version 1.1.1~git-20070929
[nfs-utils.git] / autom4te.cache / output.1
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 LIB@&t@OBJS=
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 GSSGLUE_CFLAGS
908 GSSGLUE_LIBS
909 LIBSOCKET
910 LIBCRYPT
911 LIBBSD
912 LIBBLKID
913 KRBDIR
914 KRBLIBS
915 KRBCFLAGS
916 KRBLDFLAGS
917 K5VERS
918 ALLOCA
919 LIB@&t@OBJS
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 GSSGLUE_CFLAGS
948 GSSGLUE_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   GSSGLUE_CFLAGS 
1587               C compiler flags for GSSGLUE, overriding pkg-config
1588   GSSGLUE_LIBS 
1589               linker flags for GSSGLUE, overriding pkg-config
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <nfs@lists.sf.net>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" || continue
1603     ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609   # A ".." for each directory in $ac_dir_suffix.
1610   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611   case $ac_top_builddir_sub in
1612   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614   esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622   .)  # We are building in place.
1623     ac_srcdir=.
1624     ac_top_srcdir=$ac_top_builddir_sub
1625     ac_abs_top_srcdir=$ac_pwd ;;
1626   [\\/]* | ?:[\\/]* )  # Absolute name.
1627     ac_srcdir=$srcdir$ac_dir_suffix;
1628     ac_top_srcdir=$srcdir
1629     ac_abs_top_srcdir=$srcdir ;;
1630   *) # Relative name.
1631     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632     ac_top_srcdir=$ac_top_build_prefix$srcdir
1633     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637     cd "$ac_dir" || { ac_status=$?; continue; }
1638     # Check for guested configure.
1639     if test -f "$ac_srcdir/configure.gnu"; then
1640       echo &&
1641       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642     elif test -f "$ac_srcdir/configure"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure" --help=recursive
1645     else
1646       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647     fi || ac_status=$?
1648     cd "$ac_pwd" || { ac_status=$?; break; }
1649   done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654   cat <<\_ACEOF
1655 linux nfs-utils configure 1.1.0
1656 generated by GNU Autoconf 2.61
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663   exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by linux nfs-utils $as_me 1.1.0, which was
1670 generated by GNU Autoconf 2.61.  Invocation command line was
1671
1672   $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 @%:@@%:@ --------- @%:@@%:@
1679 @%:@@%:@ Platform. @%:@@%:@
1680 @%:@@%:@ --------- @%:@@%:@
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1690
1691 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1692 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1695 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1696 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1697 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1698
1699 _ASUNAME
1700
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&5 <<_ACEOF
1713
1714
1715 @%:@@%:@ ----------- @%:@@%:@
1716 @%:@@%:@ Core tests. @%:@@%:@
1717 @%:@@%:@ ----------- @%:@@%:@
1718
1719 _ACEOF
1720
1721
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
1733   for ac_arg
1734   do
1735     case $ac_arg in
1736     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738     | -silent | --silent | --silen | --sile | --sil)
1739       continue ;;
1740     *\'*)
1741       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742     esac
1743     case $ac_pass in
1744     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745     2)
1746       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747       if test $ac_must_keep_next = true; then
1748         ac_must_keep_next=false # Got value, back to normal.
1749       else
1750         case $ac_arg in
1751           *=* | --config-cache | -C | -disable-* | --disable-* \
1752           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754           | -with-* | --with-* | -without-* | --without-* | --x)
1755             case "$ac_configure_args0 " in
1756               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757             esac
1758             ;;
1759           -* ) ac_must_keep_next=true ;;
1760         esac
1761       fi
1762       ac_configure_args="$ac_configure_args '$ac_arg'"
1763       ;;
1764     esac
1765   done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log.  We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776   # Save into config.log some information that might help in debugging.
1777   {
1778     echo
1779
1780     cat <<\_ASBOX
1781 @%:@@%:@ ---------------- @%:@@%:@
1782 @%:@@%:@ Cache variables. @%:@@%:@
1783 @%:@@%:@ ---------------- @%:@@%:@
1784 _ASBOX
1785     echo
1786     # The following way of writing the cache mishandles newlines in values,
1787 (
1788   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789     eval ac_val=\$$ac_var
1790     case $ac_val in #(
1791     *${as_nl}*)
1792       case $ac_var in #(
1793       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795       esac
1796       case $ac_var in #(
1797       _ | IFS | as_nl) ;; #(
1798       *) $as_unset $ac_var ;;
1799       esac ;;
1800     esac
1801   done
1802   (set) 2>&1 |
1803     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804     *${as_nl}ac_space=\ *)
1805       sed -n \
1806         "s/'\''/'\''\\\\'\'''\''/g;
1807           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808       ;; #(
1809     *)
1810       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1811       ;;
1812     esac |
1813     sort
1814 )
1815     echo
1816
1817     cat <<\_ASBOX
1818 @%:@@%:@ ----------------- @%:@@%:@
1819 @%:@@%:@ Output variables. @%:@@%:@
1820 @%:@@%:@ ----------------- @%:@@%:@
1821 _ASBOX
1822     echo
1823     for ac_var in $ac_subst_vars
1824     do
1825       eval ac_val=\$$ac_var
1826       case $ac_val in
1827       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828       esac
1829       echo "$ac_var='\''$ac_val'\''"
1830     done | sort
1831     echo
1832
1833     if test -n "$ac_subst_files"; then
1834       cat <<\_ASBOX
1835 @%:@@%:@ ------------------- @%:@@%:@
1836 @%:@@%:@ File substitutions. @%:@@%:@
1837 @%:@@%:@ ------------------- @%:@@%:@
1838 _ASBOX
1839       echo
1840       for ac_var in $ac_subst_files
1841       do
1842         eval ac_val=\$$ac_var
1843         case $ac_val in
1844         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845         esac
1846         echo "$ac_var='\''$ac_val'\''"
1847       done | sort
1848       echo
1849     fi
1850
1851     if test -s confdefs.h; then
1852       cat <<\_ASBOX
1853 @%:@@%:@ ----------- @%:@@%:@
1854 @%:@@%:@ confdefs.h. @%:@@%:@
1855 @%:@@%:@ ----------- @%:@@%:@
1856 _ASBOX
1857       echo
1858       cat confdefs.h
1859       echo
1860     fi
1861     test "$ac_signal" != 0 &&
1862       echo "$as_me: caught signal $ac_signal"
1863     echo "$as_me: exit $exit_status"
1864   } >&5
1865   rm -f core *.core core.conftest.* &&
1866     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867     exit $exit_status
1868 ' 0
1869 for ac_signal in 1 2 13 15; do
1870   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 done
1872 ac_signal=0
1873
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1876
1877 # Predefined preprocessor variables.
1878
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 _ACEOF
1902
1903
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer explicitly selected file to automatically selected ones.
1906 if test -n "$CONFIG_SITE"; then
1907   set x "$CONFIG_SITE"
1908 elif test "x$prefix" != xNONE; then
1909   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 else
1911   set x "$ac_default_prefix/share/config.site" \
1912         "$ac_default_prefix/etc/config.site"
1913 fi
1914 shift
1915 for ac_site_file
1916 do
1917   if test -r "$ac_site_file"; then
1918     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 echo "$as_me: loading site script $ac_site_file" >&6;}
1920     sed 's/^/| /' "$ac_site_file" >&5
1921     . "$ac_site_file"
1922   fi
1923 done
1924
1925 if test -r "$cache_file"; then
1926   # Some versions of bash will fail to source /dev/null (special
1927   # files actually), so we avoid doing that.
1928   if test -f "$cache_file"; then
1929     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 echo "$as_me: loading cache $cache_file" >&6;}
1931     case $cache_file in
1932       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933       *)                      . "./$cache_file";;
1934     esac
1935   fi
1936 else
1937   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 echo "$as_me: creating cache $cache_file" >&6;}
1939   >$cache_file
1940 fi
1941
1942 # Check that the precious variables saved in the cache have kept the same
1943 # value.
1944 ac_cache_corrupted=false
1945 for ac_var in $ac_precious_vars; do
1946   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947   eval ac_new_set=\$ac_env_${ac_var}_set
1948   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949   eval ac_new_val=\$ac_env_${ac_var}_value
1950   case $ac_old_set,$ac_new_set in
1951     set,)
1952       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954       ac_cache_corrupted=: ;;
1955     ,set)
1956       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958       ac_cache_corrupted=: ;;
1959     ,);;
1960     *)
1961       if test "x$ac_old_val" != "x$ac_new_val"; then
1962         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1965 echo "$as_me:   former value:  $ac_old_val" >&2;}
1966         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1967 echo "$as_me:   current value: $ac_new_val" >&2;}
1968         ac_cache_corrupted=:
1969       fi;;
1970   esac
1971   # Pass precious variables to config.status.
1972   if test "$ac_new_set" = set; then
1973     case $ac_new_val in
1974     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975     *) ac_arg=$ac_var=$ac_new_val ;;
1976     esac
1977     case " $ac_configure_args " in
1978       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1979       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980     esac
1981   fi
1982 done
1983 if $ac_cache_corrupted; then
1984   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988    { (exit 1); exit 1; }; }
1989 fi
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
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022 ac_aux_dir=
2023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2024   if test -f "$ac_dir/install-sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install-sh -c"
2027     break
2028   elif test -f "$ac_dir/install.sh"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/install.sh -c"
2031     break
2032   elif test -f "$ac_dir/shtool"; then
2033     ac_aux_dir=$ac_dir
2034     ac_install_sh="$ac_aux_dir/shtool install -c"
2035     break
2036   fi
2037 done
2038 if test -z "$ac_aux_dir"; then
2039   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2049 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2050 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2051
2052
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 { echo "$as_me:$LINENO: checking build system type" >&5
2060 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070    { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 echo "${ECHO_T}$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 echo "$as_me: error: invalid value of canonical build" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 build=$ac_cv_build
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_build
2088 shift
2089 build_cpu=$1
2090 build_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 build_os=$*
2095 IFS=$ac_save_IFS
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$host_alias" = x; then
2105   ac_cv_host=$ac_cv_build
2106 else
2107   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6; }
2116 case $ac_cv_host in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 echo "$as_me: error: invalid value of canonical host" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 host=$ac_cv_host
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_host
2125 shift
2126 host_cpu=$1
2127 host_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 host_os=$*
2132 IFS=$ac_save_IFS
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2134
2135
2136
2137 am__api_version="1.9"
2138 # Find a good install program.  We prefer a C program (faster),
2139 # so one script is as good as another.  But avoid the broken or
2140 # incompatible versions:
2141 # SysV /etc/install, /usr/sbin/install
2142 # SunOS /usr/etc/install
2143 # IRIX /sbin/install
2144 # AIX /bin/install
2145 # AmigaOS /C/install, which installs bootblocks on floppy discs
2146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149 # OS/2's system install, which has a completely different semantic
2150 # ./install, which can be erroneously created by make from ./install.sh.
2151 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153 if test -z "$INSTALL"; then
2154 if test "${ac_cv_path_install+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   # Account for people who put trailing slashes in PATH elements.
2163 case $as_dir/ in
2164   ./ | .// | /cC/* | \
2165   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2167   /usr/ucb/* ) ;;
2168   *)
2169     # OSF1 and SCO ODT 3.0 have their own names for install.
2170     # Don't use installbsd from OSF since it installs stuff as root
2171     # by default.
2172     for ac_prog in ginstall scoinst install; do
2173       for ac_exec_ext in '' $ac_executable_extensions; do
2174         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175           if test $ac_prog = install &&
2176             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177             # AIX install.  It has an incompatible calling convention.
2178             :
2179           elif test $ac_prog = install &&
2180             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181             # program-specific install script used by HP pwplus--don't use.
2182             :
2183           else
2184             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185             break 3
2186           fi
2187         fi
2188       done
2189     done
2190     ;;
2191 esac
2192 done
2193 IFS=$as_save_IFS
2194
2195
2196 fi
2197   if test "${ac_cv_path_install+set}" = set; then
2198     INSTALL=$ac_cv_path_install
2199   else
2200     # As a last resort, use the slow shell script.  Don't cache a
2201     # value for INSTALL within a source directory, because that will
2202     # break other packages using the cache if that directory is
2203     # removed, or if the value is a relative name.
2204     INSTALL=$ac_install_sh
2205   fi
2206 fi
2207 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2208 echo "${ECHO_T}$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments.  Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2227 # directory).
2228 if (
2229    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230    if test "$*" = "X"; then
2231       # -L didn't work.
2232       set X `ls -t $srcdir/configure conftest.file`
2233    fi
2234    rm -f conftest.file
2235    if test "$*" != "X $srcdir/configure conftest.file" \
2236       && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238       # If neither matched, then we have a broken ls.  This can happen
2239       # if, for instance, CONFIG_SHELL is bash and it inherits a
2240       # broken ls alias from the environment.  This has actually
2241       # happened.  Such a system could not be considered "sane".
2242       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2245 alias in your environment" >&2;}
2246    { (exit 1); exit 1; }; }
2247    fi
2248
2249    test "$2" = conftest.file
2250    )
2251 then
2252    # Ok.
2253    :
2254 else
2255    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259    { (exit 1); exit 1; }; }
2260 fi
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 test "$program_prefix" != NONE &&
2264   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265 # Use a double $ so make ignores it.
2266 test "$program_suffix" != NONE &&
2267   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268 # Double any \ or $.  echo might interpret backslashes.
2269 # By default was `s,x,x', remove it if useless.
2270 cat <<\_ACEOF >conftest.sed
2271 s/[\\$]/&&/g;s/;s,x,x,$//
2272 _ACEOF
2273 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2274 rm -f conftest.sed
2275
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280 # Use eval to expand $SHELL
2281 if eval "$MISSING --run true"; then
2282   am_missing_run="$MISSING --run "
2283 else
2284   am_missing_run=
2285   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287 fi
2288
2289 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2290   # We used to keeping the `.' as first argument, in order to
2291   # allow $(mkdir_p) to be used without argument.  As in
2292   #   $(mkdir_p) $(somedir)
2293   # where $(somedir) is conditionally defined.  However this is wrong
2294   # for two reasons:
2295   #  1. if the package is installed by a user who cannot write `.'
2296   #     make install will fail,
2297   #  2. the above comment should most certainly read
2298   #     $(mkdir_p) $(DESTDIR)$(somedir)
2299   #     so it does not work when $(somedir) is undefined and
2300   #     $(DESTDIR) is not.
2301   #  To support the latter case, we have to write
2302   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2303   #  so the `.' trick is pointless.
2304   mkdir_p='mkdir -p --'
2305 else
2306   # On NextStep and OpenStep, the `mkdir' command does not
2307   # recognize any option.  It will interpret all options as
2308   # directories to create, and then abort because `.' already
2309   # exists.
2310   for d in ./-p ./--version;
2311   do
2312     test -d $d && rmdir $d
2313   done
2314   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2315   if test -f "$ac_aux_dir/mkinstalldirs"; then
2316     mkdir_p='$(mkinstalldirs)'
2317   else
2318     mkdir_p='$(install_sh) -d'
2319   fi
2320 fi
2321
2322 for ac_prog in gawk mawk nawk awk
2323 do
2324   # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   if test -n "$AWK"; then
2332   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
2338   test -z "$as_dir" && as_dir=.
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341     ac_cv_prog_AWK="$ac_prog"
2342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343     break 2
2344   fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353   { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2355 else
2356   { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2358 fi
2359
2360
2361   test -n "$AWK" && break
2362 done
2363
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373         @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377   *@@@%%%=?*=@@@%%%*)
2378     eval ac_cv_prog_make_${ac_make}_set=yes;;
2379   *)
2380     eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385   { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2387   SET_MAKE=
2388 else
2389   { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391   SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397   am__leading_dot=.
2398 else
2399   am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 # test to see if srcdir already configured
2404 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2405    test -f $srcdir/config.status; then
2406   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 # test whether we have cygpath
2412 if test -z "$CYGPATH_W"; then
2413   if (cygpath --version) >/dev/null 2>/dev/null; then
2414     CYGPATH_W='cygpath -w'
2415   else
2416     CYGPATH_W=echo
2417   fi
2418 fi
2419
2420
2421 # Define the identity of the package.
2422  PACKAGE='nfs-utils'
2423  VERSION='1.1.0'
2424
2425
2426 cat >>confdefs.h <<_ACEOF
2427 @%:@define PACKAGE "$PACKAGE"
2428 _ACEOF
2429
2430  
2431 cat >>confdefs.h <<_ACEOF
2432 @%:@define VERSION "$VERSION"
2433 _ACEOF
2434
2435 # Some tools Automake needs.
2436
2437 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2438
2439
2440 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2441
2442
2443 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2444
2445
2446 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2447
2448
2449 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2450
2451 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2452
2453 # Installed binaries are usually stripped using `strip' when the user
2454 # run `make install-strip'.  However `strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the `STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458   if test -n "$ac_tool_prefix"; then
2459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_STRIP+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$STRIP"; then
2467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488   { echo "$as_me:$LINENO: result: $STRIP" >&5
2489 echo "${ECHO_T}$STRIP" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_STRIP"; then
2498   ac_ct_STRIP=$STRIP
2499   # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_STRIP"; then
2507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_ac_ct_STRIP="strip"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2529 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535   if test "x$ac_ct_STRIP" = x; then
2536     STRIP=":"
2537   else
2538     case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541 whose name does not start with the host triplet.  If you think this
2542 configuration is useful to you, please write to autoconf@gnu.org." >&5
2543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548     STRIP=$ac_ct_STRIP
2549   fi
2550 else
2551   STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2556
2557 # We need awk for the "check" target.  The system "awk" is bad on
2558 # some platforms.
2559 # Always define AMTAR for backward compatibility.
2560
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570
2571 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2572 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2573     # Check whether --enable-maintainer-mode was given.
2574 if test "${enable_maintainer_mode+set}" = set; then
2575   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 else
2577   USE_MAINTAINER_MODE=no
2578 fi
2579
2580   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2581 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2582    
2583
2584 if test $USE_MAINTAINER_MODE = yes; then
2585   MAINTAINER_MODE_TRUE=
2586   MAINTAINER_MODE_FALSE='#'
2587 else
2588   MAINTAINER_MODE_TRUE='#'
2589   MAINTAINER_MODE_FALSE=
2590 fi
2591
2592   MAINT=$MAINTAINER_MODE_TRUE
2593   
2594
2595
2596
2597 # Check whether --with-release was given.
2598 if test "${with_release+set}" = set; then
2599   withval=$with_release; RELEASE=$withval
2600 else
2601   RELEASE=1
2602 fi
2603
2604         
2605
2606 # Check whether --with-statedir was given.
2607 if test "${with_statedir+set}" = set; then
2608   withval=$with_statedir; statedir=$withval
2609 else
2610   statedir=/var/lib/nfs
2611 fi
2612
2613         
2614
2615 # Check whether --with-statduser was given.
2616 if test "${with_statduser+set}" = set; then
2617   withval=$with_statduser; statduser=$withval
2618 else
2619   if test "x$cross_compiling" = "xno"; then
2620                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2621                         statduser=rpcuser
2622                 else
2623                         statduser=nobody
2624                 fi
2625         else
2626                 statduser=nobody
2627         fi
2628 fi
2629
2630         
2631
2632 # Check whether --with-start-statd was given.
2633 if test "${with_start_statd+set}" = set; then
2634   withval=$with_start_statd; startstatd=$withval
2635 else
2636   startstatd=/usr/sbin/start-statd
2637         
2638 fi
2639
2640         
2641         
2642 cat >>confdefs.h <<_ACEOF
2643 @%:@define START_STATD "$startstatd"
2644 _ACEOF
2645
2646 # Check whether --enable-nfsv3 was given.
2647 if test "${enable_nfsv3+set}" = set; then
2648   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2649 else
2650   enable_nfsv3=yes
2651 fi
2652
2653         if test "$enable_nfsv3" = yes; then
2654                 
2655 cat >>confdefs.h <<\_ACEOF
2656 @%:@define NFS3_SUPPORTED 1
2657 _ACEOF
2658
2659         else
2660                 enable_nfsv3=
2661         fi
2662         
2663 # Check whether --enable-nfsv4 was given.
2664 if test "${enable_nfsv4+set}" = set; then
2665   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2666 else
2667   enable_nfsv4=yes
2668 fi
2669
2670         if test "$enable_nfsv4" = yes; then
2671                 
2672 cat >>confdefs.h <<\_ACEOF
2673 @%:@define NFS4_SUPPORTED 1
2674 _ACEOF
2675
2676                 IDMAPD=idmapd
2677         else
2678                 enable_nfsv4=
2679                 IDMAPD=
2680         fi
2681         
2682         
2683          
2684
2685 if test "$enable_nfsv4" = "yes"; then
2686   CONFIG_NFSV4_TRUE=
2687   CONFIG_NFSV4_FALSE='#'
2688 else
2689   CONFIG_NFSV4_TRUE='#'
2690   CONFIG_NFSV4_FALSE=
2691 fi
2692
2693 # Check whether --enable-gss was given.
2694 if test "${enable_gss+set}" = set; then
2695   enableval=$enable_gss; enable_gss=$enableval
2696 else
2697   enable_gss=yes
2698 fi
2699
2700         if test "$enable_gss" = yes; then
2701                 
2702 cat >>confdefs.h <<\_ACEOF
2703 @%:@define GSS_SUPPORTED 1
2704 _ACEOF
2705
2706                 GSSD=gssd
2707                 SVCGSSD=svcgssd
2708         else
2709                 enable_gss=
2710                 GSSD=
2711                 SVCGSSD=
2712         fi
2713         
2714         
2715         
2716          
2717
2718 if test "$enable_gss" = "yes"; then
2719   CONFIG_GSS_TRUE=
2720   CONFIG_GSS_FALSE='#'
2721 else
2722   CONFIG_GSS_TRUE='#'
2723   CONFIG_GSS_FALSE=
2724 fi
2725
2726 # Check whether --enable-kprefix was given.
2727 if test "${enable_kprefix+set}" = set; then
2728   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2729 else
2730   kprefix=
2731 fi
2732
2733         
2734 # Check whether --enable-secure-statd was given.
2735 if test "${enable_secure_statd+set}" = set; then
2736   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2737 else
2738   secure_statd=yes
2739 fi
2740
2741         if test "$secure_statd" = yes; then
2742                 
2743 cat >>confdefs.h <<\_ACEOF
2744 @%:@define RESTRICTED_STATD 1
2745 _ACEOF
2746
2747         fi
2748         
2749
2750 # Check whether --with-rpcgen was given.
2751 if test "${with_rpcgen+set}" = set; then
2752   withval=$with_rpcgen; rpcgen_path=$withval
2753 else
2754   rpcgen_path=yes 
2755 fi
2756
2757         RPCGEN_PATH=
2758         if test "$rpcgen_path" == "yes"; then
2759             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2760             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2761         elif test "$rpcgen_path" != "internal"; then
2762             RPCGEN_PATH=$rpcgen_path
2763         fi
2764         
2765          
2766
2767 if test "$RPCGEN_PATH" == ""; then
2768   CONFIG_RPCGEN_TRUE=
2769   CONFIG_RPCGEN_FALSE='#'
2770 else
2771   CONFIG_RPCGEN_TRUE='#'
2772   CONFIG_RPCGEN_FALSE=
2773 fi
2774
2775 # Check whether --enable-uuid was given.
2776 if test "${enable_uuid+set}" = set; then
2777   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2778 else
2779   choose_blkid=default
2780 fi
2781
2782 # Check whether --enable-mount was given.
2783 if test "${enable_mount+set}" = set; then
2784   enableval=$enable_mount; enable_mount=$enableval
2785 else
2786   enable_mount=yes
2787 fi
2788
2789          
2790
2791 if test "$enable_mount" = "yes"; then
2792   CONFIG_MOUNT_TRUE=
2793   CONFIG_MOUNT_FALSE='#'
2794 else
2795   CONFIG_MOUNT_TRUE='#'
2796   CONFIG_MOUNT_FALSE=
2797 fi
2798
2799
2800 # Check whether user wants TCP wrappers support
2801 DEPDIR="${am__leading_dot}deps"
2802
2803 ac_config_commands="$ac_config_commands depfiles"
2804
2805
2806 am_make=${MAKE-make}
2807 cat > confinc << 'END'
2808 am__doit:
2809         @echo done
2810 .PHONY: am__doit
2811 END
2812 # If we don't find an include directive, just comment out the code.
2813 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2814 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2815 am__include="#"
2816 am__quote=
2817 _am_result=none
2818 # First try GNU make style include.
2819 echo "include confinc" > confmf
2820 # We grep out `Entering directory' and `Leaving directory'
2821 # messages which can occur if `w' ends up in MAKEFLAGS.
2822 # In particular we don't look at `^make:' because GNU make might
2823 # be invoked under some other name (usually "gmake"), in which
2824 # case it prints its new name instead of `make'.
2825 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2826    am__include=include
2827    am__quote=
2828    _am_result=GNU
2829 fi
2830 # Now try BSD make style include.
2831 if test "$am__include" = "#"; then
2832    echo '.include "confinc"' > confmf
2833    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2834       am__include=.include
2835       am__quote="\""
2836       _am_result=BSD
2837    fi
2838 fi
2839
2840
2841 { echo "$as_me:$LINENO: result: $_am_result" >&5
2842 echo "${ECHO_T}$_am_result" >&6; }
2843 rm -f confinc confmf
2844
2845 # Check whether --enable-dependency-tracking was given.
2846 if test "${enable_dependency_tracking+set}" = set; then
2847   enableval=$enable_dependency_tracking; 
2848 fi
2849
2850 if test "x$enable_dependency_tracking" != xno; then
2851   am_depcomp="$ac_aux_dir/depcomp"
2852   AMDEPBACKSLASH='\'
2853 fi
2854  
2855
2856 if test "x$enable_dependency_tracking" != xno; then
2857   AMDEP_TRUE=
2858   AMDEP_FALSE='#'
2859 else
2860   AMDEP_TRUE='#'
2861   AMDEP_FALSE=
2862 fi
2863
2864
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   if test -n "$CC"; then
2880   ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885   IFS=$as_save_IFS
2886   test -z "$as_dir" && as_dir=.
2887   for ac_exec_ext in '' $ac_executable_extensions; do
2888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891     break 2
2892   fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901   { echo "$as_me:$LINENO: result: $CC" >&5
2902 echo "${ECHO_T}$CC" >&6; }
2903 else
2904   { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_CC"; then
2911   ac_ct_CC=$CC
2912   # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   if test -n "$ac_ct_CC"; then
2920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927   for ac_exec_ext in '' $ac_executable_extensions; do
2928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929     ac_cv_prog_ac_ct_CC="gcc"
2930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2942 echo "${ECHO_T}$ac_ct_CC" >&6; }
2943 else
2944   { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2946 fi
2947
2948   if test "x$ac_ct_CC" = x; then
2949     CC=""
2950   else
2951     case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet.  If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet.  If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2960 esac
2961     CC=$ac_ct_CC
2962   fi
2963 else
2964   CC="$ac_cv_prog_CC"
2965 fi
2966
2967 if test -z "$CC"; then
2968           if test -n "$ac_tool_prefix"; then
2969     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}cc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_CC="${ac_tool_prefix}cc"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998   { echo "$as_me:$LINENO: result: $CC" >&5
2999 echo "${ECHO_T}$CC" >&6; }
3000 else
3001   { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3003 fi
3004
3005
3006   fi
3007 fi
3008 if test -z "$CC"; then
3009   # Extract the first word of "cc", so it can be a program name with args.
3010 set dummy cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   if test -n "$CC"; then
3017   ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019   ac_prog_rejected=no
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025   for ac_exec_ext in '' $ac_executable_extensions; do
3026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3028        ac_prog_rejected=yes
3029        continue
3030      fi
3031     ac_cv_prog_CC="cc"
3032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 if test $ac_prog_rejected = yes; then
3040   # We found a bogon in the path, so make sure we never use it.
3041   set dummy $ac_cv_prog_CC
3042   shift
3043   if test $@%:@ != 0; then
3044     # We chose a different compiler from the bogus one.
3045     # However, it has the same basename, so the bogon will be chosen
3046     # first if we set CC to just the basename; use the full file name.
3047     shift
3048     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3049   fi
3050 fi
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6; }
3057 else
3058   { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$CC"; then
3065   if test -n "$ac_tool_prefix"; then
3066   for ac_prog in cl.exe
3067   do
3068     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   if test -n "$CC"; then
3076   ac_cv_prog_CC="$CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083   for ac_exec_ext in '' $ac_executable_extensions; do
3084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097   { echo "$as_me:$LINENO: result: $CC" >&5
3098 echo "${ECHO_T}$CC" >&6; }
3099 else
3100   { echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6; }
3102 fi
3103
3104
3105     test -n "$CC" && break
3106   done
3107 fi
3108 if test -z "$CC"; then
3109   ac_ct_CC=$CC
3110   for ac_prog in cl.exe
3111 do
3112   # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   if test -n "$ac_ct_CC"; then
3120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127   for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_ac_ct_CC="$ac_prog"
3130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3142 echo "${ECHO_T}$ac_ct_CC" >&6; }
3143 else
3144   { echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6; }
3146 fi
3147
3148
3149   test -n "$ac_ct_CC" && break
3150 done
3151
3152   if test "x$ac_ct_CC" = x; then
3153     CC=""
3154   else
3155     case $cross_compiling:$ac_tool_warned in
3156 yes:)
3157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet.  If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&5
3160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3161 whose name does not start with the host triplet.  If you think this
3162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165     CC=$ac_ct_CC
3166   fi
3167 fi
3168
3169 fi
3170
3171
3172 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." >&2;}
3176    { (exit 1); exit 1; }; }
3177
3178 # Provide some information about the compiler.
3179 echo "$as_me:$LINENO: checking for C compiler version" >&5
3180 ac_compiler=`set X $ac_compile; echo $2`
3181 { (ac_try="$ac_compiler --version >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler --version >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191 { (ac_try="$ac_compiler -v >&5"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compiler -v >&5") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }
3201 { (ac_try="$ac_compiler -V >&5"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compiler -V >&5") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3231 # of exeext.
3232 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3233 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3234 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 #
3236 # List of possible output files, starting from the most likely.
3237 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3238 # only as a last resort.  b.out is created by i960 compilers.
3239 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3240 #
3241 # The IRIX 6 linker writes into existing files which may not be
3242 # executable, retaining their permissions.  Remove them first so a
3243 # subsequent execution test works.
3244 ac_rmfiles=
3245 for ac_file in $ac_files
3246 do
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3250   esac
3251 done
3252 rm -f $ac_rmfiles
3253
3254 if { (ac_try="$ac_link_default"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_link_default") 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; then
3264   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3268 # Autoconf.
3269 for ac_file in $ac_files ''
3270 do
3271   test -f "$ac_file" || continue
3272   case $ac_file in
3273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3274         ;;
3275     [ab].out )
3276         # We found the default executable, but exeext='' is most
3277         # certainly right.
3278         break;;
3279     *.* )
3280         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281         then :; else
3282            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283         fi
3284         # We set ac_cv_exeext here because the later test for it is not
3285         # safe: cross compilers may not add the suffix if given an `-o'
3286         # argument, so we may need to know it at that point already.
3287         # Even if this section looks crufty: it has the advantage of
3288         # actually working.
3289         break;;
3290     * )
3291         break;;
3292   esac
3293 done
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3295
3296 else
3297   ac_file=''
3298 fi
3299
3300 { echo "$as_me:$LINENO: result: $ac_file" >&5
3301 echo "${ECHO_T}$ac_file" >&6; }
3302 if test -z "$ac_file"; then
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C compiler cannot create executables
3309 See \`config.log' for more details." >&2;}
3310    { (exit 77); exit 77; }; }
3311 fi
3312
3313 ac_exeext=$ac_cv_exeext
3314
3315 # Check that the compiler produces executables we can run.  If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3318 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3320 # If not cross compiling, check that we can run a simple program.
3321 if test "$cross_compiling" != yes; then
3322   if { ac_try='./$ac_file'
3323   { (case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_try") 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; }; then
3332     cross_compiling=no
3333   else
3334     if test "$cross_compiling" = maybe; then
3335         cross_compiling=yes
3336     else
3337         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details." >&5
3340 echo "$as_me: error: cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details." >&2;}
3343    { (exit 1); exit 1; }; }
3344     fi
3345   fi
3346 fi
3347 { echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6; }
3349
3350 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 # Check that the compiler produces executables we can run.  If not, either
3353 # the compiler is broken, or we cross compile.
3354 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3355 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3356 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3357 echo "${ECHO_T}$cross_compiling" >&6; }
3358
3359 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3360 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3361 if { (ac_try="$ac_link"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_link") 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; then
3371   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3373 # work properly (i.e., refer to `conftest.exe'), while it won't with
3374 # `rm'.
3375 for ac_file in conftest.exe conftest conftest.*; do
3376   test -f "$ac_file" || continue
3377   case $ac_file in
3378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3379     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380           break;;
3381     * ) break;;
3382   esac
3383 done
3384 else
3385   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3388 See \`config.log' for more details." >&2;}
3389    { (exit 1); exit 1; }; }
3390 fi
3391
3392 rm -f conftest$ac_cv_exeext
3393 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3394 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3395
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3401 if test "${ac_cv_objext+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.o conftest.obj
3420 if { (ac_try="$ac_compile"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_compile") 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }; then
3430   for ac_file in conftest.o conftest.obj conftest.*; do
3431   test -f "$ac_file" || continue;
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435        break;;
3436   esac
3437 done
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3452 echo "${ECHO_T}$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471        choke me
3472 #endif
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_compile") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } && {
3492          test -z "$ac_c_werror_flag" ||
3493          test ! -s conftest.err
3494        } && test -s conftest.$ac_objext; then
3495   ac_compiler_gnu=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500         ac_compiler_gnu=no
3501 fi
3502
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3509 GCC=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3513 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   ac_save_c_werror_flag=$ac_c_werror_flag
3518    ac_c_werror_flag=yes
3519    ac_cv_prog_cc_g=no
3520    CFLAGS="-g"
3521    cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558         CFLAGS=""
3559       cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_compile") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } && {
3588          test -z "$ac_c_werror_flag" ||
3589          test ! -s conftest.err
3590        } && test -s conftest.$ac_objext; then
3591   :
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596         ac_c_werror_flag=$ac_save_c_werror_flag
3597          CFLAGS="-g"
3598          cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_prog_cc_g=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635         
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645    ac_c_werror_flag=$ac_save_c_werror_flag
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650   CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652   if test "$GCC" = yes; then
3653     CFLAGS="-g -O2"
3654   else
3655     CFLAGS="-g"
3656   fi
3657 else
3658   if test "$GCC" = yes; then
3659     CFLAGS="-O2"
3660   else
3661     CFLAGS=
3662   fi
3663 fi
3664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   ac_cv_prog_cc_c89=no
3670 ac_save_CC=$CC
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <stdarg.h>
3678 #include <stdio.h>
3679 #include <sys/types.h>
3680 #include <sys/stat.h>
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3685      char **p;
3686      int i;
3687 {
3688   return p[i];
3689 }
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3691 {
3692   char *s;
3693   va_list v;
3694   va_start (v,p);
3695   s = g (p, va_arg (v,int));
3696   va_end (v);
3697   return s;
3698 }
3699
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3701    function prototypes and stuff, but not '\xHH' hex character constants.
3702    These don't provoke an error unfortunately, instead are silently treated
3703    as 'x'.  The following induces an error, until -std is added to get
3704    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3705    array size at least.  It's necessary to write '\x00'==0 to get something
3706    that's true only with -std.  */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
3709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710    inside strings and character constants.  */
3711 #define FOO(x) 'x'
3712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713
3714 int test (int i, double x);
3715 struct s1 {int (*f) (int a);};
3716 struct s2 {int (*f) (double a);};
3717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718 int argc;
3719 char **argv;
3720 int
3721 main ()
3722 {
3723 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 do
3731   CC="$ac_save_CC $ac_arg"
3732   rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_compile") 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } && {
3746          test -z "$ac_c_werror_flag" ||
3747          test ! -s conftest.err
3748        } && test -s conftest.$ac_objext; then
3749   ac_cv_prog_cc_c89=$ac_arg
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754         
3755 fi
3756
3757 rm -f core conftest.err conftest.$ac_objext 
3758   test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c89" in
3766   x)
3767     { echo "$as_me:$LINENO: result: none needed" >&5
3768 echo "${ECHO_T}none needed" >&6; } ;;
3769   xno)
3770     { echo "$as_me:$LINENO: result: unsupported" >&5
3771 echo "${ECHO_T}unsupported" >&6; } ;;
3772   *)
3773     CC="$CC $ac_cv_prog_cc_c89"
3774     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3776 esac
3777
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785 depcc="$CC"   am_compiler_list=
3786
3787 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   mkdir conftest.dir
3799   # Copy depcomp to subdir because otherwise we won't find it if we're
3800   # using a relative directory.
3801   cp "$am_depcomp" conftest.dir
3802   cd conftest.dir
3803   # We will build objects and dependencies in a subdirectory because
3804   # it helps to detect inapplicable dependency modes.  For instance
3805   # both Tru64's cc and ICC support -MD to output dependencies as a
3806   # side effect of compilation, but ICC will put the dependencies in
3807   # the current directory while Tru64 will put them in the object
3808   # directory.
3809   mkdir sub
3810
3811   am_cv_CC_dependencies_compiler_type=none
3812   if test "$am_compiler_list" = ""; then
3813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814   fi
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827       # Solaris 8's {/usr,}/bin/sh.
3828       touch sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     case $depmode in
3833     nosideeffect)
3834       # after this tag, mechanisms are not by side-effect, so they'll
3835       # only be used when explicitly requested
3836       if test "x$enable_dependency_tracking" = xyes; then
3837         continue
3838       else
3839         break
3840       fi
3841       ;;
3842     none) break ;;
3843     esac
3844     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845     # mode.  It turns out that the SunPro C++ compiler does not properly
3846     # handle `-M -o', and we need to detect this.
3847     if depmode=$depmode \
3848        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851          >/dev/null 2>conftest.err &&
3852        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855       # icc doesn't choke on unknown options, it will just issue warnings
3856       # or remarks (even with -Werror).  So we grep stderr for any message
3857       # that says an option was ignored or not supported.
3858       # When given -MP, icc 7.0 and 7.1 complain thusly:
3859       #   icc: Command line warning: ignoring option '-M'; no argument required
3860       # The diagnosis changed in icc 8.0:
3861       #   icc: Command line remark: option '-MP' not supported
3862       if (grep 'ignoring option' conftest.err ||
3863           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864         am_cv_CC_dependencies_compiler_type=$depmode
3865         break
3866       fi
3867     fi
3868   done
3869
3870   cd ..
3871   rm -rf conftest.dir
3872 else
3873   am_cv_CC_dependencies_compiler_type=none
3874 fi
3875
3876 fi
3877 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3880
3881  
3882
3883 if 
3884   test "x$enable_dependency_tracking" != xno \
3885   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886   am__fastdepCC_TRUE=
3887   am__fastdepCC_FALSE='#'
3888 else
3889   am__fastdepCC_TRUE='#'
3890   am__fastdepCC_FALSE=
3891 fi
3892
3893
3894
3895
3896   TCPW_MSG="no"
3897   
3898 # Check whether --with-tcp-wrappers was given.
3899 if test "${with_tcp_wrappers+set}" = set; then
3900   withval=$with_tcp_wrappers; with_tcpw=$withval
3901 else
3902   with_tcpw=yes
3903 fi
3904
3905         if test "x$with_tcpw" != "xno" ; then
3906             saved_LIBS="$LIBS"
3907             saved_LDFLAGS="$LDFLAGS"
3908             saved_CPPFLAGS="$CPPFLAGS"
3909             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3910                 if test -d "${with_tcpw}/lib"; then
3911                     if test -n "${need_dash_r}"; then
3912                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3913                     else
3914                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3915                     fi
3916                 else
3917                     if test -n "${need_dash_r}"; then
3918                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3919                     else
3920                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3921                     fi
3922                 fi
3923                 if test -d "${with_tcpw}/include"; then
3924                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3925                 else
3926                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3927                 fi
3928             fi
3929             LIBWRAP="-lwrap"
3930             LIBS="$LIBWRAP $LIBS"
3931             { echo "$as_me:$LINENO: checking for libwrap" >&5
3932 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3933             cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939
3940                 #include <tcpd.h>
3941                 int deny_severity = 0, allow_severity = 0;
3942                 
3943 int
3944 main ()
3945 {
3946 hosts_access(0);
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3953 case "(($ac_try" in
3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955   *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958   (eval "$ac_link") 2>conftest.er1
3959   ac_status=$?
3960   grep -v '^ *+' conftest.er1 >conftest.err
3961   rm -f conftest.er1
3962   cat conftest.err >&5
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } && {
3965          test -z "$ac_c_werror_flag" ||
3966          test ! -s conftest.err
3967        } && test -s conftest$ac_exeext &&
3968        $as_test_x conftest$ac_exeext; then
3969   
3970                 { echo "$as_me:$LINENO: result: yes" >&5
3971 echo "${ECHO_T}yes" >&6; }
3972                 
3973                 
3974 cat >>confdefs.h <<\_ACEOF
3975 @%:@define LIBWRAP 1
3976 _ACEOF
3977
3978                 
3979 cat >>confdefs.h <<\_ACEOF
3980 @%:@define HAVE_LIBWRAP 1
3981 _ACEOF
3982
3983                 
3984 cat >>confdefs.h <<\_ACEOF
3985 @%:@define HAVE_TCP_WRAPPER 1
3986 _ACEOF
3987
3988                 TCPW_MSG="yes"
3989                 
3990 else
3991   echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994         
3995                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3996 echo "$as_me: error: *** libwrap missing" >&2;}
3997    { (exit 1); exit 1; }; }
3998                 
3999             
4000 fi
4001
4002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4003       conftest$ac_exeext conftest.$ac_ext
4004             LIBS="$saved_LIBS"
4005         fi
4006   
4007   
4008   
4009
4010
4011 # Arrange for large-file support
4012 # Check whether --enable-largefile was given.
4013 if test "${enable_largefile+set}" = set; then
4014   enableval=$enable_largefile; 
4015 fi
4016
4017 if test "$enable_largefile" != no; then
4018
4019   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4020 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4021 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_cv_sys_largefile_CC=no
4025      if test "$GCC" != yes; then
4026        ac_save_CC=$CC
4027        while :; do
4028          # IRIX 6.2 and later do not support large files by default,
4029          # so use the C compiler's -n32 option if that helps.
4030          cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 @%:@include <sys/types.h>
4037  /* Check that off_t can represent 2**63 - 1 correctly.
4038     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4039     since some C++ compilers masquerading as C compilers
4040     incorrectly reject 9223372036854775807.  */
4041 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4042   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4043                        && LARGE_OFF_T % 2147483647 == 1)
4044                       ? 1 : -1];
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053          rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_compile") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } && {
4067          test -z "$ac_c_werror_flag" ||
4068          test ! -s conftest.err
4069        } && test -s conftest.$ac_objext; then
4070   break
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075         
4076 fi
4077
4078 rm -f core conftest.err conftest.$ac_objext 
4079          CC="$CC -n32"
4080          rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && {
4094          test -z "$ac_c_werror_flag" ||
4095          test ! -s conftest.err
4096        } && test -s conftest.$ac_objext; then
4097   ac_cv_sys_largefile_CC=' -n32'; break
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102         
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext 
4106          break
4107        done
4108        CC=$ac_save_CC
4109        rm -f conftest.$ac_ext
4110     fi
4111 fi
4112 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4113 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4114   if test "$ac_cv_sys_largefile_CC" != no; then
4115     CC=$CC$ac_cv_sys_largefile_CC
4116   fi
4117
4118   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4119 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4120 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   while :; do
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 @%:@include <sys/types.h>
4131  /* Check that off_t can represent 2**63 - 1 correctly.
4132     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133     since some C++ compilers masquerading as C compilers
4134     incorrectly reject 9223372036854775807.  */
4135 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137                        && LARGE_OFF_T % 2147483647 == 1)
4138                       ? 1 : -1];
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_compile") 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } && {
4161          test -z "$ac_c_werror_flag" ||
4162          test ! -s conftest.err
4163        } && test -s conftest.$ac_objext; then
4164   ac_cv_sys_file_offset_bits=no; break
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169         
4170 fi
4171
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173   cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 @%:@define _FILE_OFFSET_BITS 64
4180 @%:@include <sys/types.h>
4181  /* Check that off_t can represent 2**63 - 1 correctly.
4182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4183     since some C++ compilers masquerading as C compilers
4184     incorrectly reject 9223372036854775807.  */
4185 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4187                        && LARGE_OFF_T % 2147483647 == 1)
4188                       ? 1 : -1];
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_compile") 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } && {
4211          test -z "$ac_c_werror_flag" ||
4212          test ! -s conftest.err
4213        } && test -s conftest.$ac_objext; then
4214   ac_cv_sys_file_offset_bits=64; break
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223   ac_cv_sys_file_offset_bits=unknown
4224   break
4225 done
4226 fi
4227 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4229 case $ac_cv_sys_file_offset_bits in #(
4230   no | unknown) ;;
4231   *) 
4232 cat >>confdefs.h <<_ACEOF
4233 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4234 _ACEOF
4235 ;;
4236 esac
4237 rm -f conftest*
4238   if test $ac_cv_sys_file_offset_bits = unknown; then
4239     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4240 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4241 if test "${ac_cv_sys_large_files+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   while :; do
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 @%:@include <sys/types.h>
4252  /* Check that off_t can represent 2**63 - 1 correctly.
4253     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4254     since some C++ compilers masquerading as C compilers
4255     incorrectly reject 9223372036854775807.  */
4256 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4257   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4258                        && LARGE_OFF_T % 2147483647 == 1)
4259                       ? 1 : -1];
4260 int
4261 main ()
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_compile") 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } && {
4282          test -z "$ac_c_werror_flag" ||
4283          test ! -s conftest.err
4284        } && test -s conftest.$ac_objext; then
4285   ac_cv_sys_large_files=no; break
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290         
4291 fi
4292
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 @%:@define _LARGE_FILES 1
4301 @%:@include <sys/types.h>
4302  /* Check that off_t can represent 2**63 - 1 correctly.
4303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4304     since some C++ compilers masquerading as C compilers
4305     incorrectly reject 9223372036854775807.  */
4306 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4308                        && LARGE_OFF_T % 2147483647 == 1)
4309                       ? 1 : -1];
4310 int
4311 main ()
4312 {
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_compile") 2>conftest.er1
4326   ac_status=$?
4327   grep -v '^ *+' conftest.er1 >conftest.err
4328   rm -f conftest.er1
4329   cat conftest.err >&5
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && {
4332          test -z "$ac_c_werror_flag" ||
4333          test ! -s conftest.err
4334        } && test -s conftest.$ac_objext; then
4335   ac_cv_sys_large_files=1; break
4336 else
4337   echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340         
4341 fi
4342
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344   ac_cv_sys_large_files=unknown
4345   break
4346 done
4347 fi
4348 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4349 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4350 case $ac_cv_sys_large_files in #(
4351   no | unknown) ;;
4352   *) 
4353 cat >>confdefs.h <<_ACEOF
4354 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4355 _ACEOF
4356 ;;
4357 esac
4358 rm -f conftest*
4359   fi
4360 fi
4361
4362
4363
4364 ac_config_headers="$ac_config_headers support/include/config.h"
4365
4366
4367 # Checks for programs.
4368 ac_ext=cpp
4369 ac_cpp='$CXXCPP $CPPFLAGS'
4370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4373 if test -z "$CXX"; then
4374   if test -n "$CCC"; then
4375     CXX=$CCC
4376   else
4377     if test -n "$ac_tool_prefix"; then
4378   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4379   do
4380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_CXX+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test -n "$CXX"; then
4388   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 CXX=$ac_cv_prog_CXX
4408 if test -n "$CXX"; then
4409   { echo "$as_me:$LINENO: result: $CXX" >&5
4410 echo "${ECHO_T}$CXX" >&6; }
4411 else
4412   { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4414 fi
4415
4416
4417     test -n "$CXX" && break
4418   done
4419 fi
4420 if test -z "$CXX"; then
4421   ac_ct_CXX=$CXX
4422   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4423 do
4424   # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test -n "$ac_ct_CXX"; then
4432   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_ac_ct_CXX="$ac_prog"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4452 if test -n "$ac_ct_CXX"; then
4453   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4454 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4455 else
4456   { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4458 fi
4459
4460
4461   test -n "$ac_ct_CXX" && break
4462 done
4463
4464   if test "x$ac_ct_CXX" = x; then
4465     CXX="g++"
4466   else
4467     case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet.  If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&5
4472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4473 whose name does not start with the host triplet.  If you think this
4474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477     CXX=$ac_ct_CXX
4478   fi
4479 fi
4480
4481   fi
4482 fi
4483 # Provide some information about the compiler.
4484 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4485 ac_compiler=`set X $ac_compile; echo $2`
4486 { (ac_try="$ac_compiler --version >&5"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_compiler --version >&5") 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }
4496 { (ac_try="$ac_compiler -v >&5"
4497 case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_compiler -v >&5") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }
4506 { (ac_try="$ac_compiler -V >&5"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_compiler -V >&5") 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }
4516
4517 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4518 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528
4529 int
4530 main ()
4531 {
4532 #ifndef __GNUC__
4533        choke me
4534 #endif
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && {
4554          test -z "$ac_cxx_werror_flag" ||
4555          test ! -s conftest.err
4556        } && test -s conftest.$ac_objext; then
4557   ac_compiler_gnu=yes
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562         ac_compiler_gnu=no
4563 fi
4564
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4567
4568 fi
4569 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4570 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4571 GXX=`test $ac_compiler_gnu = yes && echo yes`
4572 ac_test_CXXFLAGS=${CXXFLAGS+set}
4573 ac_save_CXXFLAGS=$CXXFLAGS
4574 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4575 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_cxx_g+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4580    ac_cxx_werror_flag=yes
4581    ac_cv_prog_cxx_g=no
4582    CXXFLAGS="-g"
4583    cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 int
4591 main ()
4592 {
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_compile") 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } && {
4612          test -z "$ac_cxx_werror_flag" ||
4613          test ! -s conftest.err
4614        } && test -s conftest.$ac_objext; then
4615   ac_cv_prog_cxx_g=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620         CXXFLAGS=""
4621       cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_compile") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } && {
4650          test -z "$ac_cxx_werror_flag" ||
4651          test ! -s conftest.err
4652        } && test -s conftest.$ac_objext; then
4653   :
4654 else
4655   echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4659          CXXFLAGS="-g"
4660          cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_compile") 2>conftest.er1
4683   ac_status=$?
4684   grep -v '^ *+' conftest.er1 >conftest.err
4685   rm -f conftest.er1
4686   cat conftest.err >&5
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } && {
4689          test -z "$ac_cxx_werror_flag" ||
4690          test ! -s conftest.err
4691        } && test -s conftest.$ac_objext; then
4692   ac_cv_prog_cxx_g=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697         
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4708 fi
4709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4710 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4711 if test "$ac_test_CXXFLAGS" = set; then
4712   CXXFLAGS=$ac_save_CXXFLAGS
4713 elif test $ac_cv_prog_cxx_g = yes; then
4714   if test "$GXX" = yes; then
4715     CXXFLAGS="-g -O2"
4716   else
4717     CXXFLAGS="-g"
4718   fi
4719 else
4720   if test "$GXX" = yes; then
4721     CXXFLAGS="-O2"
4722   else
4723     CXXFLAGS=
4724   fi
4725 fi
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732 depcc="$CXX"  am_compiler_list=
4733
4734 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4736 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4740   # We make a subdir and do the tests there.  Otherwise we can end up
4741   # making bogus files that we don't know about and never remove.  For
4742   # instance it was reported that on HP-UX the gcc test will end up
4743   # making a dummy file named `D' -- because `-MD' means `put the output
4744   # in D'.
4745   mkdir conftest.dir
4746   # Copy depcomp to subdir because otherwise we won't find it if we're
4747   # using a relative directory.
4748   cp "$am_depcomp" conftest.dir
4749   cd conftest.dir
4750   # We will build objects and dependencies in a subdirectory because
4751   # it helps to detect inapplicable dependency modes.  For instance
4752   # both Tru64's cc and ICC support -MD to output dependencies as a
4753   # side effect of compilation, but ICC will put the dependencies in
4754   # the current directory while Tru64 will put them in the object
4755   # directory.
4756   mkdir sub
4757
4758   am_cv_CXX_dependencies_compiler_type=none
4759   if test "$am_compiler_list" = ""; then
4760      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4761   fi
4762   for depmode in $am_compiler_list; do
4763     # Setup a source with many dependencies, because some compilers
4764     # like to wrap large dependency lists on column 80 (with \), and
4765     # we should not choose a depcomp mode which is confused by this.
4766     #
4767     # We need to recreate these files for each test, as the compiler may
4768     # overwrite some of them when testing with obscure command lines.
4769     # This happens at least with the AIX C compiler.
4770     : > sub/conftest.c
4771     for i in 1 2 3 4 5 6; do
4772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4774       # Solaris 8's {/usr,}/bin/sh.
4775       touch sub/conftst$i.h
4776     done
4777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4778
4779     case $depmode in
4780     nosideeffect)
4781       # after this tag, mechanisms are not by side-effect, so they'll
4782       # only be used when explicitly requested
4783       if test "x$enable_dependency_tracking" = xyes; then
4784         continue
4785       else
4786         break
4787       fi
4788       ;;
4789     none) break ;;
4790     esac
4791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792     # mode.  It turns out that the SunPro C++ compiler does not properly
4793     # handle `-M -o', and we need to detect this.
4794     if depmode=$depmode \
4795        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4797        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4798          >/dev/null 2>conftest.err &&
4799        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4800        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4801        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4802       # icc doesn't choke on unknown options, it will just issue warnings
4803       # or remarks (even with -Werror).  So we grep stderr for any message
4804       # that says an option was ignored or not supported.
4805       # When given -MP, icc 7.0 and 7.1 complain thusly:
4806       #   icc: Command line warning: ignoring option '-M'; no argument required
4807       # The diagnosis changed in icc 8.0:
4808       #   icc: Command line remark: option '-MP' not supported
4809       if (grep 'ignoring option' conftest.err ||
4810           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4811         am_cv_CXX_dependencies_compiler_type=$depmode
4812         break
4813       fi
4814     fi
4815   done
4816
4817   cd ..
4818   rm -rf conftest.dir
4819 else
4820   am_cv_CXX_dependencies_compiler_type=none
4821 fi
4822
4823 fi
4824 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4825 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4826 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4827
4828  
4829
4830 if 
4831   test "x$enable_dependency_tracking" != xno \
4832   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4833   am__fastdepCXX_TRUE=
4834   am__fastdepCXX_FALSE='#'
4835 else
4836   am__fastdepCXX_TRUE='#'
4837   am__fastdepCXX_FALSE=
4838 fi
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 if test -n "$ac_tool_prefix"; then
4847   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_CC+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$CC"; then
4855   ac_cv_prog_CC="$CC" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 CC=$ac_cv_prog_CC
4875 if test -n "$CC"; then
4876   { echo "$as_me:$LINENO: result: $CC" >&5
4877 echo "${ECHO_T}$CC" >&6; }
4878 else
4879   { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4881 fi
4882
4883
4884 fi
4885 if test -z "$ac_cv_prog_CC"; then
4886   ac_ct_CC=$CC
4887   # Extract the first word of "gcc", so it can be a program name with args.
4888 set dummy gcc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$ac_ct_CC"; then
4895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_prog_ac_ct_CC="gcc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4915 if test -n "$ac_ct_CC"; then
4916   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4917 echo "${ECHO_T}$ac_ct_CC" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923   if test "x$ac_ct_CC" = x; then
4924     CC=""
4925   else
4926     case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4929 whose name does not start with the host triplet.  If you think this
4930 configuration is useful to you, please write to autoconf@gnu.org." >&5
4931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet.  If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936     CC=$ac_ct_CC
4937   fi
4938 else
4939   CC="$ac_cv_prog_CC"
4940 fi
4941
4942 if test -z "$CC"; then
4943           if test -n "$ac_tool_prefix"; then
4944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}cc; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_prog_CC+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   if test -n "$CC"; then
4952   ac_cv_prog_CC="$CC" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_prog_CC="${ac_tool_prefix}cc"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 CC=$ac_cv_prog_CC
4972 if test -n "$CC"; then
4973   { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980
4981   fi
4982 fi
4983 if test -z "$CC"; then
4984   # Extract the first word of "cc", so it can be a program name with args.
4985 set dummy cc; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test -n "$CC"; then
4992   ac_cv_prog_CC="$CC" # Let the user override the test.
4993 else
4994   ac_prog_rejected=no
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5003        ac_prog_rejected=yes
5004        continue
5005      fi
5006     ac_cv_prog_CC="cc"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 if test $ac_prog_rejected = yes; then
5015   # We found a bogon in the path, so make sure we never use it.
5016   set dummy $ac_cv_prog_CC
5017   shift
5018   if test $@%:@ != 0; then
5019     # We chose a different compiler from the bogus one.
5020     # However, it has the same basename, so the bogon will be chosen
5021     # first if we set CC to just the basename; use the full file name.
5022     shift
5023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5024   fi
5025 fi
5026 fi
5027 fi
5028 CC=$ac_cv_prog_CC
5029 if test -n "$CC"; then
5030   { echo "$as_me:$LINENO: result: $CC" >&5
5031 echo "${ECHO_T}$CC" >&6; }
5032 else
5033   { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 fi
5036
5037
5038 fi
5039 if test -z "$CC"; then
5040   if test -n "$ac_tool_prefix"; then
5041   for ac_prog in cl.exe
5042   do
5043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_CC+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   if test -n "$CC"; then
5051   ac_cv_prog_CC="$CC" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 CC=$ac_cv_prog_CC
5071 if test -n "$CC"; then
5072   { echo "$as_me:$LINENO: result: $CC" >&5
5073 echo "${ECHO_T}$CC" >&6; }
5074 else
5075   { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 fi
5078
5079
5080     test -n "$CC" && break
5081   done
5082 fi
5083 if test -z "$CC"; then
5084   ac_ct_CC=$CC
5085   for ac_prog in cl.exe
5086 do
5087   # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   if test -n "$ac_ct_CC"; then
5095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_ac_ct_CC="$ac_prog"
5105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5115 if test -n "$ac_ct_CC"; then
5116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5117 echo "${ECHO_T}$ac_ct_CC" >&6; }
5118 else
5119   { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5121 fi
5122
5123
5124   test -n "$ac_ct_CC" && break
5125 done
5126
5127   if test "x$ac_ct_CC" = x; then
5128     CC=""
5129   else
5130     case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5133 whose name does not start with the host triplet.  If you think this
5134 configuration is useful to you, please write to autoconf@gnu.org." >&5
5135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5136 whose name does not start with the host triplet.  If you think this
5137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140     CC=$ac_ct_CC
5141   fi
5142 fi
5143
5144 fi
5145
5146
5147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: no acceptable C compiler found in \$PATH
5150 See \`config.log' for more details." >&2;}
5151    { (exit 1); exit 1; }; }
5152
5153 # Provide some information about the compiler.
5154 echo "$as_me:$LINENO: checking for C compiler version" >&5
5155 ac_compiler=`set X $ac_compile; echo $2`
5156 { (ac_try="$ac_compiler --version >&5"
5157 case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_compiler --version >&5") 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }
5166 { (ac_try="$ac_compiler -v >&5"
5167 case "(($ac_try" in
5168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169   *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172   (eval "$ac_compiler -v >&5") 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }
5176 { (ac_try="$ac_compiler -V >&5"
5177 case "(($ac_try" in
5178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179   *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182   (eval "$ac_compiler -V >&5") 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }
5186
5187 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5188 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5189 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203        choke me
5204 #endif
5205
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 rm -f conftest.$ac_objext
5211 if { (ac_try="$ac_compile"
5212 case "(($ac_try" in
5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214   *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217   (eval "$ac_compile") 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } && {
5224          test -z "$ac_c_werror_flag" ||
5225          test ! -s conftest.err
5226        } && test -s conftest.$ac_objext; then
5227   ac_compiler_gnu=yes
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232         ac_compiler_gnu=no
5233 fi
5234
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5237
5238 fi
5239 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5240 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5241 GCC=`test $ac_compiler_gnu = yes && echo yes`
5242 ac_test_CFLAGS=${CFLAGS+set}
5243 ac_save_CFLAGS=$CFLAGS
5244 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5245 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5246 if test "${ac_cv_prog_cc_g+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   ac_save_c_werror_flag=$ac_c_werror_flag
5250    ac_c_werror_flag=yes
5251    ac_cv_prog_cc_g=no
5252    CFLAGS="-g"
5253    cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259
5260 int
5261 main ()
5262 {
5263
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (ac_try="$ac_compile"
5270 case "(($ac_try" in
5271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272   *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275   (eval "$ac_compile") 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } && {
5282          test -z "$ac_c_werror_flag" ||
5283          test ! -s conftest.err
5284        } && test -s conftest.$ac_objext; then
5285   ac_cv_prog_cc_g=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290         CFLAGS=""
5291       cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297
5298 int
5299 main ()
5300 {
5301
5302   ;
5303   return 0;
5304 }
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_compile") 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } && {
5320          test -z "$ac_c_werror_flag" ||
5321          test ! -s conftest.err
5322        } && test -s conftest.$ac_objext; then
5323   :
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328         ac_c_werror_flag=$ac_save_c_werror_flag
5329          CFLAGS="-g"
5330          cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336
5337 int
5338 main ()
5339 {
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext
5346 if { (ac_try="$ac_compile"
5347 case "(($ac_try" in
5348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349   *) ac_try_echo=$ac_try;;
5350 esac
5351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352   (eval "$ac_compile") 2>conftest.er1
5353   ac_status=$?
5354   grep -v '^ *+' conftest.er1 >conftest.err
5355   rm -f conftest.er1
5356   cat conftest.err >&5
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } && {
5359          test -z "$ac_c_werror_flag" ||
5360          test ! -s conftest.err
5361        } && test -s conftest.$ac_objext; then
5362   ac_cv_prog_cc_g=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367         
5368 fi
5369
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377    ac_c_werror_flag=$ac_save_c_werror_flag
5378 fi
5379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5380 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5381 if test "$ac_test_CFLAGS" = set; then
5382   CFLAGS=$ac_save_CFLAGS
5383 elif test $ac_cv_prog_cc_g = yes; then
5384   if test "$GCC" = yes; then
5385     CFLAGS="-g -O2"
5386   else
5387     CFLAGS="-g"
5388   fi
5389 else
5390   if test "$GCC" = yes; then
5391     CFLAGS="-O2"
5392   else
5393     CFLAGS=
5394   fi
5395 fi
5396 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5397 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_cc_c89+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   ac_cv_prog_cc_c89=no
5402 ac_save_CC=$CC
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 #include <stdarg.h>
5410 #include <stdio.h>
5411 #include <sys/types.h>
5412 #include <sys/stat.h>
5413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5414 struct buf { int x; };
5415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5416 static char *e (p, i)
5417      char **p;
5418      int i;
5419 {
5420   return p[i];
5421 }
5422 static char *f (char * (*g) (char **, int), char **p, ...)
5423 {
5424   char *s;
5425   va_list v;
5426   va_start (v,p);
5427   s = g (p, va_arg (v,int));
5428   va_end (v);
5429   return s;
5430 }
5431
5432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5433    function prototypes and stuff, but not '\xHH' hex character constants.
5434    These don't provoke an error unfortunately, instead are silently treated
5435    as 'x'.  The following induces an error, until -std is added to get
5436    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5437    array size at least.  It's necessary to write '\x00'==0 to get something
5438    that's true only with -std.  */
5439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5440
5441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5442    inside strings and character constants.  */
5443 #define FOO(x) 'x'
5444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5445
5446 int test (int i, double x);
5447 struct s1 {int (*f) (int a);};
5448 struct s2 {int (*f) (double a);};
5449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5450 int argc;
5451 char **argv;
5452 int
5453 main ()
5454 {
5455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5461         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5462 do
5463   CC="$ac_save_CC $ac_arg"
5464   rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468   *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471   (eval "$ac_compile") 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } && {
5478          test -z "$ac_c_werror_flag" ||
5479          test ! -s conftest.err
5480        } && test -s conftest.$ac_objext; then
5481   ac_cv_prog_cc_c89=$ac_arg
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486         
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext 
5490   test "x$ac_cv_prog_cc_c89" != "xno" && break
5491 done
5492 rm -f conftest.$ac_ext
5493 CC=$ac_save_CC
5494
5495 fi
5496 # AC_CACHE_VAL
5497 case "x$ac_cv_prog_cc_c89" in
5498   x)
5499     { echo "$as_me:$LINENO: result: none needed" >&5
5500 echo "${ECHO_T}none needed" >&6; } ;;
5501   xno)
5502     { echo "$as_me:$LINENO: result: unsupported" >&5
5503 echo "${ECHO_T}unsupported" >&6; } ;;
5504   *)
5505     CC="$CC $ac_cv_prog_cc_c89"
5506     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5507 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5508 esac
5509
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517 depcc="$CC"   am_compiler_list=
5518
5519 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5520 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525   # We make a subdir and do the tests there.  Otherwise we can end up
5526   # making bogus files that we don't know about and never remove.  For
5527   # instance it was reported that on HP-UX the gcc test will end up
5528   # making a dummy file named `D' -- because `-MD' means `put the output
5529   # in D'.
5530   mkdir conftest.dir
5531   # Copy depcomp to subdir because otherwise we won't find it if we're
5532   # using a relative directory.
5533   cp "$am_depcomp" conftest.dir
5534   cd conftest.dir
5535   # We will build objects and dependencies in a subdirectory because
5536   # it helps to detect inapplicable dependency modes.  For instance
5537   # both Tru64's cc and ICC support -MD to output dependencies as a
5538   # side effect of compilation, but ICC will put the dependencies in
5539   # the current directory while Tru64 will put them in the object
5540   # directory.
5541   mkdir sub
5542
5543   am_cv_CC_dependencies_compiler_type=none
5544   if test "$am_compiler_list" = ""; then
5545      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546   fi
5547   for depmode in $am_compiler_list; do
5548     # Setup a source with many dependencies, because some compilers
5549     # like to wrap large dependency lists on column 80 (with \), and
5550     # we should not choose a depcomp mode which is confused by this.
5551     #
5552     # We need to recreate these files for each test, as the compiler may
5553     # overwrite some of them when testing with obscure command lines.
5554     # This happens at least with the AIX C compiler.
5555     : > sub/conftest.c
5556     for i in 1 2 3 4 5 6; do
5557       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5558       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5559       # Solaris 8's {/usr,}/bin/sh.
5560       touch sub/conftst$i.h
5561     done
5562     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5563
5564     case $depmode in
5565     nosideeffect)
5566       # after this tag, mechanisms are not by side-effect, so they'll
5567       # only be used when explicitly requested
5568       if test "x$enable_dependency_tracking" = xyes; then
5569         continue
5570       else
5571         break
5572       fi
5573       ;;
5574     none) break ;;
5575     esac
5576     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5577     # mode.  It turns out that the SunPro C++ compiler does not properly
5578     # handle `-M -o', and we need to detect this.
5579     if depmode=$depmode \
5580        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5581        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5582        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5583          >/dev/null 2>conftest.err &&
5584        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5585        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5586        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5587       # icc doesn't choke on unknown options, it will just issue warnings
5588       # or remarks (even with -Werror).  So we grep stderr for any message
5589       # that says an option was ignored or not supported.
5590       # When given -MP, icc 7.0 and 7.1 complain thusly:
5591       #   icc: Command line warning: ignoring option '-M'; no argument required
5592       # The diagnosis changed in icc 8.0:
5593       #   icc: Command line remark: option '-MP' not supported
5594       if (grep 'ignoring option' conftest.err ||
5595           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5596         am_cv_CC_dependencies_compiler_type=$depmode
5597         break
5598       fi
5599     fi
5600   done
5601
5602   cd ..
5603   rm -rf conftest.dir
5604 else
5605   am_cv_CC_dependencies_compiler_type=none
5606 fi
5607
5608 fi
5609 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5610 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5612
5613  
5614
5615 if 
5616   test "x$enable_dependency_tracking" != xno \
5617   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5618   am__fastdepCC_TRUE=
5619   am__fastdepCC_FALSE='#'
5620 else
5621   am__fastdepCC_TRUE='#'
5622   am__fastdepCC_FALSE=
5623 fi
5624
5625
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5633 # On Suns, sometimes $CPP names a directory.
5634 if test -n "$CPP" && test -d "$CPP"; then
5635   CPP=
5636 fi
5637 if test -z "$CPP"; then
5638   if test "${ac_cv_prog_CPP+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641       # Double quotes because CPP needs to be expanded
5642     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5643     do
5644       ac_preproc_ok=false
5645 for ac_c_preproc_warn_flag in '' yes
5646 do
5647   # Use a header file that comes with gcc, so configuring glibc
5648   # with a fresh cross-compiler works.
5649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650   # <limits.h> exists even on freestanding compilers.
5651   # On the NeXT, cc -E runs the code through the compiler's parser,
5652   # not just through cpp. "Syntax error" is here to catch this case.
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 @%:@ifdef __STDC__
5660 @%:@ include <limits.h>
5661 @%:@else
5662 @%:@ include <assert.h>
5663 @%:@endif
5664                      Syntax error
5665 _ACEOF
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } >/dev/null && {
5679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5680          test ! -s conftest.err
5681        }; then
5682   :
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687   # Broken: fails on valid input.
5688 continue
5689 fi
5690
5691 rm -f conftest.err conftest.$ac_ext
5692
5693   # OK, works on sane cases.  Now check whether nonexistent headers
5694   # can be detected and how.
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 @%:@include <ac_nonexistent.h>
5702 _ACEOF
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } >/dev/null && {
5716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5717          test ! -s conftest.err
5718        }; then
5719   # Broken: success on invalid input.
5720 continue
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725   # Passes both tests.
5726 ac_preproc_ok=:
5727 break
5728 fi
5729
5730 rm -f conftest.err conftest.$ac_ext
5731
5732 done
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then
5736   break
5737 fi
5738
5739     done
5740     ac_cv_prog_CPP=$CPP
5741   
5742 fi
5743   CPP=$ac_cv_prog_CPP
5744 else
5745   ac_cv_prog_CPP=$CPP
5746 fi
5747 { echo "$as_me:$LINENO: result: $CPP" >&5
5748 echo "${ECHO_T}$CPP" >&6; }
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5751 do
5752   # Use a header file that comes with gcc, so configuring glibc
5753   # with a fresh cross-compiler works.
5754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755   # <limits.h> exists even on freestanding compilers.
5756   # On the NeXT, cc -E runs the code through the compiler's parser,
5757   # not just through cpp. "Syntax error" is here to catch this case.
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 @%:@ifdef __STDC__
5765 @%:@ include <limits.h>
5766 @%:@else
5767 @%:@ include <assert.h>
5768 @%:@endif
5769                      Syntax error
5770 _ACEOF
5771 if { (ac_try="$ac_cpp conftest.$ac_ext"
5772 case "(($ac_try" in
5773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774   *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } >/dev/null && {
5784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5785          test ! -s conftest.err
5786        }; then
5787   :
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792   # Broken: fails on valid input.
5793 continue
5794 fi
5795
5796 rm -f conftest.err conftest.$ac_ext
5797
5798   # OK, works on sane cases.  Now check whether nonexistent headers
5799   # can be detected and how.
5800   cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 @%:@include <ac_nonexistent.h>
5807 _ACEOF
5808 if { (ac_try="$ac_cpp conftest.$ac_ext"
5809 case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } >/dev/null && {
5821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5822          test ! -s conftest.err
5823        }; then
5824   # Broken: success on invalid input.
5825 continue
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830   # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5833 fi
5834
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 done
5838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5839 rm -f conftest.err conftest.$ac_ext
5840 if $ac_preproc_ok; then
5841   :
5842 else
5843   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5844 See \`config.log' for more details." >&5
5845 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5846 See \`config.log' for more details." >&2;}
5847    { (exit 1); exit 1; }; }
5848 fi
5849
5850 ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
5856 # Find a good install program.  We prefer a C program (faster),
5857 # so one script is as good as another.  But avoid the broken or
5858 # incompatible versions:
5859 # SysV /etc/install, /usr/sbin/install
5860 # SunOS /usr/etc/install
5861 # IRIX /sbin/install
5862 # AIX /bin/install
5863 # AmigaOS /C/install, which installs bootblocks on floppy discs
5864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5867 # OS/2's system install, which has a completely different semantic
5868 # ./install, which can be erroneously created by make from ./install.sh.
5869 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5871 if test -z "$INSTALL"; then
5872 if test "${ac_cv_path_install+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880   # Account for people who put trailing slashes in PATH elements.
5881 case $as_dir/ in
5882   ./ | .// | /cC/* | \
5883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5884   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5885   /usr/ucb/* ) ;;
5886   *)
5887     # OSF1 and SCO ODT 3.0 have their own names for install.
5888     # Don't use installbsd from OSF since it installs stuff as root
5889     # by default.
5890     for ac_prog in ginstall scoinst install; do
5891       for ac_exec_ext in '' $ac_executable_extensions; do
5892         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5893           if test $ac_prog = install &&
5894             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5895             # AIX install.  It has an incompatible calling convention.
5896             :
5897           elif test $ac_prog = install &&
5898             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5899             # program-specific install script used by HP pwplus--don't use.
5900             :
5901           else
5902             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5903             break 3
5904           fi
5905         fi
5906       done
5907     done
5908     ;;
5909 esac
5910 done
5911 IFS=$as_save_IFS
5912
5913
5914 fi
5915   if test "${ac_cv_path_install+set}" = set; then
5916     INSTALL=$ac_cv_path_install
5917   else
5918     # As a last resort, use the slow shell script.  Don't cache a
5919     # value for INSTALL within a source directory, because that will
5920     # break other packages using the cache if that directory is
5921     # removed, or if the value is a relative name.
5922     INSTALL=$ac_install_sh
5923   fi
5924 fi
5925 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5926 echo "${ECHO_T}$INSTALL" >&6; }
5927
5928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5929 # It thinks the first close brace ends the variable substitution.
5930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5931
5932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5933
5934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5935
5936 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5938 LN_S=$as_ln_s
5939 if test "$LN_S" = "ln -s"; then
5940   { echo "$as_me:$LINENO: result: yes" >&5
5941 echo "${ECHO_T}yes" >&6; }
5942 else
5943   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5944 echo "${ECHO_T}no, using $LN_S" >&6; }
5945 fi
5946
5947 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5949 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.make <<\_ACEOF
5954 SHELL = /bin/sh
5955 all:
5956         @echo '@@@%%%=$(MAKE)=@@@%%%'
5957 _ACEOF
5958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5960   *@@@%%%=?*=@@@%%%*)
5961     eval ac_cv_prog_make_${ac_make}_set=yes;;
5962   *)
5963     eval ac_cv_prog_make_${ac_make}_set=no;;
5964 esac
5965 rm -f conftest.make
5966 fi
5967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5968   { echo "$as_me:$LINENO: result: yes" >&5
5969 echo "${ECHO_T}yes" >&6; }
5970   SET_MAKE=
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974   SET_MAKE="MAKE=${MAKE-make}"
5975 fi
5976
5977 # Check whether --enable-shared was given.
5978 if test "${enable_shared+set}" = set; then
5979   enableval=$enable_shared; p=${PACKAGE-default}
5980     case $enableval in
5981     yes) enable_shared=yes ;;
5982     no) enable_shared=no ;;
5983     *)
5984       enable_shared=no
5985       # Look at the argument we got.  We use all the common list separators.
5986       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5987       for pkg in $enableval; do
5988         IFS="$lt_save_ifs"
5989         if test "X$pkg" = "X$p"; then
5990           enable_shared=yes
5991         fi
5992       done
5993       IFS="$lt_save_ifs"
5994       ;;
5995     esac
5996 else
5997   enable_shared=yes
5998 fi
5999
6000
6001 # Check whether --enable-static was given.
6002 if test "${enable_static+set}" = set; then
6003   enableval=$enable_static; p=${PACKAGE-default}
6004     case $enableval in
6005     yes) enable_static=yes ;;
6006     no) enable_static=no ;;
6007     *)
6008      enable_static=no
6009       # Look at the argument we got.  We use all the common list separators.
6010       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011       for pkg in $enableval; do
6012         IFS="$lt_save_ifs"
6013         if test "X$pkg" = "X$p"; then
6014           enable_static=yes
6015         fi
6016       done
6017       IFS="$lt_save_ifs"
6018       ;;
6019     esac
6020 else
6021   enable_static=yes
6022 fi
6023
6024
6025 # Check whether --enable-fast-install was given.
6026 if test "${enable_fast_install+set}" = set; then
6027   enableval=$enable_fast_install; p=${PACKAGE-default}
6028     case $enableval in
6029     yes) enable_fast_install=yes ;;
6030     no) enable_fast_install=no ;;
6031     *)
6032       enable_fast_install=no
6033       # Look at the argument we got.  We use all the common list separators.
6034       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6035       for pkg in $enableval; do
6036         IFS="$lt_save_ifs"
6037         if test "X$pkg" = "X$p"; then
6038           enable_fast_install=yes
6039         fi
6040       done
6041       IFS="$lt_save_ifs"
6042       ;;
6043     esac
6044 else
6045   enable_fast_install=yes
6046 fi
6047
6048
6049 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6050 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6051 if test "${lt_cv_path_SED+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   # Loop through the user's path and test for sed and gsed.
6055 # Then use that list of sed's as ones to test for truncation.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for lt_ac_prog in sed gsed; do
6062     for ac_exec_ext in '' $ac_executable_extensions; do
6063       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6064         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6065       fi
6066     done
6067   done
6068 done
6069 IFS=$as_save_IFS
6070 lt_ac_max=0
6071 lt_ac_count=0
6072 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6073 # along with /bin/sed that truncates output.
6074 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6075   test ! -f $lt_ac_sed && continue
6076   cat /dev/null > conftest.in
6077   lt_ac_count=0
6078   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6079   # Check for GNU sed and select it if it is found.
6080   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6081     lt_cv_path_SED=$lt_ac_sed
6082     break
6083   fi
6084   while true; do
6085     cat conftest.in conftest.in >conftest.tmp
6086     mv conftest.tmp conftest.in
6087     cp conftest.in conftest.nl
6088     echo >>conftest.nl
6089     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6090     cmp -s conftest.out conftest.nl || break
6091     # 10000 chars as input seems more than enough
6092     test $lt_ac_count -gt 10 && break
6093     lt_ac_count=`expr $lt_ac_count + 1`
6094     if test $lt_ac_count -gt $lt_ac_max; then
6095       lt_ac_max=$lt_ac_count
6096       lt_cv_path_SED=$lt_ac_sed
6097     fi
6098   done
6099 done
6100
6101 fi
6102
6103 SED=$lt_cv_path_SED
6104
6105 { echo "$as_me:$LINENO: result: $SED" >&5
6106 echo "${ECHO_T}$SED" >&6; }
6107
6108 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6109 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6110 if test "${ac_cv_path_GREP+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   # Extract the first word of "grep ggrep" to use in msg output
6114 if test -z "$GREP"; then
6115 set dummy grep ggrep; ac_prog_name=$2
6116 if test "${ac_cv_path_GREP+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   ac_path_GREP_found=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_prog in grep ggrep; do
6127   for ac_exec_ext in '' $ac_executable_extensions; do
6128     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6129     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6130     # Check for GNU ac_path_GREP and select it if it is found.
6131   # Check for GNU $ac_path_GREP
6132 case `"$ac_path_GREP" --version 2>&1` in
6133 *GNU*)
6134   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6135 *)
6136   ac_count=0
6137   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6138   while :
6139   do
6140     cat "conftest.in" "conftest.in" >"conftest.tmp"
6141     mv "conftest.tmp" "conftest.in"
6142     cp "conftest.in" "conftest.nl"
6143     echo 'GREP' >> "conftest.nl"
6144     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146     ac_count=`expr $ac_count + 1`
6147     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6148       # Best one so far, save it but keep looking for a better one
6149       ac_cv_path_GREP="$ac_path_GREP"
6150       ac_path_GREP_max=$ac_count
6151     fi
6152     # 10*(2^10) chars as input seems more than enough
6153     test $ac_count -gt 10 && break
6154   done
6155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156 esac
6157
6158
6159     $ac_path_GREP_found && break 3
6160   done
6161 done
6162
6163 done
6164 IFS=$as_save_IFS
6165
6166
6167 fi
6168
6169 GREP="$ac_cv_path_GREP"
6170 if test -z "$GREP"; then
6171   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6172 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6173    { (exit 1); exit 1; }; }
6174 fi
6175
6176 else
6177   ac_cv_path_GREP=$GREP
6178 fi
6179
6180
6181 fi
6182 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6183 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6184  GREP="$ac_cv_path_GREP"
6185  
6186
6187 { echo "$as_me:$LINENO: checking for egrep" >&5
6188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_EGREP+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6193    then ac_cv_path_EGREP="$GREP -E"
6194    else
6195      # Extract the first word of "egrep" to use in msg output
6196 if test -z "$EGREP"; then
6197 set dummy egrep; ac_prog_name=$2
6198 if test "${ac_cv_path_EGREP+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   ac_path_EGREP_found=false
6202 # Loop through the user's path and test for each of PROGNAME-LIST
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208   for ac_prog in egrep; do
6209   for ac_exec_ext in '' $ac_executable_extensions; do
6210     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6211     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6212     # Check for GNU ac_path_EGREP and select it if it is found.
6213   # Check for GNU $ac_path_EGREP
6214 case `"$ac_path_EGREP" --version 2>&1` in
6215 *GNU*)
6216   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6217 *)
6218   ac_count=0
6219   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6220   while :
6221   do
6222     cat "conftest.in" "conftest.in" >"conftest.tmp"
6223     mv "conftest.tmp" "conftest.in"
6224     cp "conftest.in" "conftest.nl"
6225     echo 'EGREP' >> "conftest.nl"
6226     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6228     ac_count=`expr $ac_count + 1`
6229     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6230       # Best one so far, save it but keep looking for a better one
6231       ac_cv_path_EGREP="$ac_path_EGREP"
6232       ac_path_EGREP_max=$ac_count
6233     fi
6234     # 10*(2^10) chars as input seems more than enough
6235     test $ac_count -gt 10 && break
6236   done
6237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238 esac
6239
6240
6241     $ac_path_EGREP_found && break 3
6242   done
6243 done
6244
6245 done
6246 IFS=$as_save_IFS
6247
6248
6249 fi
6250
6251 EGREP="$ac_cv_path_EGREP"
6252 if test -z "$EGREP"; then
6253   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6254 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6255    { (exit 1); exit 1; }; }
6256 fi
6257
6258 else
6259   ac_cv_path_EGREP=$EGREP
6260 fi
6261
6262
6263    fi
6264 fi
6265 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6266 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6267  EGREP="$ac_cv_path_EGREP"
6268  
6269
6270
6271 # Check whether --with-gnu-ld was given.
6272 if test "${with_gnu_ld+set}" = set; then
6273   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6274 else
6275   with_gnu_ld=no
6276 fi
6277
6278 ac_prog=ld
6279 if test "$GCC" = yes; then
6280   # Check if gcc -print-prog-name=ld gives a path.
6281   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6282 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6283   case $host in
6284   *-*-mingw*)
6285     # gcc leaves a trailing carriage return which upsets mingw
6286     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6287   *)
6288     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6289   esac
6290   case $ac_prog in
6291     # Accept absolute paths.
6292     [\\/]* | ?:[\\/]*)
6293       re_direlt='/[^/][^/]*/\.\./'
6294       # Canonicalize the pathname of ld
6295       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6296       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6297         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6298       done
6299       test -z "$LD" && LD="$ac_prog"
6300       ;;
6301   "")
6302     # If it fails, then pretend we aren't using GCC.
6303     ac_prog=ld
6304     ;;
6305   *)
6306     # If it is relative, then search for the first ld in PATH.
6307     with_gnu_ld=unknown
6308     ;;
6309   esac
6310 elif test "$with_gnu_ld" = yes; then
6311   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6312 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6315 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6316 fi
6317 if test "${lt_cv_path_LD+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test -z "$LD"; then
6321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6322   for ac_dir in $PATH; do
6323     IFS="$lt_save_ifs"
6324     test -z "$ac_dir" && ac_dir=.
6325     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6326       lt_cv_path_LD="$ac_dir/$ac_prog"
6327       # Check to see if the program is GNU ld.  I'd rather use --version,
6328       # but apparently some variants of GNU ld only accept -v.
6329       # Break only if it was the GNU/non-GNU ld that we prefer.
6330       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6331       *GNU* | *'with BFD'*)
6332         test "$with_gnu_ld" != no && break
6333         ;;
6334       *)
6335         test "$with_gnu_ld" != yes && break
6336         ;;
6337       esac
6338     fi
6339   done
6340   IFS="$lt_save_ifs"
6341 else
6342   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6343 fi
6344 fi
6345
6346 LD="$lt_cv_path_LD"
6347 if test -n "$LD"; then
6348   { echo "$as_me:$LINENO: result: $LD" >&5
6349 echo "${ECHO_T}$LD" >&6; }
6350 else
6351   { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6353 fi
6354 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6355 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6356    { (exit 1); exit 1; }; }
6357 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6358 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6359 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6363 case `$LD -v 2>&1 </dev/null` in
6364 *GNU* | *'with BFD'*)
6365   lt_cv_prog_gnu_ld=yes
6366   ;;
6367 *)
6368   lt_cv_prog_gnu_ld=no
6369   ;;
6370 esac
6371 fi
6372 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6373 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6374 with_gnu_ld=$lt_cv_prog_gnu_ld
6375
6376
6377 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6378 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6379 if test "${lt_cv_ld_reload_flag+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   lt_cv_ld_reload_flag='-r'
6383 fi
6384 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6385 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6386 reload_flag=$lt_cv_ld_reload_flag
6387 case $reload_flag in
6388 "" | " "*) ;;
6389 *) reload_flag=" $reload_flag" ;;
6390 esac
6391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6392 case $host_os in
6393   darwin*)
6394     if test "$GCC" = yes; then
6395       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6396     else
6397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398     fi
6399     ;;
6400 esac
6401
6402 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6403 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6404 if test "${lt_cv_path_NM+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   if test -n "$NM"; then
6408   # Let the user override the test.
6409   lt_cv_path_NM="$NM"
6410 else
6411   lt_nm_to_check="${ac_tool_prefix}nm"
6412   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6413     lt_nm_to_check="$lt_nm_to_check nm"
6414   fi
6415   for lt_tmp_nm in $lt_nm_to_check; do
6416     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6418       IFS="$lt_save_ifs"
6419       test -z "$ac_dir" && ac_dir=.
6420       tmp_nm="$ac_dir/$lt_tmp_nm"
6421       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6422         # Check to see if the nm accepts a BSD-compat flag.
6423         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6424         #   nm: unknown option "B" ignored
6425         # Tru64's nm complains that /dev/null is an invalid object file
6426         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6427         */dev/null* | *'Invalid file or object type'*)
6428           lt_cv_path_NM="$tmp_nm -B"
6429           break
6430           ;;
6431         *)
6432           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6433           */dev/null*)
6434             lt_cv_path_NM="$tmp_nm -p"
6435             break
6436             ;;
6437           *)
6438             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6439             continue # so that we can try to find one that supports BSD flags
6440             ;;
6441           esac
6442           ;;
6443         esac
6444       fi
6445     done
6446     IFS="$lt_save_ifs"
6447   done
6448   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6449 fi
6450 fi
6451 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6452 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6453 NM="$lt_cv_path_NM"
6454
6455 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6456 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6457 if test "${lt_cv_deplibs_check_method+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   lt_cv_file_magic_cmd='$MAGIC_CMD'
6461 lt_cv_file_magic_test_file=
6462 lt_cv_deplibs_check_method='unknown'
6463 # Need to set the preceding variable on all platforms that support
6464 # interlibrary dependencies.
6465 # 'none' -- dependencies not supported.
6466 # `unknown' -- same as none, but documents that we really don't know.
6467 # 'pass_all' -- all dependencies passed with no checks.
6468 # 'test_compile' -- check by making test program.
6469 # 'file_magic [[regex]]' -- check by looking for files in library path
6470 # which responds to the $file_magic_cmd with a given extended regex.
6471 # If you have `file' or equivalent on your system and you're not sure
6472 # whether `pass_all' will *always* work, you probably want this one.
6473
6474 case $host_os in
6475 aix4* | aix5*)
6476   lt_cv_deplibs_check_method=pass_all
6477   ;;
6478
6479 beos*)
6480   lt_cv_deplibs_check_method=pass_all
6481   ;;
6482
6483 bsdi[45]*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6485   lt_cv_file_magic_cmd='/usr/bin/file -L'
6486   lt_cv_file_magic_test_file=/shlib/libc.so
6487   ;;
6488
6489 cygwin*)
6490   # func_win32_libid is a shell function defined in ltmain.sh
6491   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6492   lt_cv_file_magic_cmd='func_win32_libid'
6493   ;;
6494
6495 mingw* | pw32*)
6496   # Base MSYS/MinGW do not provide the 'file' command needed by
6497   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6498   # unless we find 'file', for example because we are cross-compiling.
6499   if ( file / ) >/dev/null 2>&1; then
6500     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6501     lt_cv_file_magic_cmd='func_win32_libid'
6502   else
6503     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6504     lt_cv_file_magic_cmd='$OBJDUMP -f'
6505   fi
6506   ;;
6507
6508 darwin* | rhapsody*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 freebsd* | dragonfly*)
6513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6514     case $host_cpu in
6515     i*86 )
6516       # Not sure whether the presence of OpenBSD here was a mistake.
6517       # Let's accept both of them until this is cleared up.
6518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6519       lt_cv_file_magic_cmd=/usr/bin/file
6520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6521       ;;
6522     esac
6523   else
6524     lt_cv_deplibs_check_method=pass_all
6525   fi
6526   ;;
6527
6528 gnu*)
6529   lt_cv_deplibs_check_method=pass_all
6530   ;;
6531
6532 hpux10.20* | hpux11*)
6533   lt_cv_file_magic_cmd=/usr/bin/file
6534   case $host_cpu in
6535   ia64*)
6536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6538     ;;
6539   hppa*64*)
6540     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]'
6541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6542     ;;
6543   *)
6544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6546     ;;
6547   esac
6548   ;;
6549
6550 interix[3-9]*)
6551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6553   ;;
6554
6555 irix5* | irix6* | nonstopux*)
6556   case $LD in
6557   *-32|*"-32 ") libmagic=32-bit;;
6558   *-n32|*"-n32 ") libmagic=N32;;
6559   *-64|*"-64 ") libmagic=64-bit;;
6560   *) libmagic=never-match;;
6561   esac
6562   lt_cv_deplibs_check_method=pass_all
6563   ;;
6564
6565 # This must be Linux ELF.
6566 linux* | k*bsd*-gnu)
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 netbsd* | netbsdelf*-gnu)
6571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6573   else
6574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6575   fi
6576   ;;
6577
6578 newos6*)
6579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6580   lt_cv_file_magic_cmd=/usr/bin/file
6581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6582   ;;
6583
6584 nto-qnx*)
6585   lt_cv_deplibs_check_method=unknown
6586   ;;
6587
6588 openbsd*)
6589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6591   else
6592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6593   fi
6594   ;;
6595
6596 osf3* | osf4* | osf5*)
6597   lt_cv_deplibs_check_method=pass_all
6598   ;;
6599
6600 rdos*)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603
6604 solaris*)
6605   lt_cv_deplibs_check_method=pass_all
6606   ;;
6607
6608 sysv4 | sysv4.3*)
6609   case $host_vendor in
6610   motorola)
6611     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]'
6612     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6613     ;;
6614   ncr)
6615     lt_cv_deplibs_check_method=pass_all
6616     ;;
6617   sequent)
6618     lt_cv_file_magic_cmd='/bin/file'
6619     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6620     ;;
6621   sni)
6622     lt_cv_file_magic_cmd='/bin/file'
6623     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6624     lt_cv_file_magic_test_file=/lib/libc.so
6625     ;;
6626   siemens)
6627     lt_cv_deplibs_check_method=pass_all
6628     ;;
6629   pc)
6630     lt_cv_deplibs_check_method=pass_all
6631     ;;
6632   esac
6633   ;;
6634
6635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6636   lt_cv_deplibs_check_method=pass_all
6637   ;;
6638 esac
6639
6640 fi
6641 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6642 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6643 file_magic_cmd=$lt_cv_file_magic_cmd
6644 deplibs_check_method=$lt_cv_deplibs_check_method
6645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6646
6647
6648
6649
6650 # If no C compiler was specified, use CC.
6651 LTCC=${LTCC-"$CC"}
6652
6653 # If no C compiler flags were specified, use CFLAGS.
6654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6655
6656 # Allow CC to be a program name with arguments.
6657 compiler=$CC
6658
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then
6661   enableval=$enable_libtool_lock; 
6662 fi
6663
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6665
6666 # Some flags need to be propagated to the compiler or linker for good
6667 # libtool support.
6668 case $host in
6669 ia64-*-hpux*)
6670   # Find out which ABI we are using.
6671   echo 'int i;' > conftest.$ac_ext
6672   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673   (eval $ac_compile) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; then
6677     case `/usr/bin/file conftest.$ac_objext` in
6678     *ELF-32*)
6679       HPUX_IA64_MODE="32"
6680       ;;
6681     *ELF-64*)
6682       HPUX_IA64_MODE="64"
6683       ;;
6684     esac
6685   fi
6686   rm -rf conftest*
6687   ;;
6688 *-*-irix6*)
6689   # Find out which ABI we are using.
6690   echo '#line __oline__ "configure"' > conftest.$ac_ext
6691   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692   (eval $ac_compile) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; then
6696    if test "$lt_cv_prog_gnu_ld" = yes; then
6697     case `/usr/bin/file conftest.$ac_objext` in
6698     *32-bit*)
6699       LD="${LD-ld} -melf32bsmip"
6700       ;;
6701     *N32*)
6702       LD="${LD-ld} -melf32bmipn32"
6703       ;;
6704     *64-bit*)
6705       LD="${LD-ld} -melf64bmip"
6706       ;;
6707     esac
6708    else
6709     case `/usr/bin/file conftest.$ac_objext` in
6710     *32-bit*)
6711       LD="${LD-ld} -32"
6712       ;;
6713     *N32*)
6714       LD="${LD-ld} -n32"
6715       ;;
6716     *64-bit*)
6717       LD="${LD-ld} -64"
6718       ;;
6719     esac
6720    fi
6721   fi
6722   rm -rf conftest*
6723   ;;
6724
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|sparc*-*linux*)
6727   # Find out which ABI we are using.
6728   echo 'int i;' > conftest.$ac_ext
6729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730   (eval $ac_compile) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; then
6734     case `/usr/bin/file conftest.o` in
6735     *32-bit*)
6736       case $host in
6737         x86_64-*kfreebsd*-gnu)
6738           LD="${LD-ld} -m elf_i386_fbsd"
6739           ;;
6740         x86_64-*linux*)
6741           LD="${LD-ld} -m elf_i386"
6742           ;;
6743         ppc64-*linux*|powerpc64-*linux*)
6744           LD="${LD-ld} -m elf32ppclinux"
6745           ;;
6746         s390x-*linux*)
6747           LD="${LD-ld} -m elf_s390"
6748           ;;
6749         sparc64-*linux*)
6750           LD="${LD-ld} -m elf32_sparc"
6751           ;;
6752       esac
6753       ;;
6754     *64-bit*)
6755       case $host in
6756         x86_64-*kfreebsd*-gnu)
6757           LD="${LD-ld} -m elf_x86_64_fbsd"
6758           ;;
6759         x86_64-*linux*)
6760           LD="${LD-ld} -m elf_x86_64"
6761           ;;
6762         ppc*-*linux*|powerpc*-*linux*)
6763           LD="${LD-ld} -m elf64ppc"
6764           ;;
6765         s390*-*linux*)
6766           LD="${LD-ld} -m elf64_s390"
6767           ;;
6768         sparc*-*linux*)
6769           LD="${LD-ld} -m elf64_sparc"
6770           ;;
6771       esac
6772       ;;
6773     esac
6774   fi
6775   rm -rf conftest*
6776   ;;
6777
6778 *-*-sco3.2v5*)
6779   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6780   SAVE_CFLAGS="$CFLAGS"
6781   CFLAGS="$CFLAGS -belf"
6782   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6783 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6784 if test "${lt_cv_cc_needs_belf+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   ac_ext=c
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
6793      cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799
6800 int
6801 main ()
6802 {
6803
6804   ;
6805   return 0;
6806 }
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (ac_try="$ac_link"
6810 case "(($ac_try" in
6811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812   *) ac_try_echo=$ac_try;;
6813 esac
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815   (eval "$ac_link") 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } && {
6822          test -z "$ac_c_werror_flag" ||
6823          test ! -s conftest.err
6824        } && test -s conftest$ac_exeext &&
6825        $as_test_x conftest$ac_exeext; then
6826   lt_cv_cc_needs_belf=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831         lt_cv_cc_needs_belf=no
6832 fi
6833
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835       conftest$ac_exeext conftest.$ac_ext
6836      ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 fi
6843 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6844 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6845   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6846     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6847     CFLAGS="$SAVE_CFLAGS"
6848   fi
6849   ;;
6850 sparc*-*solaris*)
6851   # Find out which ABI we are using.
6852   echo 'int i;' > conftest.$ac_ext
6853   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; then
6858     case `/usr/bin/file conftest.o` in
6859     *64-bit*)
6860       case $lt_cv_prog_gnu_ld in
6861       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6862       *)    LD="${LD-ld} -64" ;;
6863       esac
6864       ;;
6865     esac
6866   fi
6867   rm -rf conftest*
6868   ;;
6869
6870
6871 esac
6872
6873 need_locks="$enable_libtool_lock"
6874
6875
6876
6877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6879 if test "${ac_cv_header_stdc+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888 #include <stdlib.h>
6889 #include <stdarg.h>
6890 #include <string.h>
6891 #include <float.h>
6892
6893 int
6894 main ()
6895 {
6896
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_compile") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_c_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest.$ac_objext; then
6918   ac_cv_header_stdc=yes
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923         ac_cv_header_stdc=no
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927
6928 if test $ac_cv_header_stdc = yes; then
6929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6930   cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #include <string.h>
6937
6938 _ACEOF
6939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6940   $EGREP "memchr" >/dev/null 2>&1; then
6941   :
6942 else
6943   ac_cv_header_stdc=no
6944 fi
6945 rm -f conftest*
6946
6947 fi
6948
6949 if test $ac_cv_header_stdc = yes; then
6950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 #include <stdlib.h>
6958
6959 _ACEOF
6960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961   $EGREP "free" >/dev/null 2>&1; then
6962   :
6963 else
6964   ac_cv_header_stdc=no
6965 fi
6966 rm -f conftest*
6967
6968 fi
6969
6970 if test $ac_cv_header_stdc = yes; then
6971   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6972   if test "$cross_compiling" = yes; then
6973   :
6974 else
6975   cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h.  */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h.  */
6981 #include <ctype.h>
6982 #include <stdlib.h>
6983 #if ((' ' & 0x0FF) == 0x020)
6984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 #else
6987 # define ISLOWER(c) \
6988                    (('a' <= (c) && (c) <= 'i') \
6989                      || ('j' <= (c) && (c) <= 'r') \
6990                      || ('s' <= (c) && (c) <= 'z'))
6991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #endif
6993
6994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6995 int
6996 main ()
6997 {
6998   int i;
6999   for (i = 0; i < 256; i++)
7000     if (XOR (islower (i), ISLOWER (i))
7001         || toupper (i) != TOUPPER (i))
7002       return 2;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_link") 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017   { (case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_try") 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   :
7027 else
7028   echo "$as_me: program exited with status $ac_status" >&5
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ( exit $ac_status )
7033 ac_cv_header_stdc=no
7034 fi
7035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 fi
7037
7038
7039 fi
7040 fi
7041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7043 if test $ac_cv_header_stdc = yes; then
7044   
7045 cat >>confdefs.h <<\_ACEOF
7046 @%:@define STDC_HEADERS 1
7047 _ACEOF
7048
7049 fi
7050
7051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7062                   inttypes.h stdint.h unistd.h
7063 do
7064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 $ac_includes_default
7077
7078 @%:@include <$ac_header>
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097   eval "$as_ac_Header=yes"
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102         eval "$as_ac_Header=no"
7103 fi
7104
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 ac_res=`eval echo '${'$as_ac_Header'}'`
7108                { echo "$as_me:$LINENO: result: $ac_res" >&5
7109 echo "${ECHO_T}$ac_res" >&6; }
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111   cat >>confdefs.h <<_ACEOF
7112 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113 _ACEOF
7114  
7115 fi
7116
7117 done
7118
7119
7120
7121 for ac_header in dlfcn.h
7122 do
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 fi
7130 ac_res=`eval echo '${'$as_ac_Header'}'`
7131                { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7133 else
7134   # Is the header compilable?
7135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 $ac_includes_default
7144 @%:@include <$ac_header>
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7148 case "(($ac_try" in
7149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150   *) ac_try_echo=$ac_try;;
7151 esac
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153   (eval "$ac_compile") 2>conftest.er1
7154   ac_status=$?
7155   grep -v '^ *+' conftest.er1 >conftest.err
7156   rm -f conftest.er1
7157   cat conftest.err >&5
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } && {
7160          test -z "$ac_c_werror_flag" ||
7161          test ! -s conftest.err
7162        } && test -s conftest.$ac_objext; then
7163   ac_header_compiler=yes
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168         ac_header_compiler=no
7169 fi
7170
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7173 echo "${ECHO_T}$ac_header_compiler" >&6; }
7174
7175 # Is the header present?
7176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h.  */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h.  */
7184 @%:@include <$ac_header>
7185 _ACEOF
7186 if { (ac_try="$ac_cpp conftest.$ac_ext"
7187 case "(($ac_try" in
7188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189   *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } >/dev/null && {
7199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7200          test ! -s conftest.err
7201        }; then
7202   ac_header_preproc=yes
7203 else
7204   echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207   ac_header_preproc=no
7208 fi
7209
7210 rm -f conftest.err conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6; }
7213
7214 # So?  What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216   yes:no: )
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221     ac_header_preproc=yes
7222     ;;
7223   no:yes:* )
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236     ( cat <<\_ASBOX
7237 @%:@@%:@ ------------------------------- @%:@@%:@
7238 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7239 @%:@@%:@ ------------------------------- @%:@@%:@
7240 _ASBOX
7241      ) | sed "s/^/$as_me: WARNING:     /" >&2
7242     ;;
7243 esac
7244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   eval "$as_ac_Header=\$ac_header_preproc"
7250 fi
7251 ac_res=`eval echo '${'$as_ac_Header'}'`
7252                { echo "$as_me:$LINENO: result: $ac_res" >&5
7253 echo "${ECHO_T}$ac_res" >&6; }
7254
7255 fi
7256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7257   cat >>confdefs.h <<_ACEOF
7258 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 _ACEOF
7260  
7261 fi
7262
7263 done
7264
7265
7266
7267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7268     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7269     (test "X$CXX" != "Xg++"))) ; then
7270   ac_ext=cpp
7271 ac_cpp='$CXXCPP $CPPFLAGS'
7272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7275 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7276 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7277 if test -z "$CXXCPP"; then
7278   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281       # Double quotes because CXXCPP needs to be expanded
7282     for CXXCPP in "$CXX -E" "/lib/cpp"
7283     do
7284       ac_preproc_ok=false
7285 for ac_cxx_preproc_warn_flag in '' yes
7286 do
7287   # Use a header file that comes with gcc, so configuring glibc
7288   # with a fresh cross-compiler works.
7289   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7290   # <limits.h> exists even on freestanding compilers.
7291   # On the NeXT, cc -E runs the code through the compiler's parser,
7292   # not just through cpp. "Syntax error" is here to catch this case.
7293   cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 @%:@ifdef __STDC__
7300 @%:@ include <limits.h>
7301 @%:@else
7302 @%:@ include <assert.h>
7303 @%:@endif
7304                      Syntax error
7305 _ACEOF
7306 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } >/dev/null && {
7319          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7320          test ! -s conftest.err
7321        }; then
7322   :
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327   # Broken: fails on valid input.
7328 continue
7329 fi
7330
7331 rm -f conftest.err conftest.$ac_ext
7332
7333   # OK, works on sane cases.  Now check whether nonexistent headers
7334   # can be detected and how.
7335   cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 @%:@include <ac_nonexistent.h>
7342 _ACEOF
7343 if { (ac_try="$ac_cpp conftest.$ac_ext"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } >/dev/null && {
7356          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7357          test ! -s conftest.err
7358        }; then
7359   # Broken: success on invalid input.
7360 continue
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365   # Passes both tests.
7366 ac_preproc_ok=:
7367 break
7368 fi
7369
7370 rm -f conftest.err conftest.$ac_ext
7371
7372 done
7373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7374 rm -f conftest.err conftest.$ac_ext
7375 if $ac_preproc_ok; then
7376   break
7377 fi
7378
7379     done
7380     ac_cv_prog_CXXCPP=$CXXCPP
7381   
7382 fi
7383   CXXCPP=$ac_cv_prog_CXXCPP
7384 else
7385   ac_cv_prog_CXXCPP=$CXXCPP
7386 fi
7387 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7388 echo "${ECHO_T}$CXXCPP" >&6; }
7389 ac_preproc_ok=false
7390 for ac_cxx_preproc_warn_flag in '' yes
7391 do
7392   # Use a header file that comes with gcc, so configuring glibc
7393   # with a fresh cross-compiler works.
7394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395   # <limits.h> exists even on freestanding compilers.
7396   # On the NeXT, cc -E runs the code through the compiler's parser,
7397   # not just through cpp. "Syntax error" is here to catch this case.
7398   cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 @%:@ifdef __STDC__
7405 @%:@ include <limits.h>
7406 @%:@else
7407 @%:@ include <assert.h>
7408 @%:@endif
7409                      Syntax error
7410 _ACEOF
7411 if { (ac_try="$ac_cpp conftest.$ac_ext"
7412 case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7418   ac_status=$?
7419   grep -v '^ *+' conftest.er1 >conftest.err
7420   rm -f conftest.er1
7421   cat conftest.err >&5
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } >/dev/null && {
7424          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7425          test ! -s conftest.err
7426        }; then
7427   :
7428 else
7429   echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432   # Broken: fails on valid input.
7433 continue
7434 fi
7435
7436 rm -f conftest.err conftest.$ac_ext
7437
7438   # OK, works on sane cases.  Now check whether nonexistent headers
7439   # can be detected and how.
7440   cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 @%:@include <ac_nonexistent.h>
7447 _ACEOF
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7449 case "(($ac_try" in
7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451   *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } >/dev/null && {
7461          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7462          test ! -s conftest.err
7463        }; then
7464   # Broken: success on invalid input.
7465 continue
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470   # Passes both tests.
7471 ac_preproc_ok=:
7472 break
7473 fi
7474
7475 rm -f conftest.err conftest.$ac_ext
7476
7477 done
7478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479 rm -f conftest.err conftest.$ac_ext
7480 if $ac_preproc_ok; then
7481   :
7482 else
7483   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7484 See \`config.log' for more details." >&5
7485 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7486 See \`config.log' for more details." >&2;}
7487    { (exit 1); exit 1; }; }
7488 fi
7489
7490 ac_ext=cpp
7491 ac_cpp='$CXXCPP $CPPFLAGS'
7492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7495
7496 fi
7497
7498
7499 ac_ext=f
7500 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7501 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7503 if test -n "$ac_tool_prefix"; then
7504   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
7505   do
7506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_prog_F77+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   if test -n "$F77"; then
7514   ac_cv_prog_F77="$F77" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 F77=$ac_cv_prog_F77
7534 if test -n "$F77"; then
7535   { echo "$as_me:$LINENO: result: $F77" >&5
7536 echo "${ECHO_T}$F77" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543     test -n "$F77" && break
7544   done
7545 fi
7546 if test -z "$F77"; then
7547   ac_ct_F77=$F77
7548   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
7549 do
7550   # Extract the first word of "$ac_prog", so it can be a program name with args.
7551 set dummy $ac_prog; ac_word=$2
7552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7554 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557   if test -n "$ac_ct_F77"; then
7558   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_prog_ac_ct_F77="$ac_prog"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7578 if test -n "$ac_ct_F77"; then
7579   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7580 echo "${ECHO_T}$ac_ct_F77" >&6; }
7581 else
7582   { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7584 fi
7585
7586
7587   test -n "$ac_ct_F77" && break
7588 done
7589
7590   if test "x$ac_ct_F77" = x; then
7591     F77=""
7592   else
7593     case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet.  If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&5
7598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7599 whose name does not start with the host triplet.  If you think this
7600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603     F77=$ac_ct_F77
7604   fi
7605 fi
7606
7607
7608 # Provide some information about the compiler.
7609 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7610 ac_compiler=`set X $ac_compile; echo $2`
7611 { (ac_try="$ac_compiler --version >&5"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_compiler --version >&5") 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }
7621 { (ac_try="$ac_compiler -v >&5"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_compiler -v >&5") 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }
7631 { (ac_try="$ac_compiler -V >&5"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_compiler -V >&5") 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }
7641 rm -f a.out
7642
7643 # If we don't use `.F' as extension, the preprocessor is not run on the
7644 # input file.  (Note that this only needs to work for GNU compilers.)
7645 ac_save_ext=$ac_ext
7646 ac_ext=F
7647 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7648 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7649 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   cat >conftest.$ac_ext <<_ACEOF
7653       program main
7654 #ifndef __GNUC__
7655        choke me
7656 #endif
7657
7658       end
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664   *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667   (eval "$ac_compile") 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } && {
7674          test -z "$ac_f77_werror_flag" ||
7675          test ! -s conftest.err
7676        } && test -s conftest.$ac_objext; then
7677   ac_compiler_gnu=yes
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682         ac_compiler_gnu=no
7683 fi
7684
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7687
7688 fi
7689 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7690 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7691 ac_ext=$ac_save_ext
7692 ac_test_FFLAGS=${FFLAGS+set}
7693 ac_save_FFLAGS=$FFLAGS
7694 FFLAGS=
7695 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7696 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7697 if test "${ac_cv_prog_f77_g+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   FFLAGS=-g
7701 cat >conftest.$ac_ext <<_ACEOF
7702       program main
7703
7704       end
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710   *) ac_try_echo=$ac_try;;
7711 esac
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713   (eval "$ac_compile") 2>conftest.er1
7714   ac_status=$?
7715   grep -v '^ *+' conftest.er1 >conftest.err
7716   rm -f conftest.er1
7717   cat conftest.err >&5
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && {
7720          test -z "$ac_f77_werror_flag" ||
7721          test ! -s conftest.err
7722        } && test -s conftest.$ac_objext; then
7723   ac_cv_prog_f77_g=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728         ac_cv_prog_f77_g=no
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732
7733 fi
7734 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7735 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7736 if test "$ac_test_FFLAGS" = set; then
7737   FFLAGS=$ac_save_FFLAGS
7738 elif test $ac_cv_prog_f77_g = yes; then
7739   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7740     FFLAGS="-g -O2"
7741   else
7742     FFLAGS="-g"
7743   fi
7744 else
7745   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7746     FFLAGS="-O2"
7747   else
7748     FFLAGS=
7749   fi
7750 fi
7751
7752 G77=`test $ac_compiler_gnu = yes && echo yes`
7753 ac_ext=c
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758
7759
7760
7761 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7762
7763 # find the maximum length of command line arguments
7764 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7765 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769     i=0
7770   teststring="ABCD"
7771
7772   case $build_os in
7773   msdosdjgpp*)
7774     # On DJGPP, this test can blow up pretty badly due to problems in libc
7775     # (any single argument exceeding 2000 bytes causes a buffer overrun
7776     # during glob expansion).  Even if it were fixed, the result of this
7777     # check would be larger than it should be.
7778     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7779     ;;
7780
7781   gnu*)
7782     # Under GNU Hurd, this test is not required because there is
7783     # no limit to the length of command line arguments.
7784     # Libtool will interpret -1 as no limit whatsoever
7785     lt_cv_sys_max_cmd_len=-1;
7786     ;;
7787
7788   cygwin* | mingw*)
7789     # On Win9x/ME, this test blows up -- it succeeds, but takes
7790     # about 5 minutes as the teststring grows exponentially.
7791     # Worse, since 9x/ME are not pre-emptively multitasking,
7792     # you end up with a "frozen" computer, even though with patience
7793     # the test eventually succeeds (with a max line length of 256k).
7794     # Instead, let's just punt: use the minimum linelength reported by
7795     # all of the supported platforms: 8192 (on NT/2K/XP).
7796     lt_cv_sys_max_cmd_len=8192;
7797     ;;
7798
7799   amigaos*)
7800     # On AmigaOS with pdksh, this test takes hours, literally.
7801     # So we just punt and use a minimum line length of 8192.
7802     lt_cv_sys_max_cmd_len=8192;
7803     ;;
7804
7805   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7806     # This has been around since 386BSD, at least.  Likely further.
7807     if test -x /sbin/sysctl; then
7808       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7809     elif test -x /usr/sbin/sysctl; then
7810       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7811     else
7812       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7813     fi
7814     # And add a safety zone
7815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7817     ;;
7818
7819   interix*)
7820     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7821     lt_cv_sys_max_cmd_len=196608
7822     ;;
7823
7824   osf*)
7825     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7826     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7827     # nice to cause kernel panics so lets avoid the loop below.
7828     # First set a reasonable default.
7829     lt_cv_sys_max_cmd_len=16384
7830     #
7831     if test -x /sbin/sysconfig; then
7832       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7833         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7834       esac
7835     fi
7836     ;;
7837   sco3.2v5*)
7838     lt_cv_sys_max_cmd_len=102400
7839     ;;
7840   sysv5* | sco5v6* | sysv4.2uw2*)
7841     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7842     if test -n "$kargmax"; then
7843       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7844     else
7845       lt_cv_sys_max_cmd_len=32768
7846     fi
7847     ;;
7848   *)
7849     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7850     if test -n "$lt_cv_sys_max_cmd_len"; then
7851       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7852       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7853     else
7854       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7855       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7856                = "XX$teststring") >/dev/null 2>&1 &&
7857               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7858               lt_cv_sys_max_cmd_len=$new_result &&
7859               test $i != 17 # 1/2 MB should be enough
7860       do
7861         i=`expr $i + 1`
7862         teststring=$teststring$teststring
7863       done
7864       teststring=
7865       # Add a significant safety factor because C++ compilers can tack on massive
7866       # amounts of additional arguments before passing them to the linker.
7867       # It appears as though 1/2 is a usable value.
7868       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7869     fi
7870     ;;
7871   esac
7872
7873 fi
7874
7875 if test -n $lt_cv_sys_max_cmd_len ; then
7876   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7877 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7878 else
7879   { echo "$as_me:$LINENO: result: none" >&5
7880 echo "${ECHO_T}none" >&6; }
7881 fi
7882
7883
7884
7885
7886
7887 # Check for command to grab the raw symbol name followed by C symbol from nm.
7888 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7889 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7890 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   
7894 # These are sane defaults that work on at least a few old systems.
7895 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7896
7897 # Character class describing NM global symbol codes.
7898 symcode='[BCDEGRST]'
7899
7900 # Regexp to match symbols that can be accessed directly from C.
7901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7902
7903 # Transform an extracted symbol line into a proper C declaration
7904 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7905
7906 # Transform an extracted symbol line into symbol name and symbol address
7907 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'"
7908
7909 # Define system-specific variables.
7910 case $host_os in
7911 aix*)
7912   symcode='[BCDT]'
7913   ;;
7914 cygwin* | mingw* | pw32*)
7915   symcode='[ABCDGISTW]'
7916   ;;
7917 hpux*) # Its linker distinguishes data from code symbols
7918   if test "$host_cpu" = ia64; then
7919     symcode='[ABCDEGRST]'
7920   fi
7921   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7922   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'"
7923   ;;
7924 linux* | k*bsd*-gnu)
7925   if test "$host_cpu" = ia64; then
7926     symcode='[ABCDGIRSTW]'
7927     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7928     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'"
7929   fi
7930   ;;
7931 irix* | nonstopux*)
7932   symcode='[BCDEGRST]'
7933   ;;
7934 osf*)
7935   symcode='[BCDEGQRST]'
7936   ;;
7937 solaris*)
7938   symcode='[BDRT]'
7939   ;;
7940 sco3.2v5*)
7941   symcode='[DT]'
7942   ;;
7943 sysv4.2uw2*)
7944   symcode='[DT]'
7945   ;;
7946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7947   symcode='[ABDT]'
7948   ;;
7949 sysv4)
7950   symcode='[DFNSTU]'
7951   ;;
7952 esac
7953
7954 # Handle CRLF in mingw tool chain
7955 opt_cr=
7956 case $build_os in
7957 mingw*)
7958   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7959   ;;
7960 esac
7961
7962 # If we're using GNU nm, then use its standard symbol codes.
7963 case `$NM -V 2>&1` in
7964 *GNU* | *'with BFD'*)
7965   symcode='[ABCDGIRSTW]' ;;
7966 esac
7967
7968 # Try without a prefix undercore, then with it.
7969 for ac_symprfx in "" "_"; do
7970
7971   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972   symxfrm="\\1 $ac_symprfx\\2 \\2"
7973
7974   # Write the raw and C identifiers.
7975   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7976
7977   # Check to see that the pipe works correctly.
7978   pipe_works=no
7979
7980   rm -f conftest*
7981   cat > conftest.$ac_ext <<EOF
7982 #ifdef __cplusplus
7983 extern "C" {
7984 #endif
7985 char nm_test_var;
7986 void nm_test_func(){}
7987 #ifdef __cplusplus
7988 }
7989 #endif
7990 int main(){nm_test_var='a';nm_test_func();return(0);}
7991 EOF
7992
7993   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994   (eval $ac_compile) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; then
7998     # Now try to grab the symbols.
7999     nlist=conftest.nm
8000     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8001   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } && test -s "$nlist"; then
8005       # Try sorting and uniquifying the output.
8006       if sort "$nlist" | uniq > "$nlist"T; then
8007         mv -f "$nlist"T "$nlist"
8008       else
8009         rm -f "$nlist"T
8010       fi
8011
8012       # Make sure that we snagged all the symbols we need.
8013       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8014         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8015           cat <<EOF > conftest.$ac_ext
8016 #ifdef __cplusplus
8017 extern "C" {
8018 #endif
8019
8020 EOF
8021           # Now generate the symbol file.
8022           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8023
8024           cat <<EOF >> conftest.$ac_ext
8025 #if defined (__STDC__) && __STDC__
8026 # define lt_ptr_t void *
8027 #else
8028 # define lt_ptr_t char *
8029 # define const
8030 #endif
8031
8032 /* The mapping between symbol names and symbols. */
8033 const struct {
8034   const char *name;
8035   lt_ptr_t address;
8036 }
8037 lt_preloaded_symbols[] =
8038 {
8039 EOF
8040           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8041           cat <<\EOF >> conftest.$ac_ext
8042   {0, (lt_ptr_t) 0}
8043 };
8044
8045 #ifdef __cplusplus
8046 }
8047 #endif
8048 EOF
8049           # Now try linking the two files.
8050           mv conftest.$ac_objext conftstm.$ac_objext
8051           lt_save_LIBS="$LIBS"
8052           lt_save_CFLAGS="$CFLAGS"
8053           LIBS="conftstm.$ac_objext"
8054           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8055           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056   (eval $ac_link) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8060             pipe_works=yes
8061           fi
8062           LIBS="$lt_save_LIBS"
8063           CFLAGS="$lt_save_CFLAGS"
8064         else
8065           echo "cannot find nm_test_func in $nlist" >&5
8066         fi
8067       else
8068         echo "cannot find nm_test_var in $nlist" >&5
8069       fi
8070     else
8071       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8072     fi
8073   else
8074     echo "$progname: failed program was:" >&5
8075     cat conftest.$ac_ext >&5
8076   fi
8077   rm -f conftest* conftst*
8078
8079   # Do not use the global_symbol_pipe unless it works.
8080   if test "$pipe_works" = yes; then
8081     break
8082   else
8083     lt_cv_sys_global_symbol_pipe=
8084   fi
8085 done
8086
8087 fi
8088
8089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8090   lt_cv_sys_global_symbol_to_cdecl=
8091 fi
8092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8093   { echo "$as_me:$LINENO: result: failed" >&5
8094 echo "${ECHO_T}failed" >&6; }
8095 else
8096   { echo "$as_me:$LINENO: result: ok" >&5
8097 echo "${ECHO_T}ok" >&6; }
8098 fi
8099
8100 { echo "$as_me:$LINENO: checking for objdir" >&5
8101 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8102 if test "${lt_cv_objdir+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   rm -f .libs 2>/dev/null
8106 mkdir .libs 2>/dev/null
8107 if test -d .libs; then
8108   lt_cv_objdir=.libs
8109 else
8110   # MS-DOS does not allow filenames that begin with a dot.
8111   lt_cv_objdir=_libs
8112 fi
8113 rmdir .libs 2>/dev/null
8114 fi
8115 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8116 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8117 objdir=$lt_cv_objdir
8118
8119
8120
8121
8122
8123 case $host_os in
8124 aix3*)
8125   # AIX sometimes has problems with the GCC collect2 program.  For some
8126   # reason, if we set the COLLECT_NAMES environment variable, the problems
8127   # vanish in a puff of smoke.
8128   if test "X${COLLECT_NAMES+set}" != Xset; then
8129     COLLECT_NAMES=
8130     export COLLECT_NAMES
8131   fi
8132   ;;
8133 esac
8134
8135 # Sed substitution that helps us do robust quoting.  It backslashifies
8136 # metacharacters that are still active within double-quoted strings.
8137 Xsed='sed -e 1s/^X//'
8138 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8139
8140 # Same as above, but do not quote variable references.
8141 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8142
8143 # Sed substitution to delay expansion of an escaped shell variable in a
8144 # double_quote_subst'ed string.
8145 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8146
8147 # Sed substitution to avoid accidental globbing in evaled expressions
8148 no_glob_subst='s/\*/\\\*/g'
8149
8150 # Constants:
8151 rm="rm -f"
8152
8153 # Global variables:
8154 default_ofile=libtool
8155 can_build_shared=yes
8156
8157 # All known linkers require a `.a' archive for static linking (except MSVC,
8158 # which needs '.lib').
8159 libext=a
8160 ltmain="$ac_aux_dir/ltmain.sh"
8161 ofile="$default_ofile"
8162 with_gnu_ld="$lt_cv_prog_gnu_ld"
8163
8164 if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}ar; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_prog_AR+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   if test -n "$AR"; then
8173   ac_cv_prog_AR="$AR" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_prog_AR="${ac_tool_prefix}ar"
8183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 AR=$ac_cv_prog_AR
8193 if test -n "$AR"; then
8194   { echo "$as_me:$LINENO: result: $AR" >&5
8195 echo "${ECHO_T}$AR" >&6; }
8196 else
8197   { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8199 fi
8200
8201
8202 fi
8203 if test -z "$ac_cv_prog_AR"; then
8204   ac_ct_AR=$AR
8205   # Extract the first word of "ar", so it can be a program name with args.
8206 set dummy ar; ac_word=$2
8207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   if test -n "$ac_ct_AR"; then
8213   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220   for ac_exec_ext in '' $ac_executable_extensions; do
8221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222     ac_cv_prog_ac_ct_AR="ar"
8223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8233 if test -n "$ac_ct_AR"; then
8234   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8235 echo "${ECHO_T}$ac_ct_AR" >&6; }
8236 else
8237   { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8239 fi
8240
8241   if test "x$ac_ct_AR" = x; then
8242     AR="false"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8247 whose name does not start with the host triplet.  If you think this
8248 configuration is useful to you, please write to autoconf@gnu.org." >&5
8249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8250 whose name does not start with the host triplet.  If you think this
8251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254     AR=$ac_ct_AR
8255   fi
8256 else
8257   AR="$ac_cv_prog_AR"
8258 fi
8259
8260 if test -n "$ac_tool_prefix"; then
8261   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_prog_RANLIB+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   if test -n "$RANLIB"; then
8269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274   IFS=$as_save_IFS
8275   test -z "$as_dir" && as_dir=.
8276   for ac_exec_ext in '' $ac_executable_extensions; do
8277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8280     break 2
8281   fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 RANLIB=$ac_cv_prog_RANLIB
8289 if test -n "$RANLIB"; then
8290   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8291 echo "${ECHO_T}$RANLIB" >&6; }
8292 else
8293   { echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6; }
8295 fi
8296
8297
8298 fi
8299 if test -z "$ac_cv_prog_RANLIB"; then
8300   ac_ct_RANLIB=$RANLIB
8301   # Extract the first word of "ranlib", so it can be a program name with args.
8302 set dummy ranlib; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   if test -n "$ac_ct_RANLIB"; then
8309   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316   for ac_exec_ext in '' $ac_executable_extensions; do
8317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318     ac_cv_prog_ac_ct_RANLIB="ranlib"
8319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323 done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8329 if test -n "$ac_ct_RANLIB"; then
8330   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8331 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8332 else
8333   { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8335 fi
8336
8337   if test "x$ac_ct_RANLIB" = x; then
8338     RANLIB=":"
8339   else
8340     case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8343 whose name does not start with the host triplet.  If you think this
8344 configuration is useful to you, please write to autoconf@gnu.org." >&5
8345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8346 whose name does not start with the host triplet.  If you think this
8347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8348 ac_tool_warned=yes ;;
8349 esac
8350     RANLIB=$ac_ct_RANLIB
8351   fi
8352 else
8353   RANLIB="$ac_cv_prog_RANLIB"
8354 fi
8355
8356 if test -n "$ac_tool_prefix"; then
8357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}strip; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_STRIP+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   if test -n "$STRIP"; then
8365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 STRIP=$ac_cv_prog_STRIP
8385 if test -n "$STRIP"; then
8386   { echo "$as_me:$LINENO: result: $STRIP" >&5
8387 echo "${ECHO_T}$STRIP" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394 fi
8395 if test -z "$ac_cv_prog_STRIP"; then
8396   ac_ct_STRIP=$STRIP
8397   # Extract the first word of "strip", so it can be a program name with args.
8398 set dummy strip; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   if test -n "$ac_ct_STRIP"; then
8405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412   for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_STRIP="strip"
8415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8425 if test -n "$ac_ct_STRIP"; then
8426   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8427 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8428 else
8429   { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8431 fi
8432
8433   if test "x$ac_ct_STRIP" = x; then
8434     STRIP=":"
8435   else
8436     case $cross_compiling:$ac_tool_warned in
8437 yes:)
8438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8439 whose name does not start with the host triplet.  If you think this
8440 configuration is useful to you, please write to autoconf@gnu.org." >&5
8441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8442 whose name does not start with the host triplet.  If you think this
8443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446     STRIP=$ac_ct_STRIP
8447   fi
8448 else
8449   STRIP="$ac_cv_prog_STRIP"
8450 fi
8451
8452
8453 old_CC="$CC"
8454 old_CFLAGS="$CFLAGS"
8455
8456 # Set sane defaults for various variables
8457 test -z "$AR" && AR=ar
8458 test -z "$AR_FLAGS" && AR_FLAGS=cru
8459 test -z "$AS" && AS=as
8460 test -z "$CC" && CC=cc
8461 test -z "$LTCC" && LTCC=$CC
8462 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8463 test -z "$DLLTOOL" && DLLTOOL=dlltool
8464 test -z "$LD" && LD=ld
8465 test -z "$LN_S" && LN_S="ln -s"
8466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8467 test -z "$NM" && NM=nm
8468 test -z "$SED" && SED=sed
8469 test -z "$OBJDUMP" && OBJDUMP=objdump
8470 test -z "$RANLIB" && RANLIB=:
8471 test -z "$STRIP" && STRIP=:
8472 test -z "$ac_objext" && ac_objext=o
8473
8474 # Determine commands to create old-style static archives.
8475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8476 old_postinstall_cmds='chmod 644 $oldlib'
8477 old_postuninstall_cmds=
8478
8479 if test -n "$RANLIB"; then
8480   case $host_os in
8481   openbsd*)
8482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8483     ;;
8484   *)
8485     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8486     ;;
8487   esac
8488   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8489 fi
8490
8491 for cc_temp in $compiler""; do
8492   case $cc_temp in
8493     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8494     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8495     \-*) ;;
8496     *) break;;
8497   esac
8498 done
8499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8500
8501
8502 # Only perform the check for file, if the check method requires it
8503 case $deplibs_check_method in
8504 file_magic*)
8505   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8506     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8507 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8509   echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511   case $MAGIC_CMD in
8512 [\\/*] |  ?:[\\/]*)
8513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8514   ;;
8515 *)
8516   lt_save_MAGIC_CMD="$MAGIC_CMD"
8517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8519   for ac_dir in $ac_dummy; do
8520     IFS="$lt_save_ifs"
8521     test -z "$ac_dir" && ac_dir=.
8522     if test -f $ac_dir/${ac_tool_prefix}file; then
8523       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8524       if test -n "$file_magic_test_file"; then
8525         case $deplibs_check_method in
8526         "file_magic "*)
8527           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8530             $EGREP "$file_magic_regex" > /dev/null; then
8531             :
8532           else
8533             cat <<EOF 1>&2
8534
8535 *** Warning: the command libtool uses to detect shared libraries,
8536 *** $file_magic_cmd, produces output that libtool cannot recognize.
8537 *** The result is that libtool may fail to recognize shared libraries
8538 *** as such.  This will affect the creation of libtool libraries that
8539 *** depend on shared libraries, but programs linked with such libtool
8540 *** libraries will work regardless of this problem.  Nevertheless, you
8541 *** may want to report the problem to your system manager and/or to
8542 *** bug-libtool@gnu.org
8543
8544 EOF
8545           fi ;;
8546         esac
8547       fi
8548       break
8549     fi
8550   done
8551   IFS="$lt_save_ifs"
8552   MAGIC_CMD="$lt_save_MAGIC_CMD"
8553   ;;
8554 esac
8555 fi
8556
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if test -n "$MAGIC_CMD"; then
8559   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8560 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8561 else
8562   { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8564 fi
8565
8566 if test -z "$lt_cv_path_MAGIC_CMD"; then
8567   if test -n "$ac_tool_prefix"; then
8568     { echo "$as_me:$LINENO: checking for file" >&5
8569 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   case $MAGIC_CMD in
8574 [\\/*] |  ?:[\\/]*)
8575   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576   ;;
8577 *)
8578   lt_save_MAGIC_CMD="$MAGIC_CMD"
8579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581   for ac_dir in $ac_dummy; do
8582     IFS="$lt_save_ifs"
8583     test -z "$ac_dir" && ac_dir=.
8584     if test -f $ac_dir/file; then
8585       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586       if test -n "$file_magic_test_file"; then
8587         case $deplibs_check_method in
8588         "file_magic "*)
8589           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592             $EGREP "$file_magic_regex" > /dev/null; then
8593             :
8594           else
8595             cat <<EOF 1>&2
8596
8597 *** Warning: the command libtool uses to detect shared libraries,
8598 *** $file_magic_cmd, produces output that libtool cannot recognize.
8599 *** The result is that libtool may fail to recognize shared libraries
8600 *** as such.  This will affect the creation of libtool libraries that
8601 *** depend on shared libraries, but programs linked with such libtool
8602 *** libraries will work regardless of this problem.  Nevertheless, you
8603 *** may want to report the problem to your system manager and/or to
8604 *** bug-libtool@gnu.org
8605
8606 EOF
8607           fi ;;
8608         esac
8609       fi
8610       break
8611     fi
8612   done
8613   IFS="$lt_save_ifs"
8614   MAGIC_CMD="$lt_save_MAGIC_CMD"
8615   ;;
8616 esac
8617 fi
8618
8619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 if test -n "$MAGIC_CMD"; then
8621   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8622 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8623 else
8624   { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8626 fi
8627
8628   else
8629     MAGIC_CMD=:
8630   fi
8631 fi
8632
8633   fi
8634   ;;
8635 esac
8636
8637 enable_dlopen=no
8638 enable_win32_dll=no
8639
8640 # Check whether --enable-libtool-lock was given.
8641 if test "${enable_libtool_lock+set}" = set; then
8642   enableval=$enable_libtool_lock; 
8643 fi
8644
8645 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8646
8647
8648 # Check whether --with-pic was given.
8649 if test "${with_pic+set}" = set; then
8650   withval=$with_pic; pic_mode="$withval"
8651 else
8652   pic_mode=default
8653 fi
8654
8655 test -z "$pic_mode" && pic_mode=default
8656
8657 # Use C for the default configuration in the libtool script
8658 tagname=
8659 lt_save_CC="$CC"
8660 ac_ext=c
8661 ac_cpp='$CPP $CPPFLAGS'
8662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667 # Source file extension for C test sources.
8668 ac_ext=c
8669
8670 # Object file extension for compiled C test sources.
8671 objext=o
8672 objext=$objext
8673
8674 # Code to be used in simple compile tests
8675 lt_simple_compile_test_code="int some_variable = 0;"
8676
8677 # Code to be used in simple link tests
8678 lt_simple_link_test_code='int main(){return(0);}'
8679
8680
8681 # If no C compiler was specified, use CC.
8682 LTCC=${LTCC-"$CC"}
8683
8684 # If no C compiler flags were specified, use CFLAGS.
8685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8686
8687 # Allow CC to be a program name with arguments.
8688 compiler=$CC
8689
8690
8691 # save warnings/boilerplate of simple test code
8692 ac_outfile=conftest.$ac_objext
8693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8695 _lt_compiler_boilerplate=`cat conftest.err`
8696 $rm conftest*
8697
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_linker_boilerplate=`cat conftest.err`
8702 $rm conftest*
8703
8704
8705
8706 lt_prog_compiler_no_builtin_flag=
8707
8708 if test "$GCC" = yes; then
8709   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8710
8711   
8712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717   lt_cv_prog_compiler_rtti_exceptions=no
8718   ac_outfile=conftest.$ac_objext
8719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720    lt_compiler_flag="-fno-rtti -fno-exceptions"
8721    # Insert the option either (1) after the last *FLAGS variable, or
8722    # (2) before a word containing "conftest.", or (3) at the end.
8723    # Note that $ac_compile itself does not contain backslashes and begins
8724    # with a dollar sign (not a hyphen), so the echo should work correctly.
8725    # The option is referenced via a variable to avoid confusing sed.
8726    lt_compile=`echo "$ac_compile" | $SED \
8727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729    -e 's:$: $lt_compiler_flag:'`
8730    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8731    (eval "$lt_compile" 2>conftest.err)
8732    ac_status=$?
8733    cat conftest.err >&5
8734    echo "$as_me:__oline__: \$? = $ac_status" >&5
8735    if (exit $ac_status) && test -s "$ac_outfile"; then
8736      # The compiler can only warn and ignore the option if not recognized
8737      # So say no if there are warnings other than the usual output.
8738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8741        lt_cv_prog_compiler_rtti_exceptions=yes
8742      fi
8743    fi
8744    $rm conftest*
8745
8746 fi
8747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8749
8750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8751     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8752 else
8753     :
8754 fi
8755
8756 fi
8757
8758 lt_prog_compiler_wl=
8759 lt_prog_compiler_pic=
8760 lt_prog_compiler_static=
8761
8762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8764  
8765   if test "$GCC" = yes; then
8766     lt_prog_compiler_wl='-Wl,'
8767     lt_prog_compiler_static='-static'
8768
8769     case $host_os in
8770       aix*)
8771       # All AIX code is PIC.
8772       if test "$host_cpu" = ia64; then
8773         # AIX 5 now supports IA64 processor
8774         lt_prog_compiler_static='-Bstatic'
8775       fi
8776       ;;
8777
8778     amigaos*)
8779       # FIXME: we need at least 68020 code to build shared libraries, but
8780       # adding the `-m68020' flag to GCC prevents building anything better,
8781       # like `-m68040'.
8782       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8783       ;;
8784
8785     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8786       # PIC is the default for these OSes.
8787       ;;
8788
8789     mingw* | cygwin* | pw32* | os2*)
8790       # This hack is so that the source file can tell whether it is being
8791       # built for inclusion in a dll (and should export symbols for example).
8792       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8793       # (--disable-auto-import) libraries
8794       lt_prog_compiler_pic='-DDLL_EXPORT'
8795       ;;
8796
8797     darwin* | rhapsody*)
8798       # PIC is the default on this platform
8799       # Common symbols not allowed in MH_DYLIB files
8800       lt_prog_compiler_pic='-fno-common'
8801       ;;
8802
8803     interix[3-9]*)
8804       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8805       # Instead, we relocate shared libraries at runtime.
8806       ;;
8807
8808     msdosdjgpp*)
8809       # Just because we use GCC doesn't mean we suddenly get shared libraries
8810       # on systems that don't support them.
8811       lt_prog_compiler_can_build_shared=no
8812       enable_shared=no
8813       ;;
8814
8815     sysv4*MP*)
8816       if test -d /usr/nec; then
8817         lt_prog_compiler_pic=-Kconform_pic
8818       fi
8819       ;;
8820
8821     hpux*)
8822       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8823       # not for PA HP-UX.
8824       case $host_cpu in
8825       hppa*64*|ia64*)
8826         # +Z the default
8827         ;;
8828       *)
8829         lt_prog_compiler_pic='-fPIC'
8830         ;;
8831       esac
8832       ;;
8833
8834     *)
8835       lt_prog_compiler_pic='-fPIC'
8836       ;;
8837     esac
8838   else
8839     # PORTME Check for flag to pass linker flags through the system compiler.
8840     case $host_os in
8841     aix*)
8842       lt_prog_compiler_wl='-Wl,'
8843       if test "$host_cpu" = ia64; then
8844         # AIX 5 now supports IA64 processor
8845         lt_prog_compiler_static='-Bstatic'
8846       else
8847         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8848       fi
8849       ;;
8850       darwin*)
8851         # PIC is the default on this platform
8852         # Common symbols not allowed in MH_DYLIB files
8853        case $cc_basename in
8854          xlc*)
8855          lt_prog_compiler_pic='-qnocommon'
8856          lt_prog_compiler_wl='-Wl,'
8857          ;;
8858        esac
8859        ;;
8860
8861     mingw* | cygwin* | pw32* | os2*)
8862       # This hack is so that the source file can tell whether it is being
8863       # built for inclusion in a dll (and should export symbols for example).
8864       lt_prog_compiler_pic='-DDLL_EXPORT'
8865       ;;
8866
8867     hpux9* | hpux10* | hpux11*)
8868       lt_prog_compiler_wl='-Wl,'
8869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8870       # not for PA HP-UX.
8871       case $host_cpu in
8872       hppa*64*|ia64*)
8873         # +Z the default
8874         ;;
8875       *)
8876         lt_prog_compiler_pic='+Z'
8877         ;;
8878       esac
8879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8880       lt_prog_compiler_static='${wl}-a ${wl}archive'
8881       ;;
8882
8883     irix5* | irix6* | nonstopux*)
8884       lt_prog_compiler_wl='-Wl,'
8885       # PIC (with -KPIC) is the default.
8886       lt_prog_compiler_static='-non_shared'
8887       ;;
8888
8889     newsos6)
8890       lt_prog_compiler_pic='-KPIC'
8891       lt_prog_compiler_static='-Bstatic'
8892       ;;
8893
8894     linux* | k*bsd*-gnu)
8895       case $cc_basename in
8896       icc* | ecc*)
8897         lt_prog_compiler_wl='-Wl,'
8898         lt_prog_compiler_pic='-KPIC'
8899         lt_prog_compiler_static='-static'
8900         ;;
8901       pgcc* | pgf77* | pgf90* | pgf95*)
8902         # Portland Group compilers (*not* the Pentium gcc compiler,
8903         # which looks to be a dead project)
8904         lt_prog_compiler_wl='-Wl,'
8905         lt_prog_compiler_pic='-fpic'
8906         lt_prog_compiler_static='-Bstatic'
8907         ;;
8908       ccc*)
8909         lt_prog_compiler_wl='-Wl,'
8910         # All Alpha code is PIC.
8911         lt_prog_compiler_static='-non_shared'
8912         ;;
8913       *)
8914         case `$CC -V 2>&1 | sed 5q` in
8915         *Sun\ C*)
8916           # Sun C 5.9
8917           lt_prog_compiler_pic='-KPIC'
8918           lt_prog_compiler_static='-Bstatic'
8919           lt_prog_compiler_wl='-Wl,'
8920           ;;
8921         *Sun\ F*)
8922           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8923           lt_prog_compiler_pic='-KPIC'
8924           lt_prog_compiler_static='-Bstatic'
8925           lt_prog_compiler_wl=''
8926           ;;
8927         esac
8928         ;;
8929       esac
8930       ;;
8931
8932     osf3* | osf4* | osf5*)
8933       lt_prog_compiler_wl='-Wl,'
8934       # All OSF/1 code is PIC.
8935       lt_prog_compiler_static='-non_shared'
8936       ;;
8937
8938     rdos*)
8939       lt_prog_compiler_static='-non_shared'
8940       ;;
8941
8942     solaris*)
8943       lt_prog_compiler_pic='-KPIC'
8944       lt_prog_compiler_static='-Bstatic'
8945       case $cc_basename in
8946       f77* | f90* | f95*)
8947         lt_prog_compiler_wl='-Qoption ld ';;
8948       *)
8949         lt_prog_compiler_wl='-Wl,';;
8950       esac
8951       ;;
8952
8953     sunos4*)
8954       lt_prog_compiler_wl='-Qoption ld '
8955       lt_prog_compiler_pic='-PIC'
8956       lt_prog_compiler_static='-Bstatic'
8957       ;;
8958
8959     sysv4 | sysv4.2uw2* | sysv4.3*)
8960       lt_prog_compiler_wl='-Wl,'
8961       lt_prog_compiler_pic='-KPIC'
8962       lt_prog_compiler_static='-Bstatic'
8963       ;;
8964
8965     sysv4*MP*)
8966       if test -d /usr/nec ;then
8967         lt_prog_compiler_pic='-Kconform_pic'
8968         lt_prog_compiler_static='-Bstatic'
8969       fi
8970       ;;
8971
8972     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8973       lt_prog_compiler_wl='-Wl,'
8974       lt_prog_compiler_pic='-KPIC'
8975       lt_prog_compiler_static='-Bstatic'
8976       ;;
8977
8978     unicos*)
8979       lt_prog_compiler_wl='-Wl,'
8980       lt_prog_compiler_can_build_shared=no
8981       ;;
8982
8983     uts4*)
8984       lt_prog_compiler_pic='-pic'
8985       lt_prog_compiler_static='-Bstatic'
8986       ;;
8987
8988     *)
8989       lt_prog_compiler_can_build_shared=no
8990       ;;
8991     esac
8992   fi
8993
8994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8995 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8996
8997 #
8998 # Check to make sure the PIC flag actually works.
8999 #
9000 if test -n "$lt_prog_compiler_pic"; then
9001   
9002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9004 if test "${lt_prog_compiler_pic_works+set}" = set; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007   lt_prog_compiler_pic_works=no
9008   ac_outfile=conftest.$ac_objext
9009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9011    # Insert the option either (1) after the last *FLAGS variable, or
9012    # (2) before a word containing "conftest.", or (3) at the end.
9013    # Note that $ac_compile itself does not contain backslashes and begins
9014    # with a dollar sign (not a hyphen), so the echo should work correctly.
9015    # The option is referenced via a variable to avoid confusing sed.
9016    lt_compile=`echo "$ac_compile" | $SED \
9017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9019    -e 's:$: $lt_compiler_flag:'`
9020    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9021    (eval "$lt_compile" 2>conftest.err)
9022    ac_status=$?
9023    cat conftest.err >&5
9024    echo "$as_me:__oline__: \$? = $ac_status" >&5
9025    if (exit $ac_status) && test -s "$ac_outfile"; then
9026      # The compiler can only warn and ignore the option if not recognized
9027      # So say no if there are warnings other than the usual output.
9028      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9029      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9030      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9031        lt_prog_compiler_pic_works=yes
9032      fi
9033    fi
9034    $rm conftest*
9035
9036 fi
9037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9038 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9039
9040 if test x"$lt_prog_compiler_pic_works" = xyes; then
9041     case $lt_prog_compiler_pic in
9042      "" | " "*) ;;
9043      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9044      esac
9045 else
9046     lt_prog_compiler_pic=
9047      lt_prog_compiler_can_build_shared=no
9048 fi
9049
9050 fi
9051 case $host_os in
9052   # For platforms which do not support PIC, -DPIC is meaningless:
9053   *djgpp*)
9054     lt_prog_compiler_pic=
9055     ;;
9056   *)
9057     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9058     ;;
9059 esac
9060
9061 #
9062 # Check to make sure the static flag actually works.
9063 #
9064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9067 if test "${lt_prog_compiler_static_works+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   lt_prog_compiler_static_works=no
9071    save_LDFLAGS="$LDFLAGS"
9072    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9073    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9074    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9075      # The linker can only warn and ignore the option if not recognized
9076      # So say no if there are warnings
9077      if test -s conftest.err; then
9078        # Append any errors to the config.log.
9079        cat conftest.err 1>&5
9080        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9081        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9082        if diff conftest.exp conftest.er2 >/dev/null; then
9083          lt_prog_compiler_static_works=yes
9084        fi
9085      else
9086        lt_prog_compiler_static_works=yes
9087      fi
9088    fi
9089    $rm conftest*
9090    LDFLAGS="$save_LDFLAGS"
9091
9092 fi
9093 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9094 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9095
9096 if test x"$lt_prog_compiler_static_works" = xyes; then
9097     :
9098 else
9099     lt_prog_compiler_static=
9100 fi
9101
9102
9103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9105 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   lt_cv_prog_compiler_c_o=no
9109    $rm -r conftest 2>/dev/null
9110    mkdir conftest
9111    cd conftest
9112    mkdir out
9113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114
9115    lt_compiler_flag="-o out/conftest2.$ac_objext"
9116    # Insert the option either (1) after the last *FLAGS variable, or
9117    # (2) before a word containing "conftest.", or (3) at the end.
9118    # Note that $ac_compile itself does not contain backslashes and begins
9119    # with a dollar sign (not a hyphen), so the echo should work correctly.
9120    lt_compile=`echo "$ac_compile" | $SED \
9121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123    -e 's:$: $lt_compiler_flag:'`
9124    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9125    (eval "$lt_compile" 2>out/conftest.err)
9126    ac_status=$?
9127    cat out/conftest.err >&5
9128    echo "$as_me:__oline__: \$? = $ac_status" >&5
9129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9130    then
9131      # The compiler can only warn and ignore the option if not recognized
9132      # So say no if there are warnings
9133      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9134      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9135      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9136        lt_cv_prog_compiler_c_o=yes
9137      fi
9138    fi
9139    chmod u+w . 2>&5
9140    $rm conftest*
9141    # SGI C++ compiler will create directory out/ii_files/ for
9142    # template instantiation
9143    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9144    $rm out/* && rmdir out
9145    cd ..
9146    rmdir conftest
9147    $rm conftest*
9148
9149 fi
9150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9152
9153
9154 hard_links="nottested"
9155 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9156   # do not overwrite the value of need_locks provided by the user
9157   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9159   hard_links=yes
9160   $rm conftest*
9161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9162   touch conftest.a
9163   ln conftest.a conftest.b 2>&5 || hard_links=no
9164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9165   { echo "$as_me:$LINENO: result: $hard_links" >&5
9166 echo "${ECHO_T}$hard_links" >&6; }
9167   if test "$hard_links" = no; then
9168     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9170     need_locks=warn
9171   fi
9172 else
9173   need_locks=no
9174 fi
9175
9176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9178
9179   runpath_var=
9180   allow_undefined_flag=
9181   enable_shared_with_static_runtimes=no
9182   archive_cmds=
9183   archive_expsym_cmds=
9184   old_archive_From_new_cmds=
9185   old_archive_from_expsyms_cmds=
9186   export_dynamic_flag_spec=
9187   whole_archive_flag_spec=
9188   thread_safe_flag_spec=
9189   hardcode_libdir_flag_spec=
9190   hardcode_libdir_flag_spec_ld=
9191   hardcode_libdir_separator=
9192   hardcode_direct=no
9193   hardcode_minus_L=no
9194   hardcode_shlibpath_var=unsupported
9195   link_all_deplibs=unknown
9196   hardcode_automatic=no
9197   module_cmds=
9198   module_expsym_cmds=
9199   always_export_symbols=no
9200   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9201   # include_expsyms should be a list of space-separated symbols to be *always*
9202   # included in the symbol list
9203   include_expsyms=
9204   # exclude_expsyms can be an extended regexp of symbols to exclude
9205   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9206   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9207   # as well as any symbol that contains `d'.
9208   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9209   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9210   # platforms (ab)use it in PIC code, but their linkers get confused if
9211   # the symbol is explicitly referenced.  Since portable code cannot
9212   # rely on this symbol name, it's probably fine to never include it in
9213   # preloaded symbol tables.
9214   extract_expsyms_cmds=
9215   # Just being paranoid about ensuring that cc_basename is set.
9216   for cc_temp in $compiler""; do
9217   case $cc_temp in
9218     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9219     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9220     \-*) ;;
9221     *) break;;
9222   esac
9223 done
9224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9225
9226   case $host_os in
9227   cygwin* | mingw* | pw32*)
9228     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9229     # When not using gcc, we currently assume that we are using
9230     # Microsoft Visual C++.
9231     if test "$GCC" != yes; then
9232       with_gnu_ld=no
9233     fi
9234     ;;
9235   interix*)
9236     # we just hope/assume this is gcc and not c89 (= MSVC++)
9237     with_gnu_ld=yes
9238     ;;
9239   openbsd*)
9240     with_gnu_ld=no
9241     ;;
9242   esac
9243
9244   ld_shlibs=yes
9245   if test "$with_gnu_ld" = yes; then
9246     # If archive_cmds runs LD, not CC, wlarc should be empty
9247     wlarc='${wl}'
9248
9249     # Set some defaults for GNU ld with shared library support. These
9250     # are reset later if shared libraries are not supported. Putting them
9251     # here allows them to be overridden if necessary.
9252     runpath_var=LD_RUN_PATH
9253     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9254     export_dynamic_flag_spec='${wl}--export-dynamic'
9255     # ancient GNU ld didn't support --whole-archive et. al.
9256     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9257         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258       else
9259         whole_archive_flag_spec=
9260     fi
9261     supports_anon_versioning=no
9262     case `$LD -v 2>/dev/null` in
9263       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9264       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9265       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9266       *\ 2.11.*) ;; # other 2.11 versions
9267       *) supports_anon_versioning=yes ;;
9268     esac
9269
9270     # See if GNU ld supports shared libraries.
9271     case $host_os in
9272     aix3* | aix4* | aix5*)
9273       # On AIX/PPC, the GNU linker is very broken
9274       if test "$host_cpu" != ia64; then
9275         ld_shlibs=no
9276         cat <<EOF 1>&2
9277
9278 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9279 *** to be unable to reliably create shared libraries on AIX.
9280 *** Therefore, libtool is disabling shared libraries support.  If you
9281 *** really care for shared libraries, you may want to modify your PATH
9282 *** so that a non-GNU linker is found, and then restart.
9283
9284 EOF
9285       fi
9286       ;;
9287
9288     amigaos*)
9289       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)'
9290       hardcode_libdir_flag_spec='-L$libdir'
9291       hardcode_minus_L=yes
9292
9293       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9294       # that the semantics of dynamic libraries on AmigaOS, at least up
9295       # to version 4, is to share data among multiple programs linked
9296       # with the same dynamic library.  Since this doesn't match the
9297       # behavior of shared libraries on other platforms, we can't use
9298       # them.
9299       ld_shlibs=no
9300       ;;
9301
9302     beos*)
9303       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9304         allow_undefined_flag=unsupported
9305         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9306         # support --undefined.  This deserves some investigation.  FIXME
9307         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308       else
9309         ld_shlibs=no
9310       fi
9311       ;;
9312
9313     cygwin* | mingw* | pw32*)
9314       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9315       # as there is no search path for DLLs.
9316       hardcode_libdir_flag_spec='-L$libdir'
9317       allow_undefined_flag=unsupported
9318       always_export_symbols=no
9319       enable_shared_with_static_runtimes=yes
9320       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9321
9322       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324         # If the export-symbols file already is a .def file (1st line
9325         # is EXPORTS), use it as is; otherwise, prepend...
9326         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9327           cp $export_symbols $output_objdir/$soname.def;
9328         else
9329           echo EXPORTS > $output_objdir/$soname.def;
9330           cat $export_symbols >> $output_objdir/$soname.def;
9331         fi~
9332         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333       else
9334         ld_shlibs=no
9335       fi
9336       ;;
9337
9338     interix[3-9]*)
9339       hardcode_direct=no
9340       hardcode_shlibpath_var=no
9341       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9342       export_dynamic_flag_spec='${wl}-E'
9343       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9344       # Instead, shared libraries are loaded at an image base (0x10000000 by
9345       # default) and relocated if they conflict, which is a slow very memory
9346       # consuming and fragmenting process.  To avoid this, we pick a random,
9347       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9348       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9349       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9350       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'
9351       ;;
9352
9353     gnu* | linux* | k*bsd*-gnu)
9354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9355         tmp_addflag=
9356         case $cc_basename,$host_cpu in
9357         pgcc*)                          # Portland Group C compiler
9358           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'
9359           tmp_addflag=' $pic_flag'
9360           ;;
9361         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9362           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'
9363           tmp_addflag=' $pic_flag -Mnomain' ;;
9364         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9365           tmp_addflag=' -i_dynamic' ;;
9366         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9367           tmp_addflag=' -i_dynamic -nofor_main' ;;
9368         ifc* | ifort*)                  # Intel Fortran compiler
9369           tmp_addflag=' -nofor_main' ;;
9370         esac
9371         case `$CC -V 2>&1 | sed 5q` in
9372         *Sun\ C*)                       # Sun C 5.9
9373           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'
9374           tmp_sharedflag='-G' ;;
9375         *Sun\ F*)                       # Sun Fortran 8.3
9376           tmp_sharedflag='-G' ;;
9377         *)
9378           tmp_sharedflag='-shared' ;;
9379         esac
9380         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381
9382         if test $supports_anon_versioning = yes; then
9383           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9384   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9385   $echo "local: *; };" >> $output_objdir/$libname.ver~
9386           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9387         fi
9388         link_all_deplibs=no
9389       else
9390         ld_shlibs=no
9391       fi
9392       ;;
9393
9394     netbsd* | netbsdelf*-gnu)
9395       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9396         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9397         wlarc=
9398       else
9399         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9401       fi
9402       ;;
9403
9404     solaris*)
9405       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9406         ld_shlibs=no
9407         cat <<EOF 1>&2
9408
9409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9410 *** create shared libraries on Solaris systems.  Therefore, libtool
9411 *** is disabling shared libraries support.  We urge you to upgrade GNU
9412 *** binutils to release 2.9.1 or newer.  Another option is to modify
9413 *** your PATH or compiler configuration so that the native linker is
9414 *** used, and then restart.
9415
9416 EOF
9417       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9418         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9420       else
9421         ld_shlibs=no
9422       fi
9423       ;;
9424
9425     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9426       case `$LD -v 2>&1` in
9427         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9428         ld_shlibs=no
9429         cat <<_LT_EOF 1>&2
9430
9431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9432 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9433 *** is disabling shared libraries support.  We urge you to upgrade GNU
9434 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9435 *** your PATH or compiler configuration so that the native linker is
9436 *** used, and then restart.
9437
9438 _LT_EOF
9439         ;;
9440         *)
9441           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9442             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9443             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9444             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9445           else
9446             ld_shlibs=no
9447           fi
9448         ;;
9449       esac
9450       ;;
9451
9452     sunos4*)
9453       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454       wlarc=
9455       hardcode_direct=yes
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     *)
9460       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9461         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463       else
9464         ld_shlibs=no
9465       fi
9466       ;;
9467     esac
9468
9469     if test "$ld_shlibs" = no; then
9470       runpath_var=
9471       hardcode_libdir_flag_spec=
9472       export_dynamic_flag_spec=
9473       whole_archive_flag_spec=
9474     fi
9475   else
9476     # PORTME fill in a description of your system's linker (not GNU ld)
9477     case $host_os in
9478     aix3*)
9479       allow_undefined_flag=unsupported
9480       always_export_symbols=yes
9481       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'
9482       # Note: this linker hardcodes the directories in LIBPATH if there
9483       # are no directories specified by -L.
9484       hardcode_minus_L=yes
9485       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9486         # Neither direct hardcoding nor static linking is supported with a
9487         # broken collect2.
9488         hardcode_direct=unsupported
9489       fi
9490       ;;
9491
9492     aix4* | aix5*)
9493       if test "$host_cpu" = ia64; then
9494         # On IA64, the linker does run time linking by default, so we don't
9495         # have to do anything special.
9496         aix_use_runtimelinking=no
9497         exp_sym_flag='-Bexport'
9498         no_entry_flag=""
9499       else
9500         # If we're using GNU nm, then we don't want the "-C" option.
9501         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9502         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9503           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'
9504         else
9505           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'
9506         fi
9507         aix_use_runtimelinking=no
9508
9509         # Test if we are trying to use run time linking or normal
9510         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9511         # need to do runtime linking.
9512         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9513           for ld_flag in $LDFLAGS; do
9514           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9515             aix_use_runtimelinking=yes
9516             break
9517           fi
9518           done
9519           ;;
9520         esac
9521
9522         exp_sym_flag='-bexport'
9523         no_entry_flag='-bnoentry'
9524       fi
9525
9526       # When large executables or shared objects are built, AIX ld can
9527       # have problems creating the table of contents.  If linking a library
9528       # or program results in "error TOC overflow" add -mminimal-toc to
9529       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9530       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9531
9532       archive_cmds=''
9533       hardcode_direct=yes
9534       hardcode_libdir_separator=':'
9535       link_all_deplibs=yes
9536
9537       if test "$GCC" = yes; then
9538         case $host_os in aix4.[012]|aix4.[012].*)
9539         # We only want to do this on AIX 4.2 and lower, the check
9540         # below for broken collect2 doesn't work under 4.3+
9541           collect2name=`${CC} -print-prog-name=collect2`
9542           if test -f "$collect2name" && \
9543            strings "$collect2name" | grep resolve_lib_name >/dev/null
9544           then
9545           # We have reworked collect2
9546           :
9547           else
9548           # We have old collect2
9549           hardcode_direct=unsupported
9550           # It fails to find uninstalled libraries when the uninstalled
9551           # path is not listed in the libpath.  Setting hardcode_minus_L
9552           # to unsupported forces relinking
9553           hardcode_minus_L=yes
9554           hardcode_libdir_flag_spec='-L$libdir'
9555           hardcode_libdir_separator=
9556           fi
9557           ;;
9558         esac
9559         shared_flag='-shared'
9560         if test "$aix_use_runtimelinking" = yes; then
9561           shared_flag="$shared_flag "'${wl}-G'
9562         fi
9563       else
9564         # not using gcc
9565         if test "$host_cpu" = ia64; then
9566         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9567         # chokes on -Wl,-G. The following line is correct:
9568           shared_flag='-G'
9569         else
9570           if test "$aix_use_runtimelinking" = yes; then
9571             shared_flag='${wl}-G'
9572           else
9573             shared_flag='${wl}-bM:SRE'
9574           fi
9575         fi
9576       fi
9577
9578       # It seems that -bexpall does not export symbols beginning with
9579       # underscore (_), so it is better to generate a list of symbols to export.
9580       always_export_symbols=yes
9581       if test "$aix_use_runtimelinking" = yes; then
9582         # Warning - without using the other runtime loading flags (-brtl),
9583         # -berok will link without error, but may produce a broken library.
9584         allow_undefined_flag='-berok'
9585        # Determine the default libpath from the value encoded in an empty executable.
9586        cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592
9593 int
9594 main ()
9595 {
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_link") 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } && {
9615          test -z "$ac_c_werror_flag" ||
9616          test ! -s conftest.err
9617        } && test -s conftest$ac_exeext &&
9618        $as_test_x conftest$ac_exeext; then
9619   
9620 lt_aix_libpath_sed='
9621     /Import File Strings/,/^$/ {
9622         /^0/ {
9623             s/^0  *\(.*\)$/\1/
9624             p
9625         }
9626     }'
9627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628 # Check for a 64-bit object if we didn't find anything.
9629 if test -z "$aix_libpath"; then
9630   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631 fi
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636         
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640       conftest$ac_exeext conftest.$ac_ext
9641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9642
9643        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9644         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"
9645        else
9646         if test "$host_cpu" = ia64; then
9647           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9648           allow_undefined_flag="-z nodefs"
9649           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"
9650         else
9651          # Determine the default libpath from the value encoded in an empty executable.
9652          cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658
9659 int
9660 main ()
9661 {
9662
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9669 case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_link") 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } && {
9681          test -z "$ac_c_werror_flag" ||
9682          test ! -s conftest.err
9683        } && test -s conftest$ac_exeext &&
9684        $as_test_x conftest$ac_exeext; then
9685   
9686 lt_aix_libpath_sed='
9687     /Import File Strings/,/^$/ {
9688         /^0/ {
9689             s/^0  *\(.*\)$/\1/
9690             p
9691         }
9692     }'
9693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$aix_libpath"; then
9696   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 fi
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702         
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9706       conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708
9709          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710           # Warning - without using the other run time loading flags,
9711           # -berok will link without error, but may produce a broken library.
9712           no_undefined_flag=' ${wl}-bernotok'
9713           allow_undefined_flag=' ${wl}-berok'
9714           # Exported symbols can be pulled into shared objects from archives
9715           whole_archive_flag_spec='$convenience'
9716           archive_cmds_need_lc=yes
9717           # This is similar to how AIX traditionally builds its shared libraries.
9718           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'
9719         fi
9720       fi
9721       ;;
9722
9723     amigaos*)
9724       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)'
9725       hardcode_libdir_flag_spec='-L$libdir'
9726       hardcode_minus_L=yes
9727       # see comment about different semantics on the GNU ld section
9728       ld_shlibs=no
9729       ;;
9730
9731     bsdi[45]*)
9732       export_dynamic_flag_spec=-rdynamic
9733       ;;
9734
9735     cygwin* | mingw* | pw32*)
9736       # When not using gcc, we currently assume that we are using
9737       # Microsoft Visual C++.
9738       # hardcode_libdir_flag_spec is actually meaningless, as there is
9739       # no search path for DLLs.
9740       hardcode_libdir_flag_spec=' '
9741       allow_undefined_flag=unsupported
9742       # Tell ltmain to make .lib files, not .a files.
9743       libext=lib
9744       # Tell ltmain to make .dll files, not .so files.
9745       shrext_cmds=".dll"
9746       # FIXME: Setting linknames here is a bad hack.
9747       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9748       # The linker will automatically build a .lib file if we build a DLL.
9749       old_archive_From_new_cmds='true'
9750       # FIXME: Should let the user specify the lib program.
9751       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9752       fix_srcfile_path='`cygpath -w "$srcfile"`'
9753       enable_shared_with_static_runtimes=yes
9754       ;;
9755
9756     darwin* | rhapsody*)
9757       case $host_os in
9758         rhapsody* | darwin1.[012])
9759          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9760          ;;
9761        *) # Darwin 1.3 on
9762          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9763            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9764          else
9765            case ${MACOSX_DEPLOYMENT_TARGET} in
9766              10.[012])
9767                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9768                ;;
9769              10.*)
9770                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9771                ;;
9772            esac
9773          fi
9774          ;;
9775       esac
9776       archive_cmds_need_lc=no
9777       hardcode_direct=no
9778       hardcode_automatic=yes
9779       hardcode_shlibpath_var=unsupported
9780       whole_archive_flag_spec=''
9781       link_all_deplibs=yes
9782     if test "$GCC" = yes ; then
9783         output_verbose_link_cmd='echo'
9784         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9785       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9786       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9787       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}'
9788       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}'
9789     else
9790       case $cc_basename in
9791         xlc*)
9792          output_verbose_link_cmd='echo'
9793          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9794          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9795           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9796          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}'
9797           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}'
9798           ;;
9799        *)
9800          ld_shlibs=no
9801           ;;
9802       esac
9803     fi
9804       ;;
9805
9806     dgux*)
9807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808       hardcode_libdir_flag_spec='-L$libdir'
9809       hardcode_shlibpath_var=no
9810       ;;
9811
9812     freebsd1*)
9813       ld_shlibs=no
9814       ;;
9815
9816     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9817     # support.  Future versions do this automatically, but an explicit c++rt0.o
9818     # does not break anything, and helps significantly (at the cost of a little
9819     # extra space).
9820     freebsd2.2*)
9821       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9822       hardcode_libdir_flag_spec='-R$libdir'
9823       hardcode_direct=yes
9824       hardcode_shlibpath_var=no
9825       ;;
9826
9827     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9828     freebsd2*)
9829       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9830       hardcode_direct=yes
9831       hardcode_minus_L=yes
9832       hardcode_shlibpath_var=no
9833       ;;
9834
9835     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9836     freebsd* | dragonfly*)
9837       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9838       hardcode_libdir_flag_spec='-R$libdir'
9839       hardcode_direct=yes
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     hpux9*)
9844       if test "$GCC" = yes; then
9845         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'
9846       else
9847         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'
9848       fi
9849       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850       hardcode_libdir_separator=:
9851       hardcode_direct=yes
9852
9853       # hardcode_minus_L: Not really in the search PATH,
9854       # but as the default location of the library.
9855       hardcode_minus_L=yes
9856       export_dynamic_flag_spec='${wl}-E'
9857       ;;
9858
9859     hpux10*)
9860       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9861         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9862       else
9863         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9864       fi
9865       if test "$with_gnu_ld" = no; then
9866         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9867         hardcode_libdir_separator=:
9868
9869         hardcode_direct=yes
9870         export_dynamic_flag_spec='${wl}-E'
9871
9872         # hardcode_minus_L: Not really in the search PATH,
9873         # but as the default location of the library.
9874         hardcode_minus_L=yes
9875       fi
9876       ;;
9877
9878     hpux11*)
9879       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9880         case $host_cpu in
9881         hppa*64*)
9882           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9883           ;;
9884         ia64*)
9885           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9886           ;;
9887         *)
9888           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9889           ;;
9890         esac
9891       else
9892         case $host_cpu in
9893         hppa*64*)
9894           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9895           ;;
9896         ia64*)
9897           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9898           ;;
9899         *)
9900           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9901           ;;
9902         esac
9903       fi
9904       if test "$with_gnu_ld" = no; then
9905         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9906         hardcode_libdir_separator=:
9907
9908         case $host_cpu in
9909         hppa*64*|ia64*)
9910           hardcode_libdir_flag_spec_ld='+b $libdir'
9911           hardcode_direct=no
9912           hardcode_shlibpath_var=no
9913           ;;
9914         *)
9915           hardcode_direct=yes
9916           export_dynamic_flag_spec='${wl}-E'
9917
9918           # hardcode_minus_L: Not really in the search PATH,
9919           # but as the default location of the library.
9920           hardcode_minus_L=yes
9921           ;;
9922         esac
9923       fi
9924       ;;
9925
9926     irix5* | irix6* | nonstopux*)
9927       if test "$GCC" = yes; then
9928         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'
9929       else
9930         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'
9931         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9932       fi
9933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934       hardcode_libdir_separator=:
9935       link_all_deplibs=yes
9936       ;;
9937
9938     netbsd* | netbsdelf*-gnu)
9939       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9941       else
9942         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9943       fi
9944       hardcode_libdir_flag_spec='-R$libdir'
9945       hardcode_direct=yes
9946       hardcode_shlibpath_var=no
9947       ;;
9948
9949     newsos6)
9950       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951       hardcode_direct=yes
9952       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953       hardcode_libdir_separator=:
9954       hardcode_shlibpath_var=no
9955       ;;
9956
9957     openbsd*)
9958       if test -f /usr/libexec/ld.so; then
9959         hardcode_direct=yes
9960         hardcode_shlibpath_var=no
9961         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9962           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9964           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965           export_dynamic_flag_spec='${wl}-E'
9966         else
9967           case $host_os in
9968            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9969              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970              hardcode_libdir_flag_spec='-R$libdir'
9971              ;;
9972            *)
9973              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9975              ;;
9976           esac
9977         fi
9978       else
9979         ld_shlibs=no
9980       fi
9981       ;;
9982
9983     os2*)
9984       hardcode_libdir_flag_spec='-L$libdir'
9985       hardcode_minus_L=yes
9986       allow_undefined_flag=unsupported
9987       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'
9988       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9989       ;;
9990
9991     osf3*)
9992       if test "$GCC" = yes; then
9993         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9994         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'
9995       else
9996         allow_undefined_flag=' -expect_unresolved \*'
9997         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'
9998       fi
9999       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10000       hardcode_libdir_separator=:
10001       ;;
10002
10003     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10004       if test "$GCC" = yes; then
10005         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10006         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'
10007         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008       else
10009         allow_undefined_flag=' -expect_unresolved \*'
10010         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'
10011         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10012         $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'
10013
10014         # Both c and cxx compiler support -rpath directly
10015         hardcode_libdir_flag_spec='-rpath $libdir'
10016       fi
10017       hardcode_libdir_separator=:
10018       ;;
10019
10020     solaris*)
10021       no_undefined_flag=' -z text'
10022       if test "$GCC" = yes; then
10023         wlarc='${wl}'
10024         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10026           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10027       else
10028         wlarc=''
10029         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10032       fi
10033       hardcode_libdir_flag_spec='-R$libdir'
10034       hardcode_shlibpath_var=no
10035       case $host_os in
10036       solaris2.[0-5] | solaris2.[0-5].*) ;;
10037       *)
10038         # The compiler driver will combine and reorder linker options,
10039         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10040         # but is careful enough not to reorder.
10041         # Supported since Solaris 2.6 (maybe 2.5.1?)
10042         if test "$GCC" = yes; then
10043           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10044         else
10045           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10046         fi
10047         ;;
10048       esac
10049       link_all_deplibs=yes
10050       ;;
10051
10052     sunos4*)
10053       if test "x$host_vendor" = xsequent; then
10054         # Use $CC to link under sequent, because it throws in some extra .o
10055         # files that make .init and .fini sections work.
10056         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10057       else
10058         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10059       fi
10060       hardcode_libdir_flag_spec='-L$libdir'
10061       hardcode_direct=yes
10062       hardcode_minus_L=yes
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     sysv4)
10067       case $host_vendor in
10068         sni)
10069           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070           hardcode_direct=yes # is this really true???
10071         ;;
10072         siemens)
10073           ## LD is ld it makes a PLAMLIB
10074           ## CC just makes a GrossModule.
10075           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10076           reload_cmds='$CC -r -o $output$reload_objs'
10077           hardcode_direct=no
10078         ;;
10079         motorola)
10080           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10082         ;;
10083       esac
10084       runpath_var='LD_RUN_PATH'
10085       hardcode_shlibpath_var=no
10086       ;;
10087
10088     sysv4.3*)
10089       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090       hardcode_shlibpath_var=no
10091       export_dynamic_flag_spec='-Bexport'
10092       ;;
10093
10094     sysv4*MP*)
10095       if test -d /usr/nec; then
10096         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097         hardcode_shlibpath_var=no
10098         runpath_var=LD_RUN_PATH
10099         hardcode_runpath_var=yes
10100         ld_shlibs=yes
10101       fi
10102       ;;
10103
10104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10105       no_undefined_flag='${wl}-z,text'
10106       archive_cmds_need_lc=no
10107       hardcode_shlibpath_var=no
10108       runpath_var='LD_RUN_PATH'
10109
10110       if test "$GCC" = yes; then
10111         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113       else
10114         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116       fi
10117       ;;
10118
10119     sysv5* | sco3.2v5* | sco5v6*)
10120       # Note: We can NOT use -z defs as we might desire, because we do not
10121       # link with -lc, and that would cause any symbols used from libc to
10122       # always be unresolved, which means just about no library would
10123       # ever link correctly.  If we're not using GNU ld we use -z text
10124       # though, which does catch some bad symbols but isn't as heavy-handed
10125       # as -z defs.
10126       no_undefined_flag='${wl}-z,text'
10127       allow_undefined_flag='${wl}-z,nodefs'
10128       archive_cmds_need_lc=no
10129       hardcode_shlibpath_var=no
10130       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10131       hardcode_libdir_separator=':'
10132       link_all_deplibs=yes
10133       export_dynamic_flag_spec='${wl}-Bexport'
10134       runpath_var='LD_RUN_PATH'
10135
10136       if test "$GCC" = yes; then
10137         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139       else
10140         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142       fi
10143       ;;
10144
10145     uts4*)
10146       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147       hardcode_libdir_flag_spec='-L$libdir'
10148       hardcode_shlibpath_var=no
10149       ;;
10150
10151     *)
10152       ld_shlibs=no
10153       ;;
10154     esac
10155   fi
10156
10157 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10158 echo "${ECHO_T}$ld_shlibs" >&6; }
10159 test "$ld_shlibs" = no && can_build_shared=no
10160
10161 #
10162 # Do we need to explicitly link libc?
10163 #
10164 case "x$archive_cmds_need_lc" in
10165 x|xyes)
10166   # Assume -lc should be added
10167   archive_cmds_need_lc=yes
10168
10169   if test "$enable_shared" = yes && test "$GCC" = yes; then
10170     case $archive_cmds in
10171     *'~'*)
10172       # FIXME: we may have to deal with multi-command sequences.
10173       ;;
10174     '$CC '*)
10175       # Test whether the compiler implicitly links with -lc since on some
10176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177       # to ld, don't add -lc before -lgcc.
10178       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10180       $rm conftest*
10181       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10182
10183       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184   (eval $ac_compile) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } 2>conftest.err; then
10188         soname=conftest
10189         lib=conftest
10190         libobjs=conftest.$ac_objext
10191         deplibs=
10192         wl=$lt_prog_compiler_wl
10193         pic_flag=$lt_prog_compiler_pic
10194         compiler_flags=-v
10195         linker_flags=-v
10196         verstring=
10197         output_objdir=.
10198         libname=conftest
10199         lt_save_allow_undefined_flag=$allow_undefined_flag
10200         allow_undefined_flag=
10201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10202   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }
10206         then
10207           archive_cmds_need_lc=no
10208         else
10209           archive_cmds_need_lc=yes
10210         fi
10211         allow_undefined_flag=$lt_save_allow_undefined_flag
10212       else
10213         cat conftest.err 1>&5
10214       fi
10215       $rm conftest*
10216       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10217 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10218       ;;
10219     esac
10220   fi
10221   ;;
10222 esac
10223
10224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10226 library_names_spec=
10227 libname_spec='lib$name'
10228 soname_spec=
10229 shrext_cmds=".so"
10230 postinstall_cmds=
10231 postuninstall_cmds=
10232 finish_cmds=
10233 finish_eval=
10234 shlibpath_var=
10235 shlibpath_overrides_runpath=unknown
10236 version_type=none
10237 dynamic_linker="$host_os ld.so"
10238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10239
10240 if test "$GCC" = yes; then
10241   case $host_os in
10242     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10243     *) lt_awk_arg="/^libraries:/" ;;
10244   esac
10245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10246   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10247     # if the path contains ";" then we assume it to be the separator
10248     # otherwise default to the standard path separator (i.e. ":") - it is
10249     # assumed that no part of a normal pathname contains ";" but that should
10250     # okay in the real world where ";" in dirpaths is itself problematic.
10251     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10252   else
10253     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10254   fi
10255   # Ok, now we have the path, separated by spaces, we can step through it
10256   # and add multilib dir if necessary.
10257   lt_tmp_lt_search_path_spec=
10258   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10259   for lt_sys_path in $lt_search_path_spec; do
10260     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10261       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10262     else
10263       test -d "$lt_sys_path" && \
10264         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10265     fi
10266   done
10267   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10268 BEGIN {RS=" "; FS="/|\n";} {
10269   lt_foo="";
10270   lt_count=0;
10271   for (lt_i = NF; lt_i > 0; lt_i--) {
10272     if ($lt_i != "" && $lt_i != ".") {
10273       if ($lt_i == "..") {
10274         lt_count++;
10275       } else {
10276         if (lt_count == 0) {
10277           lt_foo="/" $lt_i lt_foo;
10278         } else {
10279           lt_count--;
10280         }
10281       }
10282     }
10283   }
10284   if (lt_foo != "") { lt_freq[lt_foo]++; }
10285   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10286 }'`
10287   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10288 else
10289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10290 fi
10291 need_lib_prefix=unknown
10292 hardcode_into_libs=no
10293
10294 # when you set need_version to no, make sure it does not cause -set_version
10295 # flags to be left without arguments
10296 need_version=unknown
10297
10298 case $host_os in
10299 aix3*)
10300   version_type=linux
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10302   shlibpath_var=LIBPATH
10303
10304   # AIX 3 has no versioning support, so we append a major version to the name.
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   ;;
10307
10308 aix4* | aix5*)
10309   version_type=linux
10310   need_lib_prefix=no
10311   need_version=no
10312   hardcode_into_libs=yes
10313   if test "$host_cpu" = ia64; then
10314     # AIX 5 supports IA64
10315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10316     shlibpath_var=LD_LIBRARY_PATH
10317   else
10318     # With GCC up to 2.95.x, collect2 would create an import file
10319     # for dependence libraries.  The import file would start with
10320     # the line `#! .'.  This would cause the generated library to
10321     # depend on `.', always an invalid library.  This was fixed in
10322     # development snapshots of GCC prior to 3.0.
10323     case $host_os in
10324       aix4 | aix4.[01] | aix4.[01].*)
10325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10326            echo ' yes '
10327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10328         :
10329       else
10330         can_build_shared=no
10331       fi
10332       ;;
10333     esac
10334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10335     # soname into executable. Probably we can add versioning support to
10336     # collect2, so additional links can be useful in future.
10337     if test "$aix_use_runtimelinking" = yes; then
10338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10339       # instead of lib<name>.a to let people know that these are not
10340       # typical AIX shared libraries.
10341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342     else
10343       # We preserve .a as extension for shared libraries through AIX4.2
10344       # and later when we are not doing run time linking.
10345       library_names_spec='${libname}${release}.a $libname.a'
10346       soname_spec='${libname}${release}${shared_ext}$major'
10347     fi
10348     shlibpath_var=LIBPATH
10349   fi
10350   ;;
10351
10352 amigaos*)
10353   library_names_spec='$libname.ixlibrary $libname.a'
10354   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10355   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'
10356   ;;
10357
10358 beos*)
10359   library_names_spec='${libname}${shared_ext}'
10360   dynamic_linker="$host_os ld.so"
10361   shlibpath_var=LIBRARY_PATH
10362   ;;
10363
10364 bsdi[45]*)
10365   version_type=linux
10366   need_version=no
10367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368   soname_spec='${libname}${release}${shared_ext}$major'
10369   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10372   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10373   # the default ld.so.conf also contains /usr/contrib/lib and
10374   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10375   # libtool to hard-code these into programs
10376   ;;
10377
10378 cygwin* | mingw* | pw32*)
10379   version_type=windows
10380   shrext_cmds=".dll"
10381   need_version=no
10382   need_lib_prefix=no
10383
10384   case $GCC,$host_os in
10385   yes,cygwin* | yes,mingw* | yes,pw32*)
10386     library_names_spec='$libname.dll.a'
10387     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10388     postinstall_cmds='base_file=`basename \${file}`~
10389       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10390       dldir=$destdir/`dirname \$dlpath`~
10391       test -d \$dldir || mkdir -p \$dldir~
10392       $install_prog $dir/$dlname \$dldir/$dlname~
10393       chmod a+x \$dldir/$dlname'
10394     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395       dlpath=$dir/\$dldll~
10396        $rm \$dlpath'
10397     shlibpath_overrides_runpath=yes
10398
10399     case $host_os in
10400     cygwin*)
10401       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10402       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10403       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10404       ;;
10405     mingw*)
10406       # MinGW DLLs use traditional 'lib' prefix
10407       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10409       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10410         # It is most probably a Windows format PATH printed by
10411         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10412         # path with ; separators, and with drive letters. We can handle the
10413         # drive letters (cygwin fileutils understands them), so leave them,
10414         # especially as we might pass files found there to a mingw objdump,
10415         # which wouldn't understand a cygwinified path. Ahh.
10416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10417       else
10418         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10419       fi
10420       ;;
10421     pw32*)
10422       # pw32 DLLs use 'pw' prefix rather than 'lib'
10423       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10424       ;;
10425     esac
10426     ;;
10427
10428   *)
10429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10430     ;;
10431   esac
10432   dynamic_linker='Win32 ld.exe'
10433   # FIXME: first we should search . and the directory the executable is in
10434   shlibpath_var=PATH
10435   ;;
10436
10437 darwin* | rhapsody*)
10438   dynamic_linker="$host_os dyld"
10439   version_type=darwin
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10443   soname_spec='${libname}${release}${major}$shared_ext'
10444   shlibpath_overrides_runpath=yes
10445   shlibpath_var=DYLD_LIBRARY_PATH
10446   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10447   
10448   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
10449   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10450   ;;
10451
10452 dgux*)
10453   version_type=linux
10454   need_lib_prefix=no
10455   need_version=no
10456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10457   soname_spec='${libname}${release}${shared_ext}$major'
10458   shlibpath_var=LD_LIBRARY_PATH
10459   ;;
10460
10461 freebsd1*)
10462   dynamic_linker=no
10463   ;;
10464
10465 freebsd* | dragonfly*)
10466   # DragonFly does not have aout.  When/if they implement a new
10467   # versioning mechanism, adjust this.
10468   if test -x /usr/bin/objformat; then
10469     objformat=`/usr/bin/objformat`
10470   else
10471     case $host_os in
10472     freebsd[123]*) objformat=aout ;;
10473     *) objformat=elf ;;
10474     esac
10475   fi
10476   version_type=freebsd-$objformat
10477   case $version_type in
10478     freebsd-elf*)
10479       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10480       need_version=no
10481       need_lib_prefix=no
10482       ;;
10483     freebsd-*)
10484       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10485       need_version=yes
10486       ;;
10487   esac
10488   shlibpath_var=LD_LIBRARY_PATH
10489   case $host_os in
10490   freebsd2*)
10491     shlibpath_overrides_runpath=yes
10492     ;;
10493   freebsd3.[01]* | freebsdelf3.[01]*)
10494     shlibpath_overrides_runpath=yes
10495     hardcode_into_libs=yes
10496     ;;
10497   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10498   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10499     shlibpath_overrides_runpath=no
10500     hardcode_into_libs=yes
10501     ;;
10502   *) # from 4.6 on, and DragonFly
10503     shlibpath_overrides_runpath=yes
10504     hardcode_into_libs=yes
10505     ;;
10506   esac
10507   ;;
10508
10509 gnu*)
10510   version_type=linux
10511   need_lib_prefix=no
10512   need_version=no
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10514   soname_spec='${libname}${release}${shared_ext}$major'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   hardcode_into_libs=yes
10517   ;;
10518
10519 hpux9* | hpux10* | hpux11*)
10520   # Give a soname corresponding to the major version so that dld.sl refuses to
10521   # link against other versions.
10522   version_type=sunos
10523   need_lib_prefix=no
10524   need_version=no
10525   case $host_cpu in
10526   ia64*)
10527     shrext_cmds='.so'
10528     hardcode_into_libs=yes
10529     dynamic_linker="$host_os dld.so"
10530     shlibpath_var=LD_LIBRARY_PATH
10531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533     soname_spec='${libname}${release}${shared_ext}$major'
10534     if test "X$HPUX_IA64_MODE" = X32; then
10535       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10536     else
10537       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10538     fi
10539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10540     ;;
10541    hppa*64*)
10542      shrext_cmds='.sl'
10543      hardcode_into_libs=yes
10544      dynamic_linker="$host_os dld.sl"
10545      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10546      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548      soname_spec='${libname}${release}${shared_ext}$major'
10549      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10550      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10551      ;;
10552    *)
10553     shrext_cmds='.sl'
10554     dynamic_linker="$host_os dld.sl"
10555     shlibpath_var=SHLIB_PATH
10556     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558     soname_spec='${libname}${release}${shared_ext}$major'
10559     ;;
10560   esac
10561   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10562   postinstall_cmds='chmod 555 $lib'
10563   ;;
10564
10565 interix[3-9]*)
10566   version_type=linux
10567   need_lib_prefix=no
10568   need_version=no
10569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10570   soname_spec='${libname}${release}${shared_ext}$major'
10571   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   shlibpath_overrides_runpath=no
10574   hardcode_into_libs=yes
10575   ;;
10576
10577 irix5* | irix6* | nonstopux*)
10578   case $host_os in
10579     nonstopux*) version_type=nonstopux ;;
10580     *)
10581         if test "$lt_cv_prog_gnu_ld" = yes; then
10582                 version_type=linux
10583         else
10584                 version_type=irix
10585         fi ;;
10586   esac
10587   need_lib_prefix=no
10588   need_version=no
10589   soname_spec='${libname}${release}${shared_ext}$major'
10590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10591   case $host_os in
10592   irix5* | nonstopux*)
10593     libsuff= shlibsuff=
10594     ;;
10595   *)
10596     case $LD in # libtool.m4 will add one of these switches to LD
10597     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10598       libsuff= shlibsuff= libmagic=32-bit;;
10599     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10600       libsuff=32 shlibsuff=N32 libmagic=N32;;
10601     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10602       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10603     *) libsuff= shlibsuff= libmagic=never-match;;
10604     esac
10605     ;;
10606   esac
10607   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10608   shlibpath_overrides_runpath=no
10609   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10610   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10611   hardcode_into_libs=yes
10612   ;;
10613
10614 # No shared lib support for Linux oldld, aout, or coff.
10615 linux*oldld* | linux*aout* | linux*coff*)
10616   dynamic_linker=no
10617   ;;
10618
10619 # This must be Linux ELF.
10620 linux* | k*bsd*-gnu)
10621   version_type=linux
10622   need_lib_prefix=no
10623   need_version=no
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625   soname_spec='${libname}${release}${shared_ext}$major'
10626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10627   shlibpath_var=LD_LIBRARY_PATH
10628   shlibpath_overrides_runpath=no
10629   # This implies no fast_install, which is unacceptable.
10630   # Some rework will be needed to allow for fast_install
10631   # before this can be enabled.
10632   hardcode_into_libs=yes
10633
10634   # Append ld.so.conf contents to the search path
10635   if test -f /etc/ld.so.conf; then
10636     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' ' '`
10637     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10638   fi
10639
10640   # We used to test for /lib/ld.so.1 and disable shared libraries on
10641   # powerpc, because MkLinux only supported shared libraries with the
10642   # GNU dynamic linker.  Since this was broken with cross compilers,
10643   # most powerpc-linux boxes support dynamic linking these days and
10644   # people can always --disable-shared, the test was removed, and we
10645   # assume the GNU/Linux dynamic linker is in use.
10646   dynamic_linker='GNU/Linux ld.so'
10647   ;;
10648
10649 netbsdelf*-gnu)
10650   version_type=linux
10651   need_lib_prefix=no
10652   need_version=no
10653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10654   soname_spec='${libname}${release}${shared_ext}$major'
10655   shlibpath_var=LD_LIBRARY_PATH
10656   shlibpath_overrides_runpath=no
10657   hardcode_into_libs=yes
10658   dynamic_linker='NetBSD ld.elf_so'
10659   ;;
10660
10661 netbsd*)
10662   version_type=sunos
10663   need_lib_prefix=no
10664   need_version=no
10665   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10667     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10668     dynamic_linker='NetBSD (a.out) ld.so'
10669   else
10670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10671     soname_spec='${libname}${release}${shared_ext}$major'
10672     dynamic_linker='NetBSD ld.elf_so'
10673   fi
10674   shlibpath_var=LD_LIBRARY_PATH
10675   shlibpath_overrides_runpath=yes
10676   hardcode_into_libs=yes
10677   ;;
10678
10679 newsos6)
10680   version_type=linux
10681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682   shlibpath_var=LD_LIBRARY_PATH
10683   shlibpath_overrides_runpath=yes
10684   ;;
10685
10686 nto-qnx*)
10687   version_type=linux
10688   need_lib_prefix=no
10689   need_version=no
10690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691   soname_spec='${libname}${release}${shared_ext}$major'
10692   shlibpath_var=LD_LIBRARY_PATH
10693   shlibpath_overrides_runpath=yes
10694   ;;
10695
10696 openbsd*)
10697   version_type=sunos
10698   sys_lib_dlsearch_path_spec="/usr/lib"
10699   need_lib_prefix=no
10700   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10701   case $host_os in
10702     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10703     *)                         need_version=no  ;;
10704   esac
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10709     case $host_os in
10710       openbsd2.[89] | openbsd2.[89].*)
10711         shlibpath_overrides_runpath=no
10712         ;;
10713       *)
10714         shlibpath_overrides_runpath=yes
10715         ;;
10716       esac
10717   else
10718     shlibpath_overrides_runpath=yes
10719   fi
10720   ;;
10721
10722 os2*)
10723   libname_spec='$name'
10724   shrext_cmds=".dll"
10725   need_lib_prefix=no
10726   library_names_spec='$libname${shared_ext} $libname.a'
10727   dynamic_linker='OS/2 ld.exe'
10728   shlibpath_var=LIBPATH
10729   ;;
10730
10731 osf3* | osf4* | osf5*)
10732   version_type=osf
10733   need_lib_prefix=no
10734   need_version=no
10735   soname_spec='${libname}${release}${shared_ext}$major'
10736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737   shlibpath_var=LD_LIBRARY_PATH
10738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10740   ;;
10741
10742 rdos*)
10743   dynamic_linker=no
10744   ;;
10745
10746 solaris*)
10747   version_type=linux
10748   need_lib_prefix=no
10749   need_version=no
10750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751   soname_spec='${libname}${release}${shared_ext}$major'
10752   shlibpath_var=LD_LIBRARY_PATH
10753   shlibpath_overrides_runpath=yes
10754   hardcode_into_libs=yes
10755   # ldd complains unless libraries are executable
10756   postinstall_cmds='chmod +x $lib'
10757   ;;
10758
10759 sunos4*)
10760   version_type=sunos
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10763   shlibpath_var=LD_LIBRARY_PATH
10764   shlibpath_overrides_runpath=yes
10765   if test "$with_gnu_ld" = yes; then
10766     need_lib_prefix=no
10767   fi
10768   need_version=yes
10769   ;;
10770
10771 sysv4 | sysv4.3*)
10772   version_type=linux
10773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774   soname_spec='${libname}${release}${shared_ext}$major'
10775   shlibpath_var=LD_LIBRARY_PATH
10776   case $host_vendor in
10777     sni)
10778       shlibpath_overrides_runpath=no
10779       need_lib_prefix=no
10780       export_dynamic_flag_spec='${wl}-Blargedynsym'
10781       runpath_var=LD_RUN_PATH
10782       ;;
10783     siemens)
10784       need_lib_prefix=no
10785       ;;
10786     motorola)
10787       need_lib_prefix=no
10788       need_version=no
10789       shlibpath_overrides_runpath=no
10790       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10791       ;;
10792   esac
10793   ;;
10794
10795 sysv4*MP*)
10796   if test -d /usr/nec ;then
10797     version_type=linux
10798     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10799     soname_spec='$libname${shared_ext}.$major'
10800     shlibpath_var=LD_LIBRARY_PATH
10801   fi
10802   ;;
10803
10804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10805   version_type=freebsd-elf
10806   need_lib_prefix=no
10807   need_version=no
10808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10809   soname_spec='${libname}${release}${shared_ext}$major'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   hardcode_into_libs=yes
10812   if test "$with_gnu_ld" = yes; then
10813     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10814     shlibpath_overrides_runpath=no
10815   else
10816     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10817     shlibpath_overrides_runpath=yes
10818     case $host_os in
10819       sco3.2v5*)
10820         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10821         ;;
10822     esac
10823   fi
10824   sys_lib_dlsearch_path_spec='/usr/lib'
10825   ;;
10826
10827 uts4*)
10828   version_type=linux
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   shlibpath_var=LD_LIBRARY_PATH
10832   ;;
10833
10834 *)
10835   dynamic_linker=no
10836   ;;
10837 esac
10838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10839 echo "${ECHO_T}$dynamic_linker" >&6; }
10840 test "$dynamic_linker" = no && can_build_shared=no
10841
10842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10843 if test "$GCC" = yes; then
10844   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10845 fi
10846
10847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10849 hardcode_action=
10850 if test -n "$hardcode_libdir_flag_spec" || \
10851    test -n "$runpath_var" || \
10852    test "X$hardcode_automatic" = "Xyes" ; then
10853
10854   # We can hardcode non-existant directories.
10855   if test "$hardcode_direct" != no &&
10856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10857      # have to relink, otherwise we might link with an installed library
10858      # when we should be linking with a yet-to-be-installed one
10859      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10860      test "$hardcode_minus_L" != no; then
10861     # Linking always hardcodes the temporary library directory.
10862     hardcode_action=relink
10863   else
10864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10865     hardcode_action=immediate
10866   fi
10867 else
10868   # We cannot hardcode anything, or else we can only hardcode existing
10869   # directories.
10870   hardcode_action=unsupported
10871 fi
10872 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10873 echo "${ECHO_T}$hardcode_action" >&6; }
10874
10875 if test "$hardcode_action" = relink; then
10876   # Fast installation is not supported
10877   enable_fast_install=no
10878 elif test "$shlibpath_overrides_runpath" = yes ||
10879      test "$enable_shared" = no; then
10880   # Fast installation is not necessary
10881   enable_fast_install=needless
10882 fi
10883
10884 striplib=
10885 old_striplib=
10886 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10889   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10890   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10891   { echo "$as_me:$LINENO: result: yes" >&5
10892 echo "${ECHO_T}yes" >&6; }
10893 else
10894 # FIXME - insert some real tests, host_os isn't really good enough
10895   case $host_os in
10896    darwin*)
10897        if test -n "$STRIP" ; then
10898          striplib="$STRIP -x"
10899          old_striplib="$STRIP -S"
10900          { echo "$as_me:$LINENO: result: yes" >&5
10901 echo "${ECHO_T}yes" >&6; }
10902        else
10903   { echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6; }
10905 fi
10906        ;;
10907    *)
10908   { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10910     ;;
10911   esac
10912 fi
10913
10914 if test "x$enable_dlopen" != xyes; then
10915   enable_dlopen=unknown
10916   enable_dlopen_self=unknown
10917   enable_dlopen_self_static=unknown
10918 else
10919   lt_cv_dlopen=no
10920   lt_cv_dlopen_libs=
10921
10922   case $host_os in
10923   beos*)
10924     lt_cv_dlopen="load_add_on"
10925     lt_cv_dlopen_libs=
10926     lt_cv_dlopen_self=yes
10927     ;;
10928
10929   mingw* | pw32*)
10930     lt_cv_dlopen="LoadLibrary"
10931     lt_cv_dlopen_libs=
10932    ;;
10933
10934   cygwin*)
10935     lt_cv_dlopen="dlopen"
10936     lt_cv_dlopen_libs=
10937    ;;
10938
10939   darwin*)
10940   # if libdl is installed we need to link against it
10941     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldl  $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956    Use char because int might match the return type of a GCC
10957    builtin and then its argument prototype would still apply.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dlopen ();
10962 int
10963 main ()
10964 {
10965 return dlopen ();
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_link") 2>conftest.er1
10978   ac_status=$?
10979   grep -v '^ *+' conftest.er1 >conftest.err
10980   rm -f conftest.er1
10981   cat conftest.err >&5
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } && {
10984          test -z "$ac_c_werror_flag" ||
10985          test ! -s conftest.err
10986        } && test -s conftest$ac_exeext &&
10987        $as_test_x conftest$ac_exeext; then
10988   ac_cv_lib_dl_dlopen=yes
10989 else
10990   echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993         ac_cv_lib_dl_dlopen=no
10994 fi
10995
10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997       conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
10999 fi
11000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11002 if test $ac_cv_lib_dl_dlopen = yes; then
11003   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11004 else
11005   
11006     lt_cv_dlopen="dyld"
11007     lt_cv_dlopen_libs=
11008     lt_cv_dlopen_self=yes
11009     
11010 fi
11011
11012    ;;
11013
11014   *)
11015     { echo "$as_me:$LINENO: checking for shl_load" >&5
11016 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_shl_load+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020   cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h.  */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h.  */
11026 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11028 #define shl_load innocuous_shl_load
11029
11030 /* System header to define __stub macros and hopefully few prototypes,
11031     which can conflict with char shl_load (); below.
11032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033     <limits.h> exists even on freestanding compilers.  */
11034
11035 #ifdef __STDC__
11036 # include <limits.h>
11037 #else
11038 # include <assert.h>
11039 #endif
11040
11041 #undef shl_load
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char shl_load ();
11050 /* The GNU C library defines this for functions which it implements
11051     to always fail with ENOSYS.  Some functions are actually named
11052     something starting with __ and the normal name is an alias.  */
11053 #if defined __stub_shl_load || defined __stub___shl_load
11054 choke me
11055 #endif
11056
11057 int
11058 main ()
11059 {
11060 return shl_load ();
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069   *) ac_try_echo=$ac_try;;
11070 esac
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072   (eval "$ac_link") 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } && {
11079          test -z "$ac_c_werror_flag" ||
11080          test ! -s conftest.err
11081        } && test -s conftest$ac_exeext &&
11082        $as_test_x conftest$ac_exeext; then
11083   ac_cv_func_shl_load=yes
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088         ac_cv_func_shl_load=no
11089 fi
11090
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092       conftest$ac_exeext conftest.$ac_ext
11093 fi
11094 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11095 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11096 if test $ac_cv_func_shl_load = yes; then
11097   lt_cv_dlopen="shl_load"
11098 else
11099   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11100 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11101 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-ldld  $LIBS"
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114    Use char because int might match the return type of a GCC
11115    builtin and then its argument prototype would still apply.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char shl_load ();
11120 int
11121 main ()
11122 {
11123 return shl_load ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135   (eval "$ac_link") 2>conftest.er1
11136   ac_status=$?
11137   grep -v '^ *+' conftest.er1 >conftest.err
11138   rm -f conftest.er1
11139   cat conftest.err >&5
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); } && {
11142          test -z "$ac_c_werror_flag" ||
11143          test ! -s conftest.err
11144        } && test -s conftest$ac_exeext &&
11145        $as_test_x conftest$ac_exeext; then
11146   ac_cv_lib_dld_shl_load=yes
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151         ac_cv_lib_dld_shl_load=no
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155       conftest$ac_exeext conftest.$ac_ext
11156 LIBS=$ac_check_lib_save_LIBS
11157 fi
11158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11160 if test $ac_cv_lib_dld_shl_load = yes; then
11161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11162 else
11163   { echo "$as_me:$LINENO: checking for dlopen" >&5
11164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11165 if test "${ac_cv_func_dlopen+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11176 #define dlopen innocuous_dlopen
11177
11178 /* System header to define __stub macros and hopefully few prototypes,
11179     which can conflict with char dlopen (); below.
11180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11181     <limits.h> exists even on freestanding compilers.  */
11182
11183 #ifdef __STDC__
11184 # include <limits.h>
11185 #else
11186 # include <assert.h>
11187 #endif
11188
11189 #undef dlopen
11190
11191 /* Override any GCC internal prototype to avoid an error.
11192    Use char because int might match the return type of a GCC
11193    builtin and then its argument prototype would still apply.  */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char dlopen ();
11198 /* The GNU C library defines this for functions which it implements
11199     to always fail with ENOSYS.  Some functions are actually named
11200     something starting with __ and the normal name is an alias.  */
11201 #if defined __stub_dlopen || defined __stub___dlopen
11202 choke me
11203 #endif
11204
11205 int
11206 main ()
11207 {
11208 return dlopen ();
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_link") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } && {
11227          test -z "$ac_c_werror_flag" ||
11228          test ! -s conftest.err
11229        } && test -s conftest$ac_exeext &&
11230        $as_test_x conftest$ac_exeext; then
11231   ac_cv_func_dlopen=yes
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236         ac_cv_func_dlopen=no
11237 fi
11238
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240       conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11243 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11244 if test $ac_cv_func_dlopen = yes; then
11245   lt_cv_dlopen="dlopen"
11246 else
11247   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252   ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-ldl  $LIBS"
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260
11261 /* Override any GCC internal prototype to avoid an error.
11262    Use char because int might match the return type of a GCC
11263    builtin and then its argument prototype would still apply.  */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char dlopen ();
11268 int
11269 main ()
11270 {
11271 return dlopen ();
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_link") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } && {
11290          test -z "$ac_c_werror_flag" ||
11291          test ! -s conftest.err
11292        } && test -s conftest$ac_exeext &&
11293        $as_test_x conftest$ac_exeext; then
11294   ac_cv_lib_dl_dlopen=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         ac_cv_lib_dl_dlopen=no
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11303       conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_lib_save_LIBS
11305 fi
11306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11308 if test $ac_cv_lib_dl_dlopen = yes; then
11309   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11310 else
11311   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lsvld  $LIBS"
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326    Use char because int might match the return type of a GCC
11327    builtin and then its argument prototype would still apply.  */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dlopen ();
11332 int
11333 main ()
11334 {
11335 return dlopen ();
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_link") 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } && {
11354          test -z "$ac_c_werror_flag" ||
11355          test ! -s conftest.err
11356        } && test -s conftest$ac_exeext &&
11357        $as_test_x conftest$ac_exeext; then
11358   ac_cv_lib_svld_dlopen=yes
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363         ac_cv_lib_svld_dlopen=no
11364 fi
11365
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367       conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11371 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11372 if test $ac_cv_lib_svld_dlopen = yes; then
11373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11374 else
11375   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11376 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11377 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldld  $LIBS"
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390    Use char because int might match the return type of a GCC
11391    builtin and then its argument prototype would still apply.  */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char dld_link ();
11396 int
11397 main ()
11398 {
11399 return dld_link ();
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_link") 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } && {
11418          test -z "$ac_c_werror_flag" ||
11419          test ! -s conftest.err
11420        } && test -s conftest$ac_exeext &&
11421        $as_test_x conftest$ac_exeext; then
11422   ac_cv_lib_dld_dld_link=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427         ac_cv_lib_dld_dld_link=no
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431       conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11435 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11436 if test $ac_cv_lib_dld_dld_link = yes; then
11437   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11438 fi
11439
11440               
11441 fi
11442
11443             
11444 fi
11445
11446           
11447 fi
11448
11449         
11450 fi
11451
11452       
11453 fi
11454
11455     ;;
11456   esac
11457
11458   if test "x$lt_cv_dlopen" != xno; then
11459     enable_dlopen=yes
11460   else
11461     enable_dlopen=no
11462   fi
11463
11464   case $lt_cv_dlopen in
11465   dlopen)
11466     save_CPPFLAGS="$CPPFLAGS"
11467     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11468
11469     save_LDFLAGS="$LDFLAGS"
11470     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11471
11472     save_LIBS="$LIBS"
11473     LIBS="$lt_cv_dlopen_libs $LIBS"
11474
11475     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11476 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11477 if test "${lt_cv_dlopen_self+set}" = set; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480           if test "$cross_compiling" = yes; then :
11481   lt_cv_dlopen_self=cross
11482 else
11483   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484   lt_status=$lt_dlunknown
11485   cat > conftest.$ac_ext <<EOF
11486 #line __oline__ "configure"
11487 #include "confdefs.h"
11488
11489 #if HAVE_DLFCN_H
11490 #include <dlfcn.h>
11491 #endif
11492
11493 #include <stdio.h>
11494
11495 #ifdef RTLD_GLOBAL
11496 #  define LT_DLGLOBAL           RTLD_GLOBAL
11497 #else
11498 #  ifdef DL_GLOBAL
11499 #    define LT_DLGLOBAL         DL_GLOBAL
11500 #  else
11501 #    define LT_DLGLOBAL         0
11502 #  endif
11503 #endif
11504
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506    find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11508 #  ifdef RTLD_LAZY
11509 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11510 #  else
11511 #    ifdef DL_LAZY
11512 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11513 #    else
11514 #      ifdef RTLD_NOW
11515 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11516 #      else
11517 #        ifdef DL_NOW
11518 #          define LT_DLLAZY_OR_NOW      DL_NOW
11519 #        else
11520 #          define LT_DLLAZY_OR_NOW      0
11521 #        endif
11522 #      endif
11523 #    endif
11524 #  endif
11525 #endif
11526
11527 #ifdef __cplusplus
11528 extern "C" void exit (int);
11529 #endif
11530
11531 void fnord() { int i=42;}
11532 int main ()
11533 {
11534   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535   int status = $lt_dlunknown;
11536
11537   if (self)
11538     {
11539       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11540       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11541       /* dlclose (self); */
11542     }
11543   else
11544     puts (dlerror ());
11545
11546     exit (status);
11547 }
11548 EOF
11549   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550   (eval $ac_link) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11554     (./conftest; exit; ) >&5 2>/dev/null
11555     lt_status=$?
11556     case x$lt_status in
11557       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11558       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11559       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11560     esac
11561   else :
11562     # compilation failed
11563     lt_cv_dlopen_self=no
11564   fi
11565 fi
11566 rm -fr conftest*
11567
11568     
11569 fi
11570 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11571 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11572
11573     if test "x$lt_cv_dlopen_self" = xyes; then
11574       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11575       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11576 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11577 if test "${lt_cv_dlopen_self_static+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580           if test "$cross_compiling" = yes; then :
11581   lt_cv_dlopen_self_static=cross
11582 else
11583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11584   lt_status=$lt_dlunknown
11585   cat > conftest.$ac_ext <<EOF
11586 #line __oline__ "configure"
11587 #include "confdefs.h"
11588
11589 #if HAVE_DLFCN_H
11590 #include <dlfcn.h>
11591 #endif
11592
11593 #include <stdio.h>
11594
11595 #ifdef RTLD_GLOBAL
11596 #  define LT_DLGLOBAL           RTLD_GLOBAL
11597 #else
11598 #  ifdef DL_GLOBAL
11599 #    define LT_DLGLOBAL         DL_GLOBAL
11600 #  else
11601 #    define LT_DLGLOBAL         0
11602 #  endif
11603 #endif
11604
11605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11606    find out it does not work in some platform. */
11607 #ifndef LT_DLLAZY_OR_NOW
11608 #  ifdef RTLD_LAZY
11609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11610 #  else
11611 #    ifdef DL_LAZY
11612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11613 #    else
11614 #      ifdef RTLD_NOW
11615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11616 #      else
11617 #        ifdef DL_NOW
11618 #          define LT_DLLAZY_OR_NOW      DL_NOW
11619 #        else
11620 #          define LT_DLLAZY_OR_NOW      0
11621 #        endif
11622 #      endif
11623 #    endif
11624 #  endif
11625 #endif
11626
11627 #ifdef __cplusplus
11628 extern "C" void exit (int);
11629 #endif
11630
11631 void fnord() { int i=42;}
11632 int main ()
11633 {
11634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635   int status = $lt_dlunknown;
11636
11637   if (self)
11638     {
11639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11641       /* dlclose (self); */
11642     }
11643   else
11644     puts (dlerror ());
11645
11646     exit (status);
11647 }
11648 EOF
11649   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650   (eval $ac_link) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11654     (./conftest; exit; ) >&5 2>/dev/null
11655     lt_status=$?
11656     case x$lt_status in
11657       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11658       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11659       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11660     esac
11661   else :
11662     # compilation failed
11663     lt_cv_dlopen_self_static=no
11664   fi
11665 fi
11666 rm -fr conftest*
11667
11668       
11669 fi
11670 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11671 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11672     fi
11673
11674     CPPFLAGS="$save_CPPFLAGS"
11675     LDFLAGS="$save_LDFLAGS"
11676     LIBS="$save_LIBS"
11677     ;;
11678   esac
11679
11680   case $lt_cv_dlopen_self in
11681   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11682   *) enable_dlopen_self=unknown ;;
11683   esac
11684
11685   case $lt_cv_dlopen_self_static in
11686   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11687   *) enable_dlopen_self_static=unknown ;;
11688   esac
11689 fi
11690
11691
11692 # Report which library types will actually be built
11693 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11694 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11695 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11696 echo "${ECHO_T}$can_build_shared" >&6; }
11697
11698 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11699 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11700 test "$can_build_shared" = "no" && enable_shared=no
11701
11702 # On AIX, shared libraries and static libraries use the same namespace, and
11703 # are all built from PIC.
11704 case $host_os in
11705 aix3*)
11706   test "$enable_shared" = yes && enable_static=no
11707   if test -n "$RANLIB"; then
11708     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11709     postinstall_cmds='$RANLIB $lib'
11710   fi
11711   ;;
11712
11713 aix4* | aix5*)
11714   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11715     test "$enable_shared" = yes && enable_static=no
11716   fi
11717     ;;
11718 esac
11719 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11720 echo "${ECHO_T}$enable_shared" >&6; }
11721
11722 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11724 # Make sure either enable_shared or enable_static is yes.
11725 test "$enable_shared" = yes || enable_static=yes
11726 { echo "$as_me:$LINENO: result: $enable_static" >&5
11727 echo "${ECHO_T}$enable_static" >&6; }
11728
11729 # The else clause should only fire when bootstrapping the
11730 # libtool distribution, otherwise you forgot to ship ltmain.sh
11731 # with your package, and you will get complaints that there are
11732 # no rules to generate ltmain.sh.
11733 if test -f "$ltmain"; then
11734   # See if we are running on zsh, and set the options which allow our commands through
11735   # without removal of \ escapes.
11736   if test -n "${ZSH_VERSION+set}" ; then
11737     setopt NO_GLOB_SUBST
11738   fi
11739   # Now quote all the things that may contain metacharacters while being
11740   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11741   # variables and quote the copies for generation of the libtool script.
11742   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11743     SED SHELL STRIP \
11744     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11745     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11746     deplibs_check_method reload_flag reload_cmds need_locks \
11747     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11748     lt_cv_sys_global_symbol_to_c_name_address \
11749     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11750     old_postinstall_cmds old_postuninstall_cmds \
11751     compiler \
11752     CC \
11753     LD \
11754     lt_prog_compiler_wl \
11755     lt_prog_compiler_pic \
11756     lt_prog_compiler_static \
11757     lt_prog_compiler_no_builtin_flag \
11758     export_dynamic_flag_spec \
11759     thread_safe_flag_spec \
11760     whole_archive_flag_spec \
11761     enable_shared_with_static_runtimes \
11762     old_archive_cmds \
11763     old_archive_from_new_cmds \
11764     predep_objects \
11765     postdep_objects \
11766     predeps \
11767     postdeps \
11768     compiler_lib_search_path \
11769     archive_cmds \
11770     archive_expsym_cmds \
11771     postinstall_cmds \
11772     postuninstall_cmds \
11773     old_archive_from_expsyms_cmds \
11774     allow_undefined_flag \
11775     no_undefined_flag \
11776     export_symbols_cmds \
11777     hardcode_libdir_flag_spec \
11778     hardcode_libdir_flag_spec_ld \
11779     hardcode_libdir_separator \
11780     hardcode_automatic \
11781     module_cmds \
11782     module_expsym_cmds \
11783     lt_cv_prog_compiler_c_o \
11784     fix_srcfile_path \
11785     exclude_expsyms \
11786     include_expsyms; do
11787
11788     case $var in
11789     old_archive_cmds | \
11790     old_archive_from_new_cmds | \
11791     archive_cmds | \
11792     archive_expsym_cmds | \
11793     module_cmds | \
11794     module_expsym_cmds | \
11795     old_archive_from_expsyms_cmds | \
11796     export_symbols_cmds | \
11797     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11798     postinstall_cmds | postuninstall_cmds | \
11799     old_postinstall_cmds | old_postuninstall_cmds | \
11800     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11801       # Double-quote double-evaled strings.
11802       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11803       ;;
11804     *)
11805       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11806       ;;
11807     esac
11808   done
11809
11810   case $lt_echo in
11811   *'\$0 --fallback-echo"')
11812     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11813     ;;
11814   esac
11815
11816 cfgfile="${ofile}T"
11817   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11818   $rm -f "$cfgfile"
11819   { echo "$as_me:$LINENO: creating $ofile" >&5
11820 echo "$as_me: creating $ofile" >&6;}
11821
11822   cat <<__EOF__ >> "$cfgfile"
11823 #! $SHELL
11824
11825 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11826 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11827 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11828 #
11829 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11830 # Free Software Foundation, Inc.
11831 #
11832 # This file is part of GNU Libtool:
11833 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11834 #
11835 # This program is free software; you can redistribute it and/or modify
11836 # it under the terms of the GNU General Public License as published by
11837 # the Free Software Foundation; either version 2 of the License, or
11838 # (at your option) any later version.
11839 #
11840 # This program is distributed in the hope that it will be useful, but
11841 # WITHOUT ANY WARRANTY; without even the implied warranty of
11842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11843 # General Public License for more details.
11844 #
11845 # You should have received a copy of the GNU General Public License
11846 # along with this program; if not, write to the Free Software
11847 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11848 #
11849 # As a special exception to the GNU General Public License, if you
11850 # distribute this file as part of a program that contains a
11851 # configuration script generated by Autoconf, you may include it under
11852 # the same distribution terms that you use for the rest of that program.
11853
11854 # A sed program that does not truncate output.
11855 SED=$lt_SED
11856
11857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11858 Xsed="$SED -e 1s/^X//"
11859
11860 # The HP-UX ksh and POSIX shell print the target directory to stdout
11861 # if CDPATH is set.
11862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11863
11864 # The names of the tagged configurations supported by this script.
11865 available_tags=
11866
11867 # ### BEGIN LIBTOOL CONFIG
11868
11869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11870
11871 # Shell to use when invoking shell scripts.
11872 SHELL=$lt_SHELL
11873
11874 # Whether or not to build shared libraries.
11875 build_libtool_libs=$enable_shared
11876
11877 # Whether or not to build static libraries.
11878 build_old_libs=$enable_static
11879
11880 # Whether or not to add -lc for building shared libraries.
11881 build_libtool_need_lc=$archive_cmds_need_lc
11882
11883 # Whether or not to disallow shared libs when runtime libs are static
11884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11885
11886 # Whether or not to optimize for fast installation.
11887 fast_install=$enable_fast_install
11888
11889 # The host system.
11890 host_alias=$host_alias
11891 host=$host
11892 host_os=$host_os
11893
11894 # The build system.
11895 build_alias=$build_alias
11896 build=$build
11897 build_os=$build_os
11898
11899 # An echo program that does not interpret backslashes.
11900 echo=$lt_echo
11901
11902 # The archiver.
11903 AR=$lt_AR
11904 AR_FLAGS=$lt_AR_FLAGS
11905
11906 # A C compiler.
11907 LTCC=$lt_LTCC
11908
11909 # LTCC compiler flags.
11910 LTCFLAGS=$lt_LTCFLAGS
11911
11912 # A language-specific compiler.
11913 CC=$lt_compiler
11914
11915 # Is the compiler the GNU C compiler?
11916 with_gcc=$GCC
11917
11918 # An ERE matcher.
11919 EGREP=$lt_EGREP
11920
11921 # The linker used to build libraries.
11922 LD=$lt_LD
11923
11924 # Whether we need hard or soft links.
11925 LN_S=$lt_LN_S
11926
11927 # A BSD-compatible nm program.
11928 NM=$lt_NM
11929
11930 # A symbol stripping program
11931 STRIP=$lt_STRIP
11932
11933 # Used to examine libraries when file_magic_cmd begins "file"
11934 MAGIC_CMD=$MAGIC_CMD
11935
11936 # Used on cygwin: DLL creation program.
11937 DLLTOOL="$DLLTOOL"
11938
11939 # Used on cygwin: object dumper.
11940 OBJDUMP="$OBJDUMP"
11941
11942 # Used on cygwin: assembler.
11943 AS="$AS"
11944
11945 # The name of the directory that contains temporary libtool files.
11946 objdir=$objdir
11947
11948 # How to create reloadable object files.
11949 reload_flag=$lt_reload_flag
11950 reload_cmds=$lt_reload_cmds
11951
11952 # How to pass a linker flag through the compiler.
11953 wl=$lt_lt_prog_compiler_wl
11954
11955 # Object file suffix (normally "o").
11956 objext="$ac_objext"
11957
11958 # Old archive suffix (normally "a").
11959 libext="$libext"
11960
11961 # Shared library suffix (normally ".so").
11962 shrext_cmds='$shrext_cmds'
11963
11964 # Executable file suffix (normally "").
11965 exeext="$exeext"
11966
11967 # Additional compiler flags for building library objects.
11968 pic_flag=$lt_lt_prog_compiler_pic
11969 pic_mode=$pic_mode
11970
11971 # What is the maximum length of a command?
11972 max_cmd_len=$lt_cv_sys_max_cmd_len
11973
11974 # Does compiler simultaneously support -c and -o options?
11975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11976
11977 # Must we lock files when doing compilation?
11978 need_locks=$lt_need_locks
11979
11980 # Do we need the lib prefix for modules?
11981 need_lib_prefix=$need_lib_prefix
11982
11983 # Do we need a version for libraries?
11984 need_version=$need_version
11985
11986 # Whether dlopen is supported.
11987 dlopen_support=$enable_dlopen
11988
11989 # Whether dlopen of programs is supported.
11990 dlopen_self=$enable_dlopen_self
11991
11992 # Whether dlopen of statically linked programs is supported.
11993 dlopen_self_static=$enable_dlopen_self_static
11994
11995 # Compiler flag to prevent dynamic linking.
11996 link_static_flag=$lt_lt_prog_compiler_static
11997
11998 # Compiler flag to turn off builtin functions.
11999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12000
12001 # Compiler flag to allow reflexive dlopens.
12002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12003
12004 # Compiler flag to generate shared objects directly from archives.
12005 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12006
12007 # Compiler flag to generate thread-safe objects.
12008 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12009
12010 # Library versioning type.
12011 version_type=$version_type
12012
12013 # Format of library name prefix.
12014 libname_spec=$lt_libname_spec
12015
12016 # List of archive names.  First name is the real one, the rest are links.
12017 # The last name is the one that the linker finds with -lNAME.
12018 library_names_spec=$lt_library_names_spec
12019
12020 # The coded name of the library, if different from the real name.
12021 soname_spec=$lt_soname_spec
12022
12023 # Commands used to build and install an old-style archive.
12024 RANLIB=$lt_RANLIB
12025 old_archive_cmds=$lt_old_archive_cmds
12026 old_postinstall_cmds=$lt_old_postinstall_cmds
12027 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12028
12029 # Create an old-style archive from a shared archive.
12030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12031
12032 # Create a temporary old-style archive to link instead of a shared archive.
12033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12034
12035 # Commands used to build and install a shared archive.
12036 archive_cmds=$lt_archive_cmds
12037 archive_expsym_cmds=$lt_archive_expsym_cmds
12038 postinstall_cmds=$lt_postinstall_cmds
12039 postuninstall_cmds=$lt_postuninstall_cmds
12040
12041 # Commands used to build a loadable module (assumed same as above if empty)
12042 module_cmds=$lt_module_cmds
12043 module_expsym_cmds=$lt_module_expsym_cmds
12044
12045 # Commands to strip libraries.
12046 old_striplib=$lt_old_striplib
12047 striplib=$lt_striplib
12048
12049 # Dependencies to place before the objects being linked to create a
12050 # shared library.
12051 predep_objects=$lt_predep_objects
12052
12053 # Dependencies to place after the objects being linked to create a
12054 # shared library.
12055 postdep_objects=$lt_postdep_objects
12056
12057 # Dependencies to place before the objects being linked to create a
12058 # shared library.
12059 predeps=$lt_predeps
12060
12061 # Dependencies to place after the objects being linked to create a
12062 # shared library.
12063 postdeps=$lt_postdeps
12064
12065 # The library search path used internally by the compiler when linking
12066 # a shared library.
12067 compiler_lib_search_path=$lt_compiler_lib_search_path
12068
12069 # Method to check whether dependent libraries are shared objects.
12070 deplibs_check_method=$lt_deplibs_check_method
12071
12072 # Command to use when deplibs_check_method == file_magic.
12073 file_magic_cmd=$lt_file_magic_cmd
12074
12075 # Flag that allows shared libraries with undefined symbols to be built.
12076 allow_undefined_flag=$lt_allow_undefined_flag
12077
12078 # Flag that forces no undefined symbols.
12079 no_undefined_flag=$lt_no_undefined_flag
12080
12081 # Commands used to finish a libtool library installation in a directory.
12082 finish_cmds=$lt_finish_cmds
12083
12084 # Same as above, but a single script fragment to be evaled but not shown.
12085 finish_eval=$lt_finish_eval
12086
12087 # Take the output of nm and produce a listing of raw symbols and C names.
12088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12089
12090 # Transform the output of nm in a proper C declaration
12091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12092
12093 # Transform the output of nm in a C name address pair
12094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12095
12096 # This is the shared library runtime path variable.
12097 runpath_var=$runpath_var
12098
12099 # This is the shared library path variable.
12100 shlibpath_var=$shlibpath_var
12101
12102 # Is shlibpath searched before the hard-coded library search path?
12103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12104
12105 # How to hardcode a shared library path into an executable.
12106 hardcode_action=$hardcode_action
12107
12108 # Whether we should hardcode library paths into libraries.
12109 hardcode_into_libs=$hardcode_into_libs
12110
12111 # Flag to hardcode \$libdir into a binary during linking.
12112 # This must work even if \$libdir does not exist.
12113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12114
12115 # If ld is used when linking, flag to hardcode \$libdir into
12116 # a binary during linking. This must work even if \$libdir does
12117 # not exist.
12118 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12119
12120 # Whether we need a single -rpath flag with a separated argument.
12121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12122
12123 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12124 # resulting binary.
12125 hardcode_direct=$hardcode_direct
12126
12127 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12128 # resulting binary.
12129 hardcode_minus_L=$hardcode_minus_L
12130
12131 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12132 # the resulting binary.
12133 hardcode_shlibpath_var=$hardcode_shlibpath_var
12134
12135 # Set to yes if building a shared library automatically hardcodes DIR into the library
12136 # and all subsequent libraries and executables linked against it.
12137 hardcode_automatic=$hardcode_automatic
12138
12139 # Variables whose values should be saved in libtool wrapper scripts and
12140 # restored at relink time.
12141 variables_saved_for_relink="$variables_saved_for_relink"
12142
12143 # Whether libtool must link a program against all its dependency libraries.
12144 link_all_deplibs=$link_all_deplibs
12145
12146 # Compile-time system search path for libraries
12147 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12148
12149 # Run-time system search path for libraries
12150 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12151
12152 # Fix the shell variable \$srcfile for the compiler.
12153 fix_srcfile_path=$lt_fix_srcfile_path
12154
12155 # Set to yes if exported symbols are required.
12156 always_export_symbols=$always_export_symbols
12157
12158 # The commands to list exported symbols.
12159 export_symbols_cmds=$lt_export_symbols_cmds
12160
12161 # The commands to extract the exported symbol list from a shared archive.
12162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12163
12164 # Symbols that should not be listed in the preloaded symbols.
12165 exclude_expsyms=$lt_exclude_expsyms
12166
12167 # Symbols that must always be exported.
12168 include_expsyms=$lt_include_expsyms
12169
12170 # ### END LIBTOOL CONFIG
12171
12172 __EOF__
12173
12174
12175   case $host_os in
12176   aix3*)
12177     cat <<\EOF >> "$cfgfile"
12178
12179 # AIX sometimes has problems with the GCC collect2 program.  For some
12180 # reason, if we set the COLLECT_NAMES environment variable, the problems
12181 # vanish in a puff of smoke.
12182 if test "X${COLLECT_NAMES+set}" != Xset; then
12183   COLLECT_NAMES=
12184   export COLLECT_NAMES
12185 fi
12186 EOF
12187     ;;
12188   esac
12189
12190   # We use sed instead of cat because bash on DJGPP gets confused if
12191   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12192   # text mode, it properly converts lines to CR/LF.  This bash problem
12193   # is reportedly fixed, but why not run on old versions too?
12194   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12195
12196   mv -f "$cfgfile" "$ofile" || \
12197     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12198   chmod +x "$ofile"
12199
12200 else
12201   # If there is no Makefile yet, we rely on a make rule to execute
12202   # `config.status --recheck' to rerun these tests and create the
12203   # libtool script then.
12204   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12205   if test -f "$ltmain_in"; then
12206     test -f Makefile && make "$ltmain"
12207   fi
12208 fi
12209
12210
12211 ac_ext=c
12212 ac_cpp='$CPP $CPPFLAGS'
12213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12216
12217 CC="$lt_save_CC"
12218
12219
12220 # Check whether --with-tags was given.
12221 if test "${with_tags+set}" = set; then
12222   withval=$with_tags; tagnames="$withval"
12223 fi
12224
12225
12226 if test -f "$ltmain" && test -n "$tagnames"; then
12227   if test ! -f "${ofile}"; then
12228     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12229 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12230   fi
12231
12232   if test -z "$LTCC"; then
12233     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12234     if test -z "$LTCC"; then
12235       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12236 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12237     else
12238       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12239 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12240     fi
12241   fi
12242   if test -z "$LTCFLAGS"; then
12243     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12244   fi
12245
12246   # Extract list of available tagged configurations in $ofile.
12247   # Note that this assumes the entire list is on one line.
12248   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12249
12250   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12251   for tagname in $tagnames; do
12252     IFS="$lt_save_ifs"
12253     # Check whether tagname contains only valid characters
12254     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12255     "") ;;
12256     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12257 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12258    { (exit 1); exit 1; }; }
12259         ;;
12260     esac
12261
12262     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12263     then
12264       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12265 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12266    { (exit 1); exit 1; }; }
12267     fi
12268
12269     # Update the list of available tags.
12270     if test -n "$tagname"; then
12271       echo appending configuration tag \"$tagname\" to $ofile
12272
12273       case $tagname in
12274       CXX)
12275         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12276             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12277             (test "X$CXX" != "Xg++"))) ; then
12278           ac_ext=cpp
12279 ac_cpp='$CXXCPP $CPPFLAGS'
12280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12283
12284
12285
12286
12287 archive_cmds_need_lc_CXX=no
12288 allow_undefined_flag_CXX=
12289 always_export_symbols_CXX=no
12290 archive_expsym_cmds_CXX=
12291 export_dynamic_flag_spec_CXX=
12292 hardcode_direct_CXX=no
12293 hardcode_libdir_flag_spec_CXX=
12294 hardcode_libdir_flag_spec_ld_CXX=
12295 hardcode_libdir_separator_CXX=
12296 hardcode_minus_L_CXX=no
12297 hardcode_shlibpath_var_CXX=unsupported
12298 hardcode_automatic_CXX=no
12299 module_cmds_CXX=
12300 module_expsym_cmds_CXX=
12301 link_all_deplibs_CXX=unknown
12302 old_archive_cmds_CXX=$old_archive_cmds
12303 no_undefined_flag_CXX=
12304 whole_archive_flag_spec_CXX=
12305 enable_shared_with_static_runtimes_CXX=no
12306
12307 # Dependencies to place before and after the object being linked:
12308 predep_objects_CXX=
12309 postdep_objects_CXX=
12310 predeps_CXX=
12311 postdeps_CXX=
12312 compiler_lib_search_path_CXX=
12313
12314 # Source file extension for C++ test sources.
12315 ac_ext=cpp
12316
12317 # Object file extension for compiled C++ test sources.
12318 objext=o
12319 objext_CXX=$objext
12320
12321 # Code to be used in simple compile tests
12322 lt_simple_compile_test_code="int some_variable = 0;"
12323
12324 # Code to be used in simple link tests
12325 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12326
12327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12328
12329 # If no C compiler was specified, use CC.
12330 LTCC=${LTCC-"$CC"}
12331
12332 # If no C compiler flags were specified, use CFLAGS.
12333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12334
12335 # Allow CC to be a program name with arguments.
12336 compiler=$CC
12337
12338
12339 # save warnings/boilerplate of simple test code
12340 ac_outfile=conftest.$ac_objext
12341 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12342 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12343 _lt_compiler_boilerplate=`cat conftest.err`
12344 $rm conftest*
12345
12346 ac_outfile=conftest.$ac_objext
12347 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12348 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12349 _lt_linker_boilerplate=`cat conftest.err`
12350 $rm conftest*
12351
12352
12353 # Allow CC to be a program name with arguments.
12354 lt_save_CC=$CC
12355 lt_save_LD=$LD
12356 lt_save_GCC=$GCC
12357 GCC=$GXX
12358 lt_save_with_gnu_ld=$with_gnu_ld
12359 lt_save_path_LD=$lt_cv_path_LD
12360 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12361   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12362 else
12363   $as_unset lt_cv_prog_gnu_ld
12364 fi
12365 if test -n "${lt_cv_path_LDCXX+set}"; then
12366   lt_cv_path_LD=$lt_cv_path_LDCXX
12367 else
12368   $as_unset lt_cv_path_LD
12369 fi
12370 test -z "${LDCXX+set}" || LD=$LDCXX
12371 CC=${CXX-"c++"}
12372 compiler=$CC
12373 compiler_CXX=$CC
12374 for cc_temp in $compiler""; do
12375   case $cc_temp in
12376     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12377     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12378     \-*) ;;
12379     *) break;;
12380   esac
12381 done
12382 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12383
12384
12385 # We don't want -fno-exception wen compiling C++ code, so set the
12386 # no_builtin_flag separately
12387 if test "$GXX" = yes; then
12388   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12389 else
12390   lt_prog_compiler_no_builtin_flag_CXX=
12391 fi
12392
12393 if test "$GXX" = yes; then
12394   # Set up default GNU C++ configuration
12395
12396   
12397 # Check whether --with-gnu-ld was given.
12398 if test "${with_gnu_ld+set}" = set; then
12399   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12400 else
12401   with_gnu_ld=no
12402 fi
12403
12404 ac_prog=ld
12405 if test "$GCC" = yes; then
12406   # Check if gcc -print-prog-name=ld gives a path.
12407   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12409   case $host in
12410   *-*-mingw*)
12411     # gcc leaves a trailing carriage return which upsets mingw
12412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12413   *)
12414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12415   esac
12416   case $ac_prog in
12417     # Accept absolute paths.
12418     [\\/]* | ?:[\\/]*)
12419       re_direlt='/[^/][^/]*/\.\./'
12420       # Canonicalize the pathname of ld
12421       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12422       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12423         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12424       done
12425       test -z "$LD" && LD="$ac_prog"
12426       ;;
12427   "")
12428     # If it fails, then pretend we aren't using GCC.
12429     ac_prog=ld
12430     ;;
12431   *)
12432     # If it is relative, then search for the first ld in PATH.
12433     with_gnu_ld=unknown
12434     ;;
12435   esac
12436 elif test "$with_gnu_ld" = yes; then
12437   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12439 else
12440   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12442 fi
12443 if test "${lt_cv_path_LD+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   if test -z "$LD"; then
12447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12448   for ac_dir in $PATH; do
12449     IFS="$lt_save_ifs"
12450     test -z "$ac_dir" && ac_dir=.
12451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12452       lt_cv_path_LD="$ac_dir/$ac_prog"
12453       # Check to see if the program is GNU ld.  I'd rather use --version,
12454       # but apparently some variants of GNU ld only accept -v.
12455       # Break only if it was the GNU/non-GNU ld that we prefer.
12456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12457       *GNU* | *'with BFD'*)
12458         test "$with_gnu_ld" != no && break
12459         ;;
12460       *)
12461         test "$with_gnu_ld" != yes && break
12462         ;;
12463       esac
12464     fi
12465   done
12466   IFS="$lt_save_ifs"
12467 else
12468   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12469 fi
12470 fi
12471
12472 LD="$lt_cv_path_LD"
12473 if test -n "$LD"; then
12474   { echo "$as_me:$LINENO: result: $LD" >&5
12475 echo "${ECHO_T}$LD" >&6; }
12476 else
12477   { echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6; }
12479 fi
12480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12482    { (exit 1); exit 1; }; }
12483 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12489 case `$LD -v 2>&1 </dev/null` in
12490 *GNU* | *'with BFD'*)
12491   lt_cv_prog_gnu_ld=yes
12492   ;;
12493 *)
12494   lt_cv_prog_gnu_ld=no
12495   ;;
12496 esac
12497 fi
12498 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12500 with_gnu_ld=$lt_cv_prog_gnu_ld
12501
12502
12503
12504   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12505   # archiving commands below assume that GNU ld is being used.
12506   if test "$with_gnu_ld" = yes; then
12507     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12508     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'
12509
12510     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12511     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12512
12513     # If archive_cmds runs LD, not CC, wlarc should be empty
12514     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12515     #     investigate it a little bit more. (MM)
12516     wlarc='${wl}'
12517
12518     # ancient GNU ld didn't support --whole-archive et. al.
12519     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12520         grep 'no-whole-archive' > /dev/null; then
12521       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12522     else
12523       whole_archive_flag_spec_CXX=
12524     fi
12525   else
12526     with_gnu_ld=no
12527     wlarc=
12528
12529     # A generic and very simple default shared library creation
12530     # command for GNU C++ for the case where it uses the native
12531     # linker, instead of GNU ld.  If possible, this setting should
12532     # overridden to take advantage of the native linker features on
12533     # the platform it is being used on.
12534     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12535   fi
12536
12537   # Commands to make compiler produce verbose output that lists
12538   # what "hidden" libraries, object files and flags are used when
12539   # linking a shared library.
12540   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12541
12542 else
12543   GXX=no
12544   with_gnu_ld=no
12545   wlarc=
12546 fi
12547
12548 # PORTME: fill in a description of your system's C++ link characteristics
12549 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12551 ld_shlibs_CXX=yes
12552 case $host_os in
12553   aix3*)
12554     # FIXME: insert proper C++ library support
12555     ld_shlibs_CXX=no
12556     ;;
12557   aix4* | aix5*)
12558     if test "$host_cpu" = ia64; then
12559       # On IA64, the linker does run time linking by default, so we don't
12560       # have to do anything special.
12561       aix_use_runtimelinking=no
12562       exp_sym_flag='-Bexport'
12563       no_entry_flag=""
12564     else
12565       aix_use_runtimelinking=no
12566
12567       # Test if we are trying to use run time linking or normal
12568       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12569       # need to do runtime linking.
12570       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12571         for ld_flag in $LDFLAGS; do
12572           case $ld_flag in
12573           *-brtl*)
12574             aix_use_runtimelinking=yes
12575             break
12576             ;;
12577           esac
12578         done
12579         ;;
12580       esac
12581
12582       exp_sym_flag='-bexport'
12583       no_entry_flag='-bnoentry'
12584     fi
12585
12586     # When large executables or shared objects are built, AIX ld can
12587     # have problems creating the table of contents.  If linking a library
12588     # or program results in "error TOC overflow" add -mminimal-toc to
12589     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12590     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12591
12592     archive_cmds_CXX=''
12593     hardcode_direct_CXX=yes
12594     hardcode_libdir_separator_CXX=':'
12595     link_all_deplibs_CXX=yes
12596
12597     if test "$GXX" = yes; then
12598       case $host_os in aix4.[012]|aix4.[012].*)
12599       # We only want to do this on AIX 4.2 and lower, the check
12600       # below for broken collect2 doesn't work under 4.3+
12601         collect2name=`${CC} -print-prog-name=collect2`
12602         if test -f "$collect2name" && \
12603            strings "$collect2name" | grep resolve_lib_name >/dev/null
12604         then
12605           # We have reworked collect2
12606           :
12607         else
12608           # We have old collect2
12609           hardcode_direct_CXX=unsupported
12610           # It fails to find uninstalled libraries when the uninstalled
12611           # path is not listed in the libpath.  Setting hardcode_minus_L
12612           # to unsupported forces relinking
12613           hardcode_minus_L_CXX=yes
12614           hardcode_libdir_flag_spec_CXX='-L$libdir'
12615           hardcode_libdir_separator_CXX=
12616         fi
12617         ;;
12618       esac
12619       shared_flag='-shared'
12620       if test "$aix_use_runtimelinking" = yes; then
12621         shared_flag="$shared_flag "'${wl}-G'
12622       fi
12623     else
12624       # not using gcc
12625       if test "$host_cpu" = ia64; then
12626         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12627         # chokes on -Wl,-G. The following line is correct:
12628         shared_flag='-G'
12629       else
12630         if test "$aix_use_runtimelinking" = yes; then
12631           shared_flag='${wl}-G'
12632         else
12633           shared_flag='${wl}-bM:SRE'
12634         fi
12635       fi
12636     fi
12637
12638     # It seems that -bexpall does not export symbols beginning with
12639     # underscore (_), so it is better to generate a list of symbols to export.
12640     always_export_symbols_CXX=yes
12641     if test "$aix_use_runtimelinking" = yes; then
12642       # Warning - without using the other runtime loading flags (-brtl),
12643       # -berok will link without error, but may produce a broken library.
12644       allow_undefined_flag_CXX='-berok'
12645       # Determine the default libpath from the value encoded in an empty executable.
12646       cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652
12653 int
12654 main ()
12655 {
12656
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_link") 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } && {
12675          test -z "$ac_cxx_werror_flag" ||
12676          test ! -s conftest.err
12677        } && test -s conftest$ac_exeext &&
12678        $as_test_x conftest$ac_exeext; then
12679   
12680 lt_aix_libpath_sed='
12681     /Import File Strings/,/^$/ {
12682         /^0/ {
12683             s/^0  *\(.*\)$/\1/
12684             p
12685         }
12686     }'
12687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12688 # Check for a 64-bit object if we didn't find anything.
12689 if test -z "$aix_libpath"; then
12690   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12691 fi
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696         
12697 fi
12698
12699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12700       conftest$ac_exeext conftest.$ac_ext
12701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12702
12703       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12704
12705       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"
12706      else
12707       if test "$host_cpu" = ia64; then
12708         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12709         allow_undefined_flag_CXX="-z nodefs"
12710         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"
12711       else
12712         # Determine the default libpath from the value encoded in an empty executable.
12713         cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719
12720 int
12721 main ()
12722 {
12723
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732   *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735   (eval "$ac_link") 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } && {
12742          test -z "$ac_cxx_werror_flag" ||
12743          test ! -s conftest.err
12744        } && test -s conftest$ac_exeext &&
12745        $as_test_x conftest$ac_exeext; then
12746   
12747 lt_aix_libpath_sed='
12748     /Import File Strings/,/^$/ {
12749         /^0/ {
12750             s/^0  *\(.*\)$/\1/
12751             p
12752         }
12753     }'
12754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12755 # Check for a 64-bit object if we didn't find anything.
12756 if test -z "$aix_libpath"; then
12757   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12758 fi
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763         
12764 fi
12765
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767       conftest$ac_exeext conftest.$ac_ext
12768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12769
12770         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12771         # Warning - without using the other run time loading flags,
12772         # -berok will link without error, but may produce a broken library.
12773         no_undefined_flag_CXX=' ${wl}-bernotok'
12774         allow_undefined_flag_CXX=' ${wl}-berok'
12775         # Exported symbols can be pulled into shared objects from archives
12776         whole_archive_flag_spec_CXX='$convenience'
12777         archive_cmds_need_lc_CXX=yes
12778         # This is similar to how AIX traditionally builds its shared libraries.
12779         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'
12780       fi
12781     fi
12782     ;;
12783
12784   beos*)
12785     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12786       allow_undefined_flag_CXX=unsupported
12787       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788       # support --undefined.  This deserves some investigation.  FIXME
12789       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790     else
12791       ld_shlibs_CXX=no
12792     fi
12793     ;;
12794
12795   chorus*)
12796     case $cc_basename in
12797       *)
12798         # FIXME: insert proper C++ library support
12799         ld_shlibs_CXX=no
12800         ;;
12801     esac
12802     ;;
12803
12804   cygwin* | mingw* | pw32*)
12805     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12806     # as there is no search path for DLLs.
12807     hardcode_libdir_flag_spec_CXX='-L$libdir'
12808     allow_undefined_flag_CXX=unsupported
12809     always_export_symbols_CXX=no
12810     enable_shared_with_static_runtimes_CXX=yes
12811
12812     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12813       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'
12814       # If the export-symbols file already is a .def file (1st line
12815       # is EXPORTS), use it as is; otherwise, prepend...
12816       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12817         cp $export_symbols $output_objdir/$soname.def;
12818       else
12819         echo EXPORTS > $output_objdir/$soname.def;
12820         cat $export_symbols >> $output_objdir/$soname.def;
12821       fi~
12822       $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'
12823     else
12824       ld_shlibs_CXX=no
12825     fi
12826   ;;
12827       darwin* | rhapsody*)
12828         case $host_os in
12829         rhapsody* | darwin1.[012])
12830          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12831          ;;
12832        *) # Darwin 1.3 on
12833          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12834            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12835          else
12836            case ${MACOSX_DEPLOYMENT_TARGET} in
12837              10.[012])
12838                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12839                ;;
12840              10.*)
12841                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12842                ;;
12843            esac
12844          fi
12845          ;;
12846         esac
12847       archive_cmds_need_lc_CXX=no
12848       hardcode_direct_CXX=no
12849       hardcode_automatic_CXX=yes
12850       hardcode_shlibpath_var_CXX=unsupported
12851       whole_archive_flag_spec_CXX=''
12852       link_all_deplibs_CXX=yes
12853
12854     if test "$GXX" = yes ; then
12855       lt_int_apple_cc_single_mod=no
12856       output_verbose_link_cmd='echo'
12857       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12858        lt_int_apple_cc_single_mod=yes
12859       fi
12860       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12861        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12862       else
12863           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'
12864         fi
12865         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12867           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12868             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}'
12869           else
12870             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}'
12871           fi
12872             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}'
12873       else
12874       case $cc_basename in
12875         xlc*)
12876          output_verbose_link_cmd='echo'
12877           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'
12878           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12879           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12880           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}'
12881           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}'
12882           ;;
12883        *)
12884          ld_shlibs_CXX=no
12885           ;;
12886       esac
12887       fi
12888         ;;
12889
12890   dgux*)
12891     case $cc_basename in
12892       ec++*)
12893         # FIXME: insert proper C++ library support
12894         ld_shlibs_CXX=no
12895         ;;
12896       ghcx*)
12897         # Green Hills C++ Compiler
12898         # FIXME: insert proper C++ library support
12899         ld_shlibs_CXX=no
12900         ;;
12901       *)
12902         # FIXME: insert proper C++ library support
12903         ld_shlibs_CXX=no
12904         ;;
12905     esac
12906     ;;
12907   freebsd[12]*)
12908     # C++ shared libraries reported to be fairly broken before switch to ELF
12909     ld_shlibs_CXX=no
12910     ;;
12911   freebsd-elf*)
12912     archive_cmds_need_lc_CXX=no
12913     ;;
12914   freebsd* | dragonfly*)
12915     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12916     # conventions
12917     ld_shlibs_CXX=yes
12918     ;;
12919   gnu*)
12920     ;;
12921   hpux9*)
12922     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12923     hardcode_libdir_separator_CXX=:
12924     export_dynamic_flag_spec_CXX='${wl}-E'
12925     hardcode_direct_CXX=yes
12926     hardcode_minus_L_CXX=yes # Not in the search PATH,
12927                                 # but as the default
12928                                 # location of the library.
12929
12930     case $cc_basename in
12931     CC*)
12932       # FIXME: insert proper C++ library support
12933       ld_shlibs_CXX=no
12934       ;;
12935     aCC*)
12936       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'
12937       # Commands to make compiler produce verbose output that lists
12938       # what "hidden" libraries, object files and flags are used when
12939       # linking a shared library.
12940       #
12941       # There doesn't appear to be a way to prevent this compiler from
12942       # explicitly linking system object files so we need to strip them
12943       # from the output so that they don't get included in the library
12944       # dependencies.
12945       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'
12946       ;;
12947     *)
12948       if test "$GXX" = yes; then
12949         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'
12950       else
12951         # FIXME: insert proper C++ library support
12952         ld_shlibs_CXX=no
12953       fi
12954       ;;
12955     esac
12956     ;;
12957   hpux10*|hpux11*)
12958     if test $with_gnu_ld = no; then
12959       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12960       hardcode_libdir_separator_CXX=:
12961
12962       case $host_cpu in
12963       hppa*64*|ia64*) ;;
12964       *)
12965         export_dynamic_flag_spec_CXX='${wl}-E'
12966         ;;
12967       esac
12968     fi
12969     case $host_cpu in
12970     hppa*64*|ia64*)
12971       hardcode_direct_CXX=no
12972       hardcode_shlibpath_var_CXX=no
12973       ;;
12974     *)
12975       hardcode_direct_CXX=yes
12976       hardcode_minus_L_CXX=yes # Not in the search PATH,
12977                                               # but as the default
12978                                               # location of the library.
12979       ;;
12980     esac
12981
12982     case $cc_basename in
12983       CC*)
12984         # FIXME: insert proper C++ library support
12985         ld_shlibs_CXX=no
12986         ;;
12987       aCC*)
12988         case $host_cpu in
12989         hppa*64*)
12990           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12991           ;;
12992         ia64*)
12993           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12994           ;;
12995         *)
12996           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12997           ;;
12998         esac
12999         # Commands to make compiler produce verbose output that lists
13000         # what "hidden" libraries, object files and flags are used when
13001         # linking a shared library.
13002         #
13003         # There doesn't appear to be a way to prevent this compiler from
13004         # explicitly linking system object files so we need to strip them
13005         # from the output so that they don't get included in the library
13006         # dependencies.
13007         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'
13008         ;;
13009       *)
13010         if test "$GXX" = yes; then
13011           if test $with_gnu_ld = no; then
13012             case $host_cpu in
13013             hppa*64*)
13014               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13015               ;;
13016             ia64*)
13017               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13018               ;;
13019             *)
13020               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'
13021               ;;
13022             esac
13023           fi
13024         else
13025           # FIXME: insert proper C++ library support
13026           ld_shlibs_CXX=no
13027         fi
13028         ;;
13029     esac
13030     ;;
13031   interix[3-9]*)
13032     hardcode_direct_CXX=no
13033     hardcode_shlibpath_var_CXX=no
13034     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035     export_dynamic_flag_spec_CXX='${wl}-E'
13036     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13037     # Instead, shared libraries are loaded at an image base (0x10000000 by
13038     # default) and relocated if they conflict, which is a slow very memory
13039     # consuming and fragmenting process.  To avoid this, we pick a random,
13040     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13041     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13042     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'
13043     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'
13044     ;;
13045   irix5* | irix6*)
13046     case $cc_basename in
13047       CC*)
13048         # SGI C++
13049         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'
13050
13051         # Archives containing C++ object files must be created using
13052         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13053         # necessary to make sure instantiated templates are included
13054         # in the archive.
13055         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13056         ;;
13057       *)
13058         if test "$GXX" = yes; then
13059           if test "$with_gnu_ld" = no; then
13060             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'
13061           else
13062             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'
13063           fi
13064         fi
13065         link_all_deplibs_CXX=yes
13066         ;;
13067     esac
13068     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13069     hardcode_libdir_separator_CXX=:
13070     ;;
13071   linux* | k*bsd*-gnu)
13072     case $cc_basename in
13073       KCC*)
13074         # Kuck and Associates, Inc. (KAI) C++ Compiler
13075
13076         # KCC will only create a shared library if the output file
13077         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13078         # to its proper name (with version) after linking.
13079         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'
13080         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'
13081         # Commands to make compiler produce verbose output that lists
13082         # what "hidden" libraries, object files and flags are used when
13083         # linking a shared library.
13084         #
13085         # There doesn't appear to be a way to prevent this compiler from
13086         # explicitly linking system object files so we need to strip them
13087         # from the output so that they don't get included in the library
13088         # dependencies.
13089         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'
13090
13091         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13092         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093
13094         # Archives containing C++ object files must be created using
13095         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13096         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13097         ;;
13098       icpc*)
13099         # Intel C++
13100         with_gnu_ld=yes
13101         # version 8.0 and above of icpc choke on multiply defined symbols
13102         # if we add $predep_objects and $postdep_objects, however 7.1 and
13103         # earlier do not add the objects themselves.
13104         case `$CC -V 2>&1` in
13105         *"Version 7."*)
13106           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13107           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'
13108           ;;
13109         *)  # Version 8.0 or newer
13110           tmp_idyn=
13111           case $host_cpu in
13112             ia64*) tmp_idyn=' -i_dynamic';;
13113           esac
13114           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115           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'
13116           ;;
13117         esac
13118         archive_cmds_need_lc_CXX=no
13119         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13121         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13122         ;;
13123       pgCC*)
13124         # Portland Group C++ compiler
13125         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13126         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'
13127
13128         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13129         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13130         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'
13131         ;;
13132       cxx*)
13133         # Compaq C++
13134         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13135         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'
13136
13137         runpath_var=LD_RUN_PATH
13138         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13139         hardcode_libdir_separator_CXX=:
13140
13141         # Commands to make compiler produce verbose output that lists
13142         # what "hidden" libraries, object files and flags are used when
13143         # linking a shared library.
13144         #
13145         # There doesn't appear to be a way to prevent this compiler from
13146         # explicitly linking system object files so we need to strip them
13147         # from the output so that they don't get included in the library
13148         # dependencies.
13149         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'
13150         ;;
13151       *)
13152         case `$CC -V 2>&1 | sed 5q` in
13153         *Sun\ C*)
13154           # Sun C++ 5.9
13155           no_undefined_flag_CXX=' -zdefs'
13156           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157           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'
13158           hardcode_libdir_flag_spec_CXX='-R$libdir'
13159           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'
13160
13161           # Not sure whether something based on
13162           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13163           # would be better.
13164           output_verbose_link_cmd='echo'
13165
13166           # Archives containing C++ object files must be created using
13167           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13168           # necessary to make sure instantiated templates are included
13169           # in the archive.
13170           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13171           ;;
13172         esac
13173         ;;
13174     esac
13175     ;;
13176   lynxos*)
13177     # FIXME: insert proper C++ library support
13178     ld_shlibs_CXX=no
13179     ;;
13180   m88k*)
13181     # FIXME: insert proper C++ library support
13182     ld_shlibs_CXX=no
13183     ;;
13184   mvs*)
13185     case $cc_basename in
13186       cxx*)
13187         # FIXME: insert proper C++ library support
13188         ld_shlibs_CXX=no
13189         ;;
13190       *)
13191         # FIXME: insert proper C++ library support
13192         ld_shlibs_CXX=no
13193         ;;
13194     esac
13195     ;;
13196   netbsd* | netbsdelf*-gnu)
13197     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13198       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13199       wlarc=
13200       hardcode_libdir_flag_spec_CXX='-R$libdir'
13201       hardcode_direct_CXX=yes
13202       hardcode_shlibpath_var_CXX=no
13203     fi
13204     # Workaround some broken pre-1.5 toolchains
13205     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13206     ;;
13207   openbsd2*)
13208     # C++ shared libraries are fairly broken
13209     ld_shlibs_CXX=no
13210     ;;
13211   openbsd*)
13212     if test -f /usr/libexec/ld.so; then
13213       hardcode_direct_CXX=yes
13214       hardcode_shlibpath_var_CXX=no
13215       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13216       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13217       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13218         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13219         export_dynamic_flag_spec_CXX='${wl}-E'
13220         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13221       fi
13222       output_verbose_link_cmd='echo'
13223     else
13224       ld_shlibs_CXX=no
13225     fi
13226     ;;
13227   osf3*)
13228     case $cc_basename in
13229       KCC*)
13230         # Kuck and Associates, Inc. (KAI) C++ Compiler
13231
13232         # KCC will only create a shared library if the output file
13233         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13234         # to its proper name (with version) after linking.
13235         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'
13236
13237         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238         hardcode_libdir_separator_CXX=:
13239
13240         # Archives containing C++ object files must be created using
13241         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13242         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13243
13244         ;;
13245       RCC*)
13246         # Rational C++ 2.4.1
13247         # FIXME: insert proper C++ library support
13248         ld_shlibs_CXX=no
13249         ;;
13250       cxx*)
13251         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13252         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'
13253
13254         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13255         hardcode_libdir_separator_CXX=:
13256
13257         # Commands to make compiler produce verbose output that lists
13258         # what "hidden" libraries, object files and flags are used when
13259         # linking a shared library.
13260         #
13261         # There doesn't appear to be a way to prevent this compiler from
13262         # explicitly linking system object files so we need to strip them
13263         # from the output so that they don't get included in the library
13264         # dependencies.
13265         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'
13266         ;;
13267       *)
13268         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13269           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13270           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'
13271
13272           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13273           hardcode_libdir_separator_CXX=:
13274
13275           # Commands to make compiler produce verbose output that lists
13276           # what "hidden" libraries, object files and flags are used when
13277           # linking a shared library.
13278           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13279
13280         else
13281           # FIXME: insert proper C++ library support
13282           ld_shlibs_CXX=no
13283         fi
13284         ;;
13285     esac
13286     ;;
13287   osf4* | osf5*)
13288     case $cc_basename in
13289       KCC*)
13290         # Kuck and Associates, Inc. (KAI) C++ Compiler
13291
13292         # KCC will only create a shared library if the output file
13293         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13294         # to its proper name (with version) after linking.
13295         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'
13296
13297         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298         hardcode_libdir_separator_CXX=:
13299
13300         # Archives containing C++ object files must be created using
13301         # the KAI C++ compiler.
13302         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13303         ;;
13304       RCC*)
13305         # Rational C++ 2.4.1
13306         # FIXME: insert proper C++ library support
13307         ld_shlibs_CXX=no
13308         ;;
13309       cxx*)
13310         allow_undefined_flag_CXX=' -expect_unresolved \*'
13311         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'
13312         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13313           echo "-hidden">> $lib.exp~
13314           $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~
13315           $rm $lib.exp'
13316
13317         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13318         hardcode_libdir_separator_CXX=:
13319
13320         # Commands to make compiler produce verbose output that lists
13321         # what "hidden" libraries, object files and flags are used when
13322         # linking a shared library.
13323         #
13324         # There doesn't appear to be a way to prevent this compiler from
13325         # explicitly linking system object files so we need to strip them
13326         # from the output so that they don't get included in the library
13327         # dependencies.
13328         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'
13329         ;;
13330       *)
13331         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13332           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13333          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'
13334
13335           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13336           hardcode_libdir_separator_CXX=:
13337
13338           # Commands to make compiler produce verbose output that lists
13339           # what "hidden" libraries, object files and flags are used when
13340           # linking a shared library.
13341           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13342
13343         else
13344           # FIXME: insert proper C++ library support
13345           ld_shlibs_CXX=no
13346         fi
13347         ;;
13348     esac
13349     ;;
13350   psos*)
13351     # FIXME: insert proper C++ library support
13352     ld_shlibs_CXX=no
13353     ;;
13354   sunos4*)
13355     case $cc_basename in
13356       CC*)
13357         # Sun C++ 4.x
13358         # FIXME: insert proper C++ library support
13359         ld_shlibs_CXX=no
13360         ;;
13361       lcc*)
13362         # Lucid
13363         # FIXME: insert proper C++ library support
13364         ld_shlibs_CXX=no
13365         ;;
13366       *)
13367         # FIXME: insert proper C++ library support
13368         ld_shlibs_CXX=no
13369         ;;
13370     esac
13371     ;;
13372   solaris*)
13373     case $cc_basename in
13374       CC*)
13375         # Sun C++ 4.2, 5.x and Centerline C++
13376         archive_cmds_need_lc_CXX=yes
13377         no_undefined_flag_CXX=' -zdefs'
13378         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13379         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13380         $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'
13381
13382         hardcode_libdir_flag_spec_CXX='-R$libdir'
13383         hardcode_shlibpath_var_CXX=no
13384         case $host_os in
13385           solaris2.[0-5] | solaris2.[0-5].*) ;;
13386           *)
13387             # The compiler driver will combine and reorder linker options,
13388             # but understands `-z linker_flag'.
13389             # Supported since Solaris 2.6 (maybe 2.5.1?)
13390             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13391             ;;
13392         esac
13393         link_all_deplibs_CXX=yes
13394
13395         output_verbose_link_cmd='echo'
13396
13397         # Archives containing C++ object files must be created using
13398         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13399         # necessary to make sure instantiated templates are included
13400         # in the archive.
13401         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13402         ;;
13403       gcx*)
13404         # Green Hills C++ Compiler
13405         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13406
13407         # The C++ compiler must be used to create the archive.
13408         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13409         ;;
13410       *)
13411         # GNU C++ compiler with Solaris linker
13412         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13413           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13414           if $CC --version | grep -v '^2\.7' > /dev/null; then
13415             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13416             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13417                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13418
13419             # Commands to make compiler produce verbose output that lists
13420             # what "hidden" libraries, object files and flags are used when
13421             # linking a shared library.
13422             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13423           else
13424             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13425             # platform.
13426             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13428                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13429
13430             # Commands to make compiler produce verbose output that lists
13431             # what "hidden" libraries, object files and flags are used when
13432             # linking a shared library.
13433             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13434           fi
13435
13436           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13437           case $host_os in
13438           solaris2.[0-5] | solaris2.[0-5].*) ;;
13439           *)
13440             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13441             ;;
13442           esac
13443         fi
13444         ;;
13445     esac
13446     ;;
13447   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13448     no_undefined_flag_CXX='${wl}-z,text'
13449     archive_cmds_need_lc_CXX=no
13450     hardcode_shlibpath_var_CXX=no
13451     runpath_var='LD_RUN_PATH'
13452
13453     case $cc_basename in
13454       CC*)
13455         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13456         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13457         ;;
13458       *)
13459         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461         ;;
13462     esac
13463     ;;
13464   sysv5* | sco3.2v5* | sco5v6*)
13465     # Note: We can NOT use -z defs as we might desire, because we do not
13466     # link with -lc, and that would cause any symbols used from libc to
13467     # always be unresolved, which means just about no library would
13468     # ever link correctly.  If we're not using GNU ld we use -z text
13469     # though, which does catch some bad symbols but isn't as heavy-handed
13470     # as -z defs.
13471     # For security reasons, it is highly recommended that you always
13472     # use absolute paths for naming shared libraries, and exclude the
13473     # DT_RUNPATH tag from executables and libraries.  But doing so
13474     # requires that you compile everything twice, which is a pain.
13475     # So that behaviour is only enabled if SCOABSPATH is set to a
13476     # non-empty value in the environment.  Most likely only useful for
13477     # creating official distributions of packages.
13478     # This is a hack until libtool officially supports absolute path
13479     # names for shared libraries.
13480     no_undefined_flag_CXX='${wl}-z,text'
13481     allow_undefined_flag_CXX='${wl}-z,nodefs'
13482     archive_cmds_need_lc_CXX=no
13483     hardcode_shlibpath_var_CXX=no
13484     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13485     hardcode_libdir_separator_CXX=':'
13486     link_all_deplibs_CXX=yes
13487     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13488     runpath_var='LD_RUN_PATH'
13489
13490     case $cc_basename in
13491       CC*)
13492         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13494         ;;
13495       *)
13496         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498         ;;
13499     esac
13500     ;;
13501   tandem*)
13502     case $cc_basename in
13503       NCC*)
13504         # NonStop-UX NCC 3.20
13505         # FIXME: insert proper C++ library support
13506         ld_shlibs_CXX=no
13507         ;;
13508       *)
13509         # FIXME: insert proper C++ library support
13510         ld_shlibs_CXX=no
13511         ;;
13512     esac
13513     ;;
13514   vxworks*)
13515     # FIXME: insert proper C++ library support
13516     ld_shlibs_CXX=no
13517     ;;
13518   *)
13519     # FIXME: insert proper C++ library support
13520     ld_shlibs_CXX=no
13521     ;;
13522 esac
13523 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13524 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13525 test "$ld_shlibs_CXX" = no && can_build_shared=no
13526
13527 GCC_CXX="$GXX"
13528 LD_CXX="$LD"
13529
13530
13531 cat > conftest.$ac_ext <<EOF
13532 class Foo
13533 {
13534 public:
13535   Foo (void) { a = 0; }
13536 private:
13537   int a;
13538 };
13539 EOF
13540
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542   (eval $ac_compile) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; then
13546   # Parse the compiler output and extract the necessary
13547   # objects, libraries and library flags.
13548
13549   # Sentinel used to keep track of whether or not we are before
13550   # the conftest object file.
13551   pre_test_object_deps_done=no
13552
13553   # The `*' in the case matches for architectures that use `case' in
13554   # $output_verbose_cmd can trigger glob expansion during the loop
13555   # eval without this substitution.
13556   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13557
13558   for p in `eval $output_verbose_link_cmd`; do
13559     case $p in
13560
13561     -L* | -R* | -l*)
13562        # Some compilers place space between "-{L,R}" and the path.
13563        # Remove the space.
13564        if test $p = "-L" \
13565           || test $p = "-R"; then
13566          prev=$p
13567          continue
13568        else
13569          prev=
13570        fi
13571
13572        if test "$pre_test_object_deps_done" = no; then
13573          case $p in
13574          -L* | -R*)
13575            # Internal compiler library paths should come after those
13576            # provided the user.  The postdeps already come after the
13577            # user supplied libs so there is no need to process them.
13578            if test -z "$compiler_lib_search_path_CXX"; then
13579              compiler_lib_search_path_CXX="${prev}${p}"
13580            else
13581              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13582            fi
13583            ;;
13584          # The "-l" case would never come before the object being
13585          # linked, so don't bother handling this case.
13586          esac
13587        else
13588          if test -z "$postdeps_CXX"; then
13589            postdeps_CXX="${prev}${p}"
13590          else
13591            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13592          fi
13593        fi
13594        ;;
13595
13596     *.$objext)
13597        # This assumes that the test object file only shows up
13598        # once in the compiler output.
13599        if test "$p" = "conftest.$objext"; then
13600          pre_test_object_deps_done=yes
13601          continue
13602        fi
13603
13604        if test "$pre_test_object_deps_done" = no; then
13605          if test -z "$predep_objects_CXX"; then
13606            predep_objects_CXX="$p"
13607          else
13608            predep_objects_CXX="$predep_objects_CXX $p"
13609          fi
13610        else
13611          if test -z "$postdep_objects_CXX"; then
13612            postdep_objects_CXX="$p"
13613          else
13614            postdep_objects_CXX="$postdep_objects_CXX $p"
13615          fi
13616        fi
13617        ;;
13618
13619     *) ;; # Ignore the rest.
13620
13621     esac
13622   done
13623
13624   # Clean up.
13625   rm -f a.out a.exe
13626 else
13627   echo "libtool.m4: error: problem compiling CXX test program"
13628 fi
13629
13630 $rm -f confest.$objext
13631
13632 # PORTME: override above test on systems where it is broken
13633 case $host_os in
13634 interix[3-9]*)
13635   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13636   # hack all around it, let's just trust "g++" to DTRT.
13637   predep_objects_CXX=
13638   postdep_objects_CXX=
13639   postdeps_CXX=
13640   ;;
13641
13642 linux*)
13643   case `$CC -V 2>&1 | sed 5q` in
13644   *Sun\ C*)
13645     # Sun C++ 5.9
13646     #
13647     # The more standards-conforming stlport4 library is
13648     # incompatible with the Cstd library. Avoid specifying
13649     # it if it's in CXXFLAGS. Ignore libCrun as
13650     # -library=stlport4 depends on it.
13651     case " $CXX $CXXFLAGS " in
13652     *" -library=stlport4 "*)
13653       solaris_use_stlport4=yes
13654       ;;
13655     esac
13656     if test "$solaris_use_stlport4" != yes; then
13657       postdeps_CXX='-library=Cstd -library=Crun'
13658     fi
13659     ;;
13660   esac
13661   ;;
13662
13663 solaris*)
13664   case $cc_basename in
13665   CC*)
13666     # The more standards-conforming stlport4 library is
13667     # incompatible with the Cstd library. Avoid specifying
13668     # it if it's in CXXFLAGS. Ignore libCrun as
13669     # -library=stlport4 depends on it.
13670     case " $CXX $CXXFLAGS " in
13671     *" -library=stlport4 "*)
13672       solaris_use_stlport4=yes
13673       ;;
13674     esac
13675
13676     # Adding this requires a known-good setup of shared libraries for
13677     # Sun compiler versions before 5.6, else PIC objects from an old
13678     # archive will be linked into the output, leading to subtle bugs.
13679     if test "$solaris_use_stlport4" != yes; then
13680       postdeps_CXX='-library=Cstd -library=Crun'
13681     fi
13682     ;;
13683   esac
13684   ;;
13685 esac
13686
13687
13688 case " $postdeps_CXX " in
13689 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13690 esac
13691
13692 lt_prog_compiler_wl_CXX=
13693 lt_prog_compiler_pic_CXX=
13694 lt_prog_compiler_static_CXX=
13695
13696 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13698  
13699   # C++ specific cases for pic, static, wl, etc.
13700   if test "$GXX" = yes; then
13701     lt_prog_compiler_wl_CXX='-Wl,'
13702     lt_prog_compiler_static_CXX='-static'
13703
13704     case $host_os in
13705     aix*)
13706       # All AIX code is PIC.
13707       if test "$host_cpu" = ia64; then
13708         # AIX 5 now supports IA64 processor
13709         lt_prog_compiler_static_CXX='-Bstatic'
13710       fi
13711       ;;
13712     amigaos*)
13713       # FIXME: we need at least 68020 code to build shared libraries, but
13714       # adding the `-m68020' flag to GCC prevents building anything better,
13715       # like `-m68040'.
13716       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13717       ;;
13718     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13719       # PIC is the default for these OSes.
13720       ;;
13721     mingw* | cygwin* | os2* | pw32*)
13722       # This hack is so that the source file can tell whether it is being
13723       # built for inclusion in a dll (and should export symbols for example).
13724       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13725       # (--disable-auto-import) libraries
13726       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13727       ;;
13728     darwin* | rhapsody*)
13729       # PIC is the default on this platform
13730       # Common symbols not allowed in MH_DYLIB files
13731       lt_prog_compiler_pic_CXX='-fno-common'
13732       ;;
13733     *djgpp*)
13734       # DJGPP does not support shared libraries at all
13735       lt_prog_compiler_pic_CXX=
13736       ;;
13737     interix[3-9]*)
13738       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13739       # Instead, we relocate shared libraries at runtime.
13740       ;;
13741     sysv4*MP*)
13742       if test -d /usr/nec; then
13743         lt_prog_compiler_pic_CXX=-Kconform_pic
13744       fi
13745       ;;
13746     hpux*)
13747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13748       # not for PA HP-UX.
13749       case $host_cpu in
13750       hppa*64*|ia64*)
13751         ;;
13752       *)
13753         lt_prog_compiler_pic_CXX='-fPIC'
13754         ;;
13755       esac
13756       ;;
13757     *)
13758       lt_prog_compiler_pic_CXX='-fPIC'
13759       ;;
13760     esac
13761   else
13762     case $host_os in
13763       aix4* | aix5*)
13764         # All AIX code is PIC.
13765         if test "$host_cpu" = ia64; then
13766           # AIX 5 now supports IA64 processor
13767           lt_prog_compiler_static_CXX='-Bstatic'
13768         else
13769           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13770         fi
13771         ;;
13772       chorus*)
13773         case $cc_basename in
13774         cxch68*)
13775           # Green Hills C++ Compiler
13776           # _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"
13777           ;;
13778         esac
13779         ;;
13780        darwin*)
13781          # PIC is the default on this platform
13782          # Common symbols not allowed in MH_DYLIB files
13783          case $cc_basename in
13784            xlc*)
13785            lt_prog_compiler_pic_CXX='-qnocommon'
13786            lt_prog_compiler_wl_CXX='-Wl,'
13787            ;;
13788          esac
13789        ;;
13790       dgux*)
13791         case $cc_basename in
13792           ec++*)
13793             lt_prog_compiler_pic_CXX='-KPIC'
13794             ;;
13795           ghcx*)
13796             # Green Hills C++ Compiler
13797             lt_prog_compiler_pic_CXX='-pic'
13798             ;;
13799           *)
13800             ;;
13801         esac
13802         ;;
13803       freebsd* | dragonfly*)
13804         # FreeBSD uses GNU C++
13805         ;;
13806       hpux9* | hpux10* | hpux11*)
13807         case $cc_basename in
13808           CC*)
13809             lt_prog_compiler_wl_CXX='-Wl,'
13810             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13811             if test "$host_cpu" != ia64; then
13812               lt_prog_compiler_pic_CXX='+Z'
13813             fi
13814             ;;
13815           aCC*)
13816             lt_prog_compiler_wl_CXX='-Wl,'
13817             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818             case $host_cpu in
13819             hppa*64*|ia64*)
13820               # +Z the default
13821               ;;
13822             *)
13823               lt_prog_compiler_pic_CXX='+Z'
13824               ;;
13825             esac
13826             ;;
13827           *)
13828             ;;
13829         esac
13830         ;;
13831       interix*)
13832         # This is c89, which is MS Visual C++ (no shared libs)
13833         # Anyone wants to do a port?
13834         ;;
13835       irix5* | irix6* | nonstopux*)
13836         case $cc_basename in
13837           CC*)
13838             lt_prog_compiler_wl_CXX='-Wl,'
13839             lt_prog_compiler_static_CXX='-non_shared'
13840             # CC pic flag -KPIC is the default.
13841             ;;
13842           *)
13843             ;;
13844         esac
13845         ;;
13846       linux* | k*bsd*-gnu)
13847         case $cc_basename in
13848           KCC*)
13849             # KAI C++ Compiler
13850             lt_prog_compiler_wl_CXX='--backend -Wl,'
13851             lt_prog_compiler_pic_CXX='-fPIC'
13852             ;;
13853           icpc* | ecpc*)
13854             # Intel C++
13855             lt_prog_compiler_wl_CXX='-Wl,'
13856             lt_prog_compiler_pic_CXX='-KPIC'
13857             lt_prog_compiler_static_CXX='-static'
13858             ;;
13859           pgCC*)
13860             # Portland Group C++ compiler.
13861             lt_prog_compiler_wl_CXX='-Wl,'
13862             lt_prog_compiler_pic_CXX='-fpic'
13863             lt_prog_compiler_static_CXX='-Bstatic'
13864             ;;
13865           cxx*)
13866             # Compaq C++
13867             # Make sure the PIC flag is empty.  It appears that all Alpha
13868             # Linux and Compaq Tru64 Unix objects are PIC.
13869             lt_prog_compiler_pic_CXX=
13870             lt_prog_compiler_static_CXX='-non_shared'
13871             ;;
13872           *)
13873             case `$CC -V 2>&1 | sed 5q` in
13874             *Sun\ C*)
13875               # Sun C++ 5.9
13876               lt_prog_compiler_pic_CXX='-KPIC'
13877               lt_prog_compiler_static_CXX='-Bstatic'
13878               lt_prog_compiler_wl_CXX='-Qoption ld '
13879               ;;
13880             esac
13881             ;;
13882         esac
13883         ;;
13884       lynxos*)
13885         ;;
13886       m88k*)
13887         ;;
13888       mvs*)
13889         case $cc_basename in
13890           cxx*)
13891             lt_prog_compiler_pic_CXX='-W c,exportall'
13892             ;;
13893           *)
13894             ;;
13895         esac
13896         ;;
13897       netbsd* | netbsdelf*-gnu)
13898         ;;
13899       osf3* | osf4* | osf5*)
13900         case $cc_basename in
13901           KCC*)
13902             lt_prog_compiler_wl_CXX='--backend -Wl,'
13903             ;;
13904           RCC*)
13905             # Rational C++ 2.4.1
13906             lt_prog_compiler_pic_CXX='-pic'
13907             ;;
13908           cxx*)
13909             # Digital/Compaq C++
13910             lt_prog_compiler_wl_CXX='-Wl,'
13911             # Make sure the PIC flag is empty.  It appears that all Alpha
13912             # Linux and Compaq Tru64 Unix objects are PIC.
13913             lt_prog_compiler_pic_CXX=
13914             lt_prog_compiler_static_CXX='-non_shared'
13915             ;;
13916           *)
13917             ;;
13918         esac
13919         ;;
13920       psos*)
13921         ;;
13922       solaris*)
13923         case $cc_basename in
13924           CC*)
13925             # Sun C++ 4.2, 5.x and Centerline C++
13926             lt_prog_compiler_pic_CXX='-KPIC'
13927             lt_prog_compiler_static_CXX='-Bstatic'
13928             lt_prog_compiler_wl_CXX='-Qoption ld '
13929             ;;
13930           gcx*)
13931             # Green Hills C++ Compiler
13932             lt_prog_compiler_pic_CXX='-PIC'
13933             ;;
13934           *)
13935             ;;
13936         esac
13937         ;;
13938       sunos4*)
13939         case $cc_basename in
13940           CC*)
13941             # Sun C++ 4.x
13942             lt_prog_compiler_pic_CXX='-pic'
13943             lt_prog_compiler_static_CXX='-Bstatic'
13944             ;;
13945           lcc*)
13946             # Lucid
13947             lt_prog_compiler_pic_CXX='-pic'
13948             ;;
13949           *)
13950             ;;
13951         esac
13952         ;;
13953       tandem*)
13954         case $cc_basename in
13955           NCC*)
13956             # NonStop-UX NCC 3.20
13957             lt_prog_compiler_pic_CXX='-KPIC'
13958             ;;
13959           *)
13960             ;;
13961         esac
13962         ;;
13963       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13964         case $cc_basename in
13965           CC*)
13966             lt_prog_compiler_wl_CXX='-Wl,'
13967             lt_prog_compiler_pic_CXX='-KPIC'
13968             lt_prog_compiler_static_CXX='-Bstatic'
13969             ;;
13970         esac
13971         ;;
13972       vxworks*)
13973         ;;
13974       *)
13975         lt_prog_compiler_can_build_shared_CXX=no
13976         ;;
13977     esac
13978   fi
13979
13980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13981 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13982
13983 #
13984 # Check to make sure the PIC flag actually works.
13985 #
13986 if test -n "$lt_prog_compiler_pic_CXX"; then
13987   
13988 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13990 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993   lt_prog_compiler_pic_works_CXX=no
13994   ac_outfile=conftest.$ac_objext
13995    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13996    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13997    # Insert the option either (1) after the last *FLAGS variable, or
13998    # (2) before a word containing "conftest.", or (3) at the end.
13999    # Note that $ac_compile itself does not contain backslashes and begins
14000    # with a dollar sign (not a hyphen), so the echo should work correctly.
14001    # The option is referenced via a variable to avoid confusing sed.
14002    lt_compile=`echo "$ac_compile" | $SED \
14003    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14005    -e 's:$: $lt_compiler_flag:'`
14006    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14007    (eval "$lt_compile" 2>conftest.err)
14008    ac_status=$?
14009    cat conftest.err >&5
14010    echo "$as_me:__oline__: \$? = $ac_status" >&5
14011    if (exit $ac_status) && test -s "$ac_outfile"; then
14012      # The compiler can only warn and ignore the option if not recognized
14013      # So say no if there are warnings other than the usual output.
14014      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14015      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14016      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14017        lt_prog_compiler_pic_works_CXX=yes
14018      fi
14019    fi
14020    $rm conftest*
14021
14022 fi
14023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14024 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14025
14026 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14027     case $lt_prog_compiler_pic_CXX in
14028      "" | " "*) ;;
14029      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14030      esac
14031 else
14032     lt_prog_compiler_pic_CXX=
14033      lt_prog_compiler_can_build_shared_CXX=no
14034 fi
14035
14036 fi
14037 case $host_os in
14038   # For platforms which do not support PIC, -DPIC is meaningless:
14039   *djgpp*)
14040     lt_prog_compiler_pic_CXX=
14041     ;;
14042   *)
14043     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14044     ;;
14045 esac
14046
14047 #
14048 # Check to make sure the static flag actually works.
14049 #
14050 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14051 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14052 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14053 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   lt_prog_compiler_static_works_CXX=no
14057    save_LDFLAGS="$LDFLAGS"
14058    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14059    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14060    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14061      # The linker can only warn and ignore the option if not recognized
14062      # So say no if there are warnings
14063      if test -s conftest.err; then
14064        # Append any errors to the config.log.
14065        cat conftest.err 1>&5
14066        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14067        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14068        if diff conftest.exp conftest.er2 >/dev/null; then
14069          lt_prog_compiler_static_works_CXX=yes
14070        fi
14071      else
14072        lt_prog_compiler_static_works_CXX=yes
14073      fi
14074    fi
14075    $rm conftest*
14076    LDFLAGS="$save_LDFLAGS"
14077
14078 fi
14079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14080 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14081
14082 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14083     :
14084 else
14085     lt_prog_compiler_static_CXX=
14086 fi
14087
14088
14089 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14091 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   lt_cv_prog_compiler_c_o_CXX=no
14095    $rm -r conftest 2>/dev/null
14096    mkdir conftest
14097    cd conftest
14098    mkdir out
14099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100
14101    lt_compiler_flag="-o out/conftest2.$ac_objext"
14102    # Insert the option either (1) after the last *FLAGS variable, or
14103    # (2) before a word containing "conftest.", or (3) at the end.
14104    # Note that $ac_compile itself does not contain backslashes and begins
14105    # with a dollar sign (not a hyphen), so the echo should work correctly.
14106    lt_compile=`echo "$ac_compile" | $SED \
14107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14109    -e 's:$: $lt_compiler_flag:'`
14110    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14111    (eval "$lt_compile" 2>out/conftest.err)
14112    ac_status=$?
14113    cat out/conftest.err >&5
14114    echo "$as_me:__oline__: \$? = $ac_status" >&5
14115    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116    then
14117      # The compiler can only warn and ignore the option if not recognized
14118      # So say no if there are warnings
14119      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14120      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14121      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14122        lt_cv_prog_compiler_c_o_CXX=yes
14123      fi
14124    fi
14125    chmod u+w . 2>&5
14126    $rm conftest*
14127    # SGI C++ compiler will create directory out/ii_files/ for
14128    # template instantiation
14129    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14130    $rm out/* && rmdir out
14131    cd ..
14132    rmdir conftest
14133    $rm conftest*
14134
14135 fi
14136 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14137 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14138
14139
14140 hard_links="nottested"
14141 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14142   # do not overwrite the value of need_locks provided by the user
14143   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14144 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14145   hard_links=yes
14146   $rm conftest*
14147   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148   touch conftest.a
14149   ln conftest.a conftest.b 2>&5 || hard_links=no
14150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151   { echo "$as_me:$LINENO: result: $hard_links" >&5
14152 echo "${ECHO_T}$hard_links" >&6; }
14153   if test "$hard_links" = no; then
14154     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14155 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14156     need_locks=warn
14157   fi
14158 else
14159   need_locks=no
14160 fi
14161
14162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14164
14165   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14166   case $host_os in
14167   aix4* | aix5*)
14168     # If we're using GNU nm, then we don't want the "-C" option.
14169     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14170     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14171       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'
14172     else
14173       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'
14174     fi
14175     ;;
14176   pw32*)
14177     export_symbols_cmds_CXX="$ltdll_cmds"
14178   ;;
14179   cygwin* | mingw*)
14180     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'
14181   ;;
14182   linux* | k*bsd*-gnu)
14183     link_all_deplibs_CXX=no
14184   ;;
14185   *)
14186     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14187   ;;
14188   esac
14189
14190 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14191 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14192 test "$ld_shlibs_CXX" = no && can_build_shared=no
14193
14194 #
14195 # Do we need to explicitly link libc?
14196 #
14197 case "x$archive_cmds_need_lc_CXX" in
14198 x|xyes)
14199   # Assume -lc should be added
14200   archive_cmds_need_lc_CXX=yes
14201
14202   if test "$enable_shared" = yes && test "$GCC" = yes; then
14203     case $archive_cmds_CXX in
14204     *'~'*)
14205       # FIXME: we may have to deal with multi-command sequences.
14206       ;;
14207     '$CC '*)
14208       # Test whether the compiler implicitly links with -lc since on some
14209       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210       # to ld, don't add -lc before -lgcc.
14211       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14212 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14213       $rm conftest*
14214       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215
14216       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217   (eval $ac_compile) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } 2>conftest.err; then
14221         soname=conftest
14222         lib=conftest
14223         libobjs=conftest.$ac_objext
14224         deplibs=
14225         wl=$lt_prog_compiler_wl_CXX
14226         pic_flag=$lt_prog_compiler_pic_CXX
14227         compiler_flags=-v
14228         linker_flags=-v
14229         verstring=
14230         output_objdir=.
14231         libname=conftest
14232         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14233         allow_undefined_flag_CXX=
14234         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14235   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }
14239         then
14240           archive_cmds_need_lc_CXX=no
14241         else
14242           archive_cmds_need_lc_CXX=yes
14243         fi
14244         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14245       else
14246         cat conftest.err 1>&5
14247       fi
14248       $rm conftest*
14249       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14250 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14251       ;;
14252     esac
14253   fi
14254   ;;
14255 esac
14256
14257 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14258 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14259 library_names_spec=
14260 libname_spec='lib$name'
14261 soname_spec=
14262 shrext_cmds=".so"
14263 postinstall_cmds=
14264 postuninstall_cmds=
14265 finish_cmds=
14266 finish_eval=
14267 shlibpath_var=
14268 shlibpath_overrides_runpath=unknown
14269 version_type=none
14270 dynamic_linker="$host_os ld.so"
14271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14272
14273 need_lib_prefix=unknown
14274 hardcode_into_libs=no
14275
14276 # when you set need_version to no, make sure it does not cause -set_version
14277 # flags to be left without arguments
14278 need_version=unknown
14279
14280 case $host_os in
14281 aix3*)
14282   version_type=linux
14283   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14284   shlibpath_var=LIBPATH
14285
14286   # AIX 3 has no versioning support, so we append a major version to the name.
14287   soname_spec='${libname}${release}${shared_ext}$major'
14288   ;;
14289
14290 aix4* | aix5*)
14291   version_type=linux
14292   need_lib_prefix=no
14293   need_version=no
14294   hardcode_into_libs=yes
14295   if test "$host_cpu" = ia64; then
14296     # AIX 5 supports IA64
14297     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14298     shlibpath_var=LD_LIBRARY_PATH
14299   else
14300     # With GCC up to 2.95.x, collect2 would create an import file
14301     # for dependence libraries.  The import file would start with
14302     # the line `#! .'.  This would cause the generated library to
14303     # depend on `.', always an invalid library.  This was fixed in
14304     # development snapshots of GCC prior to 3.0.
14305     case $host_os in
14306       aix4 | aix4.[01] | aix4.[01].*)
14307       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14308            echo ' yes '
14309            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14310         :
14311       else
14312         can_build_shared=no
14313       fi
14314       ;;
14315     esac
14316     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14317     # soname into executable. Probably we can add versioning support to
14318     # collect2, so additional links can be useful in future.
14319     if test "$aix_use_runtimelinking" = yes; then
14320       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14321       # instead of lib<name>.a to let people know that these are not
14322       # typical AIX shared libraries.
14323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324     else
14325       # We preserve .a as extension for shared libraries through AIX4.2
14326       # and later when we are not doing run time linking.
14327       library_names_spec='${libname}${release}.a $libname.a'
14328       soname_spec='${libname}${release}${shared_ext}$major'
14329     fi
14330     shlibpath_var=LIBPATH
14331   fi
14332   ;;
14333
14334 amigaos*)
14335   library_names_spec='$libname.ixlibrary $libname.a'
14336   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14337   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'
14338   ;;
14339
14340 beos*)
14341   library_names_spec='${libname}${shared_ext}'
14342   dynamic_linker="$host_os ld.so"
14343   shlibpath_var=LIBRARY_PATH
14344   ;;
14345
14346 bsdi[45]*)
14347   version_type=linux
14348   need_version=no
14349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350   soname_spec='${libname}${release}${shared_ext}$major'
14351   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14352   shlibpath_var=LD_LIBRARY_PATH
14353   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14354   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14355   # the default ld.so.conf also contains /usr/contrib/lib and
14356   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14357   # libtool to hard-code these into programs
14358   ;;
14359
14360 cygwin* | mingw* | pw32*)
14361   version_type=windows
14362   shrext_cmds=".dll"
14363   need_version=no
14364   need_lib_prefix=no
14365
14366   case $GCC,$host_os in
14367   yes,cygwin* | yes,mingw* | yes,pw32*)
14368     library_names_spec='$libname.dll.a'
14369     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14370     postinstall_cmds='base_file=`basename \${file}`~
14371       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14372       dldir=$destdir/`dirname \$dlpath`~
14373       test -d \$dldir || mkdir -p \$dldir~
14374       $install_prog $dir/$dlname \$dldir/$dlname~
14375       chmod a+x \$dldir/$dlname'
14376     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14377       dlpath=$dir/\$dldll~
14378        $rm \$dlpath'
14379     shlibpath_overrides_runpath=yes
14380
14381     case $host_os in
14382     cygwin*)
14383       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14384       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14385       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14386       ;;
14387     mingw*)
14388       # MinGW DLLs use traditional 'lib' prefix
14389       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14391       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14392         # It is most probably a Windows format PATH printed by
14393         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14394         # path with ; separators, and with drive letters. We can handle the
14395         # drive letters (cygwin fileutils understands them), so leave them,
14396         # especially as we might pass files found there to a mingw objdump,
14397         # which wouldn't understand a cygwinified path. Ahh.
14398         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14399       else
14400         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14401       fi
14402       ;;
14403     pw32*)
14404       # pw32 DLLs use 'pw' prefix rather than 'lib'
14405       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14406       ;;
14407     esac
14408     ;;
14409
14410   *)
14411     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14412     ;;
14413   esac
14414   dynamic_linker='Win32 ld.exe'
14415   # FIXME: first we should search . and the directory the executable is in
14416   shlibpath_var=PATH
14417   ;;
14418
14419 darwin* | rhapsody*)
14420   dynamic_linker="$host_os dyld"
14421   version_type=darwin
14422   need_lib_prefix=no
14423   need_version=no
14424   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14425   soname_spec='${libname}${release}${major}$shared_ext'
14426   shlibpath_overrides_runpath=yes
14427   shlibpath_var=DYLD_LIBRARY_PATH
14428   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14429    
14430   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14431   ;;
14432
14433 dgux*)
14434   version_type=linux
14435   need_lib_prefix=no
14436   need_version=no
14437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14438   soname_spec='${libname}${release}${shared_ext}$major'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   ;;
14441
14442 freebsd1*)
14443   dynamic_linker=no
14444   ;;
14445
14446 freebsd* | dragonfly*)
14447   # DragonFly does not have aout.  When/if they implement a new
14448   # versioning mechanism, adjust this.
14449   if test -x /usr/bin/objformat; then
14450     objformat=`/usr/bin/objformat`
14451   else
14452     case $host_os in
14453     freebsd[123]*) objformat=aout ;;
14454     *) objformat=elf ;;
14455     esac
14456   fi
14457   version_type=freebsd-$objformat
14458   case $version_type in
14459     freebsd-elf*)
14460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14461       need_version=no
14462       need_lib_prefix=no
14463       ;;
14464     freebsd-*)
14465       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14466       need_version=yes
14467       ;;
14468   esac
14469   shlibpath_var=LD_LIBRARY_PATH
14470   case $host_os in
14471   freebsd2*)
14472     shlibpath_overrides_runpath=yes
14473     ;;
14474   freebsd3.[01]* | freebsdelf3.[01]*)
14475     shlibpath_overrides_runpath=yes
14476     hardcode_into_libs=yes
14477     ;;
14478   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14479   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14480     shlibpath_overrides_runpath=no
14481     hardcode_into_libs=yes
14482     ;;
14483   *) # from 4.6 on, and DragonFly
14484     shlibpath_overrides_runpath=yes
14485     hardcode_into_libs=yes
14486     ;;
14487   esac
14488   ;;
14489
14490 gnu*)
14491   version_type=linux
14492   need_lib_prefix=no
14493   need_version=no
14494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14495   soname_spec='${libname}${release}${shared_ext}$major'
14496   shlibpath_var=LD_LIBRARY_PATH
14497   hardcode_into_libs=yes
14498   ;;
14499
14500 hpux9* | hpux10* | hpux11*)
14501   # Give a soname corresponding to the major version so that dld.sl refuses to
14502   # link against other versions.
14503   version_type=sunos
14504   need_lib_prefix=no
14505   need_version=no
14506   case $host_cpu in
14507   ia64*)
14508     shrext_cmds='.so'
14509     hardcode_into_libs=yes
14510     dynamic_linker="$host_os dld.so"
14511     shlibpath_var=LD_LIBRARY_PATH
14512     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514     soname_spec='${libname}${release}${shared_ext}$major'
14515     if test "X$HPUX_IA64_MODE" = X32; then
14516       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14517     else
14518       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14519     fi
14520     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14521     ;;
14522    hppa*64*)
14523      shrext_cmds='.sl'
14524      hardcode_into_libs=yes
14525      dynamic_linker="$host_os dld.sl"
14526      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14527      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14528      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529      soname_spec='${libname}${release}${shared_ext}$major'
14530      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14531      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14532      ;;
14533    *)
14534     shrext_cmds='.sl'
14535     dynamic_linker="$host_os dld.sl"
14536     shlibpath_var=SHLIB_PATH
14537     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539     soname_spec='${libname}${release}${shared_ext}$major'
14540     ;;
14541   esac
14542   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14543   postinstall_cmds='chmod 555 $lib'
14544   ;;
14545
14546 interix[3-9]*)
14547   version_type=linux
14548   need_lib_prefix=no
14549   need_version=no
14550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14551   soname_spec='${libname}${release}${shared_ext}$major'
14552   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14553   shlibpath_var=LD_LIBRARY_PATH
14554   shlibpath_overrides_runpath=no
14555   hardcode_into_libs=yes
14556   ;;
14557
14558 irix5* | irix6* | nonstopux*)
14559   case $host_os in
14560     nonstopux*) version_type=nonstopux ;;
14561     *)
14562         if test "$lt_cv_prog_gnu_ld" = yes; then
14563                 version_type=linux
14564         else
14565                 version_type=irix
14566         fi ;;
14567   esac
14568   need_lib_prefix=no
14569   need_version=no
14570   soname_spec='${libname}${release}${shared_ext}$major'
14571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14572   case $host_os in
14573   irix5* | nonstopux*)
14574     libsuff= shlibsuff=
14575     ;;
14576   *)
14577     case $LD in # libtool.m4 will add one of these switches to LD
14578     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14579       libsuff= shlibsuff= libmagic=32-bit;;
14580     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14581       libsuff=32 shlibsuff=N32 libmagic=N32;;
14582     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14583       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14584     *) libsuff= shlibsuff= libmagic=never-match;;
14585     esac
14586     ;;
14587   esac
14588   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14589   shlibpath_overrides_runpath=no
14590   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14591   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14592   hardcode_into_libs=yes
14593   ;;
14594
14595 # No shared lib support for Linux oldld, aout, or coff.
14596 linux*oldld* | linux*aout* | linux*coff*)
14597   dynamic_linker=no
14598   ;;
14599
14600 # This must be Linux ELF.
14601 linux* | k*bsd*-gnu)
14602   version_type=linux
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14608   shlibpath_var=LD_LIBRARY_PATH
14609   shlibpath_overrides_runpath=no
14610   # This implies no fast_install, which is unacceptable.
14611   # Some rework will be needed to allow for fast_install
14612   # before this can be enabled.
14613   hardcode_into_libs=yes
14614
14615   # Append ld.so.conf contents to the search path
14616   if test -f /etc/ld.so.conf; then
14617     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' ' '`
14618     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14619   fi
14620
14621   # We used to test for /lib/ld.so.1 and disable shared libraries on
14622   # powerpc, because MkLinux only supported shared libraries with the
14623   # GNU dynamic linker.  Since this was broken with cross compilers,
14624   # most powerpc-linux boxes support dynamic linking these days and
14625   # people can always --disable-shared, the test was removed, and we
14626   # assume the GNU/Linux dynamic linker is in use.
14627   dynamic_linker='GNU/Linux ld.so'
14628   ;;
14629
14630 netbsdelf*-gnu)
14631   version_type=linux
14632   need_lib_prefix=no
14633   need_version=no
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14635   soname_spec='${libname}${release}${shared_ext}$major'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=no
14638   hardcode_into_libs=yes
14639   dynamic_linker='NetBSD ld.elf_so'
14640   ;;
14641
14642 netbsd*)
14643   version_type=sunos
14644   need_lib_prefix=no
14645   need_version=no
14646   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14649     dynamic_linker='NetBSD (a.out) ld.so'
14650   else
14651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14652     soname_spec='${libname}${release}${shared_ext}$major'
14653     dynamic_linker='NetBSD ld.elf_so'
14654   fi
14655   shlibpath_var=LD_LIBRARY_PATH
14656   shlibpath_overrides_runpath=yes
14657   hardcode_into_libs=yes
14658   ;;
14659
14660 newsos6)
14661   version_type=linux
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   ;;
14666
14667 nto-qnx*)
14668   version_type=linux
14669   need_lib_prefix=no
14670   need_version=no
14671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672   soname_spec='${libname}${release}${shared_ext}$major'
14673   shlibpath_var=LD_LIBRARY_PATH
14674   shlibpath_overrides_runpath=yes
14675   ;;
14676
14677 openbsd*)
14678   version_type=sunos
14679   sys_lib_dlsearch_path_spec="/usr/lib"
14680   need_lib_prefix=no
14681   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14682   case $host_os in
14683     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14684     *)                         need_version=no  ;;
14685   esac
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14688   shlibpath_var=LD_LIBRARY_PATH
14689   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14690     case $host_os in
14691       openbsd2.[89] | openbsd2.[89].*)
14692         shlibpath_overrides_runpath=no
14693         ;;
14694       *)
14695         shlibpath_overrides_runpath=yes
14696         ;;
14697       esac
14698   else
14699     shlibpath_overrides_runpath=yes
14700   fi
14701   ;;
14702
14703 os2*)
14704   libname_spec='$name'
14705   shrext_cmds=".dll"
14706   need_lib_prefix=no
14707   library_names_spec='$libname${shared_ext} $libname.a'
14708   dynamic_linker='OS/2 ld.exe'
14709   shlibpath_var=LIBPATH
14710   ;;
14711
14712 osf3* | osf4* | osf5*)
14713   version_type=osf
14714   need_lib_prefix=no
14715   need_version=no
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14720   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14721   ;;
14722
14723 rdos*)
14724   dynamic_linker=no
14725   ;;
14726
14727 solaris*)
14728   version_type=linux
14729   need_lib_prefix=no
14730   need_version=no
14731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732   soname_spec='${libname}${release}${shared_ext}$major'
14733   shlibpath_var=LD_LIBRARY_PATH
14734   shlibpath_overrides_runpath=yes
14735   hardcode_into_libs=yes
14736   # ldd complains unless libraries are executable
14737   postinstall_cmds='chmod +x $lib'
14738   ;;
14739
14740 sunos4*)
14741   version_type=sunos
14742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14743   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14744   shlibpath_var=LD_LIBRARY_PATH
14745   shlibpath_overrides_runpath=yes
14746   if test "$with_gnu_ld" = yes; then
14747     need_lib_prefix=no
14748   fi
14749   need_version=yes
14750   ;;
14751
14752 sysv4 | sysv4.3*)
14753   version_type=linux
14754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755   soname_spec='${libname}${release}${shared_ext}$major'
14756   shlibpath_var=LD_LIBRARY_PATH
14757   case $host_vendor in
14758     sni)
14759       shlibpath_overrides_runpath=no
14760       need_lib_prefix=no
14761       export_dynamic_flag_spec='${wl}-Blargedynsym'
14762       runpath_var=LD_RUN_PATH
14763       ;;
14764     siemens)
14765       need_lib_prefix=no
14766       ;;
14767     motorola)
14768       need_lib_prefix=no
14769       need_version=no
14770       shlibpath_overrides_runpath=no
14771       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14772       ;;
14773   esac
14774   ;;
14775
14776 sysv4*MP*)
14777   if test -d /usr/nec ;then
14778     version_type=linux
14779     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14780     soname_spec='$libname${shared_ext}.$major'
14781     shlibpath_var=LD_LIBRARY_PATH
14782   fi
14783   ;;
14784
14785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14786   version_type=freebsd-elf
14787   need_lib_prefix=no
14788   need_version=no
14789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14790   soname_spec='${libname}${release}${shared_ext}$major'
14791   shlibpath_var=LD_LIBRARY_PATH
14792   hardcode_into_libs=yes
14793   if test "$with_gnu_ld" = yes; then
14794     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14795     shlibpath_overrides_runpath=no
14796   else
14797     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14798     shlibpath_overrides_runpath=yes
14799     case $host_os in
14800       sco3.2v5*)
14801         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14802         ;;
14803     esac
14804   fi
14805   sys_lib_dlsearch_path_spec='/usr/lib'
14806   ;;
14807
14808 uts4*)
14809   version_type=linux
14810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811   soname_spec='${libname}${release}${shared_ext}$major'
14812   shlibpath_var=LD_LIBRARY_PATH
14813   ;;
14814
14815 *)
14816   dynamic_linker=no
14817   ;;
14818 esac
14819 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14820 echo "${ECHO_T}$dynamic_linker" >&6; }
14821 test "$dynamic_linker" = no && can_build_shared=no
14822
14823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14824 if test "$GCC" = yes; then
14825   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14826 fi
14827
14828 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14830 hardcode_action_CXX=
14831 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14832    test -n "$runpath_var_CXX" || \
14833    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14834
14835   # We can hardcode non-existant directories.
14836   if test "$hardcode_direct_CXX" != no &&
14837      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14838      # have to relink, otherwise we might link with an installed library
14839      # when we should be linking with a yet-to-be-installed one
14840      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14841      test "$hardcode_minus_L_CXX" != no; then
14842     # Linking always hardcodes the temporary library directory.
14843     hardcode_action_CXX=relink
14844   else
14845     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14846     hardcode_action_CXX=immediate
14847   fi
14848 else
14849   # We cannot hardcode anything, or else we can only hardcode existing
14850   # directories.
14851   hardcode_action_CXX=unsupported
14852 fi
14853 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14854 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14855
14856 if test "$hardcode_action_CXX" = relink; then
14857   # Fast installation is not supported
14858   enable_fast_install=no
14859 elif test "$shlibpath_overrides_runpath" = yes ||
14860      test "$enable_shared" = no; then
14861   # Fast installation is not necessary
14862   enable_fast_install=needless
14863 fi
14864
14865
14866 # The else clause should only fire when bootstrapping the
14867 # libtool distribution, otherwise you forgot to ship ltmain.sh
14868 # with your package, and you will get complaints that there are
14869 # no rules to generate ltmain.sh.
14870 if test -f "$ltmain"; then
14871   # See if we are running on zsh, and set the options which allow our commands through
14872   # without removal of \ escapes.
14873   if test -n "${ZSH_VERSION+set}" ; then
14874     setopt NO_GLOB_SUBST
14875   fi
14876   # Now quote all the things that may contain metacharacters while being
14877   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14878   # variables and quote the copies for generation of the libtool script.
14879   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14880     SED SHELL STRIP \
14881     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14882     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14883     deplibs_check_method reload_flag reload_cmds need_locks \
14884     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14885     lt_cv_sys_global_symbol_to_c_name_address \
14886     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14887     old_postinstall_cmds old_postuninstall_cmds \
14888     compiler_CXX \
14889     CC_CXX \
14890     LD_CXX \
14891     lt_prog_compiler_wl_CXX \
14892     lt_prog_compiler_pic_CXX \
14893     lt_prog_compiler_static_CXX \
14894     lt_prog_compiler_no_builtin_flag_CXX \
14895     export_dynamic_flag_spec_CXX \
14896     thread_safe_flag_spec_CXX \
14897     whole_archive_flag_spec_CXX \
14898     enable_shared_with_static_runtimes_CXX \
14899     old_archive_cmds_CXX \
14900     old_archive_from_new_cmds_CXX \
14901     predep_objects_CXX \
14902     postdep_objects_CXX \
14903     predeps_CXX \
14904     postdeps_CXX \
14905     compiler_lib_search_path_CXX \
14906     archive_cmds_CXX \
14907     archive_expsym_cmds_CXX \
14908     postinstall_cmds_CXX \
14909     postuninstall_cmds_CXX \
14910     old_archive_from_expsyms_cmds_CXX \
14911     allow_undefined_flag_CXX \
14912     no_undefined_flag_CXX \
14913     export_symbols_cmds_CXX \
14914     hardcode_libdir_flag_spec_CXX \
14915     hardcode_libdir_flag_spec_ld_CXX \
14916     hardcode_libdir_separator_CXX \
14917     hardcode_automatic_CXX \
14918     module_cmds_CXX \
14919     module_expsym_cmds_CXX \
14920     lt_cv_prog_compiler_c_o_CXX \
14921     fix_srcfile_path_CXX \
14922     exclude_expsyms_CXX \
14923     include_expsyms_CXX; do
14924
14925     case $var in
14926     old_archive_cmds_CXX | \
14927     old_archive_from_new_cmds_CXX | \
14928     archive_cmds_CXX | \
14929     archive_expsym_cmds_CXX | \
14930     module_cmds_CXX | \
14931     module_expsym_cmds_CXX | \
14932     old_archive_from_expsyms_cmds_CXX | \
14933     export_symbols_cmds_CXX | \
14934     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14935     postinstall_cmds | postuninstall_cmds | \
14936     old_postinstall_cmds | old_postuninstall_cmds | \
14937     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14938       # Double-quote double-evaled strings.
14939       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14940       ;;
14941     *)
14942       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14943       ;;
14944     esac
14945   done
14946
14947   case $lt_echo in
14948   *'\$0 --fallback-echo"')
14949     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14950     ;;
14951   esac
14952
14953 cfgfile="$ofile"
14954
14955   cat <<__EOF__ >> "$cfgfile"
14956 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14957
14958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14959
14960 # Shell to use when invoking shell scripts.
14961 SHELL=$lt_SHELL
14962
14963 # Whether or not to build shared libraries.
14964 build_libtool_libs=$enable_shared
14965
14966 # Whether or not to build static libraries.
14967 build_old_libs=$enable_static
14968
14969 # Whether or not to add -lc for building shared libraries.
14970 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14971
14972 # Whether or not to disallow shared libs when runtime libs are static
14973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14974
14975 # Whether or not to optimize for fast installation.
14976 fast_install=$enable_fast_install
14977
14978 # The host system.
14979 host_alias=$host_alias
14980 host=$host
14981 host_os=$host_os
14982
14983 # The build system.
14984 build_alias=$build_alias
14985 build=$build
14986 build_os=$build_os
14987
14988 # An echo program that does not interpret backslashes.
14989 echo=$lt_echo
14990
14991 # The archiver.
14992 AR=$lt_AR
14993 AR_FLAGS=$lt_AR_FLAGS
14994
14995 # A C compiler.
14996 LTCC=$lt_LTCC
14997
14998 # LTCC compiler flags.
14999 LTCFLAGS=$lt_LTCFLAGS
15000
15001 # A language-specific compiler.
15002 CC=$lt_compiler_CXX
15003
15004 # Is the compiler the GNU C compiler?
15005 with_gcc=$GCC_CXX
15006
15007 # An ERE matcher.
15008 EGREP=$lt_EGREP
15009
15010 # The linker used to build libraries.
15011 LD=$lt_LD_CXX
15012
15013 # Whether we need hard or soft links.
15014 LN_S=$lt_LN_S
15015
15016 # A BSD-compatible nm program.
15017 NM=$lt_NM
15018
15019 # A symbol stripping program
15020 STRIP=$lt_STRIP
15021
15022 # Used to examine libraries when file_magic_cmd begins "file"
15023 MAGIC_CMD=$MAGIC_CMD
15024
15025 # Used on cygwin: DLL creation program.
15026 DLLTOOL="$DLLTOOL"
15027
15028 # Used on cygwin: object dumper.
15029 OBJDUMP="$OBJDUMP"
15030
15031 # Used on cygwin: assembler.
15032 AS="$AS"
15033
15034 # The name of the directory that contains temporary libtool files.
15035 objdir=$objdir
15036
15037 # How to create reloadable object files.
15038 reload_flag=$lt_reload_flag
15039 reload_cmds=$lt_reload_cmds
15040
15041 # How to pass a linker flag through the compiler.
15042 wl=$lt_lt_prog_compiler_wl_CXX
15043
15044 # Object file suffix (normally "o").
15045 objext="$ac_objext"
15046
15047 # Old archive suffix (normally "a").
15048 libext="$libext"
15049
15050 # Shared library suffix (normally ".so").
15051 shrext_cmds='$shrext_cmds'
15052
15053 # Executable file suffix (normally "").
15054 exeext="$exeext"
15055
15056 # Additional compiler flags for building library objects.
15057 pic_flag=$lt_lt_prog_compiler_pic_CXX
15058 pic_mode=$pic_mode
15059
15060 # What is the maximum length of a command?
15061 max_cmd_len=$lt_cv_sys_max_cmd_len
15062
15063 # Does compiler simultaneously support -c and -o options?
15064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15065
15066 # Must we lock files when doing compilation?
15067 need_locks=$lt_need_locks
15068
15069 # Do we need the lib prefix for modules?
15070 need_lib_prefix=$need_lib_prefix
15071
15072 # Do we need a version for libraries?
15073 need_version=$need_version
15074
15075 # Whether dlopen is supported.
15076 dlopen_support=$enable_dlopen
15077
15078 # Whether dlopen of programs is supported.
15079 dlopen_self=$enable_dlopen_self
15080
15081 # Whether dlopen of statically linked programs is supported.
15082 dlopen_self_static=$enable_dlopen_self_static
15083
15084 # Compiler flag to prevent dynamic linking.
15085 link_static_flag=$lt_lt_prog_compiler_static_CXX
15086
15087 # Compiler flag to turn off builtin functions.
15088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15089
15090 # Compiler flag to allow reflexive dlopens.
15091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15092
15093 # Compiler flag to generate shared objects directly from archives.
15094 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15095
15096 # Compiler flag to generate thread-safe objects.
15097 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15098
15099 # Library versioning type.
15100 version_type=$version_type
15101
15102 # Format of library name prefix.
15103 libname_spec=$lt_libname_spec
15104
15105 # List of archive names.  First name is the real one, the rest are links.
15106 # The last name is the one that the linker finds with -lNAME.
15107 library_names_spec=$lt_library_names_spec
15108
15109 # The coded name of the library, if different from the real name.
15110 soname_spec=$lt_soname_spec
15111
15112 # Commands used to build and install an old-style archive.
15113 RANLIB=$lt_RANLIB
15114 old_archive_cmds=$lt_old_archive_cmds_CXX
15115 old_postinstall_cmds=$lt_old_postinstall_cmds
15116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15117
15118 # Create an old-style archive from a shared archive.
15119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15120
15121 # Create a temporary old-style archive to link instead of a shared archive.
15122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15123
15124 # Commands used to build and install a shared archive.
15125 archive_cmds=$lt_archive_cmds_CXX
15126 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15127 postinstall_cmds=$lt_postinstall_cmds
15128 postuninstall_cmds=$lt_postuninstall_cmds
15129
15130 # Commands used to build a loadable module (assumed same as above if empty)
15131 module_cmds=$lt_module_cmds_CXX
15132 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15133
15134 # Commands to strip libraries.
15135 old_striplib=$lt_old_striplib
15136 striplib=$lt_striplib
15137
15138 # Dependencies to place before the objects being linked to create a
15139 # shared library.
15140 predep_objects=$lt_predep_objects_CXX
15141
15142 # Dependencies to place after the objects being linked to create a
15143 # shared library.
15144 postdep_objects=$lt_postdep_objects_CXX
15145
15146 # Dependencies to place before the objects being linked to create a
15147 # shared library.
15148 predeps=$lt_predeps_CXX
15149
15150 # Dependencies to place after the objects being linked to create a
15151 # shared library.
15152 postdeps=$lt_postdeps_CXX
15153
15154 # The library search path used internally by the compiler when linking
15155 # a shared library.
15156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15157
15158 # Method to check whether dependent libraries are shared objects.
15159 deplibs_check_method=$lt_deplibs_check_method
15160
15161 # Command to use when deplibs_check_method == file_magic.
15162 file_magic_cmd=$lt_file_magic_cmd
15163
15164 # Flag that allows shared libraries with undefined symbols to be built.
15165 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15166
15167 # Flag that forces no undefined symbols.
15168 no_undefined_flag=$lt_no_undefined_flag_CXX
15169
15170 # Commands used to finish a libtool library installation in a directory.
15171 finish_cmds=$lt_finish_cmds
15172
15173 # Same as above, but a single script fragment to be evaled but not shown.
15174 finish_eval=$lt_finish_eval
15175
15176 # Take the output of nm and produce a listing of raw symbols and C names.
15177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15178
15179 # Transform the output of nm in a proper C declaration
15180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15181
15182 # Transform the output of nm in a C name address pair
15183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15184
15185 # This is the shared library runtime path variable.
15186 runpath_var=$runpath_var
15187
15188 # This is the shared library path variable.
15189 shlibpath_var=$shlibpath_var
15190
15191 # Is shlibpath searched before the hard-coded library search path?
15192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15193
15194 # How to hardcode a shared library path into an executable.
15195 hardcode_action=$hardcode_action_CXX
15196
15197 # Whether we should hardcode library paths into libraries.
15198 hardcode_into_libs=$hardcode_into_libs
15199
15200 # Flag to hardcode \$libdir into a binary during linking.
15201 # This must work even if \$libdir does not exist.
15202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15203
15204 # If ld is used when linking, flag to hardcode \$libdir into
15205 # a binary during linking. This must work even if \$libdir does
15206 # not exist.
15207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15208
15209 # Whether we need a single -rpath flag with a separated argument.
15210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15211
15212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15213 # resulting binary.
15214 hardcode_direct=$hardcode_direct_CXX
15215
15216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15217 # resulting binary.
15218 hardcode_minus_L=$hardcode_minus_L_CXX
15219
15220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15221 # the resulting binary.
15222 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15223
15224 # Set to yes if building a shared library automatically hardcodes DIR into the library
15225 # and all subsequent libraries and executables linked against it.
15226 hardcode_automatic=$hardcode_automatic_CXX
15227
15228 # Variables whose values should be saved in libtool wrapper scripts and
15229 # restored at relink time.
15230 variables_saved_for_relink="$variables_saved_for_relink"
15231
15232 # Whether libtool must link a program against all its dependency libraries.
15233 link_all_deplibs=$link_all_deplibs_CXX
15234
15235 # Compile-time system search path for libraries
15236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15237
15238 # Run-time system search path for libraries
15239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15240
15241 # Fix the shell variable \$srcfile for the compiler.
15242 fix_srcfile_path=$lt_fix_srcfile_path
15243
15244 # Set to yes if exported symbols are required.
15245 always_export_symbols=$always_export_symbols_CXX
15246
15247 # The commands to list exported symbols.
15248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15249
15250 # The commands to extract the exported symbol list from a shared archive.
15251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15252
15253 # Symbols that should not be listed in the preloaded symbols.
15254 exclude_expsyms=$lt_exclude_expsyms_CXX
15255
15256 # Symbols that must always be exported.
15257 include_expsyms=$lt_include_expsyms_CXX
15258
15259 # ### END LIBTOOL TAG CONFIG: $tagname
15260
15261 __EOF__
15262
15263
15264 else
15265   # If there is no Makefile yet, we rely on a make rule to execute
15266   # `config.status --recheck' to rerun these tests and create the
15267   # libtool script then.
15268   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15269   if test -f "$ltmain_in"; then
15270     test -f Makefile && make "$ltmain"
15271   fi
15272 fi
15273
15274
15275 ac_ext=c
15276 ac_cpp='$CPP $CPPFLAGS'
15277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15280
15281 CC=$lt_save_CC
15282 LDCXX=$LD
15283 LD=$lt_save_LD
15284 GCC=$lt_save_GCC
15285 with_gnu_ldcxx=$with_gnu_ld
15286 with_gnu_ld=$lt_save_with_gnu_ld
15287 lt_cv_path_LDCXX=$lt_cv_path_LD
15288 lt_cv_path_LD=$lt_save_path_LD
15289 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15290 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15291
15292         else
15293           tagname=""
15294         fi
15295         ;;
15296
15297       F77)
15298         if test -n "$F77" && test "X$F77" != "Xno"; then
15299           
15300 ac_ext=f
15301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15304
15305
15306 archive_cmds_need_lc_F77=no
15307 allow_undefined_flag_F77=
15308 always_export_symbols_F77=no
15309 archive_expsym_cmds_F77=
15310 export_dynamic_flag_spec_F77=
15311 hardcode_direct_F77=no
15312 hardcode_libdir_flag_spec_F77=
15313 hardcode_libdir_flag_spec_ld_F77=
15314 hardcode_libdir_separator_F77=
15315 hardcode_minus_L_F77=no
15316 hardcode_automatic_F77=no
15317 module_cmds_F77=
15318 module_expsym_cmds_F77=
15319 link_all_deplibs_F77=unknown
15320 old_archive_cmds_F77=$old_archive_cmds
15321 no_undefined_flag_F77=
15322 whole_archive_flag_spec_F77=
15323 enable_shared_with_static_runtimes_F77=no
15324
15325 # Source file extension for f77 test sources.
15326 ac_ext=f
15327
15328 # Object file extension for compiled f77 test sources.
15329 objext=o
15330 objext_F77=$objext
15331
15332 # Code to be used in simple compile tests
15333 lt_simple_compile_test_code="\
15334       subroutine t
15335       return
15336       end
15337 "
15338
15339 # Code to be used in simple link tests
15340 lt_simple_link_test_code="\
15341       program t
15342       end
15343 "
15344
15345 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15346
15347 # If no C compiler was specified, use CC.
15348 LTCC=${LTCC-"$CC"}
15349
15350 # If no C compiler flags were specified, use CFLAGS.
15351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15352
15353 # Allow CC to be a program name with arguments.
15354 compiler=$CC
15355
15356
15357 # save warnings/boilerplate of simple test code
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_compiler_boilerplate=`cat conftest.err`
15362 $rm conftest*
15363
15364 ac_outfile=conftest.$ac_objext
15365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15367 _lt_linker_boilerplate=`cat conftest.err`
15368 $rm conftest*
15369
15370
15371 # Allow CC to be a program name with arguments.
15372 lt_save_CC="$CC"
15373 CC=${F77-"f77"}
15374 compiler=$CC
15375 compiler_F77=$CC
15376 for cc_temp in $compiler""; do
15377   case $cc_temp in
15378     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15379     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15380     \-*) ;;
15381     *) break;;
15382   esac
15383 done
15384 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15385
15386
15387 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15388 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15389 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15390 echo "${ECHO_T}$can_build_shared" >&6; }
15391
15392 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15393 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15394 test "$can_build_shared" = "no" && enable_shared=no
15395
15396 # On AIX, shared libraries and static libraries use the same namespace, and
15397 # are all built from PIC.
15398 case $host_os in
15399 aix3*)
15400   test "$enable_shared" = yes && enable_static=no
15401   if test -n "$RANLIB"; then
15402     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15403     postinstall_cmds='$RANLIB $lib'
15404   fi
15405   ;;
15406 aix4* | aix5*)
15407   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15408     test "$enable_shared" = yes && enable_static=no
15409   fi
15410   ;;
15411 esac
15412 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15413 echo "${ECHO_T}$enable_shared" >&6; }
15414
15415 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15416 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15417 # Make sure either enable_shared or enable_static is yes.
15418 test "$enable_shared" = yes || enable_static=yes
15419 { echo "$as_me:$LINENO: result: $enable_static" >&5
15420 echo "${ECHO_T}$enable_static" >&6; }
15421
15422 GCC_F77="$G77"
15423 LD_F77="$LD"
15424
15425 lt_prog_compiler_wl_F77=
15426 lt_prog_compiler_pic_F77=
15427 lt_prog_compiler_static_F77=
15428
15429 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15431  
15432   if test "$GCC" = yes; then
15433     lt_prog_compiler_wl_F77='-Wl,'
15434     lt_prog_compiler_static_F77='-static'
15435
15436     case $host_os in
15437       aix*)
15438       # All AIX code is PIC.
15439       if test "$host_cpu" = ia64; then
15440         # AIX 5 now supports IA64 processor
15441         lt_prog_compiler_static_F77='-Bstatic'
15442       fi
15443       ;;
15444
15445     amigaos*)
15446       # FIXME: we need at least 68020 code to build shared libraries, but
15447       # adding the `-m68020' flag to GCC prevents building anything better,
15448       # like `-m68040'.
15449       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15450       ;;
15451
15452     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15453       # PIC is the default for these OSes.
15454       ;;
15455
15456     mingw* | cygwin* | pw32* | os2*)
15457       # This hack is so that the source file can tell whether it is being
15458       # built for inclusion in a dll (and should export symbols for example).
15459       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15460       # (--disable-auto-import) libraries
15461       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15462       ;;
15463
15464     darwin* | rhapsody*)
15465       # PIC is the default on this platform
15466       # Common symbols not allowed in MH_DYLIB files
15467       lt_prog_compiler_pic_F77='-fno-common'
15468       ;;
15469
15470     interix[3-9]*)
15471       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15472       # Instead, we relocate shared libraries at runtime.
15473       ;;
15474
15475     msdosdjgpp*)
15476       # Just because we use GCC doesn't mean we suddenly get shared libraries
15477       # on systems that don't support them.
15478       lt_prog_compiler_can_build_shared_F77=no
15479       enable_shared=no
15480       ;;
15481
15482     sysv4*MP*)
15483       if test -d /usr/nec; then
15484         lt_prog_compiler_pic_F77=-Kconform_pic
15485       fi
15486       ;;
15487
15488     hpux*)
15489       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15490       # not for PA HP-UX.
15491       case $host_cpu in
15492       hppa*64*|ia64*)
15493         # +Z the default
15494         ;;
15495       *)
15496         lt_prog_compiler_pic_F77='-fPIC'
15497         ;;
15498       esac
15499       ;;
15500
15501     *)
15502       lt_prog_compiler_pic_F77='-fPIC'
15503       ;;
15504     esac
15505   else
15506     # PORTME Check for flag to pass linker flags through the system compiler.
15507     case $host_os in
15508     aix*)
15509       lt_prog_compiler_wl_F77='-Wl,'
15510       if test "$host_cpu" = ia64; then
15511         # AIX 5 now supports IA64 processor
15512         lt_prog_compiler_static_F77='-Bstatic'
15513       else
15514         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15515       fi
15516       ;;
15517       darwin*)
15518         # PIC is the default on this platform
15519         # Common symbols not allowed in MH_DYLIB files
15520        case $cc_basename in
15521          xlc*)
15522          lt_prog_compiler_pic_F77='-qnocommon'
15523          lt_prog_compiler_wl_F77='-Wl,'
15524          ;;
15525        esac
15526        ;;
15527
15528     mingw* | cygwin* | pw32* | os2*)
15529       # This hack is so that the source file can tell whether it is being
15530       # built for inclusion in a dll (and should export symbols for example).
15531       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15532       ;;
15533
15534     hpux9* | hpux10* | hpux11*)
15535       lt_prog_compiler_wl_F77='-Wl,'
15536       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15537       # not for PA HP-UX.
15538       case $host_cpu in
15539       hppa*64*|ia64*)
15540         # +Z the default
15541         ;;
15542       *)
15543         lt_prog_compiler_pic_F77='+Z'
15544         ;;
15545       esac
15546       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15547       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15548       ;;
15549
15550     irix5* | irix6* | nonstopux*)
15551       lt_prog_compiler_wl_F77='-Wl,'
15552       # PIC (with -KPIC) is the default.
15553       lt_prog_compiler_static_F77='-non_shared'
15554       ;;
15555
15556     newsos6)
15557       lt_prog_compiler_pic_F77='-KPIC'
15558       lt_prog_compiler_static_F77='-Bstatic'
15559       ;;
15560
15561     linux* | k*bsd*-gnu)
15562       case $cc_basename in
15563       icc* | ecc*)
15564         lt_prog_compiler_wl_F77='-Wl,'
15565         lt_prog_compiler_pic_F77='-KPIC'
15566         lt_prog_compiler_static_F77='-static'
15567         ;;
15568       pgcc* | pgf77* | pgf90* | pgf95*)
15569         # Portland Group compilers (*not* the Pentium gcc compiler,
15570         # which looks to be a dead project)
15571         lt_prog_compiler_wl_F77='-Wl,'
15572         lt_prog_compiler_pic_F77='-fpic'
15573         lt_prog_compiler_static_F77='-Bstatic'
15574         ;;
15575       ccc*)
15576         lt_prog_compiler_wl_F77='-Wl,'
15577         # All Alpha code is PIC.
15578         lt_prog_compiler_static_F77='-non_shared'
15579         ;;
15580       *)
15581         case `$CC -V 2>&1 | sed 5q` in
15582         *Sun\ C*)
15583           # Sun C 5.9
15584           lt_prog_compiler_pic_F77='-KPIC'
15585           lt_prog_compiler_static_F77='-Bstatic'
15586           lt_prog_compiler_wl_F77='-Wl,'
15587           ;;
15588         *Sun\ F*)
15589           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15590           lt_prog_compiler_pic_F77='-KPIC'
15591           lt_prog_compiler_static_F77='-Bstatic'
15592           lt_prog_compiler_wl_F77=''
15593           ;;
15594         esac
15595         ;;
15596       esac
15597       ;;
15598
15599     osf3* | osf4* | osf5*)
15600       lt_prog_compiler_wl_F77='-Wl,'
15601       # All OSF/1 code is PIC.
15602       lt_prog_compiler_static_F77='-non_shared'
15603       ;;
15604
15605     rdos*)
15606       lt_prog_compiler_static_F77='-non_shared'
15607       ;;
15608
15609     solaris*)
15610       lt_prog_compiler_pic_F77='-KPIC'
15611       lt_prog_compiler_static_F77='-Bstatic'
15612       case $cc_basename in
15613       f77* | f90* | f95*)
15614         lt_prog_compiler_wl_F77='-Qoption ld ';;
15615       *)
15616         lt_prog_compiler_wl_F77='-Wl,';;
15617       esac
15618       ;;
15619
15620     sunos4*)
15621       lt_prog_compiler_wl_F77='-Qoption ld '
15622       lt_prog_compiler_pic_F77='-PIC'
15623       lt_prog_compiler_static_F77='-Bstatic'
15624       ;;
15625
15626     sysv4 | sysv4.2uw2* | sysv4.3*)
15627       lt_prog_compiler_wl_F77='-Wl,'
15628       lt_prog_compiler_pic_F77='-KPIC'
15629       lt_prog_compiler_static_F77='-Bstatic'
15630       ;;
15631
15632     sysv4*MP*)
15633       if test -d /usr/nec ;then
15634         lt_prog_compiler_pic_F77='-Kconform_pic'
15635         lt_prog_compiler_static_F77='-Bstatic'
15636       fi
15637       ;;
15638
15639     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15640       lt_prog_compiler_wl_F77='-Wl,'
15641       lt_prog_compiler_pic_F77='-KPIC'
15642       lt_prog_compiler_static_F77='-Bstatic'
15643       ;;
15644
15645     unicos*)
15646       lt_prog_compiler_wl_F77='-Wl,'
15647       lt_prog_compiler_can_build_shared_F77=no
15648       ;;
15649
15650     uts4*)
15651       lt_prog_compiler_pic_F77='-pic'
15652       lt_prog_compiler_static_F77='-Bstatic'
15653       ;;
15654
15655     *)
15656       lt_prog_compiler_can_build_shared_F77=no
15657       ;;
15658     esac
15659   fi
15660
15661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15662 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15663
15664 #
15665 # Check to make sure the PIC flag actually works.
15666 #
15667 if test -n "$lt_prog_compiler_pic_F77"; then
15668   
15669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15671 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   lt_prog_compiler_pic_works_F77=no
15675   ac_outfile=conftest.$ac_objext
15676    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15677    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15678    # Insert the option either (1) after the last *FLAGS variable, or
15679    # (2) before a word containing "conftest.", or (3) at the end.
15680    # Note that $ac_compile itself does not contain backslashes and begins
15681    # with a dollar sign (not a hyphen), so the echo should work correctly.
15682    # The option is referenced via a variable to avoid confusing sed.
15683    lt_compile=`echo "$ac_compile" | $SED \
15684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15686    -e 's:$: $lt_compiler_flag:'`
15687    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15688    (eval "$lt_compile" 2>conftest.err)
15689    ac_status=$?
15690    cat conftest.err >&5
15691    echo "$as_me:__oline__: \$? = $ac_status" >&5
15692    if (exit $ac_status) && test -s "$ac_outfile"; then
15693      # The compiler can only warn and ignore the option if not recognized
15694      # So say no if there are warnings other than the usual output.
15695      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15696      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15697      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15698        lt_prog_compiler_pic_works_F77=yes
15699      fi
15700    fi
15701    $rm conftest*
15702
15703 fi
15704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15705 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15706
15707 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15708     case $lt_prog_compiler_pic_F77 in
15709      "" | " "*) ;;
15710      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15711      esac
15712 else
15713     lt_prog_compiler_pic_F77=
15714      lt_prog_compiler_can_build_shared_F77=no
15715 fi
15716
15717 fi
15718 case $host_os in
15719   # For platforms which do not support PIC, -DPIC is meaningless:
15720   *djgpp*)
15721     lt_prog_compiler_pic_F77=
15722     ;;
15723   *)
15724     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15725     ;;
15726 esac
15727
15728 #
15729 # Check to make sure the static flag actually works.
15730 #
15731 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15734 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   lt_prog_compiler_static_works_F77=no
15738    save_LDFLAGS="$LDFLAGS"
15739    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15740    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15741    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15742      # The linker can only warn and ignore the option if not recognized
15743      # So say no if there are warnings
15744      if test -s conftest.err; then
15745        # Append any errors to the config.log.
15746        cat conftest.err 1>&5
15747        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15748        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15749        if diff conftest.exp conftest.er2 >/dev/null; then
15750          lt_prog_compiler_static_works_F77=yes
15751        fi
15752      else
15753        lt_prog_compiler_static_works_F77=yes
15754      fi
15755    fi
15756    $rm conftest*
15757    LDFLAGS="$save_LDFLAGS"
15758
15759 fi
15760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15761 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15762
15763 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15764     :
15765 else
15766     lt_prog_compiler_static_F77=
15767 fi
15768
15769
15770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15772 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   lt_cv_prog_compiler_c_o_F77=no
15776    $rm -r conftest 2>/dev/null
15777    mkdir conftest
15778    cd conftest
15779    mkdir out
15780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781
15782    lt_compiler_flag="-o out/conftest2.$ac_objext"
15783    # Insert the option either (1) after the last *FLAGS variable, or
15784    # (2) before a word containing "conftest.", or (3) at the end.
15785    # Note that $ac_compile itself does not contain backslashes and begins
15786    # with a dollar sign (not a hyphen), so the echo should work correctly.
15787    lt_compile=`echo "$ac_compile" | $SED \
15788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790    -e 's:$: $lt_compiler_flag:'`
15791    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15792    (eval "$lt_compile" 2>out/conftest.err)
15793    ac_status=$?
15794    cat out/conftest.err >&5
15795    echo "$as_me:__oline__: \$? = $ac_status" >&5
15796    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15797    then
15798      # The compiler can only warn and ignore the option if not recognized
15799      # So say no if there are warnings
15800      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15801      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15802      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15803        lt_cv_prog_compiler_c_o_F77=yes
15804      fi
15805    fi
15806    chmod u+w . 2>&5
15807    $rm conftest*
15808    # SGI C++ compiler will create directory out/ii_files/ for
15809    # template instantiation
15810    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15811    $rm out/* && rmdir out
15812    cd ..
15813    rmdir conftest
15814    $rm conftest*
15815
15816 fi
15817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15819
15820
15821 hard_links="nottested"
15822 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15823   # do not overwrite the value of need_locks provided by the user
15824   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15826   hard_links=yes
15827   $rm conftest*
15828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15829   touch conftest.a
15830   ln conftest.a conftest.b 2>&5 || hard_links=no
15831   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15832   { echo "$as_me:$LINENO: result: $hard_links" >&5
15833 echo "${ECHO_T}$hard_links" >&6; }
15834   if test "$hard_links" = no; then
15835     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15837     need_locks=warn
15838   fi
15839 else
15840   need_locks=no
15841 fi
15842
15843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15845
15846   runpath_var=
15847   allow_undefined_flag_F77=
15848   enable_shared_with_static_runtimes_F77=no
15849   archive_cmds_F77=
15850   archive_expsym_cmds_F77=
15851   old_archive_From_new_cmds_F77=
15852   old_archive_from_expsyms_cmds_F77=
15853   export_dynamic_flag_spec_F77=
15854   whole_archive_flag_spec_F77=
15855   thread_safe_flag_spec_F77=
15856   hardcode_libdir_flag_spec_F77=
15857   hardcode_libdir_flag_spec_ld_F77=
15858   hardcode_libdir_separator_F77=
15859   hardcode_direct_F77=no
15860   hardcode_minus_L_F77=no
15861   hardcode_shlibpath_var_F77=unsupported
15862   link_all_deplibs_F77=unknown
15863   hardcode_automatic_F77=no
15864   module_cmds_F77=
15865   module_expsym_cmds_F77=
15866   always_export_symbols_F77=no
15867   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15868   # include_expsyms should be a list of space-separated symbols to be *always*
15869   # included in the symbol list
15870   include_expsyms_F77=
15871   # exclude_expsyms can be an extended regexp of symbols to exclude
15872   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15873   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15874   # as well as any symbol that contains `d'.
15875   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15876   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15877   # platforms (ab)use it in PIC code, but their linkers get confused if
15878   # the symbol is explicitly referenced.  Since portable code cannot
15879   # rely on this symbol name, it's probably fine to never include it in
15880   # preloaded symbol tables.
15881   extract_expsyms_cmds=
15882   # Just being paranoid about ensuring that cc_basename is set.
15883   for cc_temp in $compiler""; do
15884   case $cc_temp in
15885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15887     \-*) ;;
15888     *) break;;
15889   esac
15890 done
15891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15892
15893   case $host_os in
15894   cygwin* | mingw* | pw32*)
15895     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15896     # When not using gcc, we currently assume that we are using
15897     # Microsoft Visual C++.
15898     if test "$GCC" != yes; then
15899       with_gnu_ld=no
15900     fi
15901     ;;
15902   interix*)
15903     # we just hope/assume this is gcc and not c89 (= MSVC++)
15904     with_gnu_ld=yes
15905     ;;
15906   openbsd*)
15907     with_gnu_ld=no
15908     ;;
15909   esac
15910
15911   ld_shlibs_F77=yes
15912   if test "$with_gnu_ld" = yes; then
15913     # If archive_cmds runs LD, not CC, wlarc should be empty
15914     wlarc='${wl}'
15915
15916     # Set some defaults for GNU ld with shared library support. These
15917     # are reset later if shared libraries are not supported. Putting them
15918     # here allows them to be overridden if necessary.
15919     runpath_var=LD_RUN_PATH
15920     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15921     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15922     # ancient GNU ld didn't support --whole-archive et. al.
15923     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15924         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15925       else
15926         whole_archive_flag_spec_F77=
15927     fi
15928     supports_anon_versioning=no
15929     case `$LD -v 2>/dev/null` in
15930       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15931       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15932       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15933       *\ 2.11.*) ;; # other 2.11 versions
15934       *) supports_anon_versioning=yes ;;
15935     esac
15936
15937     # See if GNU ld supports shared libraries.
15938     case $host_os in
15939     aix3* | aix4* | aix5*)
15940       # On AIX/PPC, the GNU linker is very broken
15941       if test "$host_cpu" != ia64; then
15942         ld_shlibs_F77=no
15943         cat <<EOF 1>&2
15944
15945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15946 *** to be unable to reliably create shared libraries on AIX.
15947 *** Therefore, libtool is disabling shared libraries support.  If you
15948 *** really care for shared libraries, you may want to modify your PATH
15949 *** so that a non-GNU linker is found, and then restart.
15950
15951 EOF
15952       fi
15953       ;;
15954
15955     amigaos*)
15956       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)'
15957       hardcode_libdir_flag_spec_F77='-L$libdir'
15958       hardcode_minus_L_F77=yes
15959
15960       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15961       # that the semantics of dynamic libraries on AmigaOS, at least up
15962       # to version 4, is to share data among multiple programs linked
15963       # with the same dynamic library.  Since this doesn't match the
15964       # behavior of shared libraries on other platforms, we can't use
15965       # them.
15966       ld_shlibs_F77=no
15967       ;;
15968
15969     beos*)
15970       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15971         allow_undefined_flag_F77=unsupported
15972         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15973         # support --undefined.  This deserves some investigation.  FIXME
15974         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15975       else
15976         ld_shlibs_F77=no
15977       fi
15978       ;;
15979
15980     cygwin* | mingw* | pw32*)
15981       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15982       # as there is no search path for DLLs.
15983       hardcode_libdir_flag_spec_F77='-L$libdir'
15984       allow_undefined_flag_F77=unsupported
15985       always_export_symbols_F77=no
15986       enable_shared_with_static_runtimes_F77=yes
15987       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15988
15989       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15990         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15991         # If the export-symbols file already is a .def file (1st line
15992         # is EXPORTS), use it as is; otherwise, prepend...
15993         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15994           cp $export_symbols $output_objdir/$soname.def;
15995         else
15996           echo EXPORTS > $output_objdir/$soname.def;
15997           cat $export_symbols >> $output_objdir/$soname.def;
15998         fi~
15999         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16000       else
16001         ld_shlibs_F77=no
16002       fi
16003       ;;
16004
16005     interix[3-9]*)
16006       hardcode_direct_F77=no
16007       hardcode_shlibpath_var_F77=no
16008       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16009       export_dynamic_flag_spec_F77='${wl}-E'
16010       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16011       # Instead, shared libraries are loaded at an image base (0x10000000 by
16012       # default) and relocated if they conflict, which is a slow very memory
16013       # consuming and fragmenting process.  To avoid this, we pick a random,
16014       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16015       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16016       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'
16017       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'
16018       ;;
16019
16020     gnu* | linux* | k*bsd*-gnu)
16021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16022         tmp_addflag=
16023         case $cc_basename,$host_cpu in
16024         pgcc*)                          # Portland Group C compiler
16025           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'
16026           tmp_addflag=' $pic_flag'
16027           ;;
16028         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16029           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'
16030           tmp_addflag=' $pic_flag -Mnomain' ;;
16031         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16032           tmp_addflag=' -i_dynamic' ;;
16033         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16034           tmp_addflag=' -i_dynamic -nofor_main' ;;
16035         ifc* | ifort*)                  # Intel Fortran compiler
16036           tmp_addflag=' -nofor_main' ;;
16037         esac
16038         case `$CC -V 2>&1 | sed 5q` in
16039         *Sun\ C*)                       # Sun C 5.9
16040           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'
16041           tmp_sharedflag='-G' ;;
16042         *Sun\ F*)                       # Sun Fortran 8.3
16043           tmp_sharedflag='-G' ;;
16044         *)
16045           tmp_sharedflag='-shared' ;;
16046         esac
16047         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048
16049         if test $supports_anon_versioning = yes; then
16050           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16051   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16052   $echo "local: *; };" >> $output_objdir/$libname.ver~
16053           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16054         fi
16055         link_all_deplibs_F77=no
16056       else
16057         ld_shlibs_F77=no
16058       fi
16059       ;;
16060
16061     netbsd* | netbsdelf*-gnu)
16062       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16063         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16064         wlarc=
16065       else
16066         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       fi
16069       ;;
16070
16071     solaris*)
16072       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16073         ld_shlibs_F77=no
16074         cat <<EOF 1>&2
16075
16076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16077 *** create shared libraries on Solaris systems.  Therefore, libtool
16078 *** is disabling shared libraries support.  We urge you to upgrade GNU
16079 *** binutils to release 2.9.1 or newer.  Another option is to modify
16080 *** your PATH or compiler configuration so that the native linker is
16081 *** used, and then restart.
16082
16083 EOF
16084       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16086         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16087       else
16088         ld_shlibs_F77=no
16089       fi
16090       ;;
16091
16092     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16093       case `$LD -v 2>&1` in
16094         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16095         ld_shlibs_F77=no
16096         cat <<_LT_EOF 1>&2
16097
16098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16099 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16100 *** is disabling shared libraries support.  We urge you to upgrade GNU
16101 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16102 *** your PATH or compiler configuration so that the native linker is
16103 *** used, and then restart.
16104
16105 _LT_EOF
16106         ;;
16107         *)
16108           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16110             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16111             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16112           else
16113             ld_shlibs_F77=no
16114           fi
16115         ;;
16116       esac
16117       ;;
16118
16119     sunos4*)
16120       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16121       wlarc=
16122       hardcode_direct_F77=yes
16123       hardcode_shlibpath_var_F77=no
16124       ;;
16125
16126     *)
16127       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16128         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16130       else
16131         ld_shlibs_F77=no
16132       fi
16133       ;;
16134     esac
16135
16136     if test "$ld_shlibs_F77" = no; then
16137       runpath_var=
16138       hardcode_libdir_flag_spec_F77=
16139       export_dynamic_flag_spec_F77=
16140       whole_archive_flag_spec_F77=
16141     fi
16142   else
16143     # PORTME fill in a description of your system's linker (not GNU ld)
16144     case $host_os in
16145     aix3*)
16146       allow_undefined_flag_F77=unsupported
16147       always_export_symbols_F77=yes
16148       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'
16149       # Note: this linker hardcodes the directories in LIBPATH if there
16150       # are no directories specified by -L.
16151       hardcode_minus_L_F77=yes
16152       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16153         # Neither direct hardcoding nor static linking is supported with a
16154         # broken collect2.
16155         hardcode_direct_F77=unsupported
16156       fi
16157       ;;
16158
16159     aix4* | aix5*)
16160       if test "$host_cpu" = ia64; then
16161         # On IA64, the linker does run time linking by default, so we don't
16162         # have to do anything special.
16163         aix_use_runtimelinking=no
16164         exp_sym_flag='-Bexport'
16165         no_entry_flag=""
16166       else
16167         # If we're using GNU nm, then we don't want the "-C" option.
16168         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16169         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16170           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'
16171         else
16172           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'
16173         fi
16174         aix_use_runtimelinking=no
16175
16176         # Test if we are trying to use run time linking or normal
16177         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16178         # need to do runtime linking.
16179         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16180           for ld_flag in $LDFLAGS; do
16181           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16182             aix_use_runtimelinking=yes
16183             break
16184           fi
16185           done
16186           ;;
16187         esac
16188
16189         exp_sym_flag='-bexport'
16190         no_entry_flag='-bnoentry'
16191       fi
16192
16193       # When large executables or shared objects are built, AIX ld can
16194       # have problems creating the table of contents.  If linking a library
16195       # or program results in "error TOC overflow" add -mminimal-toc to
16196       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16197       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16198
16199       archive_cmds_F77=''
16200       hardcode_direct_F77=yes
16201       hardcode_libdir_separator_F77=':'
16202       link_all_deplibs_F77=yes
16203
16204       if test "$GCC" = yes; then
16205         case $host_os in aix4.[012]|aix4.[012].*)
16206         # We only want to do this on AIX 4.2 and lower, the check
16207         # below for broken collect2 doesn't work under 4.3+
16208           collect2name=`${CC} -print-prog-name=collect2`
16209           if test -f "$collect2name" && \
16210            strings "$collect2name" | grep resolve_lib_name >/dev/null
16211           then
16212           # We have reworked collect2
16213           :
16214           else
16215           # We have old collect2
16216           hardcode_direct_F77=unsupported
16217           # It fails to find uninstalled libraries when the uninstalled
16218           # path is not listed in the libpath.  Setting hardcode_minus_L
16219           # to unsupported forces relinking
16220           hardcode_minus_L_F77=yes
16221           hardcode_libdir_flag_spec_F77='-L$libdir'
16222           hardcode_libdir_separator_F77=
16223           fi
16224           ;;
16225         esac
16226         shared_flag='-shared'
16227         if test "$aix_use_runtimelinking" = yes; then
16228           shared_flag="$shared_flag "'${wl}-G'
16229         fi
16230       else
16231         # not using gcc
16232         if test "$host_cpu" = ia64; then
16233         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16234         # chokes on -Wl,-G. The following line is correct:
16235           shared_flag='-G'
16236         else
16237           if test "$aix_use_runtimelinking" = yes; then
16238             shared_flag='${wl}-G'
16239           else
16240             shared_flag='${wl}-bM:SRE'
16241           fi
16242         fi
16243       fi
16244
16245       # It seems that -bexpall does not export symbols beginning with
16246       # underscore (_), so it is better to generate a list of symbols to export.
16247       always_export_symbols_F77=yes
16248       if test "$aix_use_runtimelinking" = yes; then
16249         # Warning - without using the other runtime loading flags (-brtl),
16250         # -berok will link without error, but may produce a broken library.
16251         allow_undefined_flag_F77='-berok'
16252        # Determine the default libpath from the value encoded in an empty executable.
16253        cat >conftest.$ac_ext <<_ACEOF
16254       program main
16255
16256       end
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_link") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } && {
16272          test -z "$ac_f77_werror_flag" ||
16273          test ! -s conftest.err
16274        } && test -s conftest$ac_exeext &&
16275        $as_test_x conftest$ac_exeext; then
16276   
16277 lt_aix_libpath_sed='
16278     /Import File Strings/,/^$/ {
16279         /^0/ {
16280             s/^0  *\(.*\)$/\1/
16281             p
16282         }
16283     }'
16284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16285 # Check for a 64-bit object if we didn't find anything.
16286 if test -z "$aix_libpath"; then
16287   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16288 fi
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297       conftest$ac_exeext conftest.$ac_ext
16298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16299
16300        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16301         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"
16302        else
16303         if test "$host_cpu" = ia64; then
16304           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16305           allow_undefined_flag_F77="-z nodefs"
16306           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"
16307         else
16308          # Determine the default libpath from the value encoded in an empty executable.
16309          cat >conftest.$ac_ext <<_ACEOF
16310       program main
16311
16312       end
16313 _ACEOF
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_link") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } && {
16328          test -z "$ac_f77_werror_flag" ||
16329          test ! -s conftest.err
16330        } && test -s conftest$ac_exeext &&
16331        $as_test_x conftest$ac_exeext; then
16332   
16333 lt_aix_libpath_sed='
16334     /Import File Strings/,/^$/ {
16335         /^0/ {
16336             s/^0  *\(.*\)$/\1/
16337             p
16338         }
16339     }'
16340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16341 # Check for a 64-bit object if we didn't find anything.
16342 if test -z "$aix_libpath"; then
16343   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16344 fi
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349         
16350 fi
16351
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353       conftest$ac_exeext conftest.$ac_ext
16354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16355
16356          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16357           # Warning - without using the other run time loading flags,
16358           # -berok will link without error, but may produce a broken library.
16359           no_undefined_flag_F77=' ${wl}-bernotok'
16360           allow_undefined_flag_F77=' ${wl}-berok'
16361           # Exported symbols can be pulled into shared objects from archives
16362           whole_archive_flag_spec_F77='$convenience'
16363           archive_cmds_need_lc_F77=yes
16364           # This is similar to how AIX traditionally builds its shared libraries.
16365           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'
16366         fi
16367       fi
16368       ;;
16369
16370     amigaos*)
16371       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)'
16372       hardcode_libdir_flag_spec_F77='-L$libdir'
16373       hardcode_minus_L_F77=yes
16374       # see comment about different semantics on the GNU ld section
16375       ld_shlibs_F77=no
16376       ;;
16377
16378     bsdi[45]*)
16379       export_dynamic_flag_spec_F77=-rdynamic
16380       ;;
16381
16382     cygwin* | mingw* | pw32*)
16383       # When not using gcc, we currently assume that we are using
16384       # Microsoft Visual C++.
16385       # hardcode_libdir_flag_spec is actually meaningless, as there is
16386       # no search path for DLLs.
16387       hardcode_libdir_flag_spec_F77=' '
16388       allow_undefined_flag_F77=unsupported
16389       # Tell ltmain to make .lib files, not .a files.
16390       libext=lib
16391       # Tell ltmain to make .dll files, not .so files.
16392       shrext_cmds=".dll"
16393       # FIXME: Setting linknames here is a bad hack.
16394       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16395       # The linker will automatically build a .lib file if we build a DLL.
16396       old_archive_From_new_cmds_F77='true'
16397       # FIXME: Should let the user specify the lib program.
16398       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16399       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16400       enable_shared_with_static_runtimes_F77=yes
16401       ;;
16402
16403     darwin* | rhapsody*)
16404       case $host_os in
16405         rhapsody* | darwin1.[012])
16406          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16407          ;;
16408        *) # Darwin 1.3 on
16409          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16410            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16411          else
16412            case ${MACOSX_DEPLOYMENT_TARGET} in
16413              10.[012])
16414                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16415                ;;
16416              10.*)
16417                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16418                ;;
16419            esac
16420          fi
16421          ;;
16422       esac
16423       archive_cmds_need_lc_F77=no
16424       hardcode_direct_F77=no
16425       hardcode_automatic_F77=yes
16426       hardcode_shlibpath_var_F77=unsupported
16427       whole_archive_flag_spec_F77=''
16428       link_all_deplibs_F77=yes
16429     if test "$GCC" = yes ; then
16430         output_verbose_link_cmd='echo'
16431         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16432       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16434       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}'
16435       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}'
16436     else
16437       case $cc_basename in
16438         xlc*)
16439          output_verbose_link_cmd='echo'
16440          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16441          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16443          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}'
16444           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}'
16445           ;;
16446        *)
16447          ld_shlibs_F77=no
16448           ;;
16449       esac
16450     fi
16451       ;;
16452
16453     dgux*)
16454       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455       hardcode_libdir_flag_spec_F77='-L$libdir'
16456       hardcode_shlibpath_var_F77=no
16457       ;;
16458
16459     freebsd1*)
16460       ld_shlibs_F77=no
16461       ;;
16462
16463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16464     # support.  Future versions do this automatically, but an explicit c++rt0.o
16465     # does not break anything, and helps significantly (at the cost of a little
16466     # extra space).
16467     freebsd2.2*)
16468       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16469       hardcode_libdir_flag_spec_F77='-R$libdir'
16470       hardcode_direct_F77=yes
16471       hardcode_shlibpath_var_F77=no
16472       ;;
16473
16474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16475     freebsd2*)
16476       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16477       hardcode_direct_F77=yes
16478       hardcode_minus_L_F77=yes
16479       hardcode_shlibpath_var_F77=no
16480       ;;
16481
16482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16483     freebsd* | dragonfly*)
16484       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16485       hardcode_libdir_flag_spec_F77='-R$libdir'
16486       hardcode_direct_F77=yes
16487       hardcode_shlibpath_var_F77=no
16488       ;;
16489
16490     hpux9*)
16491       if test "$GCC" = yes; then
16492         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'
16493       else
16494         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'
16495       fi
16496       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16497       hardcode_libdir_separator_F77=:
16498       hardcode_direct_F77=yes
16499
16500       # hardcode_minus_L: Not really in the search PATH,
16501       # but as the default location of the library.
16502       hardcode_minus_L_F77=yes
16503       export_dynamic_flag_spec_F77='${wl}-E'
16504       ;;
16505
16506     hpux10*)
16507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16508         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16509       else
16510         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16511       fi
16512       if test "$with_gnu_ld" = no; then
16513         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16514         hardcode_libdir_separator_F77=:
16515
16516         hardcode_direct_F77=yes
16517         export_dynamic_flag_spec_F77='${wl}-E'
16518
16519         # hardcode_minus_L: Not really in the search PATH,
16520         # but as the default location of the library.
16521         hardcode_minus_L_F77=yes
16522       fi
16523       ;;
16524
16525     hpux11*)
16526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16527         case $host_cpu in
16528         hppa*64*)
16529           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16530           ;;
16531         ia64*)
16532           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16533           ;;
16534         *)
16535           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16536           ;;
16537         esac
16538       else
16539         case $host_cpu in
16540         hppa*64*)
16541           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16542           ;;
16543         ia64*)
16544           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16545           ;;
16546         *)
16547           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16548           ;;
16549         esac
16550       fi
16551       if test "$with_gnu_ld" = no; then
16552         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16553         hardcode_libdir_separator_F77=:
16554
16555         case $host_cpu in
16556         hppa*64*|ia64*)
16557           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16558           hardcode_direct_F77=no
16559           hardcode_shlibpath_var_F77=no
16560           ;;
16561         *)
16562           hardcode_direct_F77=yes
16563           export_dynamic_flag_spec_F77='${wl}-E'
16564
16565           # hardcode_minus_L: Not really in the search PATH,
16566           # but as the default location of the library.
16567           hardcode_minus_L_F77=yes
16568           ;;
16569         esac
16570       fi
16571       ;;
16572
16573     irix5* | irix6* | nonstopux*)
16574       if test "$GCC" = yes; then
16575         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'
16576       else
16577         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'
16578         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16579       fi
16580       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16581       hardcode_libdir_separator_F77=:
16582       link_all_deplibs_F77=yes
16583       ;;
16584
16585     netbsd* | netbsdelf*-gnu)
16586       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16587         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16588       else
16589         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16590       fi
16591       hardcode_libdir_flag_spec_F77='-R$libdir'
16592       hardcode_direct_F77=yes
16593       hardcode_shlibpath_var_F77=no
16594       ;;
16595
16596     newsos6)
16597       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598       hardcode_direct_F77=yes
16599       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16600       hardcode_libdir_separator_F77=:
16601       hardcode_shlibpath_var_F77=no
16602       ;;
16603
16604     openbsd*)
16605       if test -f /usr/libexec/ld.so; then
16606         hardcode_direct_F77=yes
16607         hardcode_shlibpath_var_F77=no
16608         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16610           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16611           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16612           export_dynamic_flag_spec_F77='${wl}-E'
16613         else
16614           case $host_os in
16615            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16616              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16617              hardcode_libdir_flag_spec_F77='-R$libdir'
16618              ;;
16619            *)
16620              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16621              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16622              ;;
16623           esac
16624         fi
16625       else
16626         ld_shlibs_F77=no
16627       fi
16628       ;;
16629
16630     os2*)
16631       hardcode_libdir_flag_spec_F77='-L$libdir'
16632       hardcode_minus_L_F77=yes
16633       allow_undefined_flag_F77=unsupported
16634       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'
16635       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16636       ;;
16637
16638     osf3*)
16639       if test "$GCC" = yes; then
16640         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16641         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'
16642       else
16643         allow_undefined_flag_F77=' -expect_unresolved \*'
16644         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'
16645       fi
16646       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16647       hardcode_libdir_separator_F77=:
16648       ;;
16649
16650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16651       if test "$GCC" = yes; then
16652         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16653         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'
16654         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16655       else
16656         allow_undefined_flag_F77=' -expect_unresolved \*'
16657         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'
16658         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~
16659         $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'
16660
16661         # Both c and cxx compiler support -rpath directly
16662         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16663       fi
16664       hardcode_libdir_separator_F77=:
16665       ;;
16666
16667     solaris*)
16668       no_undefined_flag_F77=' -z text'
16669       if test "$GCC" = yes; then
16670         wlarc='${wl}'
16671         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16672         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16673           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16674       else
16675         wlarc=''
16676         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16679       fi
16680       hardcode_libdir_flag_spec_F77='-R$libdir'
16681       hardcode_shlibpath_var_F77=no
16682       case $host_os in
16683       solaris2.[0-5] | solaris2.[0-5].*) ;;
16684       *)
16685         # The compiler driver will combine and reorder linker options,
16686         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16687         # but is careful enough not to reorder.
16688         # Supported since Solaris 2.6 (maybe 2.5.1?)
16689         if test "$GCC" = yes; then
16690           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16691         else
16692           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16693         fi
16694         ;;
16695       esac
16696       link_all_deplibs_F77=yes
16697       ;;
16698
16699     sunos4*)
16700       if test "x$host_vendor" = xsequent; then
16701         # Use $CC to link under sequent, because it throws in some extra .o
16702         # files that make .init and .fini sections work.
16703         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16704       else
16705         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16706       fi
16707       hardcode_libdir_flag_spec_F77='-L$libdir'
16708       hardcode_direct_F77=yes
16709       hardcode_minus_L_F77=yes
16710       hardcode_shlibpath_var_F77=no
16711       ;;
16712
16713     sysv4)
16714       case $host_vendor in
16715         sni)
16716           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717           hardcode_direct_F77=yes # is this really true???
16718         ;;
16719         siemens)
16720           ## LD is ld it makes a PLAMLIB
16721           ## CC just makes a GrossModule.
16722           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16723           reload_cmds_F77='$CC -r -o $output$reload_objs'
16724           hardcode_direct_F77=no
16725         ;;
16726         motorola)
16727           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16729         ;;
16730       esac
16731       runpath_var='LD_RUN_PATH'
16732       hardcode_shlibpath_var_F77=no
16733       ;;
16734
16735     sysv4.3*)
16736       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737       hardcode_shlibpath_var_F77=no
16738       export_dynamic_flag_spec_F77='-Bexport'
16739       ;;
16740
16741     sysv4*MP*)
16742       if test -d /usr/nec; then
16743         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744         hardcode_shlibpath_var_F77=no
16745         runpath_var=LD_RUN_PATH
16746         hardcode_runpath_var=yes
16747         ld_shlibs_F77=yes
16748       fi
16749       ;;
16750
16751     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16752       no_undefined_flag_F77='${wl}-z,text'
16753       archive_cmds_need_lc_F77=no
16754       hardcode_shlibpath_var_F77=no
16755       runpath_var='LD_RUN_PATH'
16756
16757       if test "$GCC" = yes; then
16758         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16759         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16760       else
16761         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16762         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16763       fi
16764       ;;
16765
16766     sysv5* | sco3.2v5* | sco5v6*)
16767       # Note: We can NOT use -z defs as we might desire, because we do not
16768       # link with -lc, and that would cause any symbols used from libc to
16769       # always be unresolved, which means just about no library would
16770       # ever link correctly.  If we're not using GNU ld we use -z text
16771       # though, which does catch some bad symbols but isn't as heavy-handed
16772       # as -z defs.
16773       no_undefined_flag_F77='${wl}-z,text'
16774       allow_undefined_flag_F77='${wl}-z,nodefs'
16775       archive_cmds_need_lc_F77=no
16776       hardcode_shlibpath_var_F77=no
16777       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16778       hardcode_libdir_separator_F77=':'
16779       link_all_deplibs_F77=yes
16780       export_dynamic_flag_spec_F77='${wl}-Bexport'
16781       runpath_var='LD_RUN_PATH'
16782
16783       if test "$GCC" = yes; then
16784         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786       else
16787         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789       fi
16790       ;;
16791
16792     uts4*)
16793       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794       hardcode_libdir_flag_spec_F77='-L$libdir'
16795       hardcode_shlibpath_var_F77=no
16796       ;;
16797
16798     *)
16799       ld_shlibs_F77=no
16800       ;;
16801     esac
16802   fi
16803
16804 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16805 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16806 test "$ld_shlibs_F77" = no && can_build_shared=no
16807
16808 #
16809 # Do we need to explicitly link libc?
16810 #
16811 case "x$archive_cmds_need_lc_F77" in
16812 x|xyes)
16813   # Assume -lc should be added
16814   archive_cmds_need_lc_F77=yes
16815
16816   if test "$enable_shared" = yes && test "$GCC" = yes; then
16817     case $archive_cmds_F77 in
16818     *'~'*)
16819       # FIXME: we may have to deal with multi-command sequences.
16820       ;;
16821     '$CC '*)
16822       # Test whether the compiler implicitly links with -lc since on some
16823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824       # to ld, don't add -lc before -lgcc.
16825       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16827       $rm conftest*
16828       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
16830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831   (eval $ac_compile) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } 2>conftest.err; then
16835         soname=conftest
16836         lib=conftest
16837         libobjs=conftest.$ac_objext
16838         deplibs=
16839         wl=$lt_prog_compiler_wl_F77
16840         pic_flag=$lt_prog_compiler_pic_F77
16841         compiler_flags=-v
16842         linker_flags=-v
16843         verstring=
16844         output_objdir=.
16845         libname=conftest
16846         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16847         allow_undefined_flag_F77=
16848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16849   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); }
16853         then
16854           archive_cmds_need_lc_F77=no
16855         else
16856           archive_cmds_need_lc_F77=yes
16857         fi
16858         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16859       else
16860         cat conftest.err 1>&5
16861       fi
16862       $rm conftest*
16863       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16864 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16865       ;;
16866     esac
16867   fi
16868   ;;
16869 esac
16870
16871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16873 library_names_spec=
16874 libname_spec='lib$name'
16875 soname_spec=
16876 shrext_cmds=".so"
16877 postinstall_cmds=
16878 postuninstall_cmds=
16879 finish_cmds=
16880 finish_eval=
16881 shlibpath_var=
16882 shlibpath_overrides_runpath=unknown
16883 version_type=none
16884 dynamic_linker="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16886
16887 need_lib_prefix=unknown
16888 hardcode_into_libs=no
16889
16890 # when you set need_version to no, make sure it does not cause -set_version
16891 # flags to be left without arguments
16892 need_version=unknown
16893
16894 case $host_os in
16895 aix3*)
16896   version_type=linux
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16898   shlibpath_var=LIBPATH
16899
16900   # AIX 3 has no versioning support, so we append a major version to the name.
16901   soname_spec='${libname}${release}${shared_ext}$major'
16902   ;;
16903
16904 aix4* | aix5*)
16905   version_type=linux
16906   need_lib_prefix=no
16907   need_version=no
16908   hardcode_into_libs=yes
16909   if test "$host_cpu" = ia64; then
16910     # AIX 5 supports IA64
16911     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16912     shlibpath_var=LD_LIBRARY_PATH
16913   else
16914     # With GCC up to 2.95.x, collect2 would create an import file
16915     # for dependence libraries.  The import file would start with
16916     # the line `#! .'.  This would cause the generated library to
16917     # depend on `.', always an invalid library.  This was fixed in
16918     # development snapshots of GCC prior to 3.0.
16919     case $host_os in
16920       aix4 | aix4.[01] | aix4.[01].*)
16921       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16922            echo ' yes '
16923            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16924         :
16925       else
16926         can_build_shared=no
16927       fi
16928       ;;
16929     esac
16930     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16931     # soname into executable. Probably we can add versioning support to
16932     # collect2, so additional links can be useful in future.
16933     if test "$aix_use_runtimelinking" = yes; then
16934       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16935       # instead of lib<name>.a to let people know that these are not
16936       # typical AIX shared libraries.
16937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938     else
16939       # We preserve .a as extension for shared libraries through AIX4.2
16940       # and later when we are not doing run time linking.
16941       library_names_spec='${libname}${release}.a $libname.a'
16942       soname_spec='${libname}${release}${shared_ext}$major'
16943     fi
16944     shlibpath_var=LIBPATH
16945   fi
16946   ;;
16947
16948 amigaos*)
16949   library_names_spec='$libname.ixlibrary $libname.a'
16950   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16951   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'
16952   ;;
16953
16954 beos*)
16955   library_names_spec='${libname}${shared_ext}'
16956   dynamic_linker="$host_os ld.so"
16957   shlibpath_var=LIBRARY_PATH
16958   ;;
16959
16960 bsdi[45]*)
16961   version_type=linux
16962   need_version=no
16963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16964   soname_spec='${libname}${release}${shared_ext}$major'
16965   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16968   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16969   # the default ld.so.conf also contains /usr/contrib/lib and
16970   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16971   # libtool to hard-code these into programs
16972   ;;
16973
16974 cygwin* | mingw* | pw32*)
16975   version_type=windows
16976   shrext_cmds=".dll"
16977   need_version=no
16978   need_lib_prefix=no
16979
16980   case $GCC,$host_os in
16981   yes,cygwin* | yes,mingw* | yes,pw32*)
16982     library_names_spec='$libname.dll.a'
16983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16984     postinstall_cmds='base_file=`basename \${file}`~
16985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16986       dldir=$destdir/`dirname \$dlpath`~
16987       test -d \$dldir || mkdir -p \$dldir~
16988       $install_prog $dir/$dlname \$dldir/$dlname~
16989       chmod a+x \$dldir/$dlname'
16990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991       dlpath=$dir/\$dldll~
16992        $rm \$dlpath'
16993     shlibpath_overrides_runpath=yes
16994
16995     case $host_os in
16996     cygwin*)
16997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17000       ;;
17001     mingw*)
17002       # MinGW DLLs use traditional 'lib' prefix
17003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006         # It is most probably a Windows format PATH printed by
17007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008         # path with ; separators, and with drive letters. We can handle the
17009         # drive letters (cygwin fileutils understands them), so leave them,
17010         # especially as we might pass files found there to a mingw objdump,
17011         # which wouldn't understand a cygwinified path. Ahh.
17012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013       else
17014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17015       fi
17016       ;;
17017     pw32*)
17018       # pw32 DLLs use 'pw' prefix rather than 'lib'
17019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020       ;;
17021     esac
17022     ;;
17023
17024   *)
17025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026     ;;
17027   esac
17028   dynamic_linker='Win32 ld.exe'
17029   # FIXME: first we should search . and the directory the executable is in
17030   shlibpath_var=PATH
17031   ;;
17032
17033 darwin* | rhapsody*)
17034   dynamic_linker="$host_os dyld"
17035   version_type=darwin
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039   soname_spec='${libname}${release}${major}$shared_ext'
17040   shlibpath_overrides_runpath=yes
17041   shlibpath_var=DYLD_LIBRARY_PATH
17042   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17043    
17044   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045   ;;
17046
17047 dgux*)
17048   version_type=linux
17049   need_lib_prefix=no
17050   need_version=no
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052   soname_spec='${libname}${release}${shared_ext}$major'
17053   shlibpath_var=LD_LIBRARY_PATH
17054   ;;
17055
17056 freebsd1*)
17057   dynamic_linker=no
17058   ;;
17059
17060 freebsd* | dragonfly*)
17061   # DragonFly does not have aout.  When/if they implement a new
17062   # versioning mechanism, adjust this.
17063   if test -x /usr/bin/objformat; then
17064     objformat=`/usr/bin/objformat`
17065   else
17066     case $host_os in
17067     freebsd[123]*) objformat=aout ;;
17068     *) objformat=elf ;;
17069     esac
17070   fi
17071   version_type=freebsd-$objformat
17072   case $version_type in
17073     freebsd-elf*)
17074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17075       need_version=no
17076       need_lib_prefix=no
17077       ;;
17078     freebsd-*)
17079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080       need_version=yes
17081       ;;
17082   esac
17083   shlibpath_var=LD_LIBRARY_PATH
17084   case $host_os in
17085   freebsd2*)
17086     shlibpath_overrides_runpath=yes
17087     ;;
17088   freebsd3.[01]* | freebsdelf3.[01]*)
17089     shlibpath_overrides_runpath=yes
17090     hardcode_into_libs=yes
17091     ;;
17092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094     shlibpath_overrides_runpath=no
17095     hardcode_into_libs=yes
17096     ;;
17097   *) # from 4.6 on, and DragonFly
17098     shlibpath_overrides_runpath=yes
17099     hardcode_into_libs=yes
17100     ;;
17101   esac
17102   ;;
17103
17104 gnu*)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   hardcode_into_libs=yes
17112   ;;
17113
17114 hpux9* | hpux10* | hpux11*)
17115   # Give a soname corresponding to the major version so that dld.sl refuses to
17116   # link against other versions.
17117   version_type=sunos
17118   need_lib_prefix=no
17119   need_version=no
17120   case $host_cpu in
17121   ia64*)
17122     shrext_cmds='.so'
17123     hardcode_into_libs=yes
17124     dynamic_linker="$host_os dld.so"
17125     shlibpath_var=LD_LIBRARY_PATH
17126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128     soname_spec='${libname}${release}${shared_ext}$major'
17129     if test "X$HPUX_IA64_MODE" = X32; then
17130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17131     else
17132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133     fi
17134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17135     ;;
17136    hppa*64*)
17137      shrext_cmds='.sl'
17138      hardcode_into_libs=yes
17139      dynamic_linker="$host_os dld.sl"
17140      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17141      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143      soname_spec='${libname}${release}${shared_ext}$major'
17144      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17145      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17146      ;;
17147    *)
17148     shrext_cmds='.sl'
17149     dynamic_linker="$host_os dld.sl"
17150     shlibpath_var=SHLIB_PATH
17151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153     soname_spec='${libname}${release}${shared_ext}$major'
17154     ;;
17155   esac
17156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17157   postinstall_cmds='chmod 555 $lib'
17158   ;;
17159
17160 interix[3-9]*)
17161   version_type=linux
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=no
17169   hardcode_into_libs=yes
17170   ;;
17171
17172 irix5* | irix6* | nonstopux*)
17173   case $host_os in
17174     nonstopux*) version_type=nonstopux ;;
17175     *)
17176         if test "$lt_cv_prog_gnu_ld" = yes; then
17177                 version_type=linux
17178         else
17179                 version_type=irix
17180         fi ;;
17181   esac
17182   need_lib_prefix=no
17183   need_version=no
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186   case $host_os in
17187   irix5* | nonstopux*)
17188     libsuff= shlibsuff=
17189     ;;
17190   *)
17191     case $LD in # libtool.m4 will add one of these switches to LD
17192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193       libsuff= shlibsuff= libmagic=32-bit;;
17194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195       libsuff=32 shlibsuff=N32 libmagic=N32;;
17196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198     *) libsuff= shlibsuff= libmagic=never-match;;
17199     esac
17200     ;;
17201   esac
17202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203   shlibpath_overrides_runpath=no
17204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206   hardcode_into_libs=yes
17207   ;;
17208
17209 # No shared lib support for Linux oldld, aout, or coff.
17210 linux*oldld* | linux*aout* | linux*coff*)
17211   dynamic_linker=no
17212   ;;
17213
17214 # This must be Linux ELF.
17215 linux* | k*bsd*-gnu)
17216   version_type=linux
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=no
17224   # This implies no fast_install, which is unacceptable.
17225   # Some rework will be needed to allow for fast_install
17226   # before this can be enabled.
17227   hardcode_into_libs=yes
17228
17229   # Append ld.so.conf contents to the search path
17230   if test -f /etc/ld.so.conf; then
17231     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' ' '`
17232     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17233   fi
17234
17235   # We used to test for /lib/ld.so.1 and disable shared libraries on
17236   # powerpc, because MkLinux only supported shared libraries with the
17237   # GNU dynamic linker.  Since this was broken with cross compilers,
17238   # most powerpc-linux boxes support dynamic linking these days and
17239   # people can always --disable-shared, the test was removed, and we
17240   # assume the GNU/Linux dynamic linker is in use.
17241   dynamic_linker='GNU/Linux ld.so'
17242   ;;
17243
17244 netbsdelf*-gnu)
17245   version_type=linux
17246   need_lib_prefix=no
17247   need_version=no
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   shlibpath_overrides_runpath=no
17252   hardcode_into_libs=yes
17253   dynamic_linker='NetBSD ld.elf_so'
17254   ;;
17255
17256 netbsd*)
17257   version_type=sunos
17258   need_lib_prefix=no
17259   need_version=no
17260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17263     dynamic_linker='NetBSD (a.out) ld.so'
17264   else
17265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266     soname_spec='${libname}${release}${shared_ext}$major'
17267     dynamic_linker='NetBSD ld.elf_so'
17268   fi
17269   shlibpath_var=LD_LIBRARY_PATH
17270   shlibpath_overrides_runpath=yes
17271   hardcode_into_libs=yes
17272   ;;
17273
17274 newsos6)
17275   version_type=linux
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277   shlibpath_var=LD_LIBRARY_PATH
17278   shlibpath_overrides_runpath=yes
17279   ;;
17280
17281 nto-qnx*)
17282   version_type=linux
17283   need_lib_prefix=no
17284   need_version=no
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286   soname_spec='${libname}${release}${shared_ext}$major'
17287   shlibpath_var=LD_LIBRARY_PATH
17288   shlibpath_overrides_runpath=yes
17289   ;;
17290
17291 openbsd*)
17292   version_type=sunos
17293   sys_lib_dlsearch_path_spec="/usr/lib"
17294   need_lib_prefix=no
17295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17296   case $host_os in
17297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17298     *)                         need_version=no  ;;
17299   esac
17300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17302   shlibpath_var=LD_LIBRARY_PATH
17303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17304     case $host_os in
17305       openbsd2.[89] | openbsd2.[89].*)
17306         shlibpath_overrides_runpath=no
17307         ;;
17308       *)
17309         shlibpath_overrides_runpath=yes
17310         ;;
17311       esac
17312   else
17313     shlibpath_overrides_runpath=yes
17314   fi
17315   ;;
17316
17317 os2*)
17318   libname_spec='$name'
17319   shrext_cmds=".dll"
17320   need_lib_prefix=no
17321   library_names_spec='$libname${shared_ext} $libname.a'
17322   dynamic_linker='OS/2 ld.exe'
17323   shlibpath_var=LIBPATH
17324   ;;
17325
17326 osf3* | osf4* | osf5*)
17327   version_type=osf
17328   need_lib_prefix=no
17329   need_version=no
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332   shlibpath_var=LD_LIBRARY_PATH
17333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17335   ;;
17336
17337 rdos*)
17338   dynamic_linker=no
17339   ;;
17340
17341 solaris*)
17342   version_type=linux
17343   need_lib_prefix=no
17344   need_version=no
17345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346   soname_spec='${libname}${release}${shared_ext}$major'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   shlibpath_overrides_runpath=yes
17349   hardcode_into_libs=yes
17350   # ldd complains unless libraries are executable
17351   postinstall_cmds='chmod +x $lib'
17352   ;;
17353
17354 sunos4*)
17355   version_type=sunos
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17358   shlibpath_var=LD_LIBRARY_PATH
17359   shlibpath_overrides_runpath=yes
17360   if test "$with_gnu_ld" = yes; then
17361     need_lib_prefix=no
17362   fi
17363   need_version=yes
17364   ;;
17365
17366 sysv4 | sysv4.3*)
17367   version_type=linux
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   case $host_vendor in
17372     sni)
17373       shlibpath_overrides_runpath=no
17374       need_lib_prefix=no
17375       export_dynamic_flag_spec='${wl}-Blargedynsym'
17376       runpath_var=LD_RUN_PATH
17377       ;;
17378     siemens)
17379       need_lib_prefix=no
17380       ;;
17381     motorola)
17382       need_lib_prefix=no
17383       need_version=no
17384       shlibpath_overrides_runpath=no
17385       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17386       ;;
17387   esac
17388   ;;
17389
17390 sysv4*MP*)
17391   if test -d /usr/nec ;then
17392     version_type=linux
17393     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17394     soname_spec='$libname${shared_ext}.$major'
17395     shlibpath_var=LD_LIBRARY_PATH
17396   fi
17397   ;;
17398
17399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17400   version_type=freebsd-elf
17401   need_lib_prefix=no
17402   need_version=no
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17404   soname_spec='${libname}${release}${shared_ext}$major'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   hardcode_into_libs=yes
17407   if test "$with_gnu_ld" = yes; then
17408     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17409     shlibpath_overrides_runpath=no
17410   else
17411     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17412     shlibpath_overrides_runpath=yes
17413     case $host_os in
17414       sco3.2v5*)
17415         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17416         ;;
17417     esac
17418   fi
17419   sys_lib_dlsearch_path_spec='/usr/lib'
17420   ;;
17421
17422 uts4*)
17423   version_type=linux
17424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425   soname_spec='${libname}${release}${shared_ext}$major'
17426   shlibpath_var=LD_LIBRARY_PATH
17427   ;;
17428
17429 *)
17430   dynamic_linker=no
17431   ;;
17432 esac
17433 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17434 echo "${ECHO_T}$dynamic_linker" >&6; }
17435 test "$dynamic_linker" = no && can_build_shared=no
17436
17437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17438 if test "$GCC" = yes; then
17439   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17440 fi
17441
17442 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17444 hardcode_action_F77=
17445 if test -n "$hardcode_libdir_flag_spec_F77" || \
17446    test -n "$runpath_var_F77" || \
17447    test "X$hardcode_automatic_F77" = "Xyes" ; then
17448
17449   # We can hardcode non-existant directories.
17450   if test "$hardcode_direct_F77" != no &&
17451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452      # have to relink, otherwise we might link with an installed library
17453      # when we should be linking with a yet-to-be-installed one
17454      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17455      test "$hardcode_minus_L_F77" != no; then
17456     # Linking always hardcodes the temporary library directory.
17457     hardcode_action_F77=relink
17458   else
17459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460     hardcode_action_F77=immediate
17461   fi
17462 else
17463   # We cannot hardcode anything, or else we can only hardcode existing
17464   # directories.
17465   hardcode_action_F77=unsupported
17466 fi
17467 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17468 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17469
17470 if test "$hardcode_action_F77" = relink; then
17471   # Fast installation is not supported
17472   enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474      test "$enable_shared" = no; then
17475   # Fast installation is not necessary
17476   enable_fast_install=needless
17477 fi
17478
17479
17480 # The else clause should only fire when bootstrapping the
17481 # libtool distribution, otherwise you forgot to ship ltmain.sh
17482 # with your package, and you will get complaints that there are
17483 # no rules to generate ltmain.sh.
17484 if test -f "$ltmain"; then
17485   # See if we are running on zsh, and set the options which allow our commands through
17486   # without removal of \ escapes.
17487   if test -n "${ZSH_VERSION+set}" ; then
17488     setopt NO_GLOB_SUBST
17489   fi
17490   # Now quote all the things that may contain metacharacters while being
17491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17492   # variables and quote the copies for generation of the libtool script.
17493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17494     SED SHELL STRIP \
17495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17497     deplibs_check_method reload_flag reload_cmds need_locks \
17498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17499     lt_cv_sys_global_symbol_to_c_name_address \
17500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17501     old_postinstall_cmds old_postuninstall_cmds \
17502     compiler_F77 \
17503     CC_F77 \
17504     LD_F77 \
17505     lt_prog_compiler_wl_F77 \
17506     lt_prog_compiler_pic_F77 \
17507     lt_prog_compiler_static_F77 \
17508     lt_prog_compiler_no_builtin_flag_F77 \
17509     export_dynamic_flag_spec_F77 \
17510     thread_safe_flag_spec_F77 \
17511     whole_archive_flag_spec_F77 \
17512     enable_shared_with_static_runtimes_F77 \
17513     old_archive_cmds_F77 \
17514     old_archive_from_new_cmds_F77 \
17515     predep_objects_F77 \
17516     postdep_objects_F77 \
17517     predeps_F77 \
17518     postdeps_F77 \
17519     compiler_lib_search_path_F77 \
17520     archive_cmds_F77 \
17521     archive_expsym_cmds_F77 \
17522     postinstall_cmds_F77 \
17523     postuninstall_cmds_F77 \
17524     old_archive_from_expsyms_cmds_F77 \
17525     allow_undefined_flag_F77 \
17526     no_undefined_flag_F77 \
17527     export_symbols_cmds_F77 \
17528     hardcode_libdir_flag_spec_F77 \
17529     hardcode_libdir_flag_spec_ld_F77 \
17530     hardcode_libdir_separator_F77 \
17531     hardcode_automatic_F77 \
17532     module_cmds_F77 \
17533     module_expsym_cmds_F77 \
17534     lt_cv_prog_compiler_c_o_F77 \
17535     fix_srcfile_path_F77 \
17536     exclude_expsyms_F77 \
17537     include_expsyms_F77; do
17538
17539     case $var in
17540     old_archive_cmds_F77 | \
17541     old_archive_from_new_cmds_F77 | \
17542     archive_cmds_F77 | \
17543     archive_expsym_cmds_F77 | \
17544     module_cmds_F77 | \
17545     module_expsym_cmds_F77 | \
17546     old_archive_from_expsyms_cmds_F77 | \
17547     export_symbols_cmds_F77 | \
17548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17549     postinstall_cmds | postuninstall_cmds | \
17550     old_postinstall_cmds | old_postuninstall_cmds | \
17551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17552       # Double-quote double-evaled strings.
17553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17554       ;;
17555     *)
17556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17557       ;;
17558     esac
17559   done
17560
17561   case $lt_echo in
17562   *'\$0 --fallback-echo"')
17563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17564     ;;
17565   esac
17566
17567 cfgfile="$ofile"
17568
17569   cat <<__EOF__ >> "$cfgfile"
17570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17571
17572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17573
17574 # Shell to use when invoking shell scripts.
17575 SHELL=$lt_SHELL
17576
17577 # Whether or not to build shared libraries.
17578 build_libtool_libs=$enable_shared
17579
17580 # Whether or not to build static libraries.
17581 build_old_libs=$enable_static
17582
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc_F77
17585
17586 # Whether or not to disallow shared libs when runtime libs are static
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17588
17589 # Whether or not to optimize for fast installation.
17590 fast_install=$enable_fast_install
17591
17592 # The host system.
17593 host_alias=$host_alias
17594 host=$host
17595 host_os=$host_os
17596
17597 # The build system.
17598 build_alias=$build_alias
17599 build=$build
17600 build_os=$build_os
17601
17602 # An echo program that does not interpret backslashes.
17603 echo=$lt_echo
17604
17605 # The archiver.
17606 AR=$lt_AR
17607 AR_FLAGS=$lt_AR_FLAGS
17608
17609 # A C compiler.
17610 LTCC=$lt_LTCC
17611
17612 # LTCC compiler flags.
17613 LTCFLAGS=$lt_LTCFLAGS
17614
17615 # A language-specific compiler.
17616 CC=$lt_compiler_F77
17617
17618 # Is the compiler the GNU C compiler?
17619 with_gcc=$GCC_F77
17620
17621 # An ERE matcher.
17622 EGREP=$lt_EGREP
17623
17624 # The linker used to build libraries.
17625 LD=$lt_LD_F77
17626
17627 # Whether we need hard or soft links.
17628 LN_S=$lt_LN_S
17629
17630 # A BSD-compatible nm program.
17631 NM=$lt_NM
17632
17633 # A symbol stripping program
17634 STRIP=$lt_STRIP
17635
17636 # Used to examine libraries when file_magic_cmd begins "file"
17637 MAGIC_CMD=$MAGIC_CMD
17638
17639 # Used on cygwin: DLL creation program.
17640 DLLTOOL="$DLLTOOL"
17641
17642 # Used on cygwin: object dumper.
17643 OBJDUMP="$OBJDUMP"
17644
17645 # Used on cygwin: assembler.
17646 AS="$AS"
17647
17648 # The name of the directory that contains temporary libtool files.
17649 objdir=$objdir
17650
17651 # How to create reloadable object files.
17652 reload_flag=$lt_reload_flag
17653 reload_cmds=$lt_reload_cmds
17654
17655 # How to pass a linker flag through the compiler.
17656 wl=$lt_lt_prog_compiler_wl_F77
17657
17658 # Object file suffix (normally "o").
17659 objext="$ac_objext"
17660
17661 # Old archive suffix (normally "a").
17662 libext="$libext"
17663
17664 # Shared library suffix (normally ".so").
17665 shrext_cmds='$shrext_cmds'
17666
17667 # Executable file suffix (normally "").
17668 exeext="$exeext"
17669
17670 # Additional compiler flags for building library objects.
17671 pic_flag=$lt_lt_prog_compiler_pic_F77
17672 pic_mode=$pic_mode
17673
17674 # What is the maximum length of a command?
17675 max_cmd_len=$lt_cv_sys_max_cmd_len
17676
17677 # Does compiler simultaneously support -c and -o options?
17678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17679
17680 # Must we lock files when doing compilation?
17681 need_locks=$lt_need_locks
17682
17683 # Do we need the lib prefix for modules?
17684 need_lib_prefix=$need_lib_prefix
17685
17686 # Do we need a version for libraries?
17687 need_version=$need_version
17688
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17691
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17694
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17697
17698 # Compiler flag to prevent dynamic linking.
17699 link_static_flag=$lt_lt_prog_compiler_static_F77
17700
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17703
17704 # Compiler flag to allow reflexive dlopens.
17705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17706
17707 # Compiler flag to generate shared objects directly from archives.
17708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17709
17710 # Compiler flag to generate thread-safe objects.
17711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17712
17713 # Library versioning type.
17714 version_type=$version_type
17715
17716 # Format of library name prefix.
17717 libname_spec=$lt_libname_spec
17718
17719 # List of archive names.  First name is the real one, the rest are links.
17720 # The last name is the one that the linker finds with -lNAME.
17721 library_names_spec=$lt_library_names_spec
17722
17723 # The coded name of the library, if different from the real name.
17724 soname_spec=$lt_soname_spec
17725
17726 # Commands used to build and install an old-style archive.
17727 RANLIB=$lt_RANLIB
17728 old_archive_cmds=$lt_old_archive_cmds_F77
17729 old_postinstall_cmds=$lt_old_postinstall_cmds
17730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17731
17732 # Create an old-style archive from a shared archive.
17733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17734
17735 # Create a temporary old-style archive to link instead of a shared archive.
17736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17737
17738 # Commands used to build and install a shared archive.
17739 archive_cmds=$lt_archive_cmds_F77
17740 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17741 postinstall_cmds=$lt_postinstall_cmds
17742 postuninstall_cmds=$lt_postuninstall_cmds
17743
17744 # Commands used to build a loadable module (assumed same as above if empty)
17745 module_cmds=$lt_module_cmds_F77
17746 module_expsym_cmds=$lt_module_expsym_cmds_F77
17747
17748 # Commands to strip libraries.
17749 old_striplib=$lt_old_striplib
17750 striplib=$lt_striplib
17751
17752 # Dependencies to place before the objects being linked to create a
17753 # shared library.
17754 predep_objects=$lt_predep_objects_F77
17755
17756 # Dependencies to place after the objects being linked to create a
17757 # shared library.
17758 postdep_objects=$lt_postdep_objects_F77
17759
17760 # Dependencies to place before the objects being linked to create a
17761 # shared library.
17762 predeps=$lt_predeps_F77
17763
17764 # Dependencies to place after the objects being linked to create a
17765 # shared library.
17766 postdeps=$lt_postdeps_F77
17767
17768 # The library search path used internally by the compiler when linking
17769 # a shared library.
17770 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17771
17772 # Method to check whether dependent libraries are shared objects.
17773 deplibs_check_method=$lt_deplibs_check_method
17774
17775 # Command to use when deplibs_check_method == file_magic.
17776 file_magic_cmd=$lt_file_magic_cmd
17777
17778 # Flag that allows shared libraries with undefined symbols to be built.
17779 allow_undefined_flag=$lt_allow_undefined_flag_F77
17780
17781 # Flag that forces no undefined symbols.
17782 no_undefined_flag=$lt_no_undefined_flag_F77
17783
17784 # Commands used to finish a libtool library installation in a directory.
17785 finish_cmds=$lt_finish_cmds
17786
17787 # Same as above, but a single script fragment to be evaled but not shown.
17788 finish_eval=$lt_finish_eval
17789
17790 # Take the output of nm and produce a listing of raw symbols and C names.
17791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17792
17793 # Transform the output of nm in a proper C declaration
17794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17795
17796 # Transform the output of nm in a C name address pair
17797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17798
17799 # This is the shared library runtime path variable.
17800 runpath_var=$runpath_var
17801
17802 # This is the shared library path variable.
17803 shlibpath_var=$shlibpath_var
17804
17805 # Is shlibpath searched before the hard-coded library search path?
17806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17807
17808 # How to hardcode a shared library path into an executable.
17809 hardcode_action=$hardcode_action_F77
17810
17811 # Whether we should hardcode library paths into libraries.
17812 hardcode_into_libs=$hardcode_into_libs
17813
17814 # Flag to hardcode \$libdir into a binary during linking.
17815 # This must work even if \$libdir does not exist.
17816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17817
17818 # If ld is used when linking, flag to hardcode \$libdir into
17819 # a binary during linking. This must work even if \$libdir does
17820 # not exist.
17821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17822
17823 # Whether we need a single -rpath flag with a separated argument.
17824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17825
17826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17827 # resulting binary.
17828 hardcode_direct=$hardcode_direct_F77
17829
17830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_minus_L=$hardcode_minus_L_F77
17833
17834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17835 # the resulting binary.
17836 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17837
17838 # Set to yes if building a shared library automatically hardcodes DIR into the library
17839 # and all subsequent libraries and executables linked against it.
17840 hardcode_automatic=$hardcode_automatic_F77
17841
17842 # Variables whose values should be saved in libtool wrapper scripts and
17843 # restored at relink time.
17844 variables_saved_for_relink="$variables_saved_for_relink"
17845
17846 # Whether libtool must link a program against all its dependency libraries.
17847 link_all_deplibs=$link_all_deplibs_F77
17848
17849 # Compile-time system search path for libraries
17850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17851
17852 # Run-time system search path for libraries
17853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17854
17855 # Fix the shell variable \$srcfile for the compiler.
17856 fix_srcfile_path=$lt_fix_srcfile_path
17857
17858 # Set to yes if exported symbols are required.
17859 always_export_symbols=$always_export_symbols_F77
17860
17861 # The commands to list exported symbols.
17862 export_symbols_cmds=$lt_export_symbols_cmds_F77
17863
17864 # The commands to extract the exported symbol list from a shared archive.
17865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17866
17867 # Symbols that should not be listed in the preloaded symbols.
17868 exclude_expsyms=$lt_exclude_expsyms_F77
17869
17870 # Symbols that must always be exported.
17871 include_expsyms=$lt_include_expsyms_F77
17872
17873 # ### END LIBTOOL TAG CONFIG: $tagname
17874
17875 __EOF__
17876
17877
17878 else
17879   # If there is no Makefile yet, we rely on a make rule to execute
17880   # `config.status --recheck' to rerun these tests and create the
17881   # libtool script then.
17882   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17883   if test -f "$ltmain_in"; then
17884     test -f Makefile && make "$ltmain"
17885   fi
17886 fi
17887
17888
17889 ac_ext=c
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17894
17895 CC="$lt_save_CC"
17896
17897         else
17898           tagname=""
17899         fi
17900         ;;
17901
17902       GCJ)
17903         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17904           
17905
17906 # Source file extension for Java test sources.
17907 ac_ext=java
17908
17909 # Object file extension for compiled Java test sources.
17910 objext=o
17911 objext_GCJ=$objext
17912
17913 # Code to be used in simple compile tests
17914 lt_simple_compile_test_code="class foo {}"
17915
17916 # Code to be used in simple link tests
17917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17918
17919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17920
17921 # If no C compiler was specified, use CC.
17922 LTCC=${LTCC-"$CC"}
17923
17924 # If no C compiler flags were specified, use CFLAGS.
17925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17926
17927 # Allow CC to be a program name with arguments.
17928 compiler=$CC
17929
17930
17931 # save warnings/boilerplate of simple test code
17932 ac_outfile=conftest.$ac_objext
17933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17935 _lt_compiler_boilerplate=`cat conftest.err`
17936 $rm conftest*
17937
17938 ac_outfile=conftest.$ac_objext
17939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17941 _lt_linker_boilerplate=`cat conftest.err`
17942 $rm conftest*
17943
17944
17945 # Allow CC to be a program name with arguments.
17946 lt_save_CC="$CC"
17947 CC=${GCJ-"gcj"}
17948 compiler=$CC
17949 compiler_GCJ=$CC
17950 for cc_temp in $compiler""; do
17951   case $cc_temp in
17952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17954     \-*) ;;
17955     *) break;;
17956   esac
17957 done
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17959
17960
17961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17962 archive_cmds_need_lc_GCJ=no
17963
17964 old_archive_cmds_GCJ=$old_archive_cmds
17965
17966
17967 lt_prog_compiler_no_builtin_flag_GCJ=
17968
17969 if test "$GCC" = yes; then
17970   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17971
17972   
17973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17976   echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978   lt_cv_prog_compiler_rtti_exceptions=no
17979   ac_outfile=conftest.$ac_objext
17980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981    lt_compiler_flag="-fno-rtti -fno-exceptions"
17982    # Insert the option either (1) after the last *FLAGS variable, or
17983    # (2) before a word containing "conftest.", or (3) at the end.
17984    # Note that $ac_compile itself does not contain backslashes and begins
17985    # with a dollar sign (not a hyphen), so the echo should work correctly.
17986    # The option is referenced via a variable to avoid confusing sed.
17987    lt_compile=`echo "$ac_compile" | $SED \
17988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17990    -e 's:$: $lt_compiler_flag:'`
17991    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17992    (eval "$lt_compile" 2>conftest.err)
17993    ac_status=$?
17994    cat conftest.err >&5
17995    echo "$as_me:__oline__: \$? = $ac_status" >&5
17996    if (exit $ac_status) && test -s "$ac_outfile"; then
17997      # The compiler can only warn and ignore the option if not recognized
17998      # So say no if there are warnings other than the usual output.
17999      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18002        lt_cv_prog_compiler_rtti_exceptions=yes
18003      fi
18004    fi
18005    $rm conftest*
18006
18007 fi
18008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18010
18011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18012     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18013 else
18014     :
18015 fi
18016
18017 fi
18018
18019 lt_prog_compiler_wl_GCJ=
18020 lt_prog_compiler_pic_GCJ=
18021 lt_prog_compiler_static_GCJ=
18022
18023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18025  
18026   if test "$GCC" = yes; then
18027     lt_prog_compiler_wl_GCJ='-Wl,'
18028     lt_prog_compiler_static_GCJ='-static'
18029
18030     case $host_os in
18031       aix*)
18032       # All AIX code is PIC.
18033       if test "$host_cpu" = ia64; then
18034         # AIX 5 now supports IA64 processor
18035         lt_prog_compiler_static_GCJ='-Bstatic'
18036       fi
18037       ;;
18038
18039     amigaos*)
18040       # FIXME: we need at least 68020 code to build shared libraries, but
18041       # adding the `-m68020' flag to GCC prevents building anything better,
18042       # like `-m68040'.
18043       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18044       ;;
18045
18046     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18047       # PIC is the default for these OSes.
18048       ;;
18049
18050     mingw* | cygwin* | pw32* | os2*)
18051       # This hack is so that the source file can tell whether it is being
18052       # built for inclusion in a dll (and should export symbols for example).
18053       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18054       # (--disable-auto-import) libraries
18055       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18056       ;;
18057
18058     darwin* | rhapsody*)
18059       # PIC is the default on this platform
18060       # Common symbols not allowed in MH_DYLIB files
18061       lt_prog_compiler_pic_GCJ='-fno-common'
18062       ;;
18063
18064     interix[3-9]*)
18065       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18066       # Instead, we relocate shared libraries at runtime.
18067       ;;
18068
18069     msdosdjgpp*)
18070       # Just because we use GCC doesn't mean we suddenly get shared libraries
18071       # on systems that don't support them.
18072       lt_prog_compiler_can_build_shared_GCJ=no
18073       enable_shared=no
18074       ;;
18075
18076     sysv4*MP*)
18077       if test -d /usr/nec; then
18078         lt_prog_compiler_pic_GCJ=-Kconform_pic
18079       fi
18080       ;;
18081
18082     hpux*)
18083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18084       # not for PA HP-UX.
18085       case $host_cpu in
18086       hppa*64*|ia64*)
18087         # +Z the default
18088         ;;
18089       *)
18090         lt_prog_compiler_pic_GCJ='-fPIC'
18091         ;;
18092       esac
18093       ;;
18094
18095     *)
18096       lt_prog_compiler_pic_GCJ='-fPIC'
18097       ;;
18098     esac
18099   else
18100     # PORTME Check for flag to pass linker flags through the system compiler.
18101     case $host_os in
18102     aix*)
18103       lt_prog_compiler_wl_GCJ='-Wl,'
18104       if test "$host_cpu" = ia64; then
18105         # AIX 5 now supports IA64 processor
18106         lt_prog_compiler_static_GCJ='-Bstatic'
18107       else
18108         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18109       fi
18110       ;;
18111       darwin*)
18112         # PIC is the default on this platform
18113         # Common symbols not allowed in MH_DYLIB files
18114        case $cc_basename in
18115          xlc*)
18116          lt_prog_compiler_pic_GCJ='-qnocommon'
18117          lt_prog_compiler_wl_GCJ='-Wl,'
18118          ;;
18119        esac
18120        ;;
18121
18122     mingw* | cygwin* | pw32* | os2*)
18123       # This hack is so that the source file can tell whether it is being
18124       # built for inclusion in a dll (and should export symbols for example).
18125       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18126       ;;
18127
18128     hpux9* | hpux10* | hpux11*)
18129       lt_prog_compiler_wl_GCJ='-Wl,'
18130       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18131       # not for PA HP-UX.
18132       case $host_cpu in
18133       hppa*64*|ia64*)
18134         # +Z the default
18135         ;;
18136       *)
18137         lt_prog_compiler_pic_GCJ='+Z'
18138         ;;
18139       esac
18140       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18141       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18142       ;;
18143
18144     irix5* | irix6* | nonstopux*)
18145       lt_prog_compiler_wl_GCJ='-Wl,'
18146       # PIC (with -KPIC) is the default.
18147       lt_prog_compiler_static_GCJ='-non_shared'
18148       ;;
18149
18150     newsos6)
18151       lt_prog_compiler_pic_GCJ='-KPIC'
18152       lt_prog_compiler_static_GCJ='-Bstatic'
18153       ;;
18154
18155     linux* | k*bsd*-gnu)
18156       case $cc_basename in
18157       icc* | ecc*)
18158         lt_prog_compiler_wl_GCJ='-Wl,'
18159         lt_prog_compiler_pic_GCJ='-KPIC'
18160         lt_prog_compiler_static_GCJ='-static'
18161         ;;
18162       pgcc* | pgf77* | pgf90* | pgf95*)
18163         # Portland Group compilers (*not* the Pentium gcc compiler,
18164         # which looks to be a dead project)
18165         lt_prog_compiler_wl_GCJ='-Wl,'
18166         lt_prog_compiler_pic_GCJ='-fpic'
18167         lt_prog_compiler_static_GCJ='-Bstatic'
18168         ;;
18169       ccc*)
18170         lt_prog_compiler_wl_GCJ='-Wl,'
18171         # All Alpha code is PIC.
18172         lt_prog_compiler_static_GCJ='-non_shared'
18173         ;;
18174       *)
18175         case `$CC -V 2>&1 | sed 5q` in
18176         *Sun\ C*)
18177           # Sun C 5.9
18178           lt_prog_compiler_pic_GCJ='-KPIC'
18179           lt_prog_compiler_static_GCJ='-Bstatic'
18180           lt_prog_compiler_wl_GCJ='-Wl,'
18181           ;;
18182         *Sun\ F*)
18183           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18184           lt_prog_compiler_pic_GCJ='-KPIC'
18185           lt_prog_compiler_static_GCJ='-Bstatic'
18186           lt_prog_compiler_wl_GCJ=''
18187           ;;
18188         esac
18189         ;;
18190       esac
18191       ;;
18192
18193     osf3* | osf4* | osf5*)
18194       lt_prog_compiler_wl_GCJ='-Wl,'
18195       # All OSF/1 code is PIC.
18196       lt_prog_compiler_static_GCJ='-non_shared'
18197       ;;
18198
18199     rdos*)
18200       lt_prog_compiler_static_GCJ='-non_shared'
18201       ;;
18202
18203     solaris*)
18204       lt_prog_compiler_pic_GCJ='-KPIC'
18205       lt_prog_compiler_static_GCJ='-Bstatic'
18206       case $cc_basename in
18207       f77* | f90* | f95*)
18208         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18209       *)
18210         lt_prog_compiler_wl_GCJ='-Wl,';;
18211       esac
18212       ;;
18213
18214     sunos4*)
18215       lt_prog_compiler_wl_GCJ='-Qoption ld '
18216       lt_prog_compiler_pic_GCJ='-PIC'
18217       lt_prog_compiler_static_GCJ='-Bstatic'
18218       ;;
18219
18220     sysv4 | sysv4.2uw2* | sysv4.3*)
18221       lt_prog_compiler_wl_GCJ='-Wl,'
18222       lt_prog_compiler_pic_GCJ='-KPIC'
18223       lt_prog_compiler_static_GCJ='-Bstatic'
18224       ;;
18225
18226     sysv4*MP*)
18227       if test -d /usr/nec ;then
18228         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18229         lt_prog_compiler_static_GCJ='-Bstatic'
18230       fi
18231       ;;
18232
18233     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18234       lt_prog_compiler_wl_GCJ='-Wl,'
18235       lt_prog_compiler_pic_GCJ='-KPIC'
18236       lt_prog_compiler_static_GCJ='-Bstatic'
18237       ;;
18238
18239     unicos*)
18240       lt_prog_compiler_wl_GCJ='-Wl,'
18241       lt_prog_compiler_can_build_shared_GCJ=no
18242       ;;
18243
18244     uts4*)
18245       lt_prog_compiler_pic_GCJ='-pic'
18246       lt_prog_compiler_static_GCJ='-Bstatic'
18247       ;;
18248
18249     *)
18250       lt_prog_compiler_can_build_shared_GCJ=no
18251       ;;
18252     esac
18253   fi
18254
18255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18257
18258 #
18259 # Check to make sure the PIC flag actually works.
18260 #
18261 if test -n "$lt_prog_compiler_pic_GCJ"; then
18262   
18263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   lt_prog_compiler_pic_works_GCJ=no
18269   ac_outfile=conftest.$ac_objext
18270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18271    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18272    # Insert the option either (1) after the last *FLAGS variable, or
18273    # (2) before a word containing "conftest.", or (3) at the end.
18274    # Note that $ac_compile itself does not contain backslashes and begins
18275    # with a dollar sign (not a hyphen), so the echo should work correctly.
18276    # The option is referenced via a variable to avoid confusing sed.
18277    lt_compile=`echo "$ac_compile" | $SED \
18278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18280    -e 's:$: $lt_compiler_flag:'`
18281    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18282    (eval "$lt_compile" 2>conftest.err)
18283    ac_status=$?
18284    cat conftest.err >&5
18285    echo "$as_me:__oline__: \$? = $ac_status" >&5
18286    if (exit $ac_status) && test -s "$ac_outfile"; then
18287      # The compiler can only warn and ignore the option if not recognized
18288      # So say no if there are warnings other than the usual output.
18289      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18290      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18291      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18292        lt_prog_compiler_pic_works_GCJ=yes
18293      fi
18294    fi
18295    $rm conftest*
18296
18297 fi
18298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18299 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18300
18301 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18302     case $lt_prog_compiler_pic_GCJ in
18303      "" | " "*) ;;
18304      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18305      esac
18306 else
18307     lt_prog_compiler_pic_GCJ=
18308      lt_prog_compiler_can_build_shared_GCJ=no
18309 fi
18310
18311 fi
18312 case $host_os in
18313   # For platforms which do not support PIC, -DPIC is meaningless:
18314   *djgpp*)
18315     lt_prog_compiler_pic_GCJ=
18316     ;;
18317   *)
18318     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18319     ;;
18320 esac
18321
18322 #
18323 # Check to make sure the static flag actually works.
18324 #
18325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18328 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   lt_prog_compiler_static_works_GCJ=no
18332    save_LDFLAGS="$LDFLAGS"
18333    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18334    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18335    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18336      # The linker can only warn and ignore the option if not recognized
18337      # So say no if there are warnings
18338      if test -s conftest.err; then
18339        # Append any errors to the config.log.
18340        cat conftest.err 1>&5
18341        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18342        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18343        if diff conftest.exp conftest.er2 >/dev/null; then
18344          lt_prog_compiler_static_works_GCJ=yes
18345        fi
18346      else
18347        lt_prog_compiler_static_works_GCJ=yes
18348      fi
18349    fi
18350    $rm conftest*
18351    LDFLAGS="$save_LDFLAGS"
18352
18353 fi
18354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18355 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18356
18357 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18358     :
18359 else
18360     lt_prog_compiler_static_GCJ=
18361 fi
18362
18363
18364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   lt_cv_prog_compiler_c_o_GCJ=no
18370    $rm -r conftest 2>/dev/null
18371    mkdir conftest
18372    cd conftest
18373    mkdir out
18374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18375
18376    lt_compiler_flag="-o out/conftest2.$ac_objext"
18377    # Insert the option either (1) after the last *FLAGS variable, or
18378    # (2) before a word containing "conftest.", or (3) at the end.
18379    # Note that $ac_compile itself does not contain backslashes and begins
18380    # with a dollar sign (not a hyphen), so the echo should work correctly.
18381    lt_compile=`echo "$ac_compile" | $SED \
18382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18384    -e 's:$: $lt_compiler_flag:'`
18385    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18386    (eval "$lt_compile" 2>out/conftest.err)
18387    ac_status=$?
18388    cat out/conftest.err >&5
18389    echo "$as_me:__oline__: \$? = $ac_status" >&5
18390    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18391    then
18392      # The compiler can only warn and ignore the option if not recognized
18393      # So say no if there are warnings
18394      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18395      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18396      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18397        lt_cv_prog_compiler_c_o_GCJ=yes
18398      fi
18399    fi
18400    chmod u+w . 2>&5
18401    $rm conftest*
18402    # SGI C++ compiler will create directory out/ii_files/ for
18403    # template instantiation
18404    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18405    $rm out/* && rmdir out
18406    cd ..
18407    rmdir conftest
18408    $rm conftest*
18409
18410 fi
18411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18413
18414
18415 hard_links="nottested"
18416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18417   # do not overwrite the value of need_locks provided by the user
18418   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18420   hard_links=yes
18421   $rm conftest*
18422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18423   touch conftest.a
18424   ln conftest.a conftest.b 2>&5 || hard_links=no
18425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18426   { echo "$as_me:$LINENO: result: $hard_links" >&5
18427 echo "${ECHO_T}$hard_links" >&6; }
18428   if test "$hard_links" = no; then
18429     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18431     need_locks=warn
18432   fi
18433 else
18434   need_locks=no
18435 fi
18436
18437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18439
18440   runpath_var=
18441   allow_undefined_flag_GCJ=
18442   enable_shared_with_static_runtimes_GCJ=no
18443   archive_cmds_GCJ=
18444   archive_expsym_cmds_GCJ=
18445   old_archive_From_new_cmds_GCJ=
18446   old_archive_from_expsyms_cmds_GCJ=
18447   export_dynamic_flag_spec_GCJ=
18448   whole_archive_flag_spec_GCJ=
18449   thread_safe_flag_spec_GCJ=
18450   hardcode_libdir_flag_spec_GCJ=
18451   hardcode_libdir_flag_spec_ld_GCJ=
18452   hardcode_libdir_separator_GCJ=
18453   hardcode_direct_GCJ=no
18454   hardcode_minus_L_GCJ=no
18455   hardcode_shlibpath_var_GCJ=unsupported
18456   link_all_deplibs_GCJ=unknown
18457   hardcode_automatic_GCJ=no
18458   module_cmds_GCJ=
18459   module_expsym_cmds_GCJ=
18460   always_export_symbols_GCJ=no
18461   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18462   # include_expsyms should be a list of space-separated symbols to be *always*
18463   # included in the symbol list
18464   include_expsyms_GCJ=
18465   # exclude_expsyms can be an extended regexp of symbols to exclude
18466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18468   # as well as any symbol that contains `d'.
18469   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18471   # platforms (ab)use it in PIC code, but their linkers get confused if
18472   # the symbol is explicitly referenced.  Since portable code cannot
18473   # rely on this symbol name, it's probably fine to never include it in
18474   # preloaded symbol tables.
18475   extract_expsyms_cmds=
18476   # Just being paranoid about ensuring that cc_basename is set.
18477   for cc_temp in $compiler""; do
18478   case $cc_temp in
18479     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18480     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18481     \-*) ;;
18482     *) break;;
18483   esac
18484 done
18485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18486
18487   case $host_os in
18488   cygwin* | mingw* | pw32*)
18489     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18490     # When not using gcc, we currently assume that we are using
18491     # Microsoft Visual C++.
18492     if test "$GCC" != yes; then
18493       with_gnu_ld=no
18494     fi
18495     ;;
18496   interix*)
18497     # we just hope/assume this is gcc and not c89 (= MSVC++)
18498     with_gnu_ld=yes
18499     ;;
18500   openbsd*)
18501     with_gnu_ld=no
18502     ;;
18503   esac
18504
18505   ld_shlibs_GCJ=yes
18506   if test "$with_gnu_ld" = yes; then
18507     # If archive_cmds runs LD, not CC, wlarc should be empty
18508     wlarc='${wl}'
18509
18510     # Set some defaults for GNU ld with shared library support. These
18511     # are reset later if shared libraries are not supported. Putting them
18512     # here allows them to be overridden if necessary.
18513     runpath_var=LD_RUN_PATH
18514     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18515     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18516     # ancient GNU ld didn't support --whole-archive et. al.
18517     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18518         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18519       else
18520         whole_archive_flag_spec_GCJ=
18521     fi
18522     supports_anon_versioning=no
18523     case `$LD -v 2>/dev/null` in
18524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18527       *\ 2.11.*) ;; # other 2.11 versions
18528       *) supports_anon_versioning=yes ;;
18529     esac
18530
18531     # See if GNU ld supports shared libraries.
18532     case $host_os in
18533     aix3* | aix4* | aix5*)
18534       # On AIX/PPC, the GNU linker is very broken
18535       if test "$host_cpu" != ia64; then
18536         ld_shlibs_GCJ=no
18537         cat <<EOF 1>&2
18538
18539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18540 *** to be unable to reliably create shared libraries on AIX.
18541 *** Therefore, libtool is disabling shared libraries support.  If you
18542 *** really care for shared libraries, you may want to modify your PATH
18543 *** so that a non-GNU linker is found, and then restart.
18544
18545 EOF
18546       fi
18547       ;;
18548
18549     amigaos*)
18550       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)'
18551       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552       hardcode_minus_L_GCJ=yes
18553
18554       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18555       # that the semantics of dynamic libraries on AmigaOS, at least up
18556       # to version 4, is to share data among multiple programs linked
18557       # with the same dynamic library.  Since this doesn't match the
18558       # behavior of shared libraries on other platforms, we can't use
18559       # them.
18560       ld_shlibs_GCJ=no
18561       ;;
18562
18563     beos*)
18564       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18565         allow_undefined_flag_GCJ=unsupported
18566         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18567         # support --undefined.  This deserves some investigation.  FIXME
18568         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18569       else
18570         ld_shlibs_GCJ=no
18571       fi
18572       ;;
18573
18574     cygwin* | mingw* | pw32*)
18575       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18576       # as there is no search path for DLLs.
18577       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18578       allow_undefined_flag_GCJ=unsupported
18579       always_export_symbols_GCJ=no
18580       enable_shared_with_static_runtimes_GCJ=yes
18581       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18582
18583       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18584         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18585         # If the export-symbols file already is a .def file (1st line
18586         # is EXPORTS), use it as is; otherwise, prepend...
18587         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18588           cp $export_symbols $output_objdir/$soname.def;
18589         else
18590           echo EXPORTS > $output_objdir/$soname.def;
18591           cat $export_symbols >> $output_objdir/$soname.def;
18592         fi~
18593         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18594       else
18595         ld_shlibs_GCJ=no
18596       fi
18597       ;;
18598
18599     interix[3-9]*)
18600       hardcode_direct_GCJ=no
18601       hardcode_shlibpath_var_GCJ=no
18602       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18603       export_dynamic_flag_spec_GCJ='${wl}-E'
18604       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18605       # Instead, shared libraries are loaded at an image base (0x10000000 by
18606       # default) and relocated if they conflict, which is a slow very memory
18607       # consuming and fragmenting process.  To avoid this, we pick a random,
18608       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18609       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18610       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'
18611       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'
18612       ;;
18613
18614     gnu* | linux* | k*bsd*-gnu)
18615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18616         tmp_addflag=
18617         case $cc_basename,$host_cpu in
18618         pgcc*)                          # Portland Group C compiler
18619           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'
18620           tmp_addflag=' $pic_flag'
18621           ;;
18622         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18623           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'
18624           tmp_addflag=' $pic_flag -Mnomain' ;;
18625         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18626           tmp_addflag=' -i_dynamic' ;;
18627         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18628           tmp_addflag=' -i_dynamic -nofor_main' ;;
18629         ifc* | ifort*)                  # Intel Fortran compiler
18630           tmp_addflag=' -nofor_main' ;;
18631         esac
18632         case `$CC -V 2>&1 | sed 5q` in
18633         *Sun\ C*)                       # Sun C 5.9
18634           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'
18635           tmp_sharedflag='-G' ;;
18636         *Sun\ F*)                       # Sun Fortran 8.3
18637           tmp_sharedflag='-G' ;;
18638         *)
18639           tmp_sharedflag='-shared' ;;
18640         esac
18641         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642
18643         if test $supports_anon_versioning = yes; then
18644           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18645   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18646   $echo "local: *; };" >> $output_objdir/$libname.ver~
18647           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18648         fi
18649         link_all_deplibs_GCJ=no
18650       else
18651         ld_shlibs_GCJ=no
18652       fi
18653       ;;
18654
18655     netbsd* | netbsdelf*-gnu)
18656       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18657         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18658         wlarc=
18659       else
18660         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18661         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18662       fi
18663       ;;
18664
18665     solaris*)
18666       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18667         ld_shlibs_GCJ=no
18668         cat <<EOF 1>&2
18669
18670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18671 *** create shared libraries on Solaris systems.  Therefore, libtool
18672 *** is disabling shared libraries support.  We urge you to upgrade GNU
18673 *** binutils to release 2.9.1 or newer.  Another option is to modify
18674 *** your PATH or compiler configuration so that the native linker is
18675 *** used, and then restart.
18676
18677 EOF
18678       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18679         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18681       else
18682         ld_shlibs_GCJ=no
18683       fi
18684       ;;
18685
18686     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18687       case `$LD -v 2>&1` in
18688         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18689         ld_shlibs_GCJ=no
18690         cat <<_LT_EOF 1>&2
18691
18692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18693 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18694 *** is disabling shared libraries support.  We urge you to upgrade GNU
18695 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18696 *** your PATH or compiler configuration so that the native linker is
18697 *** used, and then restart.
18698
18699 _LT_EOF
18700         ;;
18701         *)
18702           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18703             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18704             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18705             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18706           else
18707             ld_shlibs_GCJ=no
18708           fi
18709         ;;
18710       esac
18711       ;;
18712
18713     sunos4*)
18714       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18715       wlarc=
18716       hardcode_direct_GCJ=yes
18717       hardcode_shlibpath_var_GCJ=no
18718       ;;
18719
18720     *)
18721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18722         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18724       else
18725         ld_shlibs_GCJ=no
18726       fi
18727       ;;
18728     esac
18729
18730     if test "$ld_shlibs_GCJ" = no; then
18731       runpath_var=
18732       hardcode_libdir_flag_spec_GCJ=
18733       export_dynamic_flag_spec_GCJ=
18734       whole_archive_flag_spec_GCJ=
18735     fi
18736   else
18737     # PORTME fill in a description of your system's linker (not GNU ld)
18738     case $host_os in
18739     aix3*)
18740       allow_undefined_flag_GCJ=unsupported
18741       always_export_symbols_GCJ=yes
18742       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'
18743       # Note: this linker hardcodes the directories in LIBPATH if there
18744       # are no directories specified by -L.
18745       hardcode_minus_L_GCJ=yes
18746       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18747         # Neither direct hardcoding nor static linking is supported with a
18748         # broken collect2.
18749         hardcode_direct_GCJ=unsupported
18750       fi
18751       ;;
18752
18753     aix4* | aix5*)
18754       if test "$host_cpu" = ia64; then
18755         # On IA64, the linker does run time linking by default, so we don't
18756         # have to do anything special.
18757         aix_use_runtimelinking=no
18758         exp_sym_flag='-Bexport'
18759         no_entry_flag=""
18760       else
18761         # If we're using GNU nm, then we don't want the "-C" option.
18762         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18763         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18764           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'
18765         else
18766           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'
18767         fi
18768         aix_use_runtimelinking=no
18769
18770         # Test if we are trying to use run time linking or normal
18771         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18772         # need to do runtime linking.
18773         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18774           for ld_flag in $LDFLAGS; do
18775           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18776             aix_use_runtimelinking=yes
18777             break
18778           fi
18779           done
18780           ;;
18781         esac
18782
18783         exp_sym_flag='-bexport'
18784         no_entry_flag='-bnoentry'
18785       fi
18786
18787       # When large executables or shared objects are built, AIX ld can
18788       # have problems creating the table of contents.  If linking a library
18789       # or program results in "error TOC overflow" add -mminimal-toc to
18790       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18791       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18792
18793       archive_cmds_GCJ=''
18794       hardcode_direct_GCJ=yes
18795       hardcode_libdir_separator_GCJ=':'
18796       link_all_deplibs_GCJ=yes
18797
18798       if test "$GCC" = yes; then
18799         case $host_os in aix4.[012]|aix4.[012].*)
18800         # We only want to do this on AIX 4.2 and lower, the check
18801         # below for broken collect2 doesn't work under 4.3+
18802           collect2name=`${CC} -print-prog-name=collect2`
18803           if test -f "$collect2name" && \
18804            strings "$collect2name" | grep resolve_lib_name >/dev/null
18805           then
18806           # We have reworked collect2
18807           :
18808           else
18809           # We have old collect2
18810           hardcode_direct_GCJ=unsupported
18811           # It fails to find uninstalled libraries when the uninstalled
18812           # path is not listed in the libpath.  Setting hardcode_minus_L
18813           # to unsupported forces relinking
18814           hardcode_minus_L_GCJ=yes
18815           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18816           hardcode_libdir_separator_GCJ=
18817           fi
18818           ;;
18819         esac
18820         shared_flag='-shared'
18821         if test "$aix_use_runtimelinking" = yes; then
18822           shared_flag="$shared_flag "'${wl}-G'
18823         fi
18824       else
18825         # not using gcc
18826         if test "$host_cpu" = ia64; then
18827         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18828         # chokes on -Wl,-G. The following line is correct:
18829           shared_flag='-G'
18830         else
18831           if test "$aix_use_runtimelinking" = yes; then
18832             shared_flag='${wl}-G'
18833           else
18834             shared_flag='${wl}-bM:SRE'
18835           fi
18836         fi
18837       fi
18838
18839       # It seems that -bexpall does not export symbols beginning with
18840       # underscore (_), so it is better to generate a list of symbols to export.
18841       always_export_symbols_GCJ=yes
18842       if test "$aix_use_runtimelinking" = yes; then
18843         # Warning - without using the other runtime loading flags (-brtl),
18844         # -berok will link without error, but may produce a broken library.
18845         allow_undefined_flag_GCJ='-berok'
18846        # Determine the default libpath from the value encoded in an empty executable.
18847        cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853
18854 int
18855 main ()
18856 {
18857
18858   ;
18859   return 0;
18860 }
18861 _ACEOF
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_link") 2>conftest.er1
18870   ac_status=$?
18871   grep -v '^ *+' conftest.er1 >conftest.err
18872   rm -f conftest.er1
18873   cat conftest.err >&5
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); } && {
18876          test -z "$ac_c_werror_flag" ||
18877          test ! -s conftest.err
18878        } && test -s conftest$ac_exeext &&
18879        $as_test_x conftest$ac_exeext; then
18880   
18881 lt_aix_libpath_sed='
18882     /Import File Strings/,/^$/ {
18883         /^0/ {
18884             s/^0  *\(.*\)$/\1/
18885             p
18886         }
18887     }'
18888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18889 # Check for a 64-bit object if we didn't find anything.
18890 if test -z "$aix_libpath"; then
18891   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18892 fi
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897         
18898 fi
18899
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901       conftest$ac_exeext conftest.$ac_ext
18902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18903
18904        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18905         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"
18906        else
18907         if test "$host_cpu" = ia64; then
18908           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18909           allow_undefined_flag_GCJ="-z nodefs"
18910           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"
18911         else
18912          # Determine the default libpath from the value encoded in an empty executable.
18913          cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h.  */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h.  */
18919
18920 int
18921 main ()
18922 {
18923
18924   ;
18925   return 0;
18926 }
18927 _ACEOF
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_link") 2>conftest.er1
18936   ac_status=$?
18937   grep -v '^ *+' conftest.er1 >conftest.err
18938   rm -f conftest.er1
18939   cat conftest.err >&5
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); } && {
18942          test -z "$ac_c_werror_flag" ||
18943          test ! -s conftest.err
18944        } && test -s conftest$ac_exeext &&
18945        $as_test_x conftest$ac_exeext; then
18946   
18947 lt_aix_libpath_sed='
18948     /Import File Strings/,/^$/ {
18949         /^0/ {
18950             s/^0  *\(.*\)$/\1/
18951             p
18952         }
18953     }'
18954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 fi
18959 else
18960   echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963         
18964 fi
18965
18966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18967       conftest$ac_exeext conftest.$ac_ext
18968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18969
18970          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18971           # Warning - without using the other run time loading flags,
18972           # -berok will link without error, but may produce a broken library.
18973           no_undefined_flag_GCJ=' ${wl}-bernotok'
18974           allow_undefined_flag_GCJ=' ${wl}-berok'
18975           # Exported symbols can be pulled into shared objects from archives
18976           whole_archive_flag_spec_GCJ='$convenience'
18977           archive_cmds_need_lc_GCJ=yes
18978           # This is similar to how AIX traditionally builds its shared libraries.
18979           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'
18980         fi
18981       fi
18982       ;;
18983
18984     amigaos*)
18985       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)'
18986       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18987       hardcode_minus_L_GCJ=yes
18988       # see comment about different semantics on the GNU ld section
18989       ld_shlibs_GCJ=no
18990       ;;
18991
18992     bsdi[45]*)
18993       export_dynamic_flag_spec_GCJ=-rdynamic
18994       ;;
18995
18996     cygwin* | mingw* | pw32*)
18997       # When not using gcc, we currently assume that we are using
18998       # Microsoft Visual C++.
18999       # hardcode_libdir_flag_spec is actually meaningless, as there is
19000       # no search path for DLLs.
19001       hardcode_libdir_flag_spec_GCJ=' '
19002       allow_undefined_flag_GCJ=unsupported
19003       # Tell ltmain to make .lib files, not .a files.
19004       libext=lib
19005       # Tell ltmain to make .dll files, not .so files.
19006       shrext_cmds=".dll"
19007       # FIXME: Setting linknames here is a bad hack.
19008       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19009       # The linker will automatically build a .lib file if we build a DLL.
19010       old_archive_From_new_cmds_GCJ='true'
19011       # FIXME: Should let the user specify the lib program.
19012       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19013       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19014       enable_shared_with_static_runtimes_GCJ=yes
19015       ;;
19016
19017     darwin* | rhapsody*)
19018       case $host_os in
19019         rhapsody* | darwin1.[012])
19020          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19021          ;;
19022        *) # Darwin 1.3 on
19023          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19024            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19025          else
19026            case ${MACOSX_DEPLOYMENT_TARGET} in
19027              10.[012])
19028                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19029                ;;
19030              10.*)
19031                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19032                ;;
19033            esac
19034          fi
19035          ;;
19036       esac
19037       archive_cmds_need_lc_GCJ=no
19038       hardcode_direct_GCJ=no
19039       hardcode_automatic_GCJ=yes
19040       hardcode_shlibpath_var_GCJ=unsupported
19041       whole_archive_flag_spec_GCJ=''
19042       link_all_deplibs_GCJ=yes
19043     if test "$GCC" = yes ; then
19044         output_verbose_link_cmd='echo'
19045         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19046       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19047       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19048       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}'
19049       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}'
19050     else
19051       case $cc_basename in
19052         xlc*)
19053          output_verbose_link_cmd='echo'
19054          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19055          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19056           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19057          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}'
19058           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}'
19059           ;;
19060        *)
19061          ld_shlibs_GCJ=no
19062           ;;
19063       esac
19064     fi
19065       ;;
19066
19067     dgux*)
19068       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19070       hardcode_shlibpath_var_GCJ=no
19071       ;;
19072
19073     freebsd1*)
19074       ld_shlibs_GCJ=no
19075       ;;
19076
19077     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19078     # support.  Future versions do this automatically, but an explicit c++rt0.o
19079     # does not break anything, and helps significantly (at the cost of a little
19080     # extra space).
19081     freebsd2.2*)
19082       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19083       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19084       hardcode_direct_GCJ=yes
19085       hardcode_shlibpath_var_GCJ=no
19086       ;;
19087
19088     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19089     freebsd2*)
19090       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19091       hardcode_direct_GCJ=yes
19092       hardcode_minus_L_GCJ=yes
19093       hardcode_shlibpath_var_GCJ=no
19094       ;;
19095
19096     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19097     freebsd* | dragonfly*)
19098       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19099       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19100       hardcode_direct_GCJ=yes
19101       hardcode_shlibpath_var_GCJ=no
19102       ;;
19103
19104     hpux9*)
19105       if test "$GCC" = yes; then
19106         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'
19107       else
19108         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'
19109       fi
19110       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19111       hardcode_libdir_separator_GCJ=:
19112       hardcode_direct_GCJ=yes
19113
19114       # hardcode_minus_L: Not really in the search PATH,
19115       # but as the default location of the library.
19116       hardcode_minus_L_GCJ=yes
19117       export_dynamic_flag_spec_GCJ='${wl}-E'
19118       ;;
19119
19120     hpux10*)
19121       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19122         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19123       else
19124         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19125       fi
19126       if test "$with_gnu_ld" = no; then
19127         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19128         hardcode_libdir_separator_GCJ=:
19129
19130         hardcode_direct_GCJ=yes
19131         export_dynamic_flag_spec_GCJ='${wl}-E'
19132
19133         # hardcode_minus_L: Not really in the search PATH,
19134         # but as the default location of the library.
19135         hardcode_minus_L_GCJ=yes
19136       fi
19137       ;;
19138
19139     hpux11*)
19140       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19141         case $host_cpu in
19142         hppa*64*)
19143           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19144           ;;
19145         ia64*)
19146           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19147           ;;
19148         *)
19149           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19150           ;;
19151         esac
19152       else
19153         case $host_cpu in
19154         hppa*64*)
19155           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19156           ;;
19157         ia64*)
19158           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19159           ;;
19160         *)
19161           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19162           ;;
19163         esac
19164       fi
19165       if test "$with_gnu_ld" = no; then
19166         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19167         hardcode_libdir_separator_GCJ=:
19168
19169         case $host_cpu in
19170         hppa*64*|ia64*)
19171           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19172           hardcode_direct_GCJ=no
19173           hardcode_shlibpath_var_GCJ=no
19174           ;;
19175         *)
19176           hardcode_direct_GCJ=yes
19177           export_dynamic_flag_spec_GCJ='${wl}-E'
19178
19179           # hardcode_minus_L: Not really in the search PATH,
19180           # but as the default location of the library.
19181           hardcode_minus_L_GCJ=yes
19182           ;;
19183         esac
19184       fi
19185       ;;
19186
19187     irix5* | irix6* | nonstopux*)
19188       if test "$GCC" = yes; then
19189         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'
19190       else
19191         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'
19192         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19193       fi
19194       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19195       hardcode_libdir_separator_GCJ=:
19196       link_all_deplibs_GCJ=yes
19197       ;;
19198
19199     netbsd* | netbsdelf*-gnu)
19200       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19201         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19202       else
19203         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19204       fi
19205       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19206       hardcode_direct_GCJ=yes
19207       hardcode_shlibpath_var_GCJ=no
19208       ;;
19209
19210     newsos6)
19211       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19212       hardcode_direct_GCJ=yes
19213       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19214       hardcode_libdir_separator_GCJ=:
19215       hardcode_shlibpath_var_GCJ=no
19216       ;;
19217
19218     openbsd*)
19219       if test -f /usr/libexec/ld.so; then
19220         hardcode_direct_GCJ=yes
19221         hardcode_shlibpath_var_GCJ=no
19222         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19223           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19224           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19225           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19226           export_dynamic_flag_spec_GCJ='${wl}-E'
19227         else
19228           case $host_os in
19229            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19230              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19231              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19232              ;;
19233            *)
19234              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19235              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19236              ;;
19237           esac
19238         fi
19239       else
19240         ld_shlibs_GCJ=no
19241       fi
19242       ;;
19243
19244     os2*)
19245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246       hardcode_minus_L_GCJ=yes
19247       allow_undefined_flag_GCJ=unsupported
19248       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'
19249       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19250       ;;
19251
19252     osf3*)
19253       if test "$GCC" = yes; then
19254         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19255         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'
19256       else
19257         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19258         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'
19259       fi
19260       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19261       hardcode_libdir_separator_GCJ=:
19262       ;;
19263
19264     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19265       if test "$GCC" = yes; then
19266         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19267         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'
19268         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19269       else
19270         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19271         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'
19272         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~
19273         $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'
19274
19275         # Both c and cxx compiler support -rpath directly
19276         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19277       fi
19278       hardcode_libdir_separator_GCJ=:
19279       ;;
19280
19281     solaris*)
19282       no_undefined_flag_GCJ=' -z text'
19283       if test "$GCC" = yes; then
19284         wlarc='${wl}'
19285         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19286         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19287           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19288       else
19289         wlarc=''
19290         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19292         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19293       fi
19294       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19295       hardcode_shlibpath_var_GCJ=no
19296       case $host_os in
19297       solaris2.[0-5] | solaris2.[0-5].*) ;;
19298       *)
19299         # The compiler driver will combine and reorder linker options,
19300         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19301         # but is careful enough not to reorder.
19302         # Supported since Solaris 2.6 (maybe 2.5.1?)
19303         if test "$GCC" = yes; then
19304           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19305         else
19306           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19307         fi
19308         ;;
19309       esac
19310       link_all_deplibs_GCJ=yes
19311       ;;
19312
19313     sunos4*)
19314       if test "x$host_vendor" = xsequent; then
19315         # Use $CC to link under sequent, because it throws in some extra .o
19316         # files that make .init and .fini sections work.
19317         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19318       else
19319         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19320       fi
19321       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19322       hardcode_direct_GCJ=yes
19323       hardcode_minus_L_GCJ=yes
19324       hardcode_shlibpath_var_GCJ=no
19325       ;;
19326
19327     sysv4)
19328       case $host_vendor in
19329         sni)
19330           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19331           hardcode_direct_GCJ=yes # is this really true???
19332         ;;
19333         siemens)
19334           ## LD is ld it makes a PLAMLIB
19335           ## CC just makes a GrossModule.
19336           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19337           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19338           hardcode_direct_GCJ=no
19339         ;;
19340         motorola)
19341           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19343         ;;
19344       esac
19345       runpath_var='LD_RUN_PATH'
19346       hardcode_shlibpath_var_GCJ=no
19347       ;;
19348
19349     sysv4.3*)
19350       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19351       hardcode_shlibpath_var_GCJ=no
19352       export_dynamic_flag_spec_GCJ='-Bexport'
19353       ;;
19354
19355     sysv4*MP*)
19356       if test -d /usr/nec; then
19357         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19358         hardcode_shlibpath_var_GCJ=no
19359         runpath_var=LD_RUN_PATH
19360         hardcode_runpath_var=yes
19361         ld_shlibs_GCJ=yes
19362       fi
19363       ;;
19364
19365     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19366       no_undefined_flag_GCJ='${wl}-z,text'
19367       archive_cmds_need_lc_GCJ=no
19368       hardcode_shlibpath_var_GCJ=no
19369       runpath_var='LD_RUN_PATH'
19370
19371       if test "$GCC" = yes; then
19372         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19373         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19374       else
19375         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19377       fi
19378       ;;
19379
19380     sysv5* | sco3.2v5* | sco5v6*)
19381       # Note: We can NOT use -z defs as we might desire, because we do not
19382       # link with -lc, and that would cause any symbols used from libc to
19383       # always be unresolved, which means just about no library would
19384       # ever link correctly.  If we're not using GNU ld we use -z text
19385       # though, which does catch some bad symbols but isn't as heavy-handed
19386       # as -z defs.
19387       no_undefined_flag_GCJ='${wl}-z,text'
19388       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19389       archive_cmds_need_lc_GCJ=no
19390       hardcode_shlibpath_var_GCJ=no
19391       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19392       hardcode_libdir_separator_GCJ=':'
19393       link_all_deplibs_GCJ=yes
19394       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19395       runpath_var='LD_RUN_PATH'
19396
19397       if test "$GCC" = yes; then
19398         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19399         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19400       else
19401         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19402         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19403       fi
19404       ;;
19405
19406     uts4*)
19407       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19408       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19409       hardcode_shlibpath_var_GCJ=no
19410       ;;
19411
19412     *)
19413       ld_shlibs_GCJ=no
19414       ;;
19415     esac
19416   fi
19417
19418 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19419 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19420 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19421
19422 #
19423 # Do we need to explicitly link libc?
19424 #
19425 case "x$archive_cmds_need_lc_GCJ" in
19426 x|xyes)
19427   # Assume -lc should be added
19428   archive_cmds_need_lc_GCJ=yes
19429
19430   if test "$enable_shared" = yes && test "$GCC" = yes; then
19431     case $archive_cmds_GCJ in
19432     *'~'*)
19433       # FIXME: we may have to deal with multi-command sequences.
19434       ;;
19435     '$CC '*)
19436       # Test whether the compiler implicitly links with -lc since on some
19437       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19438       # to ld, don't add -lc before -lgcc.
19439       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19441       $rm conftest*
19442       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19443
19444       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19445   (eval $ac_compile) 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } 2>conftest.err; then
19449         soname=conftest
19450         lib=conftest
19451         libobjs=conftest.$ac_objext
19452         deplibs=
19453         wl=$lt_prog_compiler_wl_GCJ
19454         pic_flag=$lt_prog_compiler_pic_GCJ
19455         compiler_flags=-v
19456         linker_flags=-v
19457         verstring=
19458         output_objdir=.
19459         libname=conftest
19460         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19461         allow_undefined_flag_GCJ=
19462         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19463   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }
19467         then
19468           archive_cmds_need_lc_GCJ=no
19469         else
19470           archive_cmds_need_lc_GCJ=yes
19471         fi
19472         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19473       else
19474         cat conftest.err 1>&5
19475       fi
19476       $rm conftest*
19477       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19478 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19479       ;;
19480     esac
19481   fi
19482   ;;
19483 esac
19484
19485 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19486 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19487 library_names_spec=
19488 libname_spec='lib$name'
19489 soname_spec=
19490 shrext_cmds=".so"
19491 postinstall_cmds=
19492 postuninstall_cmds=
19493 finish_cmds=
19494 finish_eval=
19495 shlibpath_var=
19496 shlibpath_overrides_runpath=unknown
19497 version_type=none
19498 dynamic_linker="$host_os ld.so"
19499 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19500
19501 need_lib_prefix=unknown
19502 hardcode_into_libs=no
19503
19504 # when you set need_version to no, make sure it does not cause -set_version
19505 # flags to be left without arguments
19506 need_version=unknown
19507
19508 case $host_os in
19509 aix3*)
19510   version_type=linux
19511   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19512   shlibpath_var=LIBPATH
19513
19514   # AIX 3 has no versioning support, so we append a major version to the name.
19515   soname_spec='${libname}${release}${shared_ext}$major'
19516   ;;
19517
19518 aix4* | aix5*)
19519   version_type=linux
19520   need_lib_prefix=no
19521   need_version=no
19522   hardcode_into_libs=yes
19523   if test "$host_cpu" = ia64; then
19524     # AIX 5 supports IA64
19525     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19526     shlibpath_var=LD_LIBRARY_PATH
19527   else
19528     # With GCC up to 2.95.x, collect2 would create an import file
19529     # for dependence libraries.  The import file would start with
19530     # the line `#! .'.  This would cause the generated library to
19531     # depend on `.', always an invalid library.  This was fixed in
19532     # development snapshots of GCC prior to 3.0.
19533     case $host_os in
19534       aix4 | aix4.[01] | aix4.[01].*)
19535       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19536            echo ' yes '
19537            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19538         :
19539       else
19540         can_build_shared=no
19541       fi
19542       ;;
19543     esac
19544     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19545     # soname into executable. Probably we can add versioning support to
19546     # collect2, so additional links can be useful in future.
19547     if test "$aix_use_runtimelinking" = yes; then
19548       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19549       # instead of lib<name>.a to let people know that these are not
19550       # typical AIX shared libraries.
19551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552     else
19553       # We preserve .a as extension for shared libraries through AIX4.2
19554       # and later when we are not doing run time linking.
19555       library_names_spec='${libname}${release}.a $libname.a'
19556       soname_spec='${libname}${release}${shared_ext}$major'
19557     fi
19558     shlibpath_var=LIBPATH
19559   fi
19560   ;;
19561
19562 amigaos*)
19563   library_names_spec='$libname.ixlibrary $libname.a'
19564   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19565   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'
19566   ;;
19567
19568 beos*)
19569   library_names_spec='${libname}${shared_ext}'
19570   dynamic_linker="$host_os ld.so"
19571   shlibpath_var=LIBRARY_PATH
19572   ;;
19573
19574 bsdi[45]*)
19575   version_type=linux
19576   need_version=no
19577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19578   soname_spec='${libname}${release}${shared_ext}$major'
19579   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19580   shlibpath_var=LD_LIBRARY_PATH
19581   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19582   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19583   # the default ld.so.conf also contains /usr/contrib/lib and
19584   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19585   # libtool to hard-code these into programs
19586   ;;
19587
19588 cygwin* | mingw* | pw32*)
19589   version_type=windows
19590   shrext_cmds=".dll"
19591   need_version=no
19592   need_lib_prefix=no
19593
19594   case $GCC,$host_os in
19595   yes,cygwin* | yes,mingw* | yes,pw32*)
19596     library_names_spec='$libname.dll.a'
19597     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19598     postinstall_cmds='base_file=`basename \${file}`~
19599       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19600       dldir=$destdir/`dirname \$dlpath`~
19601       test -d \$dldir || mkdir -p \$dldir~
19602       $install_prog $dir/$dlname \$dldir/$dlname~
19603       chmod a+x \$dldir/$dlname'
19604     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19605       dlpath=$dir/\$dldll~
19606        $rm \$dlpath'
19607     shlibpath_overrides_runpath=yes
19608
19609     case $host_os in
19610     cygwin*)
19611       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19612       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19613       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19614       ;;
19615     mingw*)
19616       # MinGW DLLs use traditional 'lib' prefix
19617       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19618       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19619       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19620         # It is most probably a Windows format PATH printed by
19621         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19622         # path with ; separators, and with drive letters. We can handle the
19623         # drive letters (cygwin fileutils understands them), so leave them,
19624         # especially as we might pass files found there to a mingw objdump,
19625         # which wouldn't understand a cygwinified path. Ahh.
19626         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19627       else
19628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19629       fi
19630       ;;
19631     pw32*)
19632       # pw32 DLLs use 'pw' prefix rather than 'lib'
19633       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19634       ;;
19635     esac
19636     ;;
19637
19638   *)
19639     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19640     ;;
19641   esac
19642   dynamic_linker='Win32 ld.exe'
19643   # FIXME: first we should search . and the directory the executable is in
19644   shlibpath_var=PATH
19645   ;;
19646
19647 darwin* | rhapsody*)
19648   dynamic_linker="$host_os dyld"
19649   version_type=darwin
19650   need_lib_prefix=no
19651   need_version=no
19652   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19653   soname_spec='${libname}${release}${major}$shared_ext'
19654   shlibpath_overrides_runpath=yes
19655   shlibpath_var=DYLD_LIBRARY_PATH
19656   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19657    
19658   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19659   ;;
19660
19661 dgux*)
19662   version_type=linux
19663   need_lib_prefix=no
19664   need_version=no
19665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19666   soname_spec='${libname}${release}${shared_ext}$major'
19667   shlibpath_var=LD_LIBRARY_PATH
19668   ;;
19669
19670 freebsd1*)
19671   dynamic_linker=no
19672   ;;
19673
19674 freebsd* | dragonfly*)
19675   # DragonFly does not have aout.  When/if they implement a new
19676   # versioning mechanism, adjust this.
19677   if test -x /usr/bin/objformat; then
19678     objformat=`/usr/bin/objformat`
19679   else
19680     case $host_os in
19681     freebsd[123]*) objformat=aout ;;
19682     *) objformat=elf ;;
19683     esac
19684   fi
19685   version_type=freebsd-$objformat
19686   case $version_type in
19687     freebsd-elf*)
19688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19689       need_version=no
19690       need_lib_prefix=no
19691       ;;
19692     freebsd-*)
19693       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19694       need_version=yes
19695       ;;
19696   esac
19697   shlibpath_var=LD_LIBRARY_PATH
19698   case $host_os in
19699   freebsd2*)
19700     shlibpath_overrides_runpath=yes
19701     ;;
19702   freebsd3.[01]* | freebsdelf3.[01]*)
19703     shlibpath_overrides_runpath=yes
19704     hardcode_into_libs=yes
19705     ;;
19706   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19707   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19708     shlibpath_overrides_runpath=no
19709     hardcode_into_libs=yes
19710     ;;
19711   *) # from 4.6 on, and DragonFly
19712     shlibpath_overrides_runpath=yes
19713     hardcode_into_libs=yes
19714     ;;
19715   esac
19716   ;;
19717
19718 gnu*)
19719   version_type=linux
19720   need_lib_prefix=no
19721   need_version=no
19722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19723   soname_spec='${libname}${release}${shared_ext}$major'
19724   shlibpath_var=LD_LIBRARY_PATH
19725   hardcode_into_libs=yes
19726   ;;
19727
19728 hpux9* | hpux10* | hpux11*)
19729   # Give a soname corresponding to the major version so that dld.sl refuses to
19730   # link against other versions.
19731   version_type=sunos
19732   need_lib_prefix=no
19733   need_version=no
19734   case $host_cpu in
19735   ia64*)
19736     shrext_cmds='.so'
19737     hardcode_into_libs=yes
19738     dynamic_linker="$host_os dld.so"
19739     shlibpath_var=LD_LIBRARY_PATH
19740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19742     soname_spec='${libname}${release}${shared_ext}$major'
19743     if test "X$HPUX_IA64_MODE" = X32; then
19744       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19745     else
19746       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19747     fi
19748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19749     ;;
19750    hppa*64*)
19751      shrext_cmds='.sl'
19752      hardcode_into_libs=yes
19753      dynamic_linker="$host_os dld.sl"
19754      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19755      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757      soname_spec='${libname}${release}${shared_ext}$major'
19758      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19759      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19760      ;;
19761    *)
19762     shrext_cmds='.sl'
19763     dynamic_linker="$host_os dld.sl"
19764     shlibpath_var=SHLIB_PATH
19765     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19767     soname_spec='${libname}${release}${shared_ext}$major'
19768     ;;
19769   esac
19770   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19771   postinstall_cmds='chmod 555 $lib'
19772   ;;
19773
19774 interix[3-9]*)
19775   version_type=linux
19776   need_lib_prefix=no
19777   need_version=no
19778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19779   soname_spec='${libname}${release}${shared_ext}$major'
19780   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19781   shlibpath_var=LD_LIBRARY_PATH
19782   shlibpath_overrides_runpath=no
19783   hardcode_into_libs=yes
19784   ;;
19785
19786 irix5* | irix6* | nonstopux*)
19787   case $host_os in
19788     nonstopux*) version_type=nonstopux ;;
19789     *)
19790         if test "$lt_cv_prog_gnu_ld" = yes; then
19791                 version_type=linux
19792         else
19793                 version_type=irix
19794         fi ;;
19795   esac
19796   need_lib_prefix=no
19797   need_version=no
19798   soname_spec='${libname}${release}${shared_ext}$major'
19799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19800   case $host_os in
19801   irix5* | nonstopux*)
19802     libsuff= shlibsuff=
19803     ;;
19804   *)
19805     case $LD in # libtool.m4 will add one of these switches to LD
19806     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19807       libsuff= shlibsuff= libmagic=32-bit;;
19808     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19809       libsuff=32 shlibsuff=N32 libmagic=N32;;
19810     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19811       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19812     *) libsuff= shlibsuff= libmagic=never-match;;
19813     esac
19814     ;;
19815   esac
19816   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19817   shlibpath_overrides_runpath=no
19818   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19819   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19820   hardcode_into_libs=yes
19821   ;;
19822
19823 # No shared lib support for Linux oldld, aout, or coff.
19824 linux*oldld* | linux*aout* | linux*coff*)
19825   dynamic_linker=no
19826   ;;
19827
19828 # This must be Linux ELF.
19829 linux* | k*bsd*-gnu)
19830   version_type=linux
19831   need_lib_prefix=no
19832   need_version=no
19833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19834   soname_spec='${libname}${release}${shared_ext}$major'
19835   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19836   shlibpath_var=LD_LIBRARY_PATH
19837   shlibpath_overrides_runpath=no
19838   # This implies no fast_install, which is unacceptable.
19839   # Some rework will be needed to allow for fast_install
19840   # before this can be enabled.
19841   hardcode_into_libs=yes
19842
19843   # Append ld.so.conf contents to the search path
19844   if test -f /etc/ld.so.conf; then
19845     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' ' '`
19846     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19847   fi
19848
19849   # We used to test for /lib/ld.so.1 and disable shared libraries on
19850   # powerpc, because MkLinux only supported shared libraries with the
19851   # GNU dynamic linker.  Since this was broken with cross compilers,
19852   # most powerpc-linux boxes support dynamic linking these days and
19853   # people can always --disable-shared, the test was removed, and we
19854   # assume the GNU/Linux dynamic linker is in use.
19855   dynamic_linker='GNU/Linux ld.so'
19856   ;;
19857
19858 netbsdelf*-gnu)
19859   version_type=linux
19860   need_lib_prefix=no
19861   need_version=no
19862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19863   soname_spec='${libname}${release}${shared_ext}$major'
19864   shlibpath_var=LD_LIBRARY_PATH
19865   shlibpath_overrides_runpath=no
19866   hardcode_into_libs=yes
19867   dynamic_linker='NetBSD ld.elf_so'
19868   ;;
19869
19870 netbsd*)
19871   version_type=sunos
19872   need_lib_prefix=no
19873   need_version=no
19874   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19877     dynamic_linker='NetBSD (a.out) ld.so'
19878   else
19879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19880     soname_spec='${libname}${release}${shared_ext}$major'
19881     dynamic_linker='NetBSD ld.elf_so'
19882   fi
19883   shlibpath_var=LD_LIBRARY_PATH
19884   shlibpath_overrides_runpath=yes
19885   hardcode_into_libs=yes
19886   ;;
19887
19888 newsos6)
19889   version_type=linux
19890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19891   shlibpath_var=LD_LIBRARY_PATH
19892   shlibpath_overrides_runpath=yes
19893   ;;
19894
19895 nto-qnx*)
19896   version_type=linux
19897   need_lib_prefix=no
19898   need_version=no
19899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19900   soname_spec='${libname}${release}${shared_ext}$major'
19901   shlibpath_var=LD_LIBRARY_PATH
19902   shlibpath_overrides_runpath=yes
19903   ;;
19904
19905 openbsd*)
19906   version_type=sunos
19907   sys_lib_dlsearch_path_spec="/usr/lib"
19908   need_lib_prefix=no
19909   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19910   case $host_os in
19911     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19912     *)                         need_version=no  ;;
19913   esac
19914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19916   shlibpath_var=LD_LIBRARY_PATH
19917   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19918     case $host_os in
19919       openbsd2.[89] | openbsd2.[89].*)
19920         shlibpath_overrides_runpath=no
19921         ;;
19922       *)
19923         shlibpath_overrides_runpath=yes
19924         ;;
19925       esac
19926   else
19927     shlibpath_overrides_runpath=yes
19928   fi
19929   ;;
19930
19931 os2*)
19932   libname_spec='$name'
19933   shrext_cmds=".dll"
19934   need_lib_prefix=no
19935   library_names_spec='$libname${shared_ext} $libname.a'
19936   dynamic_linker='OS/2 ld.exe'
19937   shlibpath_var=LIBPATH
19938   ;;
19939
19940 osf3* | osf4* | osf5*)
19941   version_type=osf
19942   need_lib_prefix=no
19943   need_version=no
19944   soname_spec='${libname}${release}${shared_ext}$major'
19945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946   shlibpath_var=LD_LIBRARY_PATH
19947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19949   ;;
19950
19951 rdos*)
19952   dynamic_linker=no
19953   ;;
19954
19955 solaris*)
19956   version_type=linux
19957   need_lib_prefix=no
19958   need_version=no
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960   soname_spec='${libname}${release}${shared_ext}$major'
19961   shlibpath_var=LD_LIBRARY_PATH
19962   shlibpath_overrides_runpath=yes
19963   hardcode_into_libs=yes
19964   # ldd complains unless libraries are executable
19965   postinstall_cmds='chmod +x $lib'
19966   ;;
19967
19968 sunos4*)
19969   version_type=sunos
19970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19971   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19972   shlibpath_var=LD_LIBRARY_PATH
19973   shlibpath_overrides_runpath=yes
19974   if test "$with_gnu_ld" = yes; then
19975     need_lib_prefix=no
19976   fi
19977   need_version=yes
19978   ;;
19979
19980 sysv4 | sysv4.3*)
19981   version_type=linux
19982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983   soname_spec='${libname}${release}${shared_ext}$major'
19984   shlibpath_var=LD_LIBRARY_PATH
19985   case $host_vendor in
19986     sni)
19987       shlibpath_overrides_runpath=no
19988       need_lib_prefix=no
19989       export_dynamic_flag_spec='${wl}-Blargedynsym'
19990       runpath_var=LD_RUN_PATH
19991       ;;
19992     siemens)
19993       need_lib_prefix=no
19994       ;;
19995     motorola)
19996       need_lib_prefix=no
19997       need_version=no
19998       shlibpath_overrides_runpath=no
19999       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20000       ;;
20001   esac
20002   ;;
20003
20004 sysv4*MP*)
20005   if test -d /usr/nec ;then
20006     version_type=linux
20007     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20008     soname_spec='$libname${shared_ext}.$major'
20009     shlibpath_var=LD_LIBRARY_PATH
20010   fi
20011   ;;
20012
20013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20014   version_type=freebsd-elf
20015   need_lib_prefix=no
20016   need_version=no
20017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20018   soname_spec='${libname}${release}${shared_ext}$major'
20019   shlibpath_var=LD_LIBRARY_PATH
20020   hardcode_into_libs=yes
20021   if test "$with_gnu_ld" = yes; then
20022     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20023     shlibpath_overrides_runpath=no
20024   else
20025     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20026     shlibpath_overrides_runpath=yes
20027     case $host_os in
20028       sco3.2v5*)
20029         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20030         ;;
20031     esac
20032   fi
20033   sys_lib_dlsearch_path_spec='/usr/lib'
20034   ;;
20035
20036 uts4*)
20037   version_type=linux
20038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039   soname_spec='${libname}${release}${shared_ext}$major'
20040   shlibpath_var=LD_LIBRARY_PATH
20041   ;;
20042
20043 *)
20044   dynamic_linker=no
20045   ;;
20046 esac
20047 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20048 echo "${ECHO_T}$dynamic_linker" >&6; }
20049 test "$dynamic_linker" = no && can_build_shared=no
20050
20051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20052 if test "$GCC" = yes; then
20053   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20054 fi
20055
20056 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20057 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20058 hardcode_action_GCJ=
20059 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20060    test -n "$runpath_var_GCJ" || \
20061    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20062
20063   # We can hardcode non-existant directories.
20064   if test "$hardcode_direct_GCJ" != no &&
20065      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20066      # have to relink, otherwise we might link with an installed library
20067      # when we should be linking with a yet-to-be-installed one
20068      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20069      test "$hardcode_minus_L_GCJ" != no; then
20070     # Linking always hardcodes the temporary library directory.
20071     hardcode_action_GCJ=relink
20072   else
20073     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20074     hardcode_action_GCJ=immediate
20075   fi
20076 else
20077   # We cannot hardcode anything, or else we can only hardcode existing
20078   # directories.
20079   hardcode_action_GCJ=unsupported
20080 fi
20081 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20082 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20083
20084 if test "$hardcode_action_GCJ" = relink; then
20085   # Fast installation is not supported
20086   enable_fast_install=no
20087 elif test "$shlibpath_overrides_runpath" = yes ||
20088      test "$enable_shared" = no; then
20089   # Fast installation is not necessary
20090   enable_fast_install=needless
20091 fi
20092
20093
20094 # The else clause should only fire when bootstrapping the
20095 # libtool distribution, otherwise you forgot to ship ltmain.sh
20096 # with your package, and you will get complaints that there are
20097 # no rules to generate ltmain.sh.
20098 if test -f "$ltmain"; then
20099   # See if we are running on zsh, and set the options which allow our commands through
20100   # without removal of \ escapes.
20101   if test -n "${ZSH_VERSION+set}" ; then
20102     setopt NO_GLOB_SUBST
20103   fi
20104   # Now quote all the things that may contain metacharacters while being
20105   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20106   # variables and quote the copies for generation of the libtool script.
20107   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20108     SED SHELL STRIP \
20109     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20110     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20111     deplibs_check_method reload_flag reload_cmds need_locks \
20112     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20113     lt_cv_sys_global_symbol_to_c_name_address \
20114     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20115     old_postinstall_cmds old_postuninstall_cmds \
20116     compiler_GCJ \
20117     CC_GCJ \
20118     LD_GCJ \
20119     lt_prog_compiler_wl_GCJ \
20120     lt_prog_compiler_pic_GCJ \
20121     lt_prog_compiler_static_GCJ \
20122     lt_prog_compiler_no_builtin_flag_GCJ \
20123     export_dynamic_flag_spec_GCJ \
20124     thread_safe_flag_spec_GCJ \
20125     whole_archive_flag_spec_GCJ \
20126     enable_shared_with_static_runtimes_GCJ \
20127     old_archive_cmds_GCJ \
20128     old_archive_from_new_cmds_GCJ \
20129     predep_objects_GCJ \
20130     postdep_objects_GCJ \
20131     predeps_GCJ \
20132     postdeps_GCJ \
20133     compiler_lib_search_path_GCJ \
20134     archive_cmds_GCJ \
20135     archive_expsym_cmds_GCJ \
20136     postinstall_cmds_GCJ \
20137     postuninstall_cmds_GCJ \
20138     old_archive_from_expsyms_cmds_GCJ \
20139     allow_undefined_flag_GCJ \
20140     no_undefined_flag_GCJ \
20141     export_symbols_cmds_GCJ \
20142     hardcode_libdir_flag_spec_GCJ \
20143     hardcode_libdir_flag_spec_ld_GCJ \
20144     hardcode_libdir_separator_GCJ \
20145     hardcode_automatic_GCJ \
20146     module_cmds_GCJ \
20147     module_expsym_cmds_GCJ \
20148     lt_cv_prog_compiler_c_o_GCJ \
20149     fix_srcfile_path_GCJ \
20150     exclude_expsyms_GCJ \
20151     include_expsyms_GCJ; do
20152
20153     case $var in
20154     old_archive_cmds_GCJ | \
20155     old_archive_from_new_cmds_GCJ | \
20156     archive_cmds_GCJ | \
20157     archive_expsym_cmds_GCJ | \
20158     module_cmds_GCJ | \
20159     module_expsym_cmds_GCJ | \
20160     old_archive_from_expsyms_cmds_GCJ | \
20161     export_symbols_cmds_GCJ | \
20162     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20163     postinstall_cmds | postuninstall_cmds | \
20164     old_postinstall_cmds | old_postuninstall_cmds | \
20165     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20166       # Double-quote double-evaled strings.
20167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20168       ;;
20169     *)
20170       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20171       ;;
20172     esac
20173   done
20174
20175   case $lt_echo in
20176   *'\$0 --fallback-echo"')
20177     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20178     ;;
20179   esac
20180
20181 cfgfile="$ofile"
20182
20183   cat <<__EOF__ >> "$cfgfile"
20184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20185
20186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20187
20188 # Shell to use when invoking shell scripts.
20189 SHELL=$lt_SHELL
20190
20191 # Whether or not to build shared libraries.
20192 build_libtool_libs=$enable_shared
20193
20194 # Whether or not to build static libraries.
20195 build_old_libs=$enable_static
20196
20197 # Whether or not to add -lc for building shared libraries.
20198 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20199
20200 # Whether or not to disallow shared libs when runtime libs are static
20201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20202
20203 # Whether or not to optimize for fast installation.
20204 fast_install=$enable_fast_install
20205
20206 # The host system.
20207 host_alias=$host_alias
20208 host=$host
20209 host_os=$host_os
20210
20211 # The build system.
20212 build_alias=$build_alias
20213 build=$build
20214 build_os=$build_os
20215
20216 # An echo program that does not interpret backslashes.
20217 echo=$lt_echo
20218
20219 # The archiver.
20220 AR=$lt_AR
20221 AR_FLAGS=$lt_AR_FLAGS
20222
20223 # A C compiler.
20224 LTCC=$lt_LTCC
20225
20226 # LTCC compiler flags.
20227 LTCFLAGS=$lt_LTCFLAGS
20228
20229 # A language-specific compiler.
20230 CC=$lt_compiler_GCJ
20231
20232 # Is the compiler the GNU C compiler?
20233 with_gcc=$GCC_GCJ
20234
20235 # An ERE matcher.
20236 EGREP=$lt_EGREP
20237
20238 # The linker used to build libraries.
20239 LD=$lt_LD_GCJ
20240
20241 # Whether we need hard or soft links.
20242 LN_S=$lt_LN_S
20243
20244 # A BSD-compatible nm program.
20245 NM=$lt_NM
20246
20247 # A symbol stripping program
20248 STRIP=$lt_STRIP
20249
20250 # Used to examine libraries when file_magic_cmd begins "file"
20251 MAGIC_CMD=$MAGIC_CMD
20252
20253 # Used on cygwin: DLL creation program.
20254 DLLTOOL="$DLLTOOL"
20255
20256 # Used on cygwin: object dumper.
20257 OBJDUMP="$OBJDUMP"
20258
20259 # Used on cygwin: assembler.
20260 AS="$AS"
20261
20262 # The name of the directory that contains temporary libtool files.
20263 objdir=$objdir
20264
20265 # How to create reloadable object files.
20266 reload_flag=$lt_reload_flag
20267 reload_cmds=$lt_reload_cmds
20268
20269 # How to pass a linker flag through the compiler.
20270 wl=$lt_lt_prog_compiler_wl_GCJ
20271
20272 # Object file suffix (normally "o").
20273 objext="$ac_objext"
20274
20275 # Old archive suffix (normally "a").
20276 libext="$libext"
20277
20278 # Shared library suffix (normally ".so").
20279 shrext_cmds='$shrext_cmds'
20280
20281 # Executable file suffix (normally "").
20282 exeext="$exeext"
20283
20284 # Additional compiler flags for building library objects.
20285 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20286 pic_mode=$pic_mode
20287
20288 # What is the maximum length of a command?
20289 max_cmd_len=$lt_cv_sys_max_cmd_len
20290
20291 # Does compiler simultaneously support -c and -o options?
20292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20293
20294 # Must we lock files when doing compilation?
20295 need_locks=$lt_need_locks
20296
20297 # Do we need the lib prefix for modules?
20298 need_lib_prefix=$need_lib_prefix
20299
20300 # Do we need a version for libraries?
20301 need_version=$need_version
20302
20303 # Whether dlopen is supported.
20304 dlopen_support=$enable_dlopen
20305
20306 # Whether dlopen of programs is supported.
20307 dlopen_self=$enable_dlopen_self
20308
20309 # Whether dlopen of statically linked programs is supported.
20310 dlopen_self_static=$enable_dlopen_self_static
20311
20312 # Compiler flag to prevent dynamic linking.
20313 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20314
20315 # Compiler flag to turn off builtin functions.
20316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20317
20318 # Compiler flag to allow reflexive dlopens.
20319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20320
20321 # Compiler flag to generate shared objects directly from archives.
20322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20323
20324 # Compiler flag to generate thread-safe objects.
20325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20326
20327 # Library versioning type.
20328 version_type=$version_type
20329
20330 # Format of library name prefix.
20331 libname_spec=$lt_libname_spec
20332
20333 # List of archive names.  First name is the real one, the rest are links.
20334 # The last name is the one that the linker finds with -lNAME.
20335 library_names_spec=$lt_library_names_spec
20336
20337 # The coded name of the library, if different from the real name.
20338 soname_spec=$lt_soname_spec
20339
20340 # Commands used to build and install an old-style archive.
20341 RANLIB=$lt_RANLIB
20342 old_archive_cmds=$lt_old_archive_cmds_GCJ
20343 old_postinstall_cmds=$lt_old_postinstall_cmds
20344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20345
20346 # Create an old-style archive from a shared archive.
20347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20348
20349 # Create a temporary old-style archive to link instead of a shared archive.
20350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20351
20352 # Commands used to build and install a shared archive.
20353 archive_cmds=$lt_archive_cmds_GCJ
20354 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20355 postinstall_cmds=$lt_postinstall_cmds
20356 postuninstall_cmds=$lt_postuninstall_cmds
20357
20358 # Commands used to build a loadable module (assumed same as above if empty)
20359 module_cmds=$lt_module_cmds_GCJ
20360 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20361
20362 # Commands to strip libraries.
20363 old_striplib=$lt_old_striplib
20364 striplib=$lt_striplib
20365
20366 # Dependencies to place before the objects being linked to create a
20367 # shared library.
20368 predep_objects=$lt_predep_objects_GCJ
20369
20370 # Dependencies to place after the objects being linked to create a
20371 # shared library.
20372 postdep_objects=$lt_postdep_objects_GCJ
20373
20374 # Dependencies to place before the objects being linked to create a
20375 # shared library.
20376 predeps=$lt_predeps_GCJ
20377
20378 # Dependencies to place after the objects being linked to create a
20379 # shared library.
20380 postdeps=$lt_postdeps_GCJ
20381
20382 # The library search path used internally by the compiler when linking
20383 # a shared library.
20384 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20385
20386 # Method to check whether dependent libraries are shared objects.
20387 deplibs_check_method=$lt_deplibs_check_method
20388
20389 # Command to use when deplibs_check_method == file_magic.
20390 file_magic_cmd=$lt_file_magic_cmd
20391
20392 # Flag that allows shared libraries with undefined symbols to be built.
20393 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20394
20395 # Flag that forces no undefined symbols.
20396 no_undefined_flag=$lt_no_undefined_flag_GCJ
20397
20398 # Commands used to finish a libtool library installation in a directory.
20399 finish_cmds=$lt_finish_cmds
20400
20401 # Same as above, but a single script fragment to be evaled but not shown.
20402 finish_eval=$lt_finish_eval
20403
20404 # Take the output of nm and produce a listing of raw symbols and C names.
20405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20406
20407 # Transform the output of nm in a proper C declaration
20408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20409
20410 # Transform the output of nm in a C name address pair
20411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20412
20413 # This is the shared library runtime path variable.
20414 runpath_var=$runpath_var
20415
20416 # This is the shared library path variable.
20417 shlibpath_var=$shlibpath_var
20418
20419 # Is shlibpath searched before the hard-coded library search path?
20420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20421
20422 # How to hardcode a shared library path into an executable.
20423 hardcode_action=$hardcode_action_GCJ
20424
20425 # Whether we should hardcode library paths into libraries.
20426 hardcode_into_libs=$hardcode_into_libs
20427
20428 # Flag to hardcode \$libdir into a binary during linking.
20429 # This must work even if \$libdir does not exist.
20430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20431
20432 # If ld is used when linking, flag to hardcode \$libdir into
20433 # a binary during linking. This must work even if \$libdir does
20434 # not exist.
20435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20436
20437 # Whether we need a single -rpath flag with a separated argument.
20438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20439
20440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20441 # resulting binary.
20442 hardcode_direct=$hardcode_direct_GCJ
20443
20444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20445 # resulting binary.
20446 hardcode_minus_L=$hardcode_minus_L_GCJ
20447
20448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20449 # the resulting binary.
20450 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20451
20452 # Set to yes if building a shared library automatically hardcodes DIR into the library
20453 # and all subsequent libraries and executables linked against it.
20454 hardcode_automatic=$hardcode_automatic_GCJ
20455
20456 # Variables whose values should be saved in libtool wrapper scripts and
20457 # restored at relink time.
20458 variables_saved_for_relink="$variables_saved_for_relink"
20459
20460 # Whether libtool must link a program against all its dependency libraries.
20461 link_all_deplibs=$link_all_deplibs_GCJ
20462
20463 # Compile-time system search path for libraries
20464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20465
20466 # Run-time system search path for libraries
20467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20468
20469 # Fix the shell variable \$srcfile for the compiler.
20470 fix_srcfile_path=$lt_fix_srcfile_path
20471
20472 # Set to yes if exported symbols are required.
20473 always_export_symbols=$always_export_symbols_GCJ
20474
20475 # The commands to list exported symbols.
20476 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20477
20478 # The commands to extract the exported symbol list from a shared archive.
20479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20480
20481 # Symbols that should not be listed in the preloaded symbols.
20482 exclude_expsyms=$lt_exclude_expsyms_GCJ
20483
20484 # Symbols that must always be exported.
20485 include_expsyms=$lt_include_expsyms_GCJ
20486
20487 # ### END LIBTOOL TAG CONFIG: $tagname
20488
20489 __EOF__
20490
20491
20492 else
20493   # If there is no Makefile yet, we rely on a make rule to execute
20494   # `config.status --recheck' to rerun these tests and create the
20495   # libtool script then.
20496   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20497   if test -f "$ltmain_in"; then
20498     test -f Makefile && make "$ltmain"
20499   fi
20500 fi
20501
20502
20503 ac_ext=c
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
20509 CC="$lt_save_CC"
20510
20511         else
20512           tagname=""
20513         fi
20514         ;;
20515
20516       RC)
20517         
20518
20519 # Source file extension for RC test sources.
20520 ac_ext=rc
20521
20522 # Object file extension for compiled RC test sources.
20523 objext=o
20524 objext_RC=$objext
20525
20526 # Code to be used in simple compile tests
20527 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20528
20529 # Code to be used in simple link tests
20530 lt_simple_link_test_code="$lt_simple_compile_test_code"
20531
20532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20533
20534 # If no C compiler was specified, use CC.
20535 LTCC=${LTCC-"$CC"}
20536
20537 # If no C compiler flags were specified, use CFLAGS.
20538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20539
20540 # Allow CC to be a program name with arguments.
20541 compiler=$CC
20542
20543
20544 # save warnings/boilerplate of simple test code
20545 ac_outfile=conftest.$ac_objext
20546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20548 _lt_compiler_boilerplate=`cat conftest.err`
20549 $rm conftest*
20550
20551 ac_outfile=conftest.$ac_objext
20552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20554 _lt_linker_boilerplate=`cat conftest.err`
20555 $rm conftest*
20556
20557
20558 # Allow CC to be a program name with arguments.
20559 lt_save_CC="$CC"
20560 CC=${RC-"windres"}
20561 compiler=$CC
20562 compiler_RC=$CC
20563 for cc_temp in $compiler""; do
20564   case $cc_temp in
20565     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20566     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20567     \-*) ;;
20568     *) break;;
20569   esac
20570 done
20571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20572
20573 lt_cv_prog_compiler_c_o_RC=yes
20574
20575 # The else clause should only fire when bootstrapping the
20576 # libtool distribution, otherwise you forgot to ship ltmain.sh
20577 # with your package, and you will get complaints that there are
20578 # no rules to generate ltmain.sh.
20579 if test -f "$ltmain"; then
20580   # See if we are running on zsh, and set the options which allow our commands through
20581   # without removal of \ escapes.
20582   if test -n "${ZSH_VERSION+set}" ; then
20583     setopt NO_GLOB_SUBST
20584   fi
20585   # Now quote all the things that may contain metacharacters while being
20586   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20587   # variables and quote the copies for generation of the libtool script.
20588   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20589     SED SHELL STRIP \
20590     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20591     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20592     deplibs_check_method reload_flag reload_cmds need_locks \
20593     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20594     lt_cv_sys_global_symbol_to_c_name_address \
20595     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20596     old_postinstall_cmds old_postuninstall_cmds \
20597     compiler_RC \
20598     CC_RC \
20599     LD_RC \
20600     lt_prog_compiler_wl_RC \
20601     lt_prog_compiler_pic_RC \
20602     lt_prog_compiler_static_RC \
20603     lt_prog_compiler_no_builtin_flag_RC \
20604     export_dynamic_flag_spec_RC \
20605     thread_safe_flag_spec_RC \
20606     whole_archive_flag_spec_RC \
20607     enable_shared_with_static_runtimes_RC \
20608     old_archive_cmds_RC \
20609     old_archive_from_new_cmds_RC \
20610     predep_objects_RC \
20611     postdep_objects_RC \
20612     predeps_RC \
20613     postdeps_RC \
20614     compiler_lib_search_path_RC \
20615     archive_cmds_RC \
20616     archive_expsym_cmds_RC \
20617     postinstall_cmds_RC \
20618     postuninstall_cmds_RC \
20619     old_archive_from_expsyms_cmds_RC \
20620     allow_undefined_flag_RC \
20621     no_undefined_flag_RC \
20622     export_symbols_cmds_RC \
20623     hardcode_libdir_flag_spec_RC \
20624     hardcode_libdir_flag_spec_ld_RC \
20625     hardcode_libdir_separator_RC \
20626     hardcode_automatic_RC \
20627     module_cmds_RC \
20628     module_expsym_cmds_RC \
20629     lt_cv_prog_compiler_c_o_RC \
20630     fix_srcfile_path_RC \
20631     exclude_expsyms_RC \
20632     include_expsyms_RC; do
20633
20634     case $var in
20635     old_archive_cmds_RC | \
20636     old_archive_from_new_cmds_RC | \
20637     archive_cmds_RC | \
20638     archive_expsym_cmds_RC | \
20639     module_cmds_RC | \
20640     module_expsym_cmds_RC | \
20641     old_archive_from_expsyms_cmds_RC | \
20642     export_symbols_cmds_RC | \
20643     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644     postinstall_cmds | postuninstall_cmds | \
20645     old_postinstall_cmds | old_postuninstall_cmds | \
20646     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647       # Double-quote double-evaled strings.
20648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20649       ;;
20650     *)
20651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20652       ;;
20653     esac
20654   done
20655
20656   case $lt_echo in
20657   *'\$0 --fallback-echo"')
20658     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20659     ;;
20660   esac
20661
20662 cfgfile="$ofile"
20663
20664   cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668
20669 # Shell to use when invoking shell scripts.
20670 SHELL=$lt_SHELL
20671
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20674
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20677
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_RC
20680
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20683
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20686
20687 # The host system.
20688 host_alias=$host_alias
20689 host=$host
20690 host_os=$host_os
20691
20692 # The build system.
20693 build_alias=$build_alias
20694 build=$build
20695 build_os=$build_os
20696
20697 # An echo program that does not interpret backslashes.
20698 echo=$lt_echo
20699
20700 # The archiver.
20701 AR=$lt_AR
20702 AR_FLAGS=$lt_AR_FLAGS
20703
20704 # A C compiler.
20705 LTCC=$lt_LTCC
20706
20707 # LTCC compiler flags.
20708 LTCFLAGS=$lt_LTCFLAGS
20709
20710 # A language-specific compiler.
20711 CC=$lt_compiler_RC
20712
20713 # Is the compiler the GNU C compiler?
20714 with_gcc=$GCC_RC
20715
20716 # An ERE matcher.
20717 EGREP=$lt_EGREP
20718
20719 # The linker used to build libraries.
20720 LD=$lt_LD_RC
20721
20722 # Whether we need hard or soft links.
20723 LN_S=$lt_LN_S
20724
20725 # A BSD-compatible nm program.
20726 NM=$lt_NM
20727
20728 # A symbol stripping program
20729 STRIP=$lt_STRIP
20730
20731 # Used to examine libraries when file_magic_cmd begins "file"
20732 MAGIC_CMD=$MAGIC_CMD
20733
20734 # Used on cygwin: DLL creation program.
20735 DLLTOOL="$DLLTOOL"
20736
20737 # Used on cygwin: object dumper.
20738 OBJDUMP="$OBJDUMP"
20739
20740 # Used on cygwin: assembler.
20741 AS="$AS"
20742
20743 # The name of the directory that contains temporary libtool files.
20744 objdir=$objdir
20745
20746 # How to create reloadable object files.
20747 reload_flag=$lt_reload_flag
20748 reload_cmds=$lt_reload_cmds
20749
20750 # How to pass a linker flag through the compiler.
20751 wl=$lt_lt_prog_compiler_wl_RC
20752
20753 # Object file suffix (normally "o").
20754 objext="$ac_objext"
20755
20756 # Old archive suffix (normally "a").
20757 libext="$libext"
20758
20759 # Shared library suffix (normally ".so").
20760 shrext_cmds='$shrext_cmds'
20761
20762 # Executable file suffix (normally "").
20763 exeext="$exeext"
20764
20765 # Additional compiler flags for building library objects.
20766 pic_flag=$lt_lt_prog_compiler_pic_RC
20767 pic_mode=$pic_mode
20768
20769 # What is the maximum length of a command?
20770 max_cmd_len=$lt_cv_sys_max_cmd_len
20771
20772 # Does compiler simultaneously support -c and -o options?
20773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20774
20775 # Must we lock files when doing compilation?
20776 need_locks=$lt_need_locks
20777
20778 # Do we need the lib prefix for modules?
20779 need_lib_prefix=$need_lib_prefix
20780
20781 # Do we need a version for libraries?
20782 need_version=$need_version
20783
20784 # Whether dlopen is supported.
20785 dlopen_support=$enable_dlopen
20786
20787 # Whether dlopen of programs is supported.
20788 dlopen_self=$enable_dlopen_self
20789
20790 # Whether dlopen of statically linked programs is supported.
20791 dlopen_self_static=$enable_dlopen_self_static
20792
20793 # Compiler flag to prevent dynamic linking.
20794 link_static_flag=$lt_lt_prog_compiler_static_RC
20795
20796 # Compiler flag to turn off builtin functions.
20797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20798
20799 # Compiler flag to allow reflexive dlopens.
20800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20801
20802 # Compiler flag to generate shared objects directly from archives.
20803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20804
20805 # Compiler flag to generate thread-safe objects.
20806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20807
20808 # Library versioning type.
20809 version_type=$version_type
20810
20811 # Format of library name prefix.
20812 libname_spec=$lt_libname_spec
20813
20814 # List of archive names.  First name is the real one, the rest are links.
20815 # The last name is the one that the linker finds with -lNAME.
20816 library_names_spec=$lt_library_names_spec
20817
20818 # The coded name of the library, if different from the real name.
20819 soname_spec=$lt_soname_spec
20820
20821 # Commands used to build and install an old-style archive.
20822 RANLIB=$lt_RANLIB
20823 old_archive_cmds=$lt_old_archive_cmds_RC
20824 old_postinstall_cmds=$lt_old_postinstall_cmds
20825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20826
20827 # Create an old-style archive from a shared archive.
20828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20829
20830 # Create a temporary old-style archive to link instead of a shared archive.
20831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20832
20833 # Commands used to build and install a shared archive.
20834 archive_cmds=$lt_archive_cmds_RC
20835 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20836 postinstall_cmds=$lt_postinstall_cmds
20837 postuninstall_cmds=$lt_postuninstall_cmds
20838
20839 # Commands used to build a loadable module (assumed same as above if empty)
20840 module_cmds=$lt_module_cmds_RC
20841 module_expsym_cmds=$lt_module_expsym_cmds_RC
20842
20843 # Commands to strip libraries.
20844 old_striplib=$lt_old_striplib
20845 striplib=$lt_striplib
20846
20847 # Dependencies to place before the objects being linked to create a
20848 # shared library.
20849 predep_objects=$lt_predep_objects_RC
20850
20851 # Dependencies to place after the objects being linked to create a
20852 # shared library.
20853 postdep_objects=$lt_postdep_objects_RC
20854
20855 # Dependencies to place before the objects being linked to create a
20856 # shared library.
20857 predeps=$lt_predeps_RC
20858
20859 # Dependencies to place after the objects being linked to create a
20860 # shared library.
20861 postdeps=$lt_postdeps_RC
20862
20863 # The library search path used internally by the compiler when linking
20864 # a shared library.
20865 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20866
20867 # Method to check whether dependent libraries are shared objects.
20868 deplibs_check_method=$lt_deplibs_check_method
20869
20870 # Command to use when deplibs_check_method == file_magic.
20871 file_magic_cmd=$lt_file_magic_cmd
20872
20873 # Flag that allows shared libraries with undefined symbols to be built.
20874 allow_undefined_flag=$lt_allow_undefined_flag_RC
20875
20876 # Flag that forces no undefined symbols.
20877 no_undefined_flag=$lt_no_undefined_flag_RC
20878
20879 # Commands used to finish a libtool library installation in a directory.
20880 finish_cmds=$lt_finish_cmds
20881
20882 # Same as above, but a single script fragment to be evaled but not shown.
20883 finish_eval=$lt_finish_eval
20884
20885 # Take the output of nm and produce a listing of raw symbols and C names.
20886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20887
20888 # Transform the output of nm in a proper C declaration
20889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20890
20891 # Transform the output of nm in a C name address pair
20892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20893
20894 # This is the shared library runtime path variable.
20895 runpath_var=$runpath_var
20896
20897 # This is the shared library path variable.
20898 shlibpath_var=$shlibpath_var
20899
20900 # Is shlibpath searched before the hard-coded library search path?
20901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20902
20903 # How to hardcode a shared library path into an executable.
20904 hardcode_action=$hardcode_action_RC
20905
20906 # Whether we should hardcode library paths into libraries.
20907 hardcode_into_libs=$hardcode_into_libs
20908
20909 # Flag to hardcode \$libdir into a binary during linking.
20910 # This must work even if \$libdir does not exist.
20911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20912
20913 # If ld is used when linking, flag to hardcode \$libdir into
20914 # a binary during linking. This must work even if \$libdir does
20915 # not exist.
20916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20917
20918 # Whether we need a single -rpath flag with a separated argument.
20919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20920
20921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20922 # resulting binary.
20923 hardcode_direct=$hardcode_direct_RC
20924
20925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20926 # resulting binary.
20927 hardcode_minus_L=$hardcode_minus_L_RC
20928
20929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20930 # the resulting binary.
20931 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20932
20933 # Set to yes if building a shared library automatically hardcodes DIR into the library
20934 # and all subsequent libraries and executables linked against it.
20935 hardcode_automatic=$hardcode_automatic_RC
20936
20937 # Variables whose values should be saved in libtool wrapper scripts and
20938 # restored at relink time.
20939 variables_saved_for_relink="$variables_saved_for_relink"
20940
20941 # Whether libtool must link a program against all its dependency libraries.
20942 link_all_deplibs=$link_all_deplibs_RC
20943
20944 # Compile-time system search path for libraries
20945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20946
20947 # Run-time system search path for libraries
20948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20949
20950 # Fix the shell variable \$srcfile for the compiler.
20951 fix_srcfile_path=$lt_fix_srcfile_path
20952
20953 # Set to yes if exported symbols are required.
20954 always_export_symbols=$always_export_symbols_RC
20955
20956 # The commands to list exported symbols.
20957 export_symbols_cmds=$lt_export_symbols_cmds_RC
20958
20959 # The commands to extract the exported symbol list from a shared archive.
20960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20961
20962 # Symbols that should not be listed in the preloaded symbols.
20963 exclude_expsyms=$lt_exclude_expsyms_RC
20964
20965 # Symbols that must always be exported.
20966 include_expsyms=$lt_include_expsyms_RC
20967
20968 # ### END LIBTOOL TAG CONFIG: $tagname
20969
20970 __EOF__
20971
20972
20973 else
20974   # If there is no Makefile yet, we rely on a make rule to execute
20975   # `config.status --recheck' to rerun these tests and create the
20976   # libtool script then.
20977   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20978   if test -f "$ltmain_in"; then
20979     test -f Makefile && make "$ltmain"
20980   fi
20981 fi
20982
20983
20984 ac_ext=c
20985 ac_cpp='$CPP $CPPFLAGS'
20986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20989
20990 CC="$lt_save_CC"
20991
20992         ;;
20993
20994       *)
20995         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20996 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20997    { (exit 1); exit 1; }; }
20998         ;;
20999       esac
21000
21001       # Append the new tag name to the list of available tags.
21002       if test -n "$tagname" ; then
21003       available_tags="$available_tags $tagname"
21004     fi
21005     fi
21006   done
21007   IFS="$lt_save_ifs"
21008
21009   # Now substitute the updated list of available tags.
21010   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21011     mv "${ofile}T" "$ofile"
21012     chmod +x "$ofile"
21013   else
21014     rm -f "${ofile}T"
21015     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21016 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21017    { (exit 1); exit 1; }; }
21018   fi
21019 fi
21020
21021
21022
21023 # This can be used to rebuild libtool when needed
21024 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21025
21026 # Always use our own libtool.
21027 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21028
21029 # Prevent multiple expansion
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041   
21042
21043   
21044
21045
21046   
21047        
21048        
21049
21050 if test "x$CC" != xcc; then
21051   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21052 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21053 else
21054   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21055 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21056 fi
21057 set dummy $CC; ac_cc=`echo $2 |
21058                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21059 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21060   echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062   cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068
21069 int
21070 main ()
21071 {
21072
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 # Make sure it works both with $CC and with simple cc.
21078 # We do the test twice because some compilers refuse to overwrite an
21079 # existing .o file with -o, though they will create one.
21080 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21081 rm -f conftest2.*
21082 if { (case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_try") 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_try") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); };
21100 then
21101   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21102   if test "x$CC" != xcc; then
21103     # Test first that cc exists at all.
21104     if { ac_try='cc -c conftest.$ac_ext >&5'
21105   { (case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_try") 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21115       rm -f conftest2.*
21116       if { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } &&
21125          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_try") 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); };
21134       then
21135         # cc works too.
21136         :
21137       else
21138         # cc exists but doesn't like -o.
21139         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21140       fi
21141     fi
21142   fi
21143 else
21144   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21145 fi
21146 rm -f core conftest*
21147
21148 fi
21149 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21150   { echo "$as_me:$LINENO: result: yes" >&5
21151 echo "${ECHO_T}yes" >&6; }
21152 else
21153   { echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6; }
21155   
21156 cat >>confdefs.h <<\_ACEOF
21157 @%:@define NO_MINUS_C_MINUS_O 1
21158 _ACEOF
21159
21160 fi
21161
21162 # FIXME: we rely on the cache variable name because
21163 # there is no other way.
21164 set dummy $CC
21165 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21166 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21167    # Losing compiler, so override with the script.
21168    # FIXME: It is wrong to rewrite CC.
21169    # But if we don't then we get into trouble of one sort or another.
21170    # A longer-term fix would be to have automake use am__CC in this case,
21171    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21172    CC="$am_aux_dir/compile $CC"
21173 fi
21174
21175
21176 if test "x$cross_compiling" = "xno"; then
21177         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21178 else
21179         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21180 fi
21181
21182
21183
21184 if test -n "$ac_tool_prefix"; then
21185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21186 set dummy ${ac_tool_prefix}ar; ac_word=$2
21187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21189 if test "${ac_cv_prog_AR+set}" = set; then
21190   echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192   if test -n "$AR"; then
21193   ac_cv_prog_AR="$AR" # Let the user override the test.
21194 else
21195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21196 for as_dir in $PATH
21197 do
21198   IFS=$as_save_IFS
21199   test -z "$as_dir" && as_dir=.
21200   for ac_exec_ext in '' $ac_executable_extensions; do
21201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21202     ac_cv_prog_AR="${ac_tool_prefix}ar"
21203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21204     break 2
21205   fi
21206 done
21207 done
21208 IFS=$as_save_IFS
21209
21210 fi
21211 fi
21212 AR=$ac_cv_prog_AR
21213 if test -n "$AR"; then
21214   { echo "$as_me:$LINENO: result: $AR" >&5
21215 echo "${ECHO_T}$AR" >&6; }
21216 else
21217   { echo "$as_me:$LINENO: result: no" >&5
21218 echo "${ECHO_T}no" >&6; }
21219 fi
21220
21221
21222 fi
21223 if test -z "$ac_cv_prog_AR"; then
21224   ac_ct_AR=$AR
21225   # Extract the first word of "ar", so it can be a program name with args.
21226 set dummy ar; ac_word=$2
21227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232   if test -n "$ac_ct_AR"; then
21233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21234 else
21235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21236 for as_dir in $PATH
21237 do
21238   IFS=$as_save_IFS
21239   test -z "$as_dir" && as_dir=.
21240   for ac_exec_ext in '' $ac_executable_extensions; do
21241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21242     ac_cv_prog_ac_ct_AR="ar"
21243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21244     break 2
21245   fi
21246 done
21247 done
21248 IFS=$as_save_IFS
21249
21250 fi
21251 fi
21252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21253 if test -n "$ac_ct_AR"; then
21254   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21255 echo "${ECHO_T}$ac_ct_AR" >&6; }
21256 else
21257   { echo "$as_me:$LINENO: result: no" >&5
21258 echo "${ECHO_T}no" >&6; }
21259 fi
21260
21261   if test "x$ac_ct_AR" = x; then
21262     AR=""
21263   else
21264     case $cross_compiling:$ac_tool_warned in
21265 yes:)
21266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21267 whose name does not start with the host triplet.  If you think this
21268 configuration is useful to you, please write to autoconf@gnu.org." >&5
21269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21270 whose name does not start with the host triplet.  If you think this
21271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21272 ac_tool_warned=yes ;;
21273 esac
21274     AR=$ac_ct_AR
21275   fi
21276 else
21277   AR="$ac_cv_prog_AR"
21278 fi
21279
21280 if test -n "$ac_tool_prefix"; then
21281   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21282 set dummy ${ac_tool_prefix}ld; ac_word=$2
21283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21285 if test "${ac_cv_prog_LD+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   if test -n "$LD"; then
21289   ac_cv_prog_LD="$LD" # Let the user override the test.
21290 else
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21293 do
21294   IFS=$as_save_IFS
21295   test -z "$as_dir" && as_dir=.
21296   for ac_exec_ext in '' $ac_executable_extensions; do
21297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21298     ac_cv_prog_LD="${ac_tool_prefix}ld"
21299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21300     break 2
21301   fi
21302 done
21303 done
21304 IFS=$as_save_IFS
21305
21306 fi
21307 fi
21308 LD=$ac_cv_prog_LD
21309 if test -n "$LD"; then
21310   { echo "$as_me:$LINENO: result: $LD" >&5
21311 echo "${ECHO_T}$LD" >&6; }
21312 else
21313   { echo "$as_me:$LINENO: result: no" >&5
21314 echo "${ECHO_T}no" >&6; }
21315 fi
21316
21317
21318 fi
21319 if test -z "$ac_cv_prog_LD"; then
21320   ac_ct_LD=$LD
21321   # Extract the first word of "ld", so it can be a program name with args.
21322 set dummy ld; ac_word=$2
21323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21325 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   if test -n "$ac_ct_LD"; then
21329   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21330 else
21331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21333 do
21334   IFS=$as_save_IFS
21335   test -z "$as_dir" && as_dir=.
21336   for ac_exec_ext in '' $ac_executable_extensions; do
21337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21338     ac_cv_prog_ac_ct_LD="ld"
21339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21340     break 2
21341   fi
21342 done
21343 done
21344 IFS=$as_save_IFS
21345
21346 fi
21347 fi
21348 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21349 if test -n "$ac_ct_LD"; then
21350   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21351 echo "${ECHO_T}$ac_ct_LD" >&6; }
21352 else
21353   { echo "$as_me:$LINENO: result: no" >&5
21354 echo "${ECHO_T}no" >&6; }
21355 fi
21356
21357   if test "x$ac_ct_LD" = x; then
21358     LD=""
21359   else
21360     case $cross_compiling:$ac_tool_warned in
21361 yes:)
21362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21363 whose name does not start with the host triplet.  If you think this
21364 configuration is useful to you, please write to autoconf@gnu.org." >&5
21365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21366 whose name does not start with the host triplet.  If you think this
21367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21368 ac_tool_warned=yes ;;
21369 esac
21370     LD=$ac_ct_LD
21371   fi
21372 else
21373   LD="$ac_cv_prog_LD"
21374 fi
21375
21376
21377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21379 if test "${ac_cv_header_stdc+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 #include <stdlib.h>
21389 #include <stdarg.h>
21390 #include <string.h>
21391 #include <float.h>
21392
21393 int
21394 main ()
21395 {
21396
21397   ;
21398   return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext
21402 if { (ac_try="$ac_compile"
21403 case "(($ac_try" in
21404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405   *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408   (eval "$ac_compile") 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } && {
21415          test -z "$ac_c_werror_flag" ||
21416          test ! -s conftest.err
21417        } && test -s conftest.$ac_objext; then
21418   ac_cv_header_stdc=yes
21419 else
21420   echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423         ac_cv_header_stdc=no
21424 fi
21425
21426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427
21428 if test $ac_cv_header_stdc = yes; then
21429   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21430   cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 #include <string.h>
21437
21438 _ACEOF
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440   $EGREP "memchr" >/dev/null 2>&1; then
21441   :
21442 else
21443   ac_cv_header_stdc=no
21444 fi
21445 rm -f conftest*
21446
21447 fi
21448
21449 if test $ac_cv_header_stdc = yes; then
21450   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21451   cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457 #include <stdlib.h>
21458
21459 _ACEOF
21460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21461   $EGREP "free" >/dev/null 2>&1; then
21462   :
21463 else
21464   ac_cv_header_stdc=no
21465 fi
21466 rm -f conftest*
21467
21468 fi
21469
21470 if test $ac_cv_header_stdc = yes; then
21471   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21472   if test "$cross_compiling" = yes; then
21473   :
21474 else
21475   cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481 #include <ctype.h>
21482 #include <stdlib.h>
21483 #if ((' ' & 0x0FF) == 0x020)
21484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21486 #else
21487 # define ISLOWER(c) \
21488                    (('a' <= (c) && (c) <= 'i') \
21489                      || ('j' <= (c) && (c) <= 'r') \
21490                      || ('s' <= (c) && (c) <= 'z'))
21491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21492 #endif
21493
21494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21495 int
21496 main ()
21497 {
21498   int i;
21499   for (i = 0; i < 256; i++)
21500     if (XOR (islower (i), ISLOWER (i))
21501         || toupper (i) != TOUPPER (i))
21502       return 2;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_link") 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21517   { (case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_try") 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; }; then
21526   :
21527 else
21528   echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 ( exit $ac_status )
21533 ac_cv_header_stdc=no
21534 fi
21535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21536 fi
21537
21538
21539 fi
21540 fi
21541 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21542 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21543 if test $ac_cv_header_stdc = yes; then
21544   
21545 cat >>confdefs.h <<\_ACEOF
21546 @%:@define STDC_HEADERS 1
21547 _ACEOF
21548
21549 fi
21550
21551
21552   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21553 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21554   if test "${knfsd_cv_glibc2+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557   cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563
21564       #include <features.h>
21565       #if !defined(__GLIBC__)
21566       # error Nope
21567       #endif
21568       
21569 _ACEOF
21570 if { (ac_try="$ac_cpp conftest.$ac_ext"
21571 case "(($ac_try" in
21572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573   *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } >/dev/null && {
21583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21584          test ! -s conftest.err
21585        }; then
21586   knfsd_cv_glibc2=yes
21587 else
21588   echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591   knfsd_cv_glibc2=no
21592 fi
21593
21594 rm -f conftest.err conftest.$ac_ext
21595 fi
21596
21597   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21598 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21599   if test $knfsd_cv_glibc2 = yes; then
21600     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21601     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21602   fi
21603
21604
21605   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21606 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21607   if test "${knfsd_cv_bsd_signals+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610   if test "$cross_compiling" = yes; then
21611   
21612       case "$host_os" in
21613         *linux*) knfsd_cv_bsd_signals=no;;
21614         *bsd*)   knfsd_cv_bsd_signals=yes;;
21615         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21616 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21617    { (exit 1); exit 1; }; };;
21618       esac
21619     
21620 else
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627
21628         #include <signal.h>
21629         #include <unistd.h>
21630         #include <sys/wait.h>
21631
21632         static int counter = 0;
21633         static RETSIGTYPE handler(int num) { counter++; }
21634
21635         int main()
21636         {
21637                 int     s;
21638                 if ((s = fork()) < 0) return 1;
21639                 if (s != 0) {
21640                         if (wait(&s) < 0) return 1;
21641                         return WIFSIGNALED(s)? 1 : 0;
21642                 }
21643
21644                 signal(SIGHUP, handler);
21645                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21646                 return (counter == 2)? 0 : 1;
21647         }
21648     
21649 _ACEOF
21650 rm -f conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654   *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657   (eval "$ac_link") 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21661   { (case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_try") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; }; then
21670   knfsd_cv_bsd_signals=yes
21671 else
21672   echo "$as_me: program exited with status $ac_status" >&5
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 ( exit $ac_status )
21677 knfsd_cv_bsd_signals=no
21678 fi
21679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21680 fi
21681
21682
21683 fi
21684      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21685 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21686     test $knfsd_cv_bsd_signals = yes && 
21687 cat >>confdefs.h <<\_ACEOF
21688 @%:@define HAVE_BSD_SIGNALS 1
21689 _ACEOF
21690
21691
21692
21693 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21694 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21695 if test "${ac_cv_func_gethostbyname+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21706 #define gethostbyname innocuous_gethostbyname
21707
21708 /* System header to define __stub macros and hopefully few prototypes,
21709     which can conflict with char gethostbyname (); below.
21710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21711     <limits.h> exists even on freestanding compilers.  */
21712
21713 #ifdef __STDC__
21714 # include <limits.h>
21715 #else
21716 # include <assert.h>
21717 #endif
21718
21719 #undef gethostbyname
21720
21721 /* Override any GCC internal prototype to avoid an error.
21722    Use char because int might match the return type of a GCC
21723    builtin and then its argument prototype would still apply.  */
21724 #ifdef __cplusplus
21725 extern "C"
21726 #endif
21727 char gethostbyname ();
21728 /* The GNU C library defines this for functions which it implements
21729     to always fail with ENOSYS.  Some functions are actually named
21730     something starting with __ and the normal name is an alias.  */
21731 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21732 choke me
21733 #endif
21734
21735 int
21736 main ()
21737 {
21738 return gethostbyname ();
21739   ;
21740   return 0;
21741 }
21742 _ACEOF
21743 rm -f conftest.$ac_objext conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747   *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750   (eval "$ac_link") 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } && {
21757          test -z "$ac_c_werror_flag" ||
21758          test ! -s conftest.err
21759        } && test -s conftest$ac_exeext &&
21760        $as_test_x conftest$ac_exeext; then
21761   ac_cv_func_gethostbyname=yes
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         ac_cv_func_gethostbyname=no
21767 fi
21768
21769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21770       conftest$ac_exeext conftest.$ac_ext
21771 fi
21772 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21773 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21774 if test $ac_cv_func_gethostbyname = yes; then
21775   :
21776 else
21777   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21778 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21779 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lnsl  $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h.  */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h.  */
21790
21791 /* Override any GCC internal prototype to avoid an error.
21792    Use char because int might match the return type of a GCC
21793    builtin and then its argument prototype would still apply.  */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char gethostbyname ();
21798 int
21799 main ()
21800 {
21801 return gethostbyname ();
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_link") 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } && {
21820          test -z "$ac_c_werror_flag" ||
21821          test ! -s conftest.err
21822        } && test -s conftest$ac_exeext &&
21823        $as_test_x conftest$ac_exeext; then
21824   ac_cv_lib_nsl_gethostbyname=yes
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         ac_cv_lib_nsl_gethostbyname=no
21830 fi
21831
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833       conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21835 fi
21836 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21837 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21838 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21839   LIBNSL="-lnsl"
21840 fi
21841
21842 fi
21843
21844
21845
21846 { echo "$as_me:$LINENO: checking for connect" >&5
21847 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21848 if test "${ac_cv_func_connect+set}" = set; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851   cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21859 #define connect innocuous_connect
21860
21861 /* System header to define __stub macros and hopefully few prototypes,
21862     which can conflict with char connect (); below.
21863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864     <limits.h> exists even on freestanding compilers.  */
21865
21866 #ifdef __STDC__
21867 # include <limits.h>
21868 #else
21869 # include <assert.h>
21870 #endif
21871
21872 #undef connect
21873
21874 /* Override any GCC internal prototype to avoid an error.
21875    Use char because int might match the return type of a GCC
21876    builtin and then its argument prototype would still apply.  */
21877 #ifdef __cplusplus
21878 extern "C"
21879 #endif
21880 char connect ();
21881 /* The GNU C library defines this for functions which it implements
21882     to always fail with ENOSYS.  Some functions are actually named
21883     something starting with __ and the normal name is an alias.  */
21884 #if defined __stub_connect || defined __stub___connect
21885 choke me
21886 #endif
21887
21888 int
21889 main ()
21890 {
21891 return connect ();
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_link") 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } && {
21910          test -z "$ac_c_werror_flag" ||
21911          test ! -s conftest.err
21912        } && test -s conftest$ac_exeext &&
21913        $as_test_x conftest$ac_exeext; then
21914   ac_cv_func_connect=yes
21915 else
21916   echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919         ac_cv_func_connect=no
21920 fi
21921
21922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21923       conftest$ac_exeext conftest.$ac_ext
21924 fi
21925 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21926 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21927 if test $ac_cv_func_connect = yes; then
21928   :
21929 else
21930   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21931 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21932 if test "${ac_cv_lib_socket_connect+set}" = set; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935   ac_check_lib_save_LIBS=$LIBS
21936 LIBS="-lsocket $LIBNSL $LIBS"
21937 cat >conftest.$ac_ext <<_ACEOF
21938 /* confdefs.h.  */
21939 _ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h.  */
21943
21944 /* Override any GCC internal prototype to avoid an error.
21945    Use char because int might match the return type of a GCC
21946    builtin and then its argument prototype would still apply.  */
21947 #ifdef __cplusplus
21948 extern "C"
21949 #endif
21950 char connect ();
21951 int
21952 main ()
21953 {
21954 return connect ();
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963   *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966   (eval "$ac_link") 2>conftest.er1
21967   ac_status=$?
21968   grep -v '^ *+' conftest.er1 >conftest.err
21969   rm -f conftest.er1
21970   cat conftest.err >&5
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } && {
21973          test -z "$ac_c_werror_flag" ||
21974          test ! -s conftest.err
21975        } && test -s conftest$ac_exeext &&
21976        $as_test_x conftest$ac_exeext; then
21977   ac_cv_lib_socket_connect=yes
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982         ac_cv_lib_socket_connect=no
21983 fi
21984
21985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21986       conftest$ac_exeext conftest.$ac_ext
21987 LIBS=$ac_check_lib_save_LIBS
21988 fi
21989 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21990 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21991 if test $ac_cv_lib_socket_connect = yes; then
21992   LIBSOCKET="-lsocket"
21993 else
21994   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21995 echo "$as_me: error: Function 'socket' not found." >&2;}
21996    { (exit 1); exit 1; }; }
21997 fi
21998
21999 fi
22000
22001
22002 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22003 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22004 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   ac_check_lib_save_LIBS=$LIBS
22008 LIBS="-lcrypt  $LIBS"
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015
22016 /* Override any GCC internal prototype to avoid an error.
22017    Use char because int might match the return type of a GCC
22018    builtin and then its argument prototype would still apply.  */
22019 #ifdef __cplusplus
22020 extern "C"
22021 #endif
22022 char crypt ();
22023 int
22024 main ()
22025 {
22026 return crypt ();
22027   ;
22028   return 0;
22029 }
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_link") 2>conftest.er1
22039   ac_status=$?
22040   grep -v '^ *+' conftest.er1 >conftest.err
22041   rm -f conftest.er1
22042   cat conftest.err >&5
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } && {
22045          test -z "$ac_c_werror_flag" ||
22046          test ! -s conftest.err
22047        } && test -s conftest$ac_exeext &&
22048        $as_test_x conftest$ac_exeext; then
22049   ac_cv_lib_crypt_crypt=yes
22050 else
22051   echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         ac_cv_lib_crypt_crypt=no
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22058       conftest$ac_exeext conftest.$ac_ext
22059 LIBS=$ac_check_lib_save_LIBS
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22062 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22063 if test $ac_cv_lib_crypt_crypt = yes; then
22064   LIBCRYPT="-lcrypt"
22065 fi
22066
22067 if test "$enable_nfsv4" = yes; then
22068     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22069 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22070 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22071   echo $ECHO_N "(cached) $ECHO_C" >&6
22072 else
22073   ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-levent  $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081
22082 /* Override any GCC internal prototype to avoid an error.
22083    Use char because int might match the return type of a GCC
22084    builtin and then its argument prototype would still apply.  */
22085 #ifdef __cplusplus
22086 extern "C"
22087 #endif
22088 char event_dispatch ();
22089 int
22090 main ()
22091 {
22092 return event_dispatch ();
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101   *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104   (eval "$ac_link") 2>conftest.er1
22105   ac_status=$?
22106   grep -v '^ *+' conftest.er1 >conftest.err
22107   rm -f conftest.er1
22108   cat conftest.err >&5
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } && {
22111          test -z "$ac_c_werror_flag" ||
22112          test ! -s conftest.err
22113        } && test -s conftest$ac_exeext &&
22114        $as_test_x conftest$ac_exeext; then
22115   ac_cv_lib_event_event_dispatch=yes
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120         ac_cv_lib_event_event_dispatch=no
22121 fi
22122
22123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22124       conftest$ac_exeext conftest.$ac_ext
22125 LIBS=$ac_check_lib_save_LIBS
22126 fi
22127 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22128 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22129 if test $ac_cv_lib_event_event_dispatch = yes; then
22130   libevent=1
22131 else
22132   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22133 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22134    { (exit 1); exit 1; }; }
22135 fi
22136
22137     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22138 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22139 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22140   echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142   ac_check_lib_save_LIBS=$LIBS
22143 LIBS="-lnfsidmap  $LIBS"
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150
22151 /* Override any GCC internal prototype to avoid an error.
22152    Use char because int might match the return type of a GCC
22153    builtin and then its argument prototype would still apply.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char nfs4_init_name_mapping ();
22158 int
22159 main ()
22160 {
22161 return nfs4_init_name_mapping ();
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (ac_try="$ac_link"
22168 case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173   (eval "$ac_link") 2>conftest.er1
22174   ac_status=$?
22175   grep -v '^ *+' conftest.er1 >conftest.err
22176   rm -f conftest.er1
22177   cat conftest.err >&5
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); } && {
22180          test -z "$ac_c_werror_flag" ||
22181          test ! -s conftest.err
22182        } && test -s conftest$ac_exeext &&
22183        $as_test_x conftest$ac_exeext; then
22184   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22190 fi
22191
22192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22193       conftest$ac_exeext conftest.$ac_ext
22194 LIBS=$ac_check_lib_save_LIBS
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22197 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22198 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22199   libnfsidmap=1
22200 else
22201   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22202 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22203    { (exit 1); exit 1; }; }
22204 fi
22205
22206     
22207 for ac_header in event.h
22208 do
22209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 fi
22216 ac_res=`eval echo '${'$as_ac_Header'}'`
22217                { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 else
22220   # Is the header compilable?
22221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22223 cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h.  */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h.  */
22229 $ac_includes_default
22230 @%:@include <$ac_header>
22231 _ACEOF
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236   *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239   (eval "$ac_compile") 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } && {
22246          test -z "$ac_c_werror_flag" ||
22247          test ! -s conftest.err
22248        } && test -s conftest.$ac_objext; then
22249   ac_header_compiler=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254         ac_header_compiler=no
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22259 echo "${ECHO_T}$ac_header_compiler" >&6; }
22260
22261 # Is the header present?
22262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22264 cat >conftest.$ac_ext <<_ACEOF
22265 /* confdefs.h.  */
22266 _ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h.  */
22270 @%:@include <$ac_header>
22271 _ACEOF
22272 if { (ac_try="$ac_cpp conftest.$ac_ext"
22273 case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22279   ac_status=$?
22280   grep -v '^ *+' conftest.er1 >conftest.err
22281   rm -f conftest.er1
22282   cat conftest.err >&5
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } >/dev/null && {
22285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22286          test ! -s conftest.err
22287        }; then
22288   ac_header_preproc=yes
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293   ac_header_preproc=no
22294 fi
22295
22296 rm -f conftest.err conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22298 echo "${ECHO_T}$ac_header_preproc" >&6; }
22299
22300 # So?  What about this header?
22301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22302   yes:no: )
22303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22307     ac_header_preproc=yes
22308     ;;
22309   no:yes:* )
22310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22322     ( cat <<\_ASBOX
22323 @%:@@%:@ ------------------------------- @%:@@%:@
22324 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22325 @%:@@%:@ ------------------------------- @%:@@%:@
22326 _ASBOX
22327      ) | sed "s/^/$as_me: WARNING:     /" >&2
22328     ;;
22329 esac
22330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   eval "$as_ac_Header=\$ac_header_preproc"
22336 fi
22337 ac_res=`eval echo '${'$as_ac_Header'}'`
22338                { echo "$as_me:$LINENO: result: $ac_res" >&5
22339 echo "${ECHO_T}$ac_res" >&6; }
22340
22341 fi
22342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22343   cat >>confdefs.h <<_ACEOF
22344 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22345 _ACEOF
22346  
22347 else
22348   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22349 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22350    { (exit 1); exit 1; }; }
22351 fi
22352
22353 done
22354
22355     
22356 for ac_header in nfsidmap.h
22357 do
22358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363   echo $ECHO_N "(cached) $ECHO_C" >&6
22364 fi
22365 ac_res=`eval echo '${'$as_ac_Header'}'`
22366                { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 else
22369   # Is the header compilable?
22370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22372 cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h.  */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h.  */
22378 $ac_includes_default
22379 @%:@include <$ac_header>
22380 _ACEOF
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_compile") 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } && {
22395          test -z "$ac_c_werror_flag" ||
22396          test ! -s conftest.err
22397        } && test -s conftest.$ac_objext; then
22398   ac_header_compiler=yes
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403         ac_header_compiler=no
22404 fi
22405
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22408 echo "${ECHO_T}$ac_header_compiler" >&6; }
22409
22410 # Is the header present?
22411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22413 cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h.  */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h.  */
22419 @%:@include <$ac_header>
22420 _ACEOF
22421 if { (ac_try="$ac_cpp conftest.$ac_ext"
22422 case "(($ac_try" in
22423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424   *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } >/dev/null && {
22434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22435          test ! -s conftest.err
22436        }; then
22437   ac_header_preproc=yes
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442   ac_header_preproc=no
22443 fi
22444
22445 rm -f conftest.err conftest.$ac_ext
22446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22447 echo "${ECHO_T}$ac_header_preproc" >&6; }
22448
22449 # So?  What about this header?
22450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22451   yes:no: )
22452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22456     ac_header_preproc=yes
22457     ;;
22458   no:yes:* )
22459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22471     ( cat <<\_ASBOX
22472 @%:@@%:@ ------------------------------- @%:@@%:@
22473 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22474 @%:@@%:@ ------------------------------- @%:@@%:@
22475 _ASBOX
22476      ) | sed "s/^/$as_me: WARNING:     /" >&2
22477     ;;
22478 esac
22479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22482   echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484   eval "$as_ac_Header=\$ac_header_preproc"
22485 fi
22486 ac_res=`eval echo '${'$as_ac_Header'}'`
22487                { echo "$as_me:$LINENO: result: $ac_res" >&5
22488 echo "${ECHO_T}$ac_res" >&6; }
22489
22490 fi
22491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22492   cat >>confdefs.h <<_ACEOF
22493 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22494 _ACEOF
22495  
22496 else
22497   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22498 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22499    { (exit 1); exit 1; }; }
22500 fi
22501
22502 done
22503
22504             if test "$enable_gss" = yes; then
22505      
22506
22507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22508         if test -n "$ac_tool_prefix"; then
22509   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516   case $PKG_CONFIG in
22517   [\\/]* | ?:[\\/]*)
22518   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22519   ;;
22520   *)
22521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22522 for as_dir in $PATH
22523 do
22524   IFS=$as_save_IFS
22525   test -z "$as_dir" && as_dir=.
22526   for ac_exec_ext in '' $ac_executable_extensions; do
22527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22528     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22530     break 2
22531   fi
22532 done
22533 done
22534 IFS=$as_save_IFS
22535
22536   ;;
22537 esac
22538 fi
22539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22540 if test -n "$PKG_CONFIG"; then
22541   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22542 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22543 else
22544   { echo "$as_me:$LINENO: result: no" >&5
22545 echo "${ECHO_T}no" >&6; }
22546 fi
22547
22548
22549 fi
22550 if test -z "$ac_cv_path_PKG_CONFIG"; then
22551   ac_pt_PKG_CONFIG=$PKG_CONFIG
22552   # Extract the first word of "pkg-config", so it can be a program name with args.
22553 set dummy pkg-config; ac_word=$2
22554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22556 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22557   echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559   case $ac_pt_PKG_CONFIG in
22560   [\\/]* | ?:[\\/]*)
22561   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22562   ;;
22563   *)
22564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22565 for as_dir in $PATH
22566 do
22567   IFS=$as_save_IFS
22568   test -z "$as_dir" && as_dir=.
22569   for ac_exec_ext in '' $ac_executable_extensions; do
22570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22571     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22573     break 2
22574   fi
22575 done
22576 done
22577 IFS=$as_save_IFS
22578
22579   ;;
22580 esac
22581 fi
22582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22583 if test -n "$ac_pt_PKG_CONFIG"; then
22584   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22585 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22586 else
22587   { echo "$as_me:$LINENO: result: no" >&5
22588 echo "${ECHO_T}no" >&6; }
22589 fi
22590
22591   if test "x$ac_pt_PKG_CONFIG" = x; then
22592     PKG_CONFIG=""
22593   else
22594     case $cross_compiling:$ac_tool_warned in
22595 yes:)
22596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22597 whose name does not start with the host triplet.  If you think this
22598 configuration is useful to you, please write to autoconf@gnu.org." >&5
22599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22600 whose name does not start with the host triplet.  If you think this
22601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22602 ac_tool_warned=yes ;;
22603 esac
22604     PKG_CONFIG=$ac_pt_PKG_CONFIG
22605   fi
22606 else
22607   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22608 fi
22609
22610 fi
22611 if test -n "$PKG_CONFIG"; then
22612         _pkg_min_version=0.9.0
22613         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22614 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22615         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22616                 { echo "$as_me:$LINENO: result: yes" >&5
22617 echo "${ECHO_T}yes" >&6; }
22618         else
22619                 { echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6; }
22621                 PKG_CONFIG=""
22622         fi
22623                 
22624 fi
22625
22626 pkg_failed=no
22627 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22628 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22629
22630 if test -n "$PKG_CONFIG"; then
22631     if test -n "$RPCSECGSS_CFLAGS"; then
22632         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22633     else
22634         if test -n "$PKG_CONFIG" && \
22635     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22636   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; then
22640   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22641 else
22642   pkg_failed=yes
22643 fi
22644     fi
22645 else
22646         pkg_failed=untried
22647 fi
22648 if test -n "$PKG_CONFIG"; then
22649     if test -n "$RPCSECGSS_LIBS"; then
22650         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22651     else
22652         if test -n "$PKG_CONFIG" && \
22653     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22654   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22655   ac_status=$?
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); }; then
22658   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22659 else
22660   pkg_failed=yes
22661 fi
22662     fi
22663 else
22664         pkg_failed=untried
22665 fi
22666
22667
22668
22669 if test $pkg_failed = yes; then
22670         
22671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22672         _pkg_short_errors_supported=yes
22673 else
22674         _pkg_short_errors_supported=no
22675 fi
22676         if test $_pkg_short_errors_supported = yes; then
22677                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22678         else 
22679                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22680         fi
22681         # Put the nasty error message in config.log where it belongs
22682         echo "$RPCSECGSS_PKG_ERRORS" >&5
22683
22684         { echo "$as_me:$LINENO: result: no" >&5
22685 echo "${ECHO_T}no" >&6; }
22686                 { { 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
22687 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;}
22688    { (exit 1); exit 1; }; }
22689       
22690      
22691 elif test $pkg_failed = untried; then
22692         { { 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
22693 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;}
22694    { (exit 1); exit 1; }; }
22695       
22696      
22697 else
22698         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22699         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22700         { echo "$as_me:$LINENO: result: yes" >&5
22701 echo "${ECHO_T}yes" >&6; }
22702         :
22703 fi
22704     
22705 pkg_failed=no
22706 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22707 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22708
22709 if test -n "$PKG_CONFIG"; then
22710     if test -n "$GSSGLUE_CFLAGS"; then
22711         pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22712     else
22713         if test -n "$PKG_CONFIG" && \
22714     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22715   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22716   ac_status=$?
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); }; then
22719   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22720 else
22721   pkg_failed=yes
22722 fi
22723     fi
22724 else
22725         pkg_failed=untried
22726 fi
22727 if test -n "$PKG_CONFIG"; then
22728     if test -n "$GSSGLUE_LIBS"; then
22729         pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22730     else
22731         if test -n "$PKG_CONFIG" && \
22732     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22733   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; then
22737   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22738 else
22739   pkg_failed=yes
22740 fi
22741     fi
22742 else
22743         pkg_failed=untried
22744 fi
22745
22746
22747
22748 if test $pkg_failed = yes; then
22749         
22750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22751         _pkg_short_errors_supported=yes
22752 else
22753         _pkg_short_errors_supported=no
22754 fi
22755         if test $_pkg_short_errors_supported = yes; then
22756                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22757         else 
22758                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22759         fi
22760         # Put the nasty error message in config.log where it belongs
22761         echo "$GSSGLUE_PKG_ERRORS" >&5
22762
22763         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22764
22765 $GSSGLUE_PKG_ERRORS
22766
22767 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22768 installed software in a non-standard prefix.
22769
22770 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22771 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22772 See the pkg-config man page for more details.
22773 " >&5
22774 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22775
22776 $GSSGLUE_PKG_ERRORS
22777
22778 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22779 installed software in a non-standard prefix.
22780
22781 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22782 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22783 See the pkg-config man page for more details.
22784 " >&2;}
22785    { (exit 1); exit 1; }; }
22786 elif test $pkg_failed = untried; then
22787         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22788 is in your PATH or set the PKG_CONFIG environment variable to the full
22789 path to pkg-config.
22790
22791 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22792 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22793 See the pkg-config man page for more details.
22794
22795 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22796 See \`config.log' for more details." >&5
22797 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22798 is in your PATH or set the PKG_CONFIG environment variable to the full
22799 path to pkg-config.
22800
22801 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22802 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22803 See the pkg-config man page for more details.
22804
22805 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22806 See \`config.log' for more details." >&2;}
22807    { (exit 1); exit 1; }; }
22808 else
22809         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22810         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22811         { echo "$as_me:$LINENO: result: yes" >&5
22812 echo "${ECHO_T}yes" >&6; }
22813         :
22814 fi
22815     fi
22816
22817 fi
22818 if test "$knfsd_cv_glibc2" = no; then
22819     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22820 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22821 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22822   echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824   ac_check_lib_save_LIBS=$LIBS
22825 LIBS="-lbsd  $LIBS"
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h.  */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h.  */
22832
22833 /* Override any GCC internal prototype to avoid an error.
22834    Use char because int might match the return type of a GCC
22835    builtin and then its argument prototype would still apply.  */
22836 #ifdef __cplusplus
22837 extern "C"
22838 #endif
22839 char daemon ();
22840 int
22841 main ()
22842 {
22843 return daemon ();
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852   *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855   (eval "$ac_link") 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } && {
22862          test -z "$ac_c_werror_flag" ||
22863          test ! -s conftest.err
22864        } && test -s conftest$ac_exeext &&
22865        $as_test_x conftest$ac_exeext; then
22866   ac_cv_lib_bsd_daemon=yes
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871         ac_cv_lib_bsd_daemon=no
22872 fi
22873
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875       conftest$ac_exeext conftest.$ac_ext
22876 LIBS=$ac_check_lib_save_LIBS
22877 fi
22878 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22879 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22880 if test $ac_cv_lib_bsd_daemon = yes; then
22881   LIBBSD="-lbsd"
22882 fi
22883
22884 fi
22885
22886 if test "$choose_blkid" != no; then 
22887    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22888 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22889 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892   ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-lblkid  $LIBS"
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900
22901 /* Override any GCC internal prototype to avoid an error.
22902    Use char because int might match the return type of a GCC
22903    builtin and then its argument prototype would still apply.  */
22904 #ifdef __cplusplus
22905 extern "C"
22906 #endif
22907 char blkid_get_library_version ();
22908 int
22909 main ()
22910 {
22911 return blkid_get_library_version ();
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_link") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest$ac_exeext &&
22933        $as_test_x conftest$ac_exeext; then
22934   ac_cv_lib_blkid_blkid_get_library_version=yes
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         ac_cv_lib_blkid_blkid_get_library_version=no
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943       conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22945 fi
22946 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22947 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22948 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22949   LIBBLKID="-lblkid"
22950 else
22951   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22952 echo "$as_me: error: libblkid needed" >&2;}
22953    { (exit 1); exit 1; }; }
22954 fi
22955
22956    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22957   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22958 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22959 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22960   echo $ECHO_N "(cached) $ECHO_C" >&6
22961 fi
22962 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22963 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22964 else
22965   # Is the header compilable?
22966 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22967 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22968 cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974 $ac_includes_default
22975 @%:@include <blkid/blkid.h>
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981   *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984   (eval "$ac_compile") 2>conftest.er1
22985   ac_status=$?
22986   grep -v '^ *+' conftest.er1 >conftest.err
22987   rm -f conftest.er1
22988   cat conftest.err >&5
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); } && {
22991          test -z "$ac_c_werror_flag" ||
22992          test ! -s conftest.err
22993        } && test -s conftest.$ac_objext; then
22994   ac_header_compiler=yes
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999         ac_header_compiler=no
23000 fi
23001
23002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23004 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005
23006 # Is the header present?
23007 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23008 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23009 cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h.  */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h.  */
23015 @%:@include <blkid/blkid.h>
23016 _ACEOF
23017 if { (ac_try="$ac_cpp conftest.$ac_ext"
23018 case "(($ac_try" in
23019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020   *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } >/dev/null && {
23030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23031          test ! -s conftest.err
23032        }; then
23033   ac_header_preproc=yes
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038   ac_header_preproc=no
23039 fi
23040
23041 rm -f conftest.err conftest.$ac_ext
23042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23043 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044
23045 # So?  What about this header?
23046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047   yes:no: )
23048     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23049 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23050     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23051 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23052     ac_header_preproc=yes
23053     ;;
23054   no:yes:* )
23055     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23056 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23057     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23058 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23059     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23060 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23061     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23063     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23064 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23065     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23066 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23067     ( cat <<\_ASBOX
23068 @%:@@%:@ ------------------------------- @%:@@%:@
23069 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23070 @%:@@%:@ ------------------------------- @%:@@%:@
23071 _ASBOX
23072      ) | sed "s/^/$as_me: WARNING:     /" >&2
23073     ;;
23074 esac
23075 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23076 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23077 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23078   echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23081 fi
23082 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23083 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23084
23085 fi
23086 if test $ac_cv_header_blkid_blkid_h = yes; then
23087   :
23088 else
23089   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23090 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23091    { (exit 1); exit 1; }; }
23092 fi
23093
23094
23095    
23096   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23097 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23098   if test "${libblkid_is_recent+set}" = set; then
23099   echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101   
23102     saved_LIBS="$LIBS"
23103     LIBS=-lblkid
23104     if test "$cross_compiling" = yes; then
23105   libblkid_is_recent=unknown
23106 else
23107   cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113
23114         #include <blkid/blkid.h>
23115         int main()
23116         {
23117                 int vers = blkid_get_library_version(0, 0);
23118                 return vers >= 140 ? 0 : 1;
23119         }
23120        
23121 _ACEOF
23122 rm -f conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_link") 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23133   { (case "(($ac_try" in
23134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135   *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138   (eval "$ac_try") 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; }; then
23142   libblkid_is_recent=yes
23143 else
23144   echo "$as_me: program exited with status $ac_status" >&5
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ( exit $ac_status )
23149 libblkid_is_recent=no
23150 fi
23151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23152 fi
23153
23154
23155     LIBS="$saved_LIBS"
23156     
23157 fi
23158   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23159 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23160
23161    if test $choose_blkid = yes; then
23162       use_blkid=1
23163       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23164 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23165    else
23166       if test $libblkid_is_recent = yes
23167       then use_blkid=1
23168       else use_blkid=0
23169            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23170 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23171       fi
23172     fi
23173     
23174 cat >>confdefs.h <<_ACEOF
23175 @%:@define USE_BLKID $use_blkid
23176 _ACEOF
23177
23178 fi
23179
23180
23181
23182
23183
23184 if test "$enable_gss" = yes; then
23185     
23186 for ac_header in nfsidmap.h
23187 do
23188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23193   echo $ECHO_N "(cached) $ECHO_C" >&6
23194 fi
23195 ac_res=`eval echo '${'$as_ac_Header'}'`
23196                { echo "$as_me:$LINENO: result: $ac_res" >&5
23197 echo "${ECHO_T}$ac_res" >&6; }
23198 else
23199   # Is the header compilable?
23200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23202 cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208 $ac_includes_default
23209 @%:@include <$ac_header>
23210 _ACEOF
23211 rm -f conftest.$ac_objext
23212 if { (ac_try="$ac_compile"
23213 case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_compile") 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } && {
23225          test -z "$ac_c_werror_flag" ||
23226          test ! -s conftest.err
23227        } && test -s conftest.$ac_objext; then
23228   ac_header_compiler=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233         ac_header_compiler=no
23234 fi
23235
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238 echo "${ECHO_T}$ac_header_compiler" >&6; }
23239
23240 # Is the header present?
23241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249 @%:@include <$ac_header>
23250 _ACEOF
23251 if { (ac_try="$ac_cpp conftest.$ac_ext"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } >/dev/null && {
23264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23265          test ! -s conftest.err
23266        }; then
23267   ac_header_preproc=yes
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272   ac_header_preproc=no
23273 fi
23274
23275 rm -f conftest.err conftest.$ac_ext
23276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 echo "${ECHO_T}$ac_header_preproc" >&6; }
23278
23279 # So?  What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23281   yes:no: )
23282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286     ac_header_preproc=yes
23287     ;;
23288   no:yes:* )
23289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23301     ( cat <<\_ASBOX
23302 @%:@@%:@ ------------------------------- @%:@@%:@
23303 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23304 @%:@@%:@ ------------------------------- @%:@@%:@
23305 _ASBOX
23306      ) | sed "s/^/$as_me: WARNING:     /" >&2
23307     ;;
23308 esac
23309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   eval "$as_ac_Header=\$ac_header_preproc"
23315 fi
23316 ac_res=`eval echo '${'$as_ac_Header'}'`
23317                { echo "$as_me:$LINENO: result: $ac_res" >&5
23318 echo "${ECHO_T}$ac_res" >&6; }
23319
23320 fi
23321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23322   cat >>confdefs.h <<_ACEOF
23323 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23324 _ACEOF
23325  
23326 else
23327   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23328 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23329    { (exit 1); exit 1; }; }
23330 fi
23331
23332 done
23333
23334   
23335 for ac_header in spkm3.h
23336 do
23337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23342   echo $ECHO_N "(cached) $ECHO_C" >&6
23343 fi
23344 ac_res=`eval echo '${'$as_ac_Header'}'`
23345                { echo "$as_me:$LINENO: result: $ac_res" >&5
23346 echo "${ECHO_T}$ac_res" >&6; }
23347 else
23348   # Is the header compilable?
23349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 $ac_includes_default
23358 @%:@include <$ac_header>
23359 _ACEOF
23360 rm -f conftest.$ac_objext
23361 if { (ac_try="$ac_compile"
23362 case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367   (eval "$ac_compile") 2>conftest.er1
23368   ac_status=$?
23369   grep -v '^ *+' conftest.er1 >conftest.err
23370   rm -f conftest.er1
23371   cat conftest.err >&5
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); } && {
23374          test -z "$ac_c_werror_flag" ||
23375          test ! -s conftest.err
23376        } && test -s conftest.$ac_objext; then
23377   ac_header_compiler=yes
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382         ac_header_compiler=no
23383 fi
23384
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23387 echo "${ECHO_T}$ac_header_compiler" >&6; }
23388
23389 # Is the header present?
23390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 @%:@include <$ac_header>
23399 _ACEOF
23400 if { (ac_try="$ac_cpp conftest.$ac_ext"
23401 case "(($ac_try" in
23402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403   *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } >/dev/null && {
23413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23414          test ! -s conftest.err
23415        }; then
23416   ac_header_preproc=yes
23417 else
23418   echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421   ac_header_preproc=no
23422 fi
23423
23424 rm -f conftest.err conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23426 echo "${ECHO_T}$ac_header_preproc" >&6; }
23427
23428 # So?  What about this header?
23429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23430   yes:no: )
23431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23435     ac_header_preproc=yes
23436     ;;
23437   no:yes:* )
23438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23450     ( cat <<\_ASBOX
23451 @%:@@%:@ ------------------------------- @%:@@%:@
23452 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23453 @%:@@%:@ ------------------------------- @%:@@%:@
23454 _ASBOX
23455      ) | sed "s/^/$as_me: WARNING:     /" >&2
23456     ;;
23457 esac
23458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23461   echo $ECHO_N "(cached) $ECHO_C" >&6
23462 else
23463   eval "$as_ac_Header=\$ac_header_preproc"
23464 fi
23465 ac_res=`eval echo '${'$as_ac_Header'}'`
23466                { echo "$as_me:$LINENO: result: $ac_res" >&5
23467 echo "${ECHO_T}$ac_res" >&6; }
23468
23469 fi
23470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23471   cat >>confdefs.h <<_ACEOF
23472 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23473 _ACEOF
23474  
23475 else
23476   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23477 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23478 fi
23479
23480 done
23481
23482     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23483 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23484 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23485   echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487   ac_check_lib_save_LIBS=$LIBS
23488 LIBS="-lnfsidmap  $LIBS"
23489 cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495
23496 /* Override any GCC internal prototype to avoid an error.
23497    Use char because int might match the return type of a GCC
23498    builtin and then its argument prototype would still apply.  */
23499 #ifdef __cplusplus
23500 extern "C"
23501 #endif
23502 char nfs4_set_debug ();
23503 int
23504 main ()
23505 {
23506 return nfs4_set_debug ();
23507   ;
23508   return 0;
23509 }
23510 _ACEOF
23511 rm -f conftest.$ac_objext conftest$ac_exeext
23512 if { (ac_try="$ac_link"
23513 case "(($ac_try" in
23514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515   *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518   (eval "$ac_link") 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } && {
23525          test -z "$ac_c_werror_flag" ||
23526          test ! -s conftest.err
23527        } && test -s conftest$ac_exeext &&
23528        $as_test_x conftest$ac_exeext; then
23529   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23535 fi
23536
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538       conftest$ac_exeext conftest.$ac_ext
23539 LIBS=$ac_check_lib_save_LIBS
23540 fi
23541 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23542 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23543 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23544   
23545 cat >>confdefs.h <<\_ACEOF
23546 @%:@define HAVE_NFS4_SET_DEBUG 1
23547 _ACEOF
23548
23549 fi
23550
23551
23552     
23553   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23554 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23555   
23556 # Check whether --with-krb5 was given.
23557 if test "${with_krb5+set}" = set; then
23558   withval=$with_krb5;  case "$withval" in
23559     yes|no)
23560        krb5_with=""
23561        ;;
23562     *)
23563        krb5_with="$withval"
23564        ;;
23565     esac 
23566   
23567 fi
23568
23569
23570   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23571              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23572             K5CONFIG=""
23573     if test -f $dir/bin/krb5-config; then
23574       K5CONFIG=$dir/bin/krb5-config
23575     elif test -f "/usr/kerberos/bin/krb5-config"; then
23576       K5CONFIG="/usr/kerberos/bin/krb5-config"
23577     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23578       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23579     fi
23580     if test "$K5CONFIG" != ""; then
23581       KRBCFLAGS=`$K5CONFIG --cflags`
23582       KRBLIBS=`$K5CONFIG --libs gssapi`
23583       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23584       
23585 cat >>confdefs.h <<_ACEOF
23586 @%:@define KRB5_VERSION $K5VERS
23587 _ACEOF
23588
23589       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23590                 \( -f $dir/lib/libgssapi_krb5.a -o \
23591                    -f $dir/lib64/libgssapi_krb5.a -o \
23592                    -f $dir/lib64/libgssapi_krb5.so -o \
23593                    -f $dir/lib/libgssapi_krb5.so \) ; then
23594          
23595 cat >>confdefs.h <<\_ACEOF
23596 @%:@define HAVE_KRB5 1
23597 _ACEOF
23598
23599          KRBDIR="$dir"
23600                      if test $K5VERS -le 131; then
23601            
23602 cat >>confdefs.h <<\_ACEOF
23603 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23604 _ACEOF
23605
23606          fi
23607          gssapi_lib=gssapi_krb5
23608          break
23609                   elif test \( -f $dir/include/heim_err.h -o\
23610                  -f $dir/include/heimdal/heim_err.h \) -a \
23611                 -f $dir/lib/libroken.a; then
23612          
23613 cat >>confdefs.h <<\_ACEOF
23614 @%:@define HAVE_HEIMDAL 1
23615 _ACEOF
23616
23617          KRBDIR="$dir"
23618          gssapi_lib=gssapi
23619         break
23620       fi
23621     fi
23622   done
23623     if test "x$KRBDIR" = "x"; then
23624     if test "x$krb5_with" = "x"; then
23625       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23626 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23627    { (exit 1); exit 1; }; }
23628     else
23629       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23630 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23631    { (exit 1); exit 1; }; }
23632     fi
23633   fi
23634   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23635 echo "${ECHO_T}$KRBDIR" >&6; }
23636
23637     echo "The current KRBDIR is $KRBDIR"
23638   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23639        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23640     KRBLDFLAGS="";
23641   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23642     KRBLDFLAGS="";
23643   else
23644     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23645   fi
23646
23647     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23648 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23649 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23650 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653   ac_check_lib_save_LIBS=$LIBS
23654 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23655 cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661
23662 /* Override any GCC internal prototype to avoid an error.
23663    Use char because int might match the return type of a GCC
23664    builtin and then its argument prototype would still apply.  */
23665 #ifdef __cplusplus
23666 extern "C"
23667 #endif
23668 char gss_krb5_export_lucid_sec_context ();
23669 int
23670 main ()
23671 {
23672 return gss_krb5_export_lucid_sec_context ();
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_link") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } && {
23691          test -z "$ac_c_werror_flag" ||
23692          test ! -s conftest.err
23693        } && test -s conftest$ac_exeext &&
23694        $as_test_x conftest$ac_exeext; then
23695   eval "$as_ac_Lib=yes"
23696 else
23697   echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700         eval "$as_ac_Lib=no"
23701 fi
23702
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704       conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23706 fi
23707 ac_res=`eval echo '${'$as_ac_Lib'}'`
23708                { echo "$as_me:$LINENO: result: $ac_res" >&5
23709 echo "${ECHO_T}$ac_res" >&6; }
23710 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23711   
23712 cat >>confdefs.h <<\_ACEOF
23713 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23714 _ACEOF
23715
23716 fi
23717
23718   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23719 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23720 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23721 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23732
23733 /* Override any GCC internal prototype to avoid an error.
23734    Use char because int might match the return type of a GCC
23735    builtin and then its argument prototype would still apply.  */
23736 #ifdef __cplusplus
23737 extern "C"
23738 #endif
23739 char gss_krb5_set_allowable_enctypes ();
23740 int
23741 main ()
23742 {
23743 return gss_krb5_set_allowable_enctypes ();
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755   (eval "$ac_link") 2>conftest.er1
23756   ac_status=$?
23757   grep -v '^ *+' conftest.er1 >conftest.err
23758   rm -f conftest.er1
23759   cat conftest.err >&5
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); } && {
23762          test -z "$ac_c_werror_flag" ||
23763          test ! -s conftest.err
23764        } && test -s conftest$ac_exeext &&
23765        $as_test_x conftest$ac_exeext; then
23766   eval "$as_ac_Lib=yes"
23767 else
23768   echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771         eval "$as_ac_Lib=no"
23772 fi
23773
23774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23775       conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23777 fi
23778 ac_res=`eval echo '${'$as_ac_Lib'}'`
23779                { echo "$as_me:$LINENO: result: $ac_res" >&5
23780 echo "${ECHO_T}$ac_res" >&6; }
23781 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23782   
23783 cat >>confdefs.h <<\_ACEOF
23784 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23785 _ACEOF
23786
23787 fi
23788
23789   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23790 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23791 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23792 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23793   echo $ECHO_N "(cached) $ECHO_C" >&6
23794 else
23795   ac_check_lib_save_LIBS=$LIBS
23796 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23797 cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h.  */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h.  */
23803
23804 /* Override any GCC internal prototype to avoid an error.
23805    Use char because int might match the return type of a GCC
23806    builtin and then its argument prototype would still apply.  */
23807 #ifdef __cplusplus
23808 extern "C"
23809 #endif
23810 char gss_krb5_ccache_name ();
23811 int
23812 main ()
23813 {
23814 return gss_krb5_ccache_name ();
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_link") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest$ac_exeext &&
23836        $as_test_x conftest$ac_exeext; then
23837   eval "$as_ac_Lib=yes"
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842         eval "$as_ac_Lib=no"
23843 fi
23844
23845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23846       conftest$ac_exeext conftest.$ac_ext
23847 LIBS=$ac_check_lib_save_LIBS
23848 fi
23849 ac_res=`eval echo '${'$as_ac_Lib'}'`
23850                { echo "$as_me:$LINENO: result: $ac_res" >&5
23851 echo "${ECHO_T}$ac_res" >&6; }
23852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23853   
23854 cat >>confdefs.h <<\_ACEOF
23855 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23856 _ACEOF
23857
23858 fi
23859
23860
23861     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23862 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23863 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23864 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23865   echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867   ac_check_lib_save_LIBS=$LIBS
23868 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875
23876 /* Override any GCC internal prototype to avoid an error.
23877    Use char because int might match the return type of a GCC
23878    builtin and then its argument prototype would still apply.  */
23879 #ifdef __cplusplus
23880 extern "C"
23881 #endif
23882 char krb5_get_error_message ();
23883 int
23884 main ()
23885 {
23886 return krb5_get_error_message ();
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895   *) ac_try_echo=$ac_try;;
23896 esac
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898   (eval "$ac_link") 2>conftest.er1
23899   ac_status=$?
23900   grep -v '^ *+' conftest.er1 >conftest.err
23901   rm -f conftest.er1
23902   cat conftest.err >&5
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); } && {
23905          test -z "$ac_c_werror_flag" ||
23906          test ! -s conftest.err
23907        } && test -s conftest$ac_exeext &&
23908        $as_test_x conftest$ac_exeext; then
23909   eval "$as_ac_Lib=yes"
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914         eval "$as_ac_Lib=no"
23915 fi
23916
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918       conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23920 fi
23921 ac_res=`eval echo '${'$as_ac_Lib'}'`
23922                { echo "$as_me:$LINENO: result: $ac_res" >&5
23923 echo "${ECHO_T}$ac_res" >&6; }
23924 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23925   
23926 cat >>confdefs.h <<\_ACEOF
23927 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23928 _ACEOF
23929
23930 fi
23931
23932
23933     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23934 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23935 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23936 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23937   echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939   ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947
23948 /* Override any GCC internal prototype to avoid an error.
23949    Use char because int might match the return type of a GCC
23950    builtin and then its argument prototype would still apply.  */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char krb5_get_init_creds_opt_set_addressless ();
23955 int
23956 main ()
23957 {
23958 return krb5_get_init_creds_opt_set_addressless ();
23959   ;
23960   return 0;
23961 }
23962 _ACEOF
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967   *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970   (eval "$ac_link") 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && {
23977          test -z "$ac_c_werror_flag" ||
23978          test ! -s conftest.err
23979        } && test -s conftest$ac_exeext &&
23980        $as_test_x conftest$ac_exeext; then
23981   eval "$as_ac_Lib=yes"
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986         eval "$as_ac_Lib=no"
23987 fi
23988
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990       conftest$ac_exeext conftest.$ac_ext
23991 LIBS=$ac_check_lib_save_LIBS
23992 fi
23993 ac_res=`eval echo '${'$as_ac_Lib'}'`
23994                { echo "$as_me:$LINENO: result: $ac_res" >&5
23995 echo "${ECHO_T}$ac_res" >&6; }
23996 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23997   
23998 cat >>confdefs.h <<\_ACEOF
23999 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24000 _ACEOF
24001
24002 fi
24003
24004
24005     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24006     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24007 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24008   fi
24009
24010   
24011   
24012   
24013   
24014   
24015
24016
24017
24018       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24019 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24020 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24023   ac_check_lib_save_LIBS=$LIBS
24024 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031
24032 /* Override any GCC internal prototype to avoid an error.
24033    Use char because int might match the return type of a GCC
24034    builtin and then its argument prototype would still apply.  */
24035 #ifdef __cplusplus
24036 extern "C"
24037 #endif
24038 char authgss_create_default ();
24039 int
24040 main ()
24041 {
24042 return authgss_create_default ();
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (ac_try="$ac_link"
24049 case "(($ac_try" in
24050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051   *) ac_try_echo=$ac_try;;
24052 esac
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054   (eval "$ac_link") 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } && {
24061          test -z "$ac_c_werror_flag" ||
24062          test ! -s conftest.err
24063        } && test -s conftest$ac_exeext &&
24064        $as_test_x conftest$ac_exeext; then
24065   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24066 else
24067   echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070         ac_cv_lib_rpcsecgss_authgss_create_default=no
24071 fi
24072
24073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24074       conftest$ac_exeext conftest.$ac_ext
24075 LIBS=$ac_check_lib_save_LIBS
24076 fi
24077 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24078 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24079 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24080   librpcsecgss=1
24081 else
24082   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24083 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24084    { (exit 1); exit 1; }; }
24085 fi
24086
24087   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24088 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24089 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24090   echo $ECHO_N "(cached) $ECHO_C" >&6
24091 else
24092   ac_check_lib_save_LIBS=$LIBS
24093 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24094 cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h.  */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h.  */
24100
24101 /* Override any GCC internal prototype to avoid an error.
24102    Use char because int might match the return type of a GCC
24103    builtin and then its argument prototype would still apply.  */
24104 #ifdef __cplusplus
24105 extern "C"
24106 #endif
24107 char authgss_set_debug_level ();
24108 int
24109 main ()
24110 {
24111 return authgss_set_debug_level ();
24112   ;
24113   return 0;
24114 }
24115 _ACEOF
24116 rm -f conftest.$ac_objext conftest$ac_exeext
24117 if { (ac_try="$ac_link"
24118 case "(($ac_try" in
24119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120   *) ac_try_echo=$ac_try;;
24121 esac
24122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123   (eval "$ac_link") 2>conftest.er1
24124   ac_status=$?
24125   grep -v '^ *+' conftest.er1 >conftest.err
24126   rm -f conftest.er1
24127   cat conftest.err >&5
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); } && {
24130          test -z "$ac_c_werror_flag" ||
24131          test ! -s conftest.err
24132        } && test -s conftest$ac_exeext &&
24133        $as_test_x conftest$ac_exeext; then
24134   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24143       conftest$ac_exeext conftest.$ac_ext
24144 LIBS=$ac_check_lib_save_LIBS
24145 fi
24146 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24147 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24148 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24149   
24150 cat >>confdefs.h <<\_ACEOF
24151 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24152 _ACEOF
24153
24154 fi
24155
24156
24157 fi
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24183                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24184                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24185                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24186                  syslog.h unistd.h com_err.h et/com_err.h \
24187                  ifaddrs.h
24188 do
24189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24191   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 fi
24196 ac_res=`eval echo '${'$as_ac_Header'}'`
24197                { echo "$as_me:$LINENO: result: $ac_res" >&5
24198 echo "${ECHO_T}$ac_res" >&6; }
24199 else
24200   # Is the header compilable?
24201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24203 cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h.  */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h.  */
24209 $ac_includes_default
24210 @%:@include <$ac_header>
24211 _ACEOF
24212 rm -f conftest.$ac_objext
24213 if { (ac_try="$ac_compile"
24214 case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219   (eval "$ac_compile") 2>conftest.er1
24220   ac_status=$?
24221   grep -v '^ *+' conftest.er1 >conftest.err
24222   rm -f conftest.er1
24223   cat conftest.err >&5
24224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225   (exit $ac_status); } && {
24226          test -z "$ac_c_werror_flag" ||
24227          test ! -s conftest.err
24228        } && test -s conftest.$ac_objext; then
24229   ac_header_compiler=yes
24230 else
24231   echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24233
24234         ac_header_compiler=no
24235 fi
24236
24237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24239 echo "${ECHO_T}$ac_header_compiler" >&6; }
24240
24241 # Is the header present?
24242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24244 cat >conftest.$ac_ext <<_ACEOF
24245 /* confdefs.h.  */
24246 _ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h.  */
24250 @%:@include <$ac_header>
24251 _ACEOF
24252 if { (ac_try="$ac_cpp conftest.$ac_ext"
24253 case "(($ac_try" in
24254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255   *) ac_try_echo=$ac_try;;
24256 esac
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } >/dev/null && {
24265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24266          test ! -s conftest.err
24267        }; then
24268   ac_header_preproc=yes
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273   ac_header_preproc=no
24274 fi
24275
24276 rm -f conftest.err conftest.$ac_ext
24277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24278 echo "${ECHO_T}$ac_header_preproc" >&6; }
24279
24280 # So?  What about this header?
24281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24282   yes:no: )
24283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24287     ac_header_preproc=yes
24288     ;;
24289   no:yes:* )
24290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24302     ( cat <<\_ASBOX
24303 @%:@@%:@ ------------------------------- @%:@@%:@
24304 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24305 @%:@@%:@ ------------------------------- @%:@@%:@
24306 _ASBOX
24307      ) | sed "s/^/$as_me: WARNING:     /" >&2
24308     ;;
24309 esac
24310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   eval "$as_ac_Header=\$ac_header_preproc"
24316 fi
24317 ac_res=`eval echo '${'$as_ac_Header'}'`
24318                { echo "$as_me:$LINENO: result: $ac_res" >&5
24319 echo "${ECHO_T}$ac_res" >&6; }
24320
24321 fi
24322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24323   cat >>confdefs.h <<_ACEOF
24324 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24325 _ACEOF
24326  
24327 fi
24328
24329 done
24330
24331
24332 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24333 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24334 if test "${ac_cv_c_const+set}" = set; then
24335   echo $ECHO_N "(cached) $ECHO_C" >&6
24336 else
24337   cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343
24344 int
24345 main ()
24346 {
24347 /* FIXME: Include the comments suggested by Paul. */
24348 #ifndef __cplusplus
24349   /* Ultrix mips cc rejects this.  */
24350   typedef int charset[2];
24351   const charset cs;
24352   /* SunOS 4.1.1 cc rejects this.  */
24353   char const *const *pcpcc;
24354   char **ppc;
24355   /* NEC SVR4.0.2 mips cc rejects this.  */
24356   struct point {int x, y;};
24357   static struct point const zero = {0,0};
24358   /* AIX XL C 1.02.0.0 rejects this.
24359      It does not let you subtract one const X* pointer from another in
24360      an arm of an if-expression whose if-part is not a constant
24361      expression */
24362   const char *g = "string";
24363   pcpcc = &g + (g ? g-g : 0);
24364   /* HPUX 7.0 cc rejects these. */
24365   ++pcpcc;
24366   ppc = (char**) pcpcc;
24367   pcpcc = (char const *const *) ppc;
24368   { /* SCO 3.2v4 cc rejects this.  */
24369     char *t;
24370     char const *s = 0 ? (char *) 0 : (char const *) 0;
24371
24372     *t++ = 0;
24373     if (s) return 0;
24374   }
24375   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24376     int x[] = {25, 17};
24377     const int *foo = &x[0];
24378     ++foo;
24379   }
24380   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24381     typedef const int *iptr;
24382     iptr p = 0;
24383     ++p;
24384   }
24385   { /* AIX XL C 1.02.0.0 rejects this saying
24386        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24387     struct s { int j; const int *ap[3]; };
24388     struct s *b; b->j = 5;
24389   }
24390   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24391     const int foo = 10;
24392     if (!foo) return 0;
24393   }
24394   return !cs[0] && !zero.x;
24395 #endif
24396
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest.$ac_objext
24402 if { (ac_try="$ac_compile"
24403 case "(($ac_try" in
24404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405   *) ac_try_echo=$ac_try;;
24406 esac
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408   (eval "$ac_compile") 2>conftest.er1
24409   ac_status=$?
24410   grep -v '^ *+' conftest.er1 >conftest.err
24411   rm -f conftest.er1
24412   cat conftest.err >&5
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } && {
24415          test -z "$ac_c_werror_flag" ||
24416          test ! -s conftest.err
24417        } && test -s conftest.$ac_objext; then
24418   ac_cv_c_const=yes
24419 else
24420   echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24422
24423         ac_cv_c_const=no
24424 fi
24425
24426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427 fi
24428 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24429 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24430 if test $ac_cv_c_const = no; then
24431   
24432 cat >>confdefs.h <<\_ACEOF
24433 @%:@define const 
24434 _ACEOF
24435
24436 fi
24437
24438 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24439 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24440 if test "${ac_cv_type_uid_t+set}" = set; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24443   cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449 #include <sys/types.h>
24450
24451 _ACEOF
24452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24453   $EGREP "uid_t" >/dev/null 2>&1; then
24454   ac_cv_type_uid_t=yes
24455 else
24456   ac_cv_type_uid_t=no
24457 fi
24458 rm -f conftest*
24459
24460 fi
24461 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24462 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24463 if test $ac_cv_type_uid_t = no; then
24464   
24465 cat >>confdefs.h <<\_ACEOF
24466 @%:@define uid_t int
24467 _ACEOF
24468
24469   
24470 cat >>confdefs.h <<\_ACEOF
24471 @%:@define gid_t int
24472 _ACEOF
24473
24474 fi
24475
24476 { echo "$as_me:$LINENO: checking for inline" >&5
24477 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24478 if test "${ac_cv_c_inline+set}" = set; then
24479   echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481   ac_cv_c_inline=no
24482 for ac_kw in inline __inline__ __inline; do
24483   cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 #ifndef __cplusplus
24490 typedef int foo_t;
24491 static $ac_kw foo_t static_foo () {return 0; }
24492 $ac_kw foo_t foo () {return 0; }
24493 #endif
24494
24495 _ACEOF
24496 rm -f conftest.$ac_objext
24497 if { (ac_try="$ac_compile"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503   (eval "$ac_compile") 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } && {
24510          test -z "$ac_c_werror_flag" ||
24511          test ! -s conftest.err
24512        } && test -s conftest.$ac_objext; then
24513   ac_cv_c_inline=$ac_kw
24514 else
24515   echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24517
24518         
24519 fi
24520
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522   test "$ac_cv_c_inline" != no && break
24523 done
24524
24525 fi
24526 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24527 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24528
24529
24530 case $ac_cv_c_inline in
24531   inline | yes) ;;
24532   *)
24533     case $ac_cv_c_inline in
24534       no) ac_val=;;
24535       *) ac_val=$ac_cv_c_inline;;
24536     esac
24537     cat >>confdefs.h <<_ACEOF
24538 #ifndef __cplusplus
24539 #define inline $ac_val
24540 #endif
24541 _ACEOF
24542     ;;
24543 esac
24544
24545 { echo "$as_me:$LINENO: checking for off_t" >&5
24546 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24547 if test "${ac_cv_type_off_t+set}" = set; then
24548   echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 $ac_includes_default
24557 typedef off_t ac__type_new_;
24558 int
24559 main ()
24560 {
24561 if ((ac__type_new_ *) 0)
24562   return 0;
24563 if (sizeof (ac__type_new_))
24564   return 0;
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_compile") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest.$ac_objext; then
24586   ac_cv_type_off_t=yes
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591         ac_cv_type_off_t=no
24592 fi
24593
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 fi
24596 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24597 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24598 if test $ac_cv_type_off_t = yes; then
24599   :
24600 else
24601   
24602 cat >>confdefs.h <<_ACEOF
24603 @%:@define off_t long int
24604 _ACEOF
24605
24606 fi
24607
24608 { echo "$as_me:$LINENO: checking for pid_t" >&5
24609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24610 if test "${ac_cv_type_pid_t+set}" = set; then
24611   echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613   cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619 $ac_includes_default
24620 typedef pid_t ac__type_new_;
24621 int
24622 main ()
24623 {
24624 if ((ac__type_new_ *) 0)
24625   return 0;
24626 if (sizeof (ac__type_new_))
24627   return 0;
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639   (eval "$ac_compile") 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } && {
24646          test -z "$ac_c_werror_flag" ||
24647          test ! -s conftest.err
24648        } && test -s conftest.$ac_objext; then
24649   ac_cv_type_pid_t=yes
24650 else
24651   echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654         ac_cv_type_pid_t=no
24655 fi
24656
24657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658 fi
24659 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24660 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24661 if test $ac_cv_type_pid_t = yes; then
24662   :
24663 else
24664   
24665 cat >>confdefs.h <<_ACEOF
24666 @%:@define pid_t int
24667 _ACEOF
24668
24669 fi
24670
24671 { echo "$as_me:$LINENO: checking for size_t" >&5
24672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24673 if test "${ac_cv_type_size_t+set}" = set; then
24674   echo $ECHO_N "(cached) $ECHO_C" >&6
24675 else
24676   cat >conftest.$ac_ext <<_ACEOF
24677 /* confdefs.h.  */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h.  */
24682 $ac_includes_default
24683 typedef size_t ac__type_new_;
24684 int
24685 main ()
24686 {
24687 if ((ac__type_new_ *) 0)
24688   return 0;
24689 if (sizeof (ac__type_new_))
24690   return 0;
24691   ;
24692   return 0;
24693 }
24694 _ACEOF
24695 rm -f conftest.$ac_objext
24696 if { (ac_try="$ac_compile"
24697 case "(($ac_try" in
24698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699   *) ac_try_echo=$ac_try;;
24700 esac
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702   (eval "$ac_compile") 2>conftest.er1
24703   ac_status=$?
24704   grep -v '^ *+' conftest.er1 >conftest.err
24705   rm -f conftest.er1
24706   cat conftest.err >&5
24707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708   (exit $ac_status); } && {
24709          test -z "$ac_c_werror_flag" ||
24710          test ! -s conftest.err
24711        } && test -s conftest.$ac_objext; then
24712   ac_cv_type_size_t=yes
24713 else
24714   echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24716
24717         ac_cv_type_size_t=no
24718 fi
24719
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 fi
24722 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24723 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24724 if test $ac_cv_type_size_t = yes; then
24725   :
24726 else
24727   
24728 cat >>confdefs.h <<_ACEOF
24729 @%:@define size_t unsigned int
24730 _ACEOF
24731
24732 fi
24733
24734 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24736 if test "${ac_cv_header_time+set}" = set; then
24737   echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739   cat >conftest.$ac_ext <<_ACEOF
24740 /* confdefs.h.  */
24741 _ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h.  */
24745 #include <sys/types.h>
24746 #include <sys/time.h>
24747 #include <time.h>
24748
24749 int
24750 main ()
24751 {
24752 if ((struct tm *) 0)
24753 return 0;
24754   ;
24755   return 0;
24756 }
24757 _ACEOF
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765   (eval "$ac_compile") 2>conftest.er1
24766   ac_status=$?
24767   grep -v '^ *+' conftest.er1 >conftest.err
24768   rm -f conftest.er1
24769   cat conftest.err >&5
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } && {
24772          test -z "$ac_c_werror_flag" ||
24773          test ! -s conftest.err
24774        } && test -s conftest.$ac_objext; then
24775   ac_cv_header_time=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780         ac_cv_header_time=no
24781 fi
24782
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 fi
24785 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24786 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24787 if test $ac_cv_header_time = yes; then
24788   
24789 cat >>confdefs.h <<\_ACEOF
24790 @%:@define TIME_WITH_SYS_TIME 1
24791 _ACEOF
24792
24793 fi
24794
24795 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24796 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24797 if test "${ac_cv_struct_tm+set}" = set; then
24798   echo $ECHO_N "(cached) $ECHO_C" >&6
24799 else
24800   cat >conftest.$ac_ext <<_ACEOF
24801 /* confdefs.h.  */
24802 _ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h.  */
24806 #include <sys/types.h>
24807 #include <time.h>
24808
24809 int
24810 main ()
24811 {
24812 struct tm tm;
24813                                      int *p = &tm.tm_sec;
24814                                      return !p;
24815   ;
24816   return 0;
24817 }
24818 _ACEOF
24819 rm -f conftest.$ac_objext
24820 if { (ac_try="$ac_compile"
24821 case "(($ac_try" in
24822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823   *) ac_try_echo=$ac_try;;
24824 esac
24825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24826   (eval "$ac_compile") 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } && {
24833          test -z "$ac_c_werror_flag" ||
24834          test ! -s conftest.err
24835        } && test -s conftest.$ac_objext; then
24836   ac_cv_struct_tm=time.h
24837 else
24838   echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24840
24841         ac_cv_struct_tm=sys/time.h
24842 fi
24843
24844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24845 fi
24846 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24847 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24848 if test $ac_cv_struct_tm = sys/time.h; then
24849   
24850 cat >>confdefs.h <<\_ACEOF
24851 @%:@define TM_IN_SYS_TIME 1
24852 _ACEOF
24853
24854 fi
24855
24856
24857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24858 # for constant arguments.  Useless!
24859 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24860 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24861 if test "${ac_cv_working_alloca_h+set}" = set; then
24862   echo $ECHO_N "(cached) $ECHO_C" >&6
24863 else
24864   cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h.  */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h.  */
24870 @%:@include <alloca.h>
24871 int
24872 main ()
24873 {
24874 char *p = (char *) alloca (2 * sizeof (int));
24875                           if (p) return 0;
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884   *) ac_try_echo=$ac_try;;
24885 esac
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887   (eval "$ac_link") 2>conftest.er1
24888   ac_status=$?
24889   grep -v '^ *+' conftest.er1 >conftest.err
24890   rm -f conftest.er1
24891   cat conftest.err >&5
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); } && {
24894          test -z "$ac_c_werror_flag" ||
24895          test ! -s conftest.err
24896        } && test -s conftest$ac_exeext &&
24897        $as_test_x conftest$ac_exeext; then
24898   ac_cv_working_alloca_h=yes
24899 else
24900   echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24902
24903         ac_cv_working_alloca_h=no
24904 fi
24905
24906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24907       conftest$ac_exeext conftest.$ac_ext
24908 fi
24909 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24910 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24911 if test $ac_cv_working_alloca_h = yes; then
24912   
24913 cat >>confdefs.h <<\_ACEOF
24914 @%:@define HAVE_ALLOCA_H 1
24915 _ACEOF
24916
24917 fi
24918
24919 { echo "$as_me:$LINENO: checking for alloca" >&5
24920 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24921 if test "${ac_cv_func_alloca_works+set}" = set; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924   cat >conftest.$ac_ext <<_ACEOF
24925 /* confdefs.h.  */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h.  */
24930 #ifdef __GNUC__
24931 # define alloca __builtin_alloca
24932 #else
24933 # ifdef _MSC_VER
24934 #  include <malloc.h>
24935 #  define alloca _alloca
24936 # else
24937 #  ifdef HAVE_ALLOCA_H
24938 #   include <alloca.h>
24939 #  else
24940 #   ifdef _AIX
24941  #pragma alloca
24942 #   else
24943 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24944 char *alloca ();
24945 #    endif
24946 #   endif
24947 #  endif
24948 # endif
24949 #endif
24950
24951 int
24952 main ()
24953 {
24954 char *p = (char *) alloca (1);
24955                                     if (p) return 0;
24956   ;
24957   return 0;
24958 }
24959 _ACEOF
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (ac_try="$ac_link"
24962 case "(($ac_try" in
24963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964   *) ac_try_echo=$ac_try;;
24965 esac
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967   (eval "$ac_link") 2>conftest.er1
24968   ac_status=$?
24969   grep -v '^ *+' conftest.er1 >conftest.err
24970   rm -f conftest.er1
24971   cat conftest.err >&5
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } && {
24974          test -z "$ac_c_werror_flag" ||
24975          test ! -s conftest.err
24976        } && test -s conftest$ac_exeext &&
24977        $as_test_x conftest$ac_exeext; then
24978   ac_cv_func_alloca_works=yes
24979 else
24980   echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983         ac_cv_func_alloca_works=no
24984 fi
24985
24986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24987       conftest$ac_exeext conftest.$ac_ext
24988 fi
24989 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24990 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24991
24992 if test $ac_cv_func_alloca_works = yes; then
24993   
24994 cat >>confdefs.h <<\_ACEOF
24995 @%:@define HAVE_ALLOCA 1
24996 _ACEOF
24997
24998 else
24999   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25000 # that cause trouble.  Some versions do not even contain alloca or
25001 # contain a buggy version.  If you still want to use their alloca,
25002 # use ar to extract alloca.o from them instead of compiling alloca.c.
25003
25004 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25005
25006 cat >>confdefs.h <<\_ACEOF
25007 @%:@define C_ALLOCA 1
25008 _ACEOF
25009
25010
25011 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25012 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25013 if test "${ac_cv_os_cray+set}" = set; then
25014   echo $ECHO_N "(cached) $ECHO_C" >&6
25015 else
25016   cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022 #if defined CRAY && ! defined CRAY2
25023 webecray
25024 #else
25025 wenotbecray
25026 #endif
25027
25028 _ACEOF
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030   $EGREP "webecray" >/dev/null 2>&1; then
25031   ac_cv_os_cray=yes
25032 else
25033   ac_cv_os_cray=no
25034 fi
25035 rm -f conftest*
25036
25037 fi
25038 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25039 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25040 if test $ac_cv_os_cray = yes; then
25041   for ac_func in _getb67 GETB67 getb67; do
25042     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25046   echo $ECHO_N "(cached) $ECHO_C" >&6
25047 else
25048   cat >conftest.$ac_ext <<_ACEOF
25049 /* confdefs.h.  */
25050 _ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h.  */
25054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25056 #define $ac_func innocuous_$ac_func
25057
25058 /* System header to define __stub macros and hopefully few prototypes,
25059     which can conflict with char $ac_func (); below.
25060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061     <limits.h> exists even on freestanding compilers.  */
25062
25063 #ifdef __STDC__
25064 # include <limits.h>
25065 #else
25066 # include <assert.h>
25067 #endif
25068
25069 #undef $ac_func
25070
25071 /* Override any GCC internal prototype to avoid an error.
25072    Use char because int might match the return type of a GCC
25073    builtin and then its argument prototype would still apply.  */
25074 #ifdef __cplusplus
25075 extern "C"
25076 #endif
25077 char $ac_func ();
25078 /* The GNU C library defines this for functions which it implements
25079     to always fail with ENOSYS.  Some functions are actually named
25080     something starting with __ and the normal name is an alias.  */
25081 #if defined __stub_$ac_func || defined __stub___$ac_func
25082 choke me
25083 #endif
25084
25085 int
25086 main ()
25087 {
25088 return $ac_func ();
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100   (eval "$ac_link") 2>conftest.er1
25101   ac_status=$?
25102   grep -v '^ *+' conftest.er1 >conftest.err
25103   rm -f conftest.er1
25104   cat conftest.err >&5
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); } && {
25107          test -z "$ac_c_werror_flag" ||
25108          test ! -s conftest.err
25109        } && test -s conftest$ac_exeext &&
25110        $as_test_x conftest$ac_exeext; then
25111   eval "$as_ac_var=yes"
25112 else
25113   echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25115
25116         eval "$as_ac_var=no"
25117 fi
25118
25119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25120       conftest$ac_exeext conftest.$ac_ext
25121 fi
25122 ac_res=`eval echo '${'$as_ac_var'}'`
25123                { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25125 if test `eval echo '${'$as_ac_var'}'` = yes; then
25126   
25127 cat >>confdefs.h <<_ACEOF
25128 @%:@define CRAY_STACKSEG_END $ac_func
25129 _ACEOF
25130
25131     break
25132 fi
25133
25134   done
25135 fi
25136
25137 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25138 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25139 if test "${ac_cv_c_stack_direction+set}" = set; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 else
25142   if test "$cross_compiling" = yes; then
25143   ac_cv_c_stack_direction=0
25144 else
25145   cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151 $ac_includes_default
25152 int
25153 find_stack_direction ()
25154 {
25155   static char *addr = 0;
25156   auto char dummy;
25157   if (addr == 0)
25158     {
25159       addr = &dummy;
25160       return find_stack_direction ();
25161     }
25162   else
25163     return (&dummy > addr) ? 1 : -1;
25164 }
25165
25166 int
25167 main ()
25168 {
25169   return find_stack_direction () < 0;
25170 }
25171 _ACEOF
25172 rm -f conftest$ac_exeext
25173 if { (ac_try="$ac_link"
25174 case "(($ac_try" in
25175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176   *) ac_try_echo=$ac_try;;
25177 esac
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179   (eval "$ac_link") 2>&5
25180   ac_status=$?
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183   { (case "(($ac_try" in
25184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185   *) ac_try_echo=$ac_try;;
25186 esac
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188   (eval "$ac_try") 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; }; then
25192   ac_cv_c_stack_direction=1
25193 else
25194   echo "$as_me: program exited with status $ac_status" >&5
25195 echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 ( exit $ac_status )
25199 ac_cv_c_stack_direction=-1
25200 fi
25201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25202 fi
25203
25204
25205 fi
25206 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25207 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25208
25209 cat >>confdefs.h <<_ACEOF
25210 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25211 _ACEOF
25212
25213
25214 fi
25215
25216
25217
25218
25219
25220
25221 ac_header_dirent=no
25222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25223   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229   cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235 #include <sys/types.h>
25236 #include <$ac_hdr>
25237
25238 int
25239 main ()
25240 {
25241 if ((DIR *) 0)
25242 return 0;
25243   ;
25244   return 0;
25245 }
25246 _ACEOF
25247 rm -f conftest.$ac_objext
25248 if { (ac_try="$ac_compile"
25249 case "(($ac_try" in
25250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251   *) ac_try_echo=$ac_try;;
25252 esac
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254   (eval "$ac_compile") 2>conftest.er1
25255   ac_status=$?
25256   grep -v '^ *+' conftest.er1 >conftest.err
25257   rm -f conftest.er1
25258   cat conftest.err >&5
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } && {
25261          test -z "$ac_c_werror_flag" ||
25262          test ! -s conftest.err
25263        } && test -s conftest.$ac_objext; then
25264   eval "$as_ac_Header=yes"
25265 else
25266   echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25268
25269         eval "$as_ac_Header=no"
25270 fi
25271
25272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25273 fi
25274 ac_res=`eval echo '${'$as_ac_Header'}'`
25275                { echo "$as_me:$LINENO: result: $ac_res" >&5
25276 echo "${ECHO_T}$ac_res" >&6; }
25277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25278   cat >>confdefs.h <<_ACEOF
25279 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25280 _ACEOF
25281
25282 ac_header_dirent=$ac_hdr; break
25283 fi
25284
25285 done
25286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25287 if test $ac_header_dirent = dirent.h; then
25288   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25290 if test "${ac_cv_search_opendir+set}" = set; then
25291   echo $ECHO_N "(cached) $ECHO_C" >&6
25292 else
25293   ac_func_search_save_LIBS=$LIBS
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300
25301 /* Override any GCC internal prototype to avoid an error.
25302    Use char because int might match the return type of a GCC
25303    builtin and then its argument prototype would still apply.  */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 char opendir ();
25308 int
25309 main ()
25310 {
25311 return opendir ();
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 for ac_lib in '' dir; do
25317   if test -z "$ac_lib"; then
25318     ac_res="none required"
25319   else
25320     ac_res=-l$ac_lib
25321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25322   fi
25323   rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327   *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330   (eval "$ac_link") 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } && {
25337          test -z "$ac_c_werror_flag" ||
25338          test ! -s conftest.err
25339        } && test -s conftest$ac_exeext &&
25340        $as_test_x conftest$ac_exeext; then
25341   ac_cv_search_opendir=$ac_res
25342 else
25343   echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346         
25347 fi
25348
25349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25350       conftest$ac_exeext 
25351   if test "${ac_cv_search_opendir+set}" = set; then
25352   break
25353 fi
25354 done
25355 if test "${ac_cv_search_opendir+set}" = set; then
25356   :
25357 else
25358   ac_cv_search_opendir=no
25359 fi
25360 rm conftest.$ac_ext
25361 LIBS=$ac_func_search_save_LIBS
25362 fi
25363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25365 ac_res=$ac_cv_search_opendir
25366 if test "$ac_res" != no; then
25367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25368   
25369 fi
25370
25371 else
25372   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25374 if test "${ac_cv_search_opendir+set}" = set; then
25375   echo $ECHO_N "(cached) $ECHO_C" >&6
25376 else
25377   ac_func_search_save_LIBS=$LIBS
25378 cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h.  */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h.  */
25384
25385 /* Override any GCC internal prototype to avoid an error.
25386    Use char because int might match the return type of a GCC
25387    builtin and then its argument prototype would still apply.  */
25388 #ifdef __cplusplus
25389 extern "C"
25390 #endif
25391 char opendir ();
25392 int
25393 main ()
25394 {
25395 return opendir ();
25396   ;
25397   return 0;
25398 }
25399 _ACEOF
25400 for ac_lib in '' x; do
25401   if test -z "$ac_lib"; then
25402     ac_res="none required"
25403   else
25404     ac_res=-l$ac_lib
25405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25406   fi
25407   rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (ac_try="$ac_link"
25409 case "(($ac_try" in
25410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411   *) ac_try_echo=$ac_try;;
25412 esac
25413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25414   (eval "$ac_link") 2>conftest.er1
25415   ac_status=$?
25416   grep -v '^ *+' conftest.er1 >conftest.err
25417   rm -f conftest.er1
25418   cat conftest.err >&5
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } && {
25421          test -z "$ac_c_werror_flag" ||
25422          test ! -s conftest.err
25423        } && test -s conftest$ac_exeext &&
25424        $as_test_x conftest$ac_exeext; then
25425   ac_cv_search_opendir=$ac_res
25426 else
25427   echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430         
25431 fi
25432
25433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25434       conftest$ac_exeext 
25435   if test "${ac_cv_search_opendir+set}" = set; then
25436   break
25437 fi
25438 done
25439 if test "${ac_cv_search_opendir+set}" = set; then
25440   :
25441 else
25442   ac_cv_search_opendir=no
25443 fi
25444 rm conftest.$ac_ext
25445 LIBS=$ac_func_search_save_LIBS
25446 fi
25447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25449 ac_res=$ac_cv_search_opendir
25450 if test "$ac_res" != no; then
25451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25452   
25453 fi
25454
25455 fi
25456
25457 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25458 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25459 if test "${ac_cv_func_closedir_void+set}" = set; then
25460   echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462   if test "$cross_compiling" = yes; then
25463   ac_cv_func_closedir_void=yes
25464 else
25465   cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 $ac_includes_default
25472 #include <$ac_header_dirent>
25473 #ifndef __cplusplus
25474 int closedir ();
25475 #endif
25476
25477 int
25478 main ()
25479 {
25480 return closedir (opendir (".")) != 0;
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_link") 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25496   { (case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_try") 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; }; then
25505   ac_cv_func_closedir_void=no
25506 else
25507   echo "$as_me: program exited with status $ac_status" >&5
25508 echo "$as_me: failed program was:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25510
25511 ( exit $ac_status )
25512 ac_cv_func_closedir_void=yes
25513 fi
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25515 fi
25516
25517
25518 fi
25519 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25521 if test $ac_cv_func_closedir_void = yes; then
25522   
25523 cat >>confdefs.h <<\_ACEOF
25524 @%:@define CLOSEDIR_VOID 1
25525 _ACEOF
25526
25527 fi
25528
25529 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25530 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25531 if test "${ac_cv_lib_error_at_line+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <error.h>
25541 int
25542 main ()
25543 {
25544 error_at_line (0, 0, "", 0, "an error occurred");
25545   ;
25546   return 0;
25547 }
25548 _ACEOF
25549 rm -f conftest.$ac_objext conftest$ac_exeext
25550 if { (ac_try="$ac_link"
25551 case "(($ac_try" in
25552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25553   *) ac_try_echo=$ac_try;;
25554 esac
25555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25556   (eval "$ac_link") 2>conftest.er1
25557   ac_status=$?
25558   grep -v '^ *+' conftest.er1 >conftest.err
25559   rm -f conftest.er1
25560   cat conftest.err >&5
25561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562   (exit $ac_status); } && {
25563          test -z "$ac_c_werror_flag" ||
25564          test ! -s conftest.err
25565        } && test -s conftest$ac_exeext &&
25566        $as_test_x conftest$ac_exeext; then
25567   ac_cv_lib_error_at_line=yes
25568 else
25569   echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25571
25572         ac_cv_lib_error_at_line=no
25573 fi
25574
25575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25576       conftest$ac_exeext conftest.$ac_ext
25577 fi
25578 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25580 if test $ac_cv_lib_error_at_line = no; then
25581   case " $LIB@&t@OBJS " in
25582   *" error.$ac_objext "* ) ;;
25583   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25584  ;;
25585 esac
25586
25587 fi
25588
25589
25590 for ac_header in vfork.h
25591 do
25592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25594   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 fi
25599 ac_res=`eval echo '${'$as_ac_Header'}'`
25600                { echo "$as_me:$LINENO: result: $ac_res" >&5
25601 echo "${ECHO_T}$ac_res" >&6; }
25602 else
25603   # Is the header compilable?
25604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25606 cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 $ac_includes_default
25613 @%:@include <$ac_header>
25614 _ACEOF
25615 rm -f conftest.$ac_objext
25616 if { (ac_try="$ac_compile"
25617 case "(($ac_try" in
25618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619   *) ac_try_echo=$ac_try;;
25620 esac
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622   (eval "$ac_compile") 2>conftest.er1
25623   ac_status=$?
25624   grep -v '^ *+' conftest.er1 >conftest.err
25625   rm -f conftest.er1
25626   cat conftest.err >&5
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); } && {
25629          test -z "$ac_c_werror_flag" ||
25630          test ! -s conftest.err
25631        } && test -s conftest.$ac_objext; then
25632   ac_header_compiler=yes
25633 else
25634   echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637         ac_header_compiler=no
25638 fi
25639
25640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25642 echo "${ECHO_T}$ac_header_compiler" >&6; }
25643
25644 # Is the header present?
25645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653 @%:@include <$ac_header>
25654 _ACEOF
25655 if { (ac_try="$ac_cpp conftest.$ac_ext"
25656 case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } >/dev/null && {
25668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25669          test ! -s conftest.err
25670        }; then
25671   ac_header_preproc=yes
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676   ac_header_preproc=no
25677 fi
25678
25679 rm -f conftest.err conftest.$ac_ext
25680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25681 echo "${ECHO_T}$ac_header_preproc" >&6; }
25682
25683 # So?  What about this header?
25684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25685   yes:no: )
25686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25690     ac_header_preproc=yes
25691     ;;
25692   no:yes:* )
25693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25705     ( cat <<\_ASBOX
25706 @%:@@%:@ ------------------------------- @%:@@%:@
25707 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25708 @%:@@%:@ ------------------------------- @%:@@%:@
25709 _ASBOX
25710      ) | sed "s/^/$as_me: WARNING:     /" >&2
25711     ;;
25712 esac
25713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25716   echo $ECHO_N "(cached) $ECHO_C" >&6
25717 else
25718   eval "$as_ac_Header=\$ac_header_preproc"
25719 fi
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721                { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25723
25724 fi
25725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25726   cat >>confdefs.h <<_ACEOF
25727 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25728 _ACEOF
25729  
25730 fi
25731
25732 done
25733
25734
25735
25736 for ac_func in fork vfork
25737 do
25738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25752 #define $ac_func innocuous_$ac_func
25753
25754 /* System header to define __stub macros and hopefully few prototypes,
25755     which can conflict with char $ac_func (); below.
25756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757     <limits.h> exists even on freestanding compilers.  */
25758
25759 #ifdef __STDC__
25760 # include <limits.h>
25761 #else
25762 # include <assert.h>
25763 #endif
25764
25765 #undef $ac_func
25766
25767 /* Override any GCC internal prototype to avoid an error.
25768    Use char because int might match the return type of a GCC
25769    builtin and then its argument prototype would still apply.  */
25770 #ifdef __cplusplus
25771 extern "C"
25772 #endif
25773 char $ac_func ();
25774 /* The GNU C library defines this for functions which it implements
25775     to always fail with ENOSYS.  Some functions are actually named
25776     something starting with __ and the normal name is an alias.  */
25777 #if defined __stub_$ac_func || defined __stub___$ac_func
25778 choke me
25779 #endif
25780
25781 int
25782 main ()
25783 {
25784 return $ac_func ();
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 rm -f conftest.$ac_objext conftest$ac_exeext
25790 if { (ac_try="$ac_link"
25791 case "(($ac_try" in
25792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793   *) ac_try_echo=$ac_try;;
25794 esac
25795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25796   (eval "$ac_link") 2>conftest.er1
25797   ac_status=$?
25798   grep -v '^ *+' conftest.er1 >conftest.err
25799   rm -f conftest.er1
25800   cat conftest.err >&5
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); } && {
25803          test -z "$ac_c_werror_flag" ||
25804          test ! -s conftest.err
25805        } && test -s conftest$ac_exeext &&
25806        $as_test_x conftest$ac_exeext; then
25807   eval "$as_ac_var=yes"
25808 else
25809   echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812         eval "$as_ac_var=no"
25813 fi
25814
25815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25816       conftest$ac_exeext conftest.$ac_ext
25817 fi
25818 ac_res=`eval echo '${'$as_ac_var'}'`
25819                { echo "$as_me:$LINENO: result: $ac_res" >&5
25820 echo "${ECHO_T}$ac_res" >&6; }
25821 if test `eval echo '${'$as_ac_var'}'` = yes; then
25822   cat >>confdefs.h <<_ACEOF
25823 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25824 _ACEOF
25825  
25826 fi
25827 done
25828
25829 if test "x$ac_cv_func_fork" = xyes; then
25830   { echo "$as_me:$LINENO: checking for working fork" >&5
25831 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25832 if test "${ac_cv_func_fork_works+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   if test "$cross_compiling" = yes; then
25836   ac_cv_func_fork_works=cross
25837 else
25838   cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 $ac_includes_default
25845 int
25846 main ()
25847 {
25848
25849           /* By Ruediger Kuhlmann. */
25850           return fork () < 0;
25851         
25852   ;
25853   return 0;
25854 }
25855 _ACEOF
25856 rm -f conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_link") 2>&5
25864   ac_status=$?
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25867   { (case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872   (eval "$ac_try") 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; }; then
25876   ac_cv_func_fork_works=yes
25877 else
25878   echo "$as_me: program exited with status $ac_status" >&5
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882 ( exit $ac_status )
25883 ac_cv_func_fork_works=no
25884 fi
25885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25886 fi
25887
25888
25889 fi
25890 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25892
25893 else
25894   ac_cv_func_fork_works=$ac_cv_func_fork
25895 fi
25896 if test "x$ac_cv_func_fork_works" = xcross; then
25897   case $host in
25898     *-*-amigaos* | *-*-msdosdjgpp*)
25899       # Override, as these systems have only a dummy fork() stub
25900       ac_cv_func_fork_works=no
25901       ;;
25902     *)
25903       ac_cv_func_fork_works=yes
25904       ;;
25905   esac
25906   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25907 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25908 fi
25909 ac_cv_func_vfork_works=$ac_cv_func_vfork
25910 if test "x$ac_cv_func_vfork" = xyes; then
25911   { echo "$as_me:$LINENO: checking for working vfork" >&5
25912 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25913 if test "${ac_cv_func_vfork_works+set}" = set; then
25914   echo $ECHO_N "(cached) $ECHO_C" >&6
25915 else
25916   if test "$cross_compiling" = yes; then
25917   ac_cv_func_vfork_works=cross
25918 else
25919   cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925 /* Thanks to Paul Eggert for this test.  */
25926 $ac_includes_default
25927 #include <sys/wait.h>
25928 #ifdef HAVE_VFORK_H
25929 # include <vfork.h>
25930 #endif
25931 /* On some sparc systems, changes by the child to local and incoming
25932    argument registers are propagated back to the parent.  The compiler
25933    is told about this with #include <vfork.h>, but some compilers
25934    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25935    static variable whose address is put into a register that is
25936    clobbered by the vfork.  */
25937 static void
25938 #ifdef __cplusplus
25939 sparc_address_test (int arg)
25940 # else
25941 sparc_address_test (arg) int arg;
25942 #endif
25943 {
25944   static pid_t child;
25945   if (!child) {
25946     child = vfork ();
25947     if (child < 0) {
25948       perror ("vfork");
25949       _exit(2);
25950     }
25951     if (!child) {
25952       arg = getpid();
25953       write(-1, "", 0);
25954       _exit (arg);
25955     }
25956   }
25957 }
25958
25959 int
25960 main ()
25961 {
25962   pid_t parent = getpid ();
25963   pid_t child;
25964
25965   sparc_address_test (0);
25966
25967   child = vfork ();
25968
25969   if (child == 0) {
25970     /* Here is another test for sparc vfork register problems.  This
25971        test uses lots of local variables, at least as many local
25972        variables as main has allocated so far including compiler
25973        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25974        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25975        reuse the register of parent for one of the local variables,
25976        since it will think that parent can't possibly be used any more
25977        in this routine.  Assigning to the local variable will thus
25978        munge parent in the parent process.  */
25979     pid_t
25980       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25981       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25982     /* Convince the compiler that p..p7 are live; otherwise, it might
25983        use the same hardware register for all 8 local variables.  */
25984     if (p != p1 || p != p2 || p != p3 || p != p4
25985         || p != p5 || p != p6 || p != p7)
25986       _exit(1);
25987
25988     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25989        from child file descriptors.  If the child closes a descriptor
25990        before it execs or exits, this munges the parent's descriptor
25991        as well.  Test for this by closing stdout in the child.  */
25992     _exit(close(fileno(stdout)) != 0);
25993   } else {
25994     int status;
25995     struct stat st;
25996
25997     while (wait(&status) != child)
25998       ;
25999     return (
26000          /* Was there some problem with vforking?  */
26001          child < 0
26002
26003          /* Did the child fail?  (This shouldn't happen.)  */
26004          || status
26005
26006          /* Did the vfork/compiler bug occur?  */
26007          || parent != getpid()
26008
26009          /* Did the file descriptor bug occur?  */
26010          || fstat(fileno(stdout), &st) != 0
26011          );
26012   }
26013 }
26014 _ACEOF
26015 rm -f conftest$ac_exeext
26016 if { (ac_try="$ac_link"
26017 case "(($ac_try" in
26018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019   *) ac_try_echo=$ac_try;;
26020 esac
26021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26022   (eval "$ac_link") 2>&5
26023   ac_status=$?
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26026   { (case "(($ac_try" in
26027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028   *) ac_try_echo=$ac_try;;
26029 esac
26030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031   (eval "$ac_try") 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); }; }; then
26035   ac_cv_func_vfork_works=yes
26036 else
26037   echo "$as_me: program exited with status $ac_status" >&5
26038 echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26040
26041 ( exit $ac_status )
26042 ac_cv_func_vfork_works=no
26043 fi
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26045 fi
26046
26047
26048 fi
26049 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26051
26052 fi;
26053 if test "x$ac_cv_func_fork_works" = xcross; then
26054   ac_cv_func_vfork_works=$ac_cv_func_vfork
26055   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26056 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26057 fi
26058
26059 if test "x$ac_cv_func_vfork_works" = xyes; then
26060   
26061 cat >>confdefs.h <<\_ACEOF
26062 @%:@define HAVE_WORKING_VFORK 1
26063 _ACEOF
26064
26065 else
26066   
26067 cat >>confdefs.h <<\_ACEOF
26068 @%:@define vfork fork
26069 _ACEOF
26070
26071 fi
26072 if test "x$ac_cv_func_fork_works" = xyes; then
26073   
26074 cat >>confdefs.h <<\_ACEOF
26075 @%:@define HAVE_WORKING_FORK 1
26076 _ACEOF
26077
26078 fi
26079
26080 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26081 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26082 if test "${ac_cv_type_getgroups+set}" = set; then
26083   echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085   if test "$cross_compiling" = yes; then
26086   ac_cv_type_getgroups=cross
26087 else
26088   cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094 /* Thanks to Mike Rendell for this test.  */
26095 $ac_includes_default
26096 #define NGID 256
26097 #undef MAX
26098 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26099
26100 int
26101 main ()
26102 {
26103   gid_t gidset[NGID];
26104   int i, n;
26105   union { gid_t gval; long int lval; }  val;
26106
26107   val.lval = -1;
26108   for (i = 0; i < NGID; i++)
26109     gidset[i] = val.gval;
26110   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26111                  gidset);
26112   /* Exit non-zero if getgroups seems to require an array of ints.  This
26113      happens when gid_t is short int but getgroups modifies an array
26114      of ints.  */
26115   return n > 0 && gidset[n] != val.gval;
26116 }
26117 _ACEOF
26118 rm -f conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125   (eval "$ac_link") 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26129   { (case "(($ac_try" in
26130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131   *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134   (eval "$ac_try") 2>&5
26135   ac_status=$?
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); }; }; then
26138   ac_cv_type_getgroups=gid_t
26139 else
26140   echo "$as_me: program exited with status $ac_status" >&5
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26143
26144 ( exit $ac_status )
26145 ac_cv_type_getgroups=int
26146 fi
26147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26148 fi
26149
26150
26151 if test $ac_cv_type_getgroups = cross; then
26152         cat >conftest.$ac_ext <<_ACEOF
26153 /* confdefs.h.  */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h.  */
26158 #include <unistd.h>
26159
26160 _ACEOF
26161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26162   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26163   ac_cv_type_getgroups=gid_t
26164 else
26165   ac_cv_type_getgroups=int
26166 fi
26167 rm -f conftest*
26168
26169 fi
26170 fi
26171 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26172 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26173
26174 cat >>confdefs.h <<_ACEOF
26175 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26176 _ACEOF
26177
26178
26179 { echo "$as_me:$LINENO: checking for getgroups" >&5
26180 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26181 if test "${ac_cv_func_getgroups+set}" = set; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define getgroups innocuous_getgroups
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char getgroups (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef getgroups
26206
26207 /* Override any GCC internal prototype to avoid an error.
26208    Use char because int might match the return type of a GCC
26209    builtin and then its argument prototype would still apply.  */
26210 #ifdef __cplusplus
26211 extern "C"
26212 #endif
26213 char getgroups ();
26214 /* The GNU C library defines this for functions which it implements
26215     to always fail with ENOSYS.  Some functions are actually named
26216     something starting with __ and the normal name is an alias.  */
26217 #if defined __stub_getgroups || defined __stub___getgroups
26218 choke me
26219 #endif
26220
26221 int
26222 main ()
26223 {
26224 return getgroups ();
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_link") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_c_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest$ac_exeext &&
26246        $as_test_x conftest$ac_exeext; then
26247   ac_cv_func_getgroups=yes
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252         ac_cv_func_getgroups=no
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256       conftest$ac_exeext conftest.$ac_ext
26257 fi
26258 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26259 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26260
26261
26262 # If we don't yet have getgroups, see if it's in -lbsd.
26263 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26264 ac_save_LIBS=$LIBS
26265 if test $ac_cv_func_getgroups = no; then
26266   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26267 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26268 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26269   echo $ECHO_N "(cached) $ECHO_C" >&6
26270 else
26271   ac_check_lib_save_LIBS=$LIBS
26272 LIBS="-lbsd  $LIBS"
26273 cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h.  */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h.  */
26279
26280 /* Override any GCC internal prototype to avoid an error.
26281    Use char because int might match the return type of a GCC
26282    builtin and then its argument prototype would still apply.  */
26283 #ifdef __cplusplus
26284 extern "C"
26285 #endif
26286 char getgroups ();
26287 int
26288 main ()
26289 {
26290 return getgroups ();
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 rm -f conftest.$ac_objext conftest$ac_exeext
26296 if { (ac_try="$ac_link"
26297 case "(($ac_try" in
26298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299   *) ac_try_echo=$ac_try;;
26300 esac
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302   (eval "$ac_link") 2>conftest.er1
26303   ac_status=$?
26304   grep -v '^ *+' conftest.er1 >conftest.err
26305   rm -f conftest.er1
26306   cat conftest.err >&5
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); } && {
26309          test -z "$ac_c_werror_flag" ||
26310          test ! -s conftest.err
26311        } && test -s conftest$ac_exeext &&
26312        $as_test_x conftest$ac_exeext; then
26313   ac_cv_lib_bsd_getgroups=yes
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318         ac_cv_lib_bsd_getgroups=no
26319 fi
26320
26321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26322       conftest$ac_exeext conftest.$ac_ext
26323 LIBS=$ac_check_lib_save_LIBS
26324 fi
26325 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26326 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26327 if test $ac_cv_lib_bsd_getgroups = yes; then
26328   GETGROUPS_LIB=-lbsd
26329 fi
26330
26331 fi
26332
26333 # Run the program to test the functionality of the system-supplied
26334 # getgroups function only if there is such a function.
26335 if test $ac_cv_func_getgroups = yes; then
26336   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26337 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26338 if test "${ac_cv_func_getgroups_works+set}" = set; then
26339   echo $ECHO_N "(cached) $ECHO_C" >&6
26340 else
26341   if test "$cross_compiling" = yes; then
26342   ac_cv_func_getgroups_works=no
26343 else
26344   cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 $ac_includes_default
26351 int
26352 main ()
26353 {
26354 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26355        return getgroups (0, 0) == -1;
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_link") 2>&5
26368   ac_status=$?
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26371   { (case "(($ac_try" in
26372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373   *) ac_try_echo=$ac_try;;
26374 esac
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376   (eval "$ac_try") 2>&5
26377   ac_status=$?
26378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); }; }; then
26380   ac_cv_func_getgroups_works=yes
26381 else
26382   echo "$as_me: program exited with status $ac_status" >&5
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386 ( exit $ac_status )
26387 ac_cv_func_getgroups_works=no
26388 fi
26389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26390 fi
26391
26392
26393    
26394 fi
26395 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26396 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26397   if test $ac_cv_func_getgroups_works = yes; then
26398     
26399 cat >>confdefs.h <<\_ACEOF
26400 @%:@define HAVE_GETGROUPS 1
26401 _ACEOF
26402
26403   fi
26404 fi
26405 LIBS=$ac_save_LIBS
26406
26407 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26408 # -lseq on Dynix/PTX, -lgen on Unixware.
26409 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26410 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26411 if test "${ac_cv_search_getmntent+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   ac_func_search_save_LIBS=$LIBS
26415 cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421
26422 /* Override any GCC internal prototype to avoid an error.
26423    Use char because int might match the return type of a GCC
26424    builtin and then its argument prototype would still apply.  */
26425 #ifdef __cplusplus
26426 extern "C"
26427 #endif
26428 char getmntent ();
26429 int
26430 main ()
26431 {
26432 return getmntent ();
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 for ac_lib in '' sun seq gen; do
26438   if test -z "$ac_lib"; then
26439     ac_res="none required"
26440   else
26441     ac_res=-l$ac_lib
26442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26443   fi
26444   rm -f conftest.$ac_objext conftest$ac_exeext
26445 if { (ac_try="$ac_link"
26446 case "(($ac_try" in
26447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448   *) ac_try_echo=$ac_try;;
26449 esac
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451   (eval "$ac_link") 2>conftest.er1
26452   ac_status=$?
26453   grep -v '^ *+' conftest.er1 >conftest.err
26454   rm -f conftest.er1
26455   cat conftest.err >&5
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } && {
26458          test -z "$ac_c_werror_flag" ||
26459          test ! -s conftest.err
26460        } && test -s conftest$ac_exeext &&
26461        $as_test_x conftest$ac_exeext; then
26462   ac_cv_search_getmntent=$ac_res
26463 else
26464   echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26466
26467         
26468 fi
26469
26470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26471       conftest$ac_exeext 
26472   if test "${ac_cv_search_getmntent+set}" = set; then
26473   break
26474 fi
26475 done
26476 if test "${ac_cv_search_getmntent+set}" = set; then
26477   :
26478 else
26479   ac_cv_search_getmntent=no
26480 fi
26481 rm conftest.$ac_ext
26482 LIBS=$ac_func_search_save_LIBS
26483 fi
26484 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26485 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26486 ac_res=$ac_cv_search_getmntent
26487 if test "$ac_res" != no; then
26488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26489   ac_cv_func_getmntent=yes
26490                 
26491 cat >>confdefs.h <<\_ACEOF
26492 @%:@define HAVE_GETMNTENT 1
26493 _ACEOF
26494
26495 else
26496   ac_cv_func_getmntent=no
26497 fi
26498
26499
26500 if test $ac_cv_c_compiler_gnu = yes; then
26501     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26502 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26503 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26504   echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506     ac_pattern="Autoconf.*'x'"
26507   cat >conftest.$ac_ext <<_ACEOF
26508 /* confdefs.h.  */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h.  */
26513 #include <sgtty.h>
26514 Autoconf TIOCGETP
26515 _ACEOF
26516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26517   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26518   ac_cv_prog_gcc_traditional=yes
26519 else
26520   ac_cv_prog_gcc_traditional=no
26521 fi
26522 rm -f conftest*
26523
26524
26525   if test $ac_cv_prog_gcc_traditional = no; then
26526     cat >conftest.$ac_ext <<_ACEOF
26527 /* confdefs.h.  */
26528 _ACEOF
26529 cat confdefs.h >>conftest.$ac_ext
26530 cat >>conftest.$ac_ext <<_ACEOF
26531 /* end confdefs.h.  */
26532 #include <termio.h>
26533 Autoconf TCGETA
26534 _ACEOF
26535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26536   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26537   ac_cv_prog_gcc_traditional=yes
26538 fi
26539 rm -f conftest*
26540
26541   fi
26542 fi
26543 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26544 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26545   if test $ac_cv_prog_gcc_traditional = yes; then
26546     CC="$CC -traditional"
26547   fi
26548 fi
26549
26550 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26551 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26552 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26553   echo $ECHO_N "(cached) $ECHO_C" >&6
26554 else
26555   rm -f conftest.sym conftest.file
26556 echo >conftest.file
26557 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26558   if test "$cross_compiling" = yes; then
26559   ac_cv_func_lstat_dereferences_slashed_symlink=no
26560 else
26561   cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 $ac_includes_default
26568 int
26569 main ()
26570 {
26571 struct stat sbuf;
26572      /* Linux will dereference the symlink and fail.
26573         That is better in the sense that it means we will not
26574         have to compile and use the lstat wrapper.  */
26575      return lstat ("conftest.sym/", &sbuf) == 0;
26576   ;
26577   return 0;
26578 }
26579 _ACEOF
26580 rm -f conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584   *) ac_try_echo=$ac_try;;
26585 esac
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587   (eval "$ac_link") 2>&5
26588   ac_status=$?
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26591   { (case "(($ac_try" in
26592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26593   *) ac_try_echo=$ac_try;;
26594 esac
26595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26596   (eval "$ac_try") 2>&5
26597   ac_status=$?
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); }; }; then
26600   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26601 else
26602   echo "$as_me: program exited with status $ac_status" >&5
26603 echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26605
26606 ( exit $ac_status )
26607 ac_cv_func_lstat_dereferences_slashed_symlink=no
26608 fi
26609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26610 fi
26611
26612
26613 else
26614   # If the `ln -s' command failed, then we probably don't even
26615   # have an lstat function.
26616   ac_cv_func_lstat_dereferences_slashed_symlink=no
26617 fi
26618 rm -f conftest.sym conftest.file
26619
26620 fi
26621 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26622 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26623
26624 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26625   
26626 cat >>confdefs.h <<_ACEOF
26627 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26628 _ACEOF
26629
26630
26631 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26632   case " $LIB@&t@OBJS " in
26633   *" lstat.$ac_objext "* ) ;;
26634   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26635  ;;
26636 esac
26637
26638 fi
26639
26640 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26641 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26642 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26643   echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645   if test "$cross_compiling" = yes; then
26646   ac_cv_func_lstat_empty_string_bug=yes
26647 else
26648   cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654 $ac_includes_default
26655 int
26656 main ()
26657 {
26658 struct stat sbuf;
26659   return lstat ("", &sbuf) == 0;
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest$ac_exeext
26665 if { (ac_try="$ac_link"
26666 case "(($ac_try" in
26667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668   *) ac_try_echo=$ac_try;;
26669 esac
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671   (eval "$ac_link") 2>&5
26672   ac_status=$?
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26675   { (case "(($ac_try" in
26676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677   *) ac_try_echo=$ac_try;;
26678 esac
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680   (eval "$ac_try") 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; }; then
26684   ac_cv_func_lstat_empty_string_bug=no
26685 else
26686   echo "$as_me: program exited with status $ac_status" >&5
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26689
26690 ( exit $ac_status )
26691 ac_cv_func_lstat_empty_string_bug=yes
26692 fi
26693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26694 fi
26695
26696
26697 fi
26698 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26699 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26700 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26701   case " $LIB@&t@OBJS " in
26702   *" lstat.$ac_objext "* ) ;;
26703   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26704  ;;
26705 esac
26706
26707   
26708 cat >>confdefs.h <<_ACEOF
26709 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26710 _ACEOF
26711
26712 fi
26713
26714 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26715 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26716 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26717   echo $ECHO_N "(cached) $ECHO_C" >&6
26718 else
26719   rm -f conftest.sym conftest.file
26720 echo >conftest.file
26721 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26722   if test "$cross_compiling" = yes; then
26723   ac_cv_func_lstat_dereferences_slashed_symlink=no
26724 else
26725   cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731 $ac_includes_default
26732 int
26733 main ()
26734 {
26735 struct stat sbuf;
26736      /* Linux will dereference the symlink and fail.
26737         That is better in the sense that it means we will not
26738         have to compile and use the lstat wrapper.  */
26739      return lstat ("conftest.sym/", &sbuf) == 0;
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 rm -f conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_link") 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26755   { (case "(($ac_try" in
26756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757   *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760   (eval "$ac_try") 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; }; then
26764   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26765 else
26766   echo "$as_me: program exited with status $ac_status" >&5
26767 echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26769
26770 ( exit $ac_status )
26771 ac_cv_func_lstat_dereferences_slashed_symlink=no
26772 fi
26773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26774 fi
26775
26776
26777 else
26778   # If the `ln -s' command failed, then we probably don't even
26779   # have an lstat function.
26780   ac_cv_func_lstat_dereferences_slashed_symlink=no
26781 fi
26782 rm -f conftest.sym conftest.file
26783
26784 fi
26785 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26786 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26787
26788 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26789   
26790 cat >>confdefs.h <<_ACEOF
26791 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26792 _ACEOF
26793
26794
26795 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26796   case " $LIB@&t@OBJS " in
26797   *" lstat.$ac_objext "* ) ;;
26798   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26799  ;;
26800 esac
26801
26802 fi
26803
26804 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26805 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26806 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 @%:@include <sys/types.h>
26816 int
26817 main ()
26818 {
26819 return makedev(0, 0);
26820   ;
26821   return 0;
26822 }
26823 _ACEOF
26824 rm -f conftest.$ac_objext conftest$ac_exeext
26825 if { (ac_try="$ac_link"
26826 case "(($ac_try" in
26827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828   *) ac_try_echo=$ac_try;;
26829 esac
26830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831   (eval "$ac_link") 2>conftest.er1
26832   ac_status=$?
26833   grep -v '^ *+' conftest.er1 >conftest.err
26834   rm -f conftest.er1
26835   cat conftest.err >&5
26836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837   (exit $ac_status); } && {
26838          test -z "$ac_c_werror_flag" ||
26839          test ! -s conftest.err
26840        } && test -s conftest$ac_exeext &&
26841        $as_test_x conftest$ac_exeext; then
26842   ac_cv_header_sys_types_h_makedev=yes
26843 else
26844   echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26846
26847         ac_cv_header_sys_types_h_makedev=no
26848 fi
26849
26850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26851       conftest$ac_exeext conftest.$ac_ext
26852
26853 fi
26854 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26855 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26856
26857 if test $ac_cv_header_sys_types_h_makedev = no; then
26858 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26859   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26860 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26861 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 fi
26864 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26865 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26866 else
26867   # Is the header compilable?
26868 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26869 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26870 cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876 $ac_includes_default
26877 @%:@include <sys/mkdev.h>
26878 _ACEOF
26879 rm -f conftest.$ac_objext
26880 if { (ac_try="$ac_compile"
26881 case "(($ac_try" in
26882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883   *) ac_try_echo=$ac_try;;
26884 esac
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886   (eval "$ac_compile") 2>conftest.er1
26887   ac_status=$?
26888   grep -v '^ *+' conftest.er1 >conftest.err
26889   rm -f conftest.er1
26890   cat conftest.err >&5
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); } && {
26893          test -z "$ac_c_werror_flag" ||
26894          test ! -s conftest.err
26895        } && test -s conftest.$ac_objext; then
26896   ac_header_compiler=yes
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901         ac_header_compiler=no
26902 fi
26903
26904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26906 echo "${ECHO_T}$ac_header_compiler" >&6; }
26907
26908 # Is the header present?
26909 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26910 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917 @%:@include <sys/mkdev.h>
26918 _ACEOF
26919 if { (ac_try="$ac_cpp conftest.$ac_ext"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } >/dev/null && {
26932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26933          test ! -s conftest.err
26934        }; then
26935   ac_header_preproc=yes
26936 else
26937   echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26939
26940   ac_header_preproc=no
26941 fi
26942
26943 rm -f conftest.err conftest.$ac_ext
26944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26945 echo "${ECHO_T}$ac_header_preproc" >&6; }
26946
26947 # So?  What about this header?
26948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26949   yes:no: )
26950     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26951 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26952     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26953 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26954     ac_header_preproc=yes
26955     ;;
26956   no:yes:* )
26957     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26958 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26959     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26960 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26961     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26962 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26967     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26969     ( cat <<\_ASBOX
26970 @%:@@%:@ ------------------------------- @%:@@%:@
26971 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26972 @%:@@%:@ ------------------------------- @%:@@%:@
26973 _ASBOX
26974      ) | sed "s/^/$as_me: WARNING:     /" >&2
26975     ;;
26976 esac
26977 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26978 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26979 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26980   echo $ECHO_N "(cached) $ECHO_C" >&6
26981 else
26982   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26983 fi
26984 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26985 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26986
26987 fi
26988 if test $ac_cv_header_sys_mkdev_h = yes; then
26989   
26990 cat >>confdefs.h <<\_ACEOF
26991 @%:@define MAJOR_IN_MKDEV 1
26992 _ACEOF
26993
26994 fi
26995
26996
26997
26998   if test $ac_cv_header_sys_mkdev_h = no; then
26999     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27000   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27001 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27002 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 fi
27005 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27006 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27007 else
27008   # Is the header compilable?
27009 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27010 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27011 cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017 $ac_includes_default
27018 @%:@include <sys/sysmacros.h>
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_compile") 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } && {
27034          test -z "$ac_c_werror_flag" ||
27035          test ! -s conftest.err
27036        } && test -s conftest.$ac_objext; then
27037   ac_header_compiler=yes
27038 else
27039   echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042         ac_header_compiler=no
27043 fi
27044
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047 echo "${ECHO_T}$ac_header_compiler" >&6; }
27048
27049 # Is the header present?
27050 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27051 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27052 cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 @%:@include <sys/sysmacros.h>
27059 _ACEOF
27060 if { (ac_try="$ac_cpp conftest.$ac_ext"
27061 case "(($ac_try" in
27062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063   *) ac_try_echo=$ac_try;;
27064 esac
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27067   ac_status=$?
27068   grep -v '^ *+' conftest.er1 >conftest.err
27069   rm -f conftest.er1
27070   cat conftest.err >&5
27071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); } >/dev/null && {
27073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27074          test ! -s conftest.err
27075        }; then
27076   ac_header_preproc=yes
27077 else
27078   echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27080
27081   ac_header_preproc=no
27082 fi
27083
27084 rm -f conftest.err conftest.$ac_ext
27085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27086 echo "${ECHO_T}$ac_header_preproc" >&6; }
27087
27088 # So?  What about this header?
27089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27090   yes:no: )
27091     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27092 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27093     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27094 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27095     ac_header_preproc=yes
27096     ;;
27097   no:yes:* )
27098     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27099 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27100     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27101 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27102     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27103 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27106     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27108     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27109 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27110     ( cat <<\_ASBOX
27111 @%:@@%:@ ------------------------------- @%:@@%:@
27112 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27113 @%:@@%:@ ------------------------------- @%:@@%:@
27114 _ASBOX
27115      ) | sed "s/^/$as_me: WARNING:     /" >&2
27116     ;;
27117 esac
27118 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27119 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27120 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27121   echo $ECHO_N "(cached) $ECHO_C" >&6
27122 else
27123   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27124 fi
27125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27126 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27127
27128 fi
27129 if test $ac_cv_header_sys_sysmacros_h = yes; then
27130   
27131 cat >>confdefs.h <<\_ACEOF
27132 @%:@define MAJOR_IN_SYSMACROS 1
27133 _ACEOF
27134
27135 fi
27136
27137
27138   fi
27139 fi
27140
27141 #AC_FUNC_MALLOC
27142 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27143 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27144 if test "${ac_cv_func_memcmp_working+set}" = set; then
27145   echo $ECHO_N "(cached) $ECHO_C" >&6
27146 else
27147   if test "$cross_compiling" = yes; then
27148   ac_cv_func_memcmp_working=no
27149 else
27150   cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h.  */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h.  */
27156 $ac_includes_default
27157 int
27158 main ()
27159 {
27160
27161   /* Some versions of memcmp are not 8-bit clean.  */
27162   char c0 = '\100', c1 = '\200', c2 = '\201';
27163   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27164     return 1;
27165
27166   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27167      or more and with at least one buffer not starting on a 4-byte boundary.
27168      William Lewis provided this test program.   */
27169   {
27170     char foo[21];
27171     char bar[21];
27172     int i;
27173     for (i = 0; i < 4; i++)
27174       {
27175         char *a = foo + i;
27176         char *b = bar + i;
27177         strcpy (a, "--------01111111");
27178         strcpy (b, "--------10000000");
27179         if (memcmp (a, b, 16) >= 0)
27180           return 1;
27181       }
27182     return 0;
27183   }
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest$ac_exeext
27190 if { (ac_try="$ac_link"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_link") 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27200   { (case "(($ac_try" in
27201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202   *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205   (eval "$ac_try") 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_cv_func_memcmp_working=yes
27210 else
27211   echo "$as_me: program exited with status $ac_status" >&5
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27214
27215 ( exit $ac_status )
27216 ac_cv_func_memcmp_working=no
27217 fi
27218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27219 fi
27220
27221
27222 fi
27223 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27224 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27225 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27226   *" memcmp.$ac_objext "* ) ;;
27227   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27228  ;;
27229 esac
27230
27231
27232 #AC_FUNC_REALLOC
27233
27234
27235 for ac_header in sys/select.h sys/socket.h
27236 do
27237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27239   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242   echo $ECHO_N "(cached) $ECHO_C" >&6
27243 fi
27244 ac_res=`eval echo '${'$as_ac_Header'}'`
27245                { echo "$as_me:$LINENO: result: $ac_res" >&5
27246 echo "${ECHO_T}$ac_res" >&6; }
27247 else
27248   # Is the header compilable?
27249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27252 /* confdefs.h.  */
27253 _ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h.  */
27257 $ac_includes_default
27258 @%:@include <$ac_header>
27259 _ACEOF
27260 rm -f conftest.$ac_objext
27261 if { (ac_try="$ac_compile"
27262 case "(($ac_try" in
27263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264   *) ac_try_echo=$ac_try;;
27265 esac
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267   (eval "$ac_compile") 2>conftest.er1
27268   ac_status=$?
27269   grep -v '^ *+' conftest.er1 >conftest.err
27270   rm -f conftest.er1
27271   cat conftest.err >&5
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); } && {
27274          test -z "$ac_c_werror_flag" ||
27275          test ! -s conftest.err
27276        } && test -s conftest.$ac_objext; then
27277   ac_header_compiler=yes
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282         ac_header_compiler=no
27283 fi
27284
27285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27287 echo "${ECHO_T}$ac_header_compiler" >&6; }
27288
27289 # Is the header present?
27290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27292 cat >conftest.$ac_ext <<_ACEOF
27293 /* confdefs.h.  */
27294 _ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h.  */
27298 @%:@include <$ac_header>
27299 _ACEOF
27300 if { (ac_try="$ac_cpp conftest.$ac_ext"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } >/dev/null && {
27313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        }; then
27316   ac_header_preproc=yes
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321   ac_header_preproc=no
27322 fi
27323
27324 rm -f conftest.err conftest.$ac_ext
27325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27326 echo "${ECHO_T}$ac_header_preproc" >&6; }
27327
27328 # So?  What about this header?
27329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27330   yes:no: )
27331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27335     ac_header_preproc=yes
27336     ;;
27337   no:yes:* )
27338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27350     ( cat <<\_ASBOX
27351 @%:@@%:@ ------------------------------- @%:@@%:@
27352 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27353 @%:@@%:@ ------------------------------- @%:@@%:@
27354 _ASBOX
27355      ) | sed "s/^/$as_me: WARNING:     /" >&2
27356     ;;
27357 esac
27358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27361   echo $ECHO_N "(cached) $ECHO_C" >&6
27362 else
27363   eval "$as_ac_Header=\$ac_header_preproc"
27364 fi
27365 ac_res=`eval echo '${'$as_ac_Header'}'`
27366                { echo "$as_me:$LINENO: result: $ac_res" >&5
27367 echo "${ECHO_T}$ac_res" >&6; }
27368
27369 fi
27370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27371   cat >>confdefs.h <<_ACEOF
27372 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27373 _ACEOF
27374  
27375 fi
27376
27377 done
27378
27379 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27380 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27381 if test "${ac_cv_func_select_args+set}" = set; then
27382   echo $ECHO_N "(cached) $ECHO_C" >&6
27383 else
27384   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27385  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27386   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27387    cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h.  */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h.  */
27393 $ac_includes_default
27394 #ifdef HAVE_SYS_SELECT_H
27395 # include <sys/select.h>
27396 #endif
27397 #ifdef HAVE_SYS_SOCKET_H
27398 # include <sys/socket.h>
27399 #endif
27400
27401 int
27402 main ()
27403 {
27404 extern int select ($ac_arg1,
27405                                             $ac_arg234, $ac_arg234, $ac_arg234,
27406                                             $ac_arg5);
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_compile") 2>conftest.er1
27419   ac_status=$?
27420   grep -v '^ *+' conftest.er1 >conftest.err
27421   rm -f conftest.er1
27422   cat conftest.err >&5
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); } && {
27425          test -z "$ac_c_werror_flag" ||
27426          test ! -s conftest.err
27427        } && test -s conftest.$ac_objext; then
27428   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27429 else
27430   echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27432
27433         
27434 fi
27435
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437   done
27438  done
27439 done
27440 # Provide a safe default value.
27441 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27442
27443 fi
27444 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27445 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27446 ac_save_IFS=$IFS; IFS=','
27447 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27448 IFS=$ac_save_IFS
27449 shift
27450
27451 cat >>confdefs.h <<_ACEOF
27452 @%:@define SELECT_TYPE_ARG1 $1
27453 _ACEOF
27454
27455
27456 cat >>confdefs.h <<_ACEOF
27457 @%:@define SELECT_TYPE_ARG234 ($2)
27458 _ACEOF
27459
27460
27461 cat >>confdefs.h <<_ACEOF
27462 @%:@define SELECT_TYPE_ARG5 ($3)
27463 _ACEOF
27464
27465 rm -f conftest*
27466
27467 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27468 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27469 if test "${ac_cv_type_signal+set}" = set; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472   cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 #include <sys/types.h>
27479 #include <signal.h>
27480
27481 int
27482 main ()
27483 {
27484 return *(signal (0, 0)) (0) == 1;
27485   ;
27486   return 0;
27487 }
27488 _ACEOF
27489 rm -f conftest.$ac_objext
27490 if { (ac_try="$ac_compile"
27491 case "(($ac_try" in
27492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493   *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496   (eval "$ac_compile") 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } && {
27503          test -z "$ac_c_werror_flag" ||
27504          test ! -s conftest.err
27505        } && test -s conftest.$ac_objext; then
27506   ac_cv_type_signal=int
27507 else
27508   echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27510
27511         ac_cv_type_signal=void
27512 fi
27513
27514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27515 fi
27516 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27517 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27518
27519 cat >>confdefs.h <<_ACEOF
27520 @%:@define RETSIGTYPE $ac_cv_type_signal
27521 _ACEOF
27522
27523
27524 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27525 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27526 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27527   echo $ECHO_N "(cached) $ECHO_C" >&6
27528 else
27529   if test "$cross_compiling" = yes; then
27530   ac_cv_func_stat_empty_string_bug=yes
27531 else
27532   cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538 $ac_includes_default
27539 int
27540 main ()
27541 {
27542 struct stat sbuf;
27543   return stat ("", &sbuf) == 0;
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_link") 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27559   { (case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_try") 2>&5
27565   ac_status=$?
27566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567   (exit $ac_status); }; }; then
27568   ac_cv_func_stat_empty_string_bug=no
27569 else
27570   echo "$as_me: program exited with status $ac_status" >&5
27571 echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27573
27574 ( exit $ac_status )
27575 ac_cv_func_stat_empty_string_bug=yes
27576 fi
27577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27578 fi
27579
27580
27581 fi
27582 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27583 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27584 if test $ac_cv_func_stat_empty_string_bug = yes; then
27585   case " $LIB@&t@OBJS " in
27586   *" stat.$ac_objext "* ) ;;
27587   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27588  ;;
27589 esac
27590
27591   
27592 cat >>confdefs.h <<_ACEOF
27593 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27594 _ACEOF
27595
27596 fi
27597
27598
27599 for ac_func in vprintf
27600 do
27601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27605   echo $ECHO_N "(cached) $ECHO_C" >&6
27606 else
27607   cat >conftest.$ac_ext <<_ACEOF
27608 /* confdefs.h.  */
27609 _ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h.  */
27613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27615 #define $ac_func innocuous_$ac_func
27616
27617 /* System header to define __stub macros and hopefully few prototypes,
27618     which can conflict with char $ac_func (); below.
27619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27620     <limits.h> exists even on freestanding compilers.  */
27621
27622 #ifdef __STDC__
27623 # include <limits.h>
27624 #else
27625 # include <assert.h>
27626 #endif
27627
27628 #undef $ac_func
27629
27630 /* Override any GCC internal prototype to avoid an error.
27631    Use char because int might match the return type of a GCC
27632    builtin and then its argument prototype would still apply.  */
27633 #ifdef __cplusplus
27634 extern "C"
27635 #endif
27636 char $ac_func ();
27637 /* The GNU C library defines this for functions which it implements
27638     to always fail with ENOSYS.  Some functions are actually named
27639     something starting with __ and the normal name is an alias.  */
27640 #if defined __stub_$ac_func || defined __stub___$ac_func
27641 choke me
27642 #endif
27643
27644 int
27645 main ()
27646 {
27647 return $ac_func ();
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656   *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659   (eval "$ac_link") 2>conftest.er1
27660   ac_status=$?
27661   grep -v '^ *+' conftest.er1 >conftest.err
27662   rm -f conftest.er1
27663   cat conftest.err >&5
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); } && {
27666          test -z "$ac_c_werror_flag" ||
27667          test ! -s conftest.err
27668        } && test -s conftest$ac_exeext &&
27669        $as_test_x conftest$ac_exeext; then
27670   eval "$as_ac_var=yes"
27671 else
27672   echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675         eval "$as_ac_var=no"
27676 fi
27677
27678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27679       conftest$ac_exeext conftest.$ac_ext
27680 fi
27681 ac_res=`eval echo '${'$as_ac_var'}'`
27682                { echo "$as_me:$LINENO: result: $ac_res" >&5
27683 echo "${ECHO_T}$ac_res" >&6; }
27684 if test `eval echo '${'$as_ac_var'}'` = yes; then
27685   cat >>confdefs.h <<_ACEOF
27686 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27687 _ACEOF
27688  
27689 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27690 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27691 if test "${ac_cv_func__doprnt+set}" = set; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694   cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27702 #define _doprnt innocuous__doprnt
27703
27704 /* System header to define __stub macros and hopefully few prototypes,
27705     which can conflict with char _doprnt (); below.
27706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27707     <limits.h> exists even on freestanding compilers.  */
27708
27709 #ifdef __STDC__
27710 # include <limits.h>
27711 #else
27712 # include <assert.h>
27713 #endif
27714
27715 #undef _doprnt
27716
27717 /* Override any GCC internal prototype to avoid an error.
27718    Use char because int might match the return type of a GCC
27719    builtin and then its argument prototype would still apply.  */
27720 #ifdef __cplusplus
27721 extern "C"
27722 #endif
27723 char _doprnt ();
27724 /* The GNU C library defines this for functions which it implements
27725     to always fail with ENOSYS.  Some functions are actually named
27726     something starting with __ and the normal name is an alias.  */
27727 #if defined __stub__doprnt || defined __stub____doprnt
27728 choke me
27729 #endif
27730
27731 int
27732 main ()
27733 {
27734 return _doprnt ();
27735   ;
27736   return 0;
27737 }
27738 _ACEOF
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_link") 2>conftest.er1
27747   ac_status=$?
27748   grep -v '^ *+' conftest.er1 >conftest.err
27749   rm -f conftest.er1
27750   cat conftest.err >&5
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); } && {
27753          test -z "$ac_c_werror_flag" ||
27754          test ! -s conftest.err
27755        } && test -s conftest$ac_exeext &&
27756        $as_test_x conftest$ac_exeext; then
27757   ac_cv_func__doprnt=yes
27758 else
27759   echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762         ac_cv_func__doprnt=no
27763 fi
27764
27765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27766       conftest$ac_exeext conftest.$ac_ext
27767 fi
27768 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27769 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27770 if test $ac_cv_func__doprnt = yes; then
27771   
27772 cat >>confdefs.h <<\_ACEOF
27773 @%:@define HAVE_DOPRNT 1
27774 _ACEOF
27775
27776 fi
27777
27778 fi
27779 done
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
27811 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27812                gethostbyaddr gethostbyname gethostname getmntent \
27813                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27814                realpath rmdir select socket strcasecmp strchr strdup \
27815                strerror strrchr strtol strtoul sigprocmask
27816 do
27817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27821   echo $ECHO_N "(cached) $ECHO_C" >&6
27822 else
27823   cat >conftest.$ac_ext <<_ACEOF
27824 /* confdefs.h.  */
27825 _ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h.  */
27829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27831 #define $ac_func innocuous_$ac_func
27832
27833 /* System header to define __stub macros and hopefully few prototypes,
27834     which can conflict with char $ac_func (); below.
27835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27836     <limits.h> exists even on freestanding compilers.  */
27837
27838 #ifdef __STDC__
27839 # include <limits.h>
27840 #else
27841 # include <assert.h>
27842 #endif
27843
27844 #undef $ac_func
27845
27846 /* Override any GCC internal prototype to avoid an error.
27847    Use char because int might match the return type of a GCC
27848    builtin and then its argument prototype would still apply.  */
27849 #ifdef __cplusplus
27850 extern "C"
27851 #endif
27852 char $ac_func ();
27853 /* The GNU C library defines this for functions which it implements
27854     to always fail with ENOSYS.  Some functions are actually named
27855     something starting with __ and the normal name is an alias.  */
27856 #if defined __stub_$ac_func || defined __stub___$ac_func
27857 choke me
27858 #endif
27859
27860 int
27861 main ()
27862 {
27863 return $ac_func ();
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (ac_try="$ac_link"
27870 case "(($ac_try" in
27871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872   *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875   (eval "$ac_link") 2>conftest.er1
27876   ac_status=$?
27877   grep -v '^ *+' conftest.er1 >conftest.err
27878   rm -f conftest.er1
27879   cat conftest.err >&5
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } && {
27882          test -z "$ac_c_werror_flag" ||
27883          test ! -s conftest.err
27884        } && test -s conftest$ac_exeext &&
27885        $as_test_x conftest$ac_exeext; then
27886   eval "$as_ac_var=yes"
27887 else
27888   echo "$as_me: failed program was:" >&5
27889 sed 's/^/| /' conftest.$ac_ext >&5
27890
27891         eval "$as_ac_var=no"
27892 fi
27893
27894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27895       conftest$ac_exeext conftest.$ac_ext
27896 fi
27897 ac_res=`eval echo '${'$as_ac_var'}'`
27898                { echo "$as_me:$LINENO: result: $ac_res" >&5
27899 echo "${ECHO_T}$ac_res" >&6; }
27900 if test `eval echo '${'$as_ac_var'}'` = yes; then
27901   cat >>confdefs.h <<_ACEOF
27902 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27903 _ACEOF
27904  
27905 fi
27906 done
27907
27908
27909
27910 { echo "$as_me:$LINENO: checking for short" >&5
27911 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27912 if test "${ac_cv_type_short+set}" = set; then
27913   echo $ECHO_N "(cached) $ECHO_C" >&6
27914 else
27915   cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921 $ac_includes_default
27922 typedef short ac__type_new_;
27923 int
27924 main ()
27925 {
27926 if ((ac__type_new_ *) 0)
27927   return 0;
27928 if (sizeof (ac__type_new_))
27929   return 0;
27930   ;
27931   return 0;
27932 }
27933 _ACEOF
27934 rm -f conftest.$ac_objext
27935 if { (ac_try="$ac_compile"
27936 case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_compile") 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } && {
27948          test -z "$ac_c_werror_flag" ||
27949          test ! -s conftest.err
27950        } && test -s conftest.$ac_objext; then
27951   ac_cv_type_short=yes
27952 else
27953   echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27955
27956         ac_cv_type_short=no
27957 fi
27958
27959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27960 fi
27961 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27962 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27963
27964 # The cast to long int works around a bug in the HP C Compiler
27965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27967 # This bug is HP SR number 8606223364.
27968 { echo "$as_me:$LINENO: checking size of short" >&5
27969 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27970 if test "${ac_cv_sizeof_short+set}" = set; then
27971   echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27973   if test "$cross_compiling" = yes; then
27974   # Depending upon the size, compute the lo and hi bounds.
27975 cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h.  */
27977 _ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h.  */
27981 $ac_includes_default
27982    typedef short ac__type_sizeof_;
27983 int
27984 main ()
27985 {
27986 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27987 test_array @<:@0@:>@ = 0
27988
27989   ;
27990   return 0;
27991 }
27992 _ACEOF
27993 rm -f conftest.$ac_objext
27994 if { (ac_try="$ac_compile"
27995 case "(($ac_try" in
27996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997   *) ac_try_echo=$ac_try;;
27998 esac
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000   (eval "$ac_compile") 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } && {
28007          test -z "$ac_c_werror_flag" ||
28008          test ! -s conftest.err
28009        } && test -s conftest.$ac_objext; then
28010   ac_lo=0 ac_mid=0
28011   while :; do
28012     cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h.  */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h.  */
28018 $ac_includes_default
28019    typedef short ac__type_sizeof_;
28020 int
28021 main ()
28022 {
28023 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28024 test_array @<:@0@:>@ = 0
28025
28026   ;
28027   return 0;
28028 }
28029 _ACEOF
28030 rm -f conftest.$ac_objext
28031 if { (ac_try="$ac_compile"
28032 case "(($ac_try" in
28033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034   *) ac_try_echo=$ac_try;;
28035 esac
28036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037   (eval "$ac_compile") 2>conftest.er1
28038   ac_status=$?
28039   grep -v '^ *+' conftest.er1 >conftest.err
28040   rm -f conftest.er1
28041   cat conftest.err >&5
28042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043   (exit $ac_status); } && {
28044          test -z "$ac_c_werror_flag" ||
28045          test ! -s conftest.err
28046        } && test -s conftest.$ac_objext; then
28047   ac_hi=$ac_mid; break
28048 else
28049   echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28051
28052         ac_lo=`expr $ac_mid + 1`
28053                         if test $ac_lo -le $ac_mid; then
28054                           ac_lo= ac_hi=
28055                           break
28056                         fi
28057                         ac_mid=`expr 2 '*' $ac_mid + 1`
28058 fi
28059
28060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28061   done
28062 else
28063   echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28065
28066         cat >conftest.$ac_ext <<_ACEOF
28067 /* confdefs.h.  */
28068 _ACEOF
28069 cat confdefs.h >>conftest.$ac_ext
28070 cat >>conftest.$ac_ext <<_ACEOF
28071 /* end confdefs.h.  */
28072 $ac_includes_default
28073    typedef short ac__type_sizeof_;
28074 int
28075 main ()
28076 {
28077 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28078 test_array @<:@0@:>@ = 0
28079
28080   ;
28081   return 0;
28082 }
28083 _ACEOF
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_compile") 2>conftest.er1
28092   ac_status=$?
28093   grep -v '^ *+' conftest.er1 >conftest.err
28094   rm -f conftest.er1
28095   cat conftest.err >&5
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } && {
28098          test -z "$ac_c_werror_flag" ||
28099          test ! -s conftest.err
28100        } && test -s conftest.$ac_objext; then
28101   ac_hi=-1 ac_mid=-1
28102   while :; do
28103     cat >conftest.$ac_ext <<_ACEOF
28104 /* confdefs.h.  */
28105 _ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h.  */
28109 $ac_includes_default
28110    typedef short ac__type_sizeof_;
28111 int
28112 main ()
28113 {
28114 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28115 test_array @<:@0@:>@ = 0
28116
28117   ;
28118   return 0;
28119 }
28120 _ACEOF
28121 rm -f conftest.$ac_objext
28122 if { (ac_try="$ac_compile"
28123 case "(($ac_try" in
28124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28125   *) ac_try_echo=$ac_try;;
28126 esac
28127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28128   (eval "$ac_compile") 2>conftest.er1
28129   ac_status=$?
28130   grep -v '^ *+' conftest.er1 >conftest.err
28131   rm -f conftest.er1
28132   cat conftest.err >&5
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); } && {
28135          test -z "$ac_c_werror_flag" ||
28136          test ! -s conftest.err
28137        } && test -s conftest.$ac_objext; then
28138   ac_lo=$ac_mid; break
28139 else
28140   echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28142
28143         ac_hi=`expr '(' $ac_mid ')' - 1`
28144                         if test $ac_mid -le $ac_hi; then
28145                           ac_lo= ac_hi=
28146                           break
28147                         fi
28148                         ac_mid=`expr 2 '*' $ac_mid`
28149 fi
28150
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28152   done
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157         ac_lo= ac_hi=
28158 fi
28159
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161 fi
28162
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 # Binary search between lo and hi bounds.
28165 while test "x$ac_lo" != "x$ac_hi"; do
28166   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28167   cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h.  */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h.  */
28173 $ac_includes_default
28174    typedef short ac__type_sizeof_;
28175 int
28176 main ()
28177 {
28178 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28179 test_array @<:@0@:>@ = 0
28180
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192   (eval "$ac_compile") 2>conftest.er1
28193   ac_status=$?
28194   grep -v '^ *+' conftest.er1 >conftest.err
28195   rm -f conftest.er1
28196   cat conftest.err >&5
28197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198   (exit $ac_status); } && {
28199          test -z "$ac_c_werror_flag" ||
28200          test ! -s conftest.err
28201        } && test -s conftest.$ac_objext; then
28202   ac_hi=$ac_mid
28203 else
28204   echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28206
28207         ac_lo=`expr '(' $ac_mid ')' + 1`
28208 fi
28209
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28211 done
28212 case $ac_lo in
28213 ?*) ac_cv_sizeof_short=$ac_lo;;
28214 '') if test "$ac_cv_type_short" = yes; then
28215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28216 See \`config.log' for more details." >&5
28217 echo "$as_me: error: cannot compute sizeof (short)
28218 See \`config.log' for more details." >&2;}
28219    { (exit 77); exit 77; }; }
28220    else
28221      ac_cv_sizeof_short=0
28222    fi ;;
28223 esac
28224 else
28225   cat >conftest.$ac_ext <<_ACEOF
28226 /* confdefs.h.  */
28227 _ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h.  */
28231 $ac_includes_default
28232    typedef short ac__type_sizeof_;
28233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28235 @%:@include <stdio.h>
28236 @%:@include <stdlib.h>
28237 int
28238 main ()
28239 {
28240
28241   FILE *f = fopen ("conftest.val", "w");
28242   if (! f)
28243     return 1;
28244   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28245     {
28246       long int i = longval ();
28247       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28248         return 1;
28249       fprintf (f, "%ld\n", i);
28250     }
28251   else
28252     {
28253       unsigned long int i = ulongval ();
28254       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28255         return 1;
28256       fprintf (f, "%lu\n", i);
28257     }
28258   return ferror (f) || fclose (f) != 0;
28259
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest$ac_exeext
28265 if { (ac_try="$ac_link"
28266 case "(($ac_try" in
28267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268   *) ac_try_echo=$ac_try;;
28269 esac
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271   (eval "$ac_link") 2>&5
28272   ac_status=$?
28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28275   { (case "(($ac_try" in
28276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277   *) ac_try_echo=$ac_try;;
28278 esac
28279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280   (eval "$ac_try") 2>&5
28281   ac_status=$?
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); }; }; then
28284   ac_cv_sizeof_short=`cat conftest.val`
28285 else
28286   echo "$as_me: program exited with status $ac_status" >&5
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ( exit $ac_status )
28291 if test "$ac_cv_type_short" = yes; then
28292      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28293 See \`config.log' for more details." >&5
28294 echo "$as_me: error: cannot compute sizeof (short)
28295 See \`config.log' for more details." >&2;}
28296    { (exit 77); exit 77; }; }
28297    else
28298      ac_cv_sizeof_short=0
28299    fi
28300 fi
28301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28302 fi
28303 rm -f conftest.val
28304 fi
28305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28306 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28307
28308
28309
28310 cat >>confdefs.h <<_ACEOF
28311 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28312 _ACEOF
28313
28314
28315 { echo "$as_me:$LINENO: checking for int" >&5
28316 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28317 if test "${ac_cv_type_int+set}" = set; then
28318   echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320   cat >conftest.$ac_ext <<_ACEOF
28321 /* confdefs.h.  */
28322 _ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h.  */
28326 $ac_includes_default
28327 typedef int ac__type_new_;
28328 int
28329 main ()
28330 {
28331 if ((ac__type_new_ *) 0)
28332   return 0;
28333 if (sizeof (ac__type_new_))
28334   return 0;
28335   ;
28336   return 0;
28337 }
28338 _ACEOF
28339 rm -f conftest.$ac_objext
28340 if { (ac_try="$ac_compile"
28341 case "(($ac_try" in
28342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343   *) ac_try_echo=$ac_try;;
28344 esac
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346   (eval "$ac_compile") 2>conftest.er1
28347   ac_status=$?
28348   grep -v '^ *+' conftest.er1 >conftest.err
28349   rm -f conftest.er1
28350   cat conftest.err >&5
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); } && {
28353          test -z "$ac_c_werror_flag" ||
28354          test ! -s conftest.err
28355        } && test -s conftest.$ac_objext; then
28356   ac_cv_type_int=yes
28357 else
28358   echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28360
28361         ac_cv_type_int=no
28362 fi
28363
28364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28365 fi
28366 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28367 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28368
28369 # The cast to long int works around a bug in the HP C Compiler
28370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28372 # This bug is HP SR number 8606223364.
28373 { echo "$as_me:$LINENO: checking size of int" >&5
28374 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28375 if test "${ac_cv_sizeof_int+set}" = set; then
28376   echo $ECHO_N "(cached) $ECHO_C" >&6
28377 else
28378   if test "$cross_compiling" = yes; then
28379   # Depending upon the size, compute the lo and hi bounds.
28380 cat >conftest.$ac_ext <<_ACEOF
28381 /* confdefs.h.  */
28382 _ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h.  */
28386 $ac_includes_default
28387    typedef int ac__type_sizeof_;
28388 int
28389 main ()
28390 {
28391 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28392 test_array @<:@0@:>@ = 0
28393
28394   ;
28395   return 0;
28396 }
28397 _ACEOF
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_compile") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } && {
28412          test -z "$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        } && test -s conftest.$ac_objext; then
28415   ac_lo=0 ac_mid=0
28416   while :; do
28417     cat >conftest.$ac_ext <<_ACEOF
28418 /* confdefs.h.  */
28419 _ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h.  */
28423 $ac_includes_default
28424    typedef int ac__type_sizeof_;
28425 int
28426 main ()
28427 {
28428 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28429 test_array @<:@0@:>@ = 0
28430
28431   ;
28432   return 0;
28433 }
28434 _ACEOF
28435 rm -f conftest.$ac_objext
28436 if { (ac_try="$ac_compile"
28437 case "(($ac_try" in
28438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439   *) ac_try_echo=$ac_try;;
28440 esac
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442   (eval "$ac_compile") 2>conftest.er1
28443   ac_status=$?
28444   grep -v '^ *+' conftest.er1 >conftest.err
28445   rm -f conftest.er1
28446   cat conftest.err >&5
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); } && {
28449          test -z "$ac_c_werror_flag" ||
28450          test ! -s conftest.err
28451        } && test -s conftest.$ac_objext; then
28452   ac_hi=$ac_mid; break
28453 else
28454   echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28456
28457         ac_lo=`expr $ac_mid + 1`
28458                         if test $ac_lo -le $ac_mid; then
28459                           ac_lo= ac_hi=
28460                           break
28461                         fi
28462                         ac_mid=`expr 2 '*' $ac_mid + 1`
28463 fi
28464
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28466   done
28467 else
28468   echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28470
28471         cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477 $ac_includes_default
28478    typedef int ac__type_sizeof_;
28479 int
28480 main ()
28481 {
28482 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28483 test_array @<:@0@:>@ = 0
28484
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496   (eval "$ac_compile") 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } && {
28503          test -z "$ac_c_werror_flag" ||
28504          test ! -s conftest.err
28505        } && test -s conftest.$ac_objext; then
28506   ac_hi=-1 ac_mid=-1
28507   while :; do
28508     cat >conftest.$ac_ext <<_ACEOF
28509 /* confdefs.h.  */
28510 _ACEOF
28511 cat confdefs.h >>conftest.$ac_ext
28512 cat >>conftest.$ac_ext <<_ACEOF
28513 /* end confdefs.h.  */
28514 $ac_includes_default
28515    typedef int ac__type_sizeof_;
28516 int
28517 main ()
28518 {
28519 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28520 test_array @<:@0@:>@ = 0
28521
28522   ;
28523   return 0;
28524 }
28525 _ACEOF
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533   (eval "$ac_compile") 2>conftest.er1
28534   ac_status=$?
28535   grep -v '^ *+' conftest.er1 >conftest.err
28536   rm -f conftest.er1
28537   cat conftest.err >&5
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); } && {
28540          test -z "$ac_c_werror_flag" ||
28541          test ! -s conftest.err
28542        } && test -s conftest.$ac_objext; then
28543   ac_lo=$ac_mid; break
28544 else
28545   echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28547
28548         ac_hi=`expr '(' $ac_mid ')' - 1`
28549                         if test $ac_mid -le $ac_hi; then
28550                           ac_lo= ac_hi=
28551                           break
28552                         fi
28553                         ac_mid=`expr 2 '*' $ac_mid`
28554 fi
28555
28556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28557   done
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562         ac_lo= ac_hi=
28563 fi
28564
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566 fi
28567
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 # Binary search between lo and hi bounds.
28570 while test "x$ac_lo" != "x$ac_hi"; do
28571   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28572   cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 $ac_includes_default
28579    typedef int ac__type_sizeof_;
28580 int
28581 main ()
28582 {
28583 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28584 test_array @<:@0@:>@ = 0
28585
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 rm -f conftest.$ac_objext
28591 if { (ac_try="$ac_compile"
28592 case "(($ac_try" in
28593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594   *) ac_try_echo=$ac_try;;
28595 esac
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597   (eval "$ac_compile") 2>conftest.er1
28598   ac_status=$?
28599   grep -v '^ *+' conftest.er1 >conftest.err
28600   rm -f conftest.er1
28601   cat conftest.err >&5
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } && {
28604          test -z "$ac_c_werror_flag" ||
28605          test ! -s conftest.err
28606        } && test -s conftest.$ac_objext; then
28607   ac_hi=$ac_mid
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612         ac_lo=`expr '(' $ac_mid ')' + 1`
28613 fi
28614
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616 done
28617 case $ac_lo in
28618 ?*) ac_cv_sizeof_int=$ac_lo;;
28619 '') if test "$ac_cv_type_int" = yes; then
28620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28621 See \`config.log' for more details." >&5
28622 echo "$as_me: error: cannot compute sizeof (int)
28623 See \`config.log' for more details." >&2;}
28624    { (exit 77); exit 77; }; }
28625    else
28626      ac_cv_sizeof_int=0
28627    fi ;;
28628 esac
28629 else
28630   cat >conftest.$ac_ext <<_ACEOF
28631 /* confdefs.h.  */
28632 _ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h.  */
28636 $ac_includes_default
28637    typedef int ac__type_sizeof_;
28638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28640 @%:@include <stdio.h>
28641 @%:@include <stdlib.h>
28642 int
28643 main ()
28644 {
28645
28646   FILE *f = fopen ("conftest.val", "w");
28647   if (! f)
28648     return 1;
28649   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28650     {
28651       long int i = longval ();
28652       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28653         return 1;
28654       fprintf (f, "%ld\n", i);
28655     }
28656   else
28657     {
28658       unsigned long int i = ulongval ();
28659       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28660         return 1;
28661       fprintf (f, "%lu\n", i);
28662     }
28663   return ferror (f) || fclose (f) != 0;
28664
28665   ;
28666   return 0;
28667 }
28668 _ACEOF
28669 rm -f conftest$ac_exeext
28670 if { (ac_try="$ac_link"
28671 case "(($ac_try" in
28672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673   *) ac_try_echo=$ac_try;;
28674 esac
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676   (eval "$ac_link") 2>&5
28677   ac_status=$?
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28680   { (case "(($ac_try" in
28681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682   *) ac_try_echo=$ac_try;;
28683 esac
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685   (eval "$ac_try") 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); }; }; then
28689   ac_cv_sizeof_int=`cat conftest.val`
28690 else
28691   echo "$as_me: program exited with status $ac_status" >&5
28692 echo "$as_me: failed program was:" >&5
28693 sed 's/^/| /' conftest.$ac_ext >&5
28694
28695 ( exit $ac_status )
28696 if test "$ac_cv_type_int" = yes; then
28697      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28698 See \`config.log' for more details." >&5
28699 echo "$as_me: error: cannot compute sizeof (int)
28700 See \`config.log' for more details." >&2;}
28701    { (exit 77); exit 77; }; }
28702    else
28703      ac_cv_sizeof_int=0
28704    fi
28705 fi
28706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28707 fi
28708 rm -f conftest.val
28709 fi
28710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28712
28713
28714
28715 cat >>confdefs.h <<_ACEOF
28716 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28717 _ACEOF
28718
28719
28720 { echo "$as_me:$LINENO: checking for long" >&5
28721 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28722 if test "${ac_cv_type_long+set}" = set; then
28723   echo $ECHO_N "(cached) $ECHO_C" >&6
28724 else
28725   cat >conftest.$ac_ext <<_ACEOF
28726 /* confdefs.h.  */
28727 _ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h.  */
28731 $ac_includes_default
28732 typedef long ac__type_new_;
28733 int
28734 main ()
28735 {
28736 if ((ac__type_new_ *) 0)
28737   return 0;
28738 if (sizeof (ac__type_new_))
28739   return 0;
28740   ;
28741   return 0;
28742 }
28743 _ACEOF
28744 rm -f conftest.$ac_objext
28745 if { (ac_try="$ac_compile"
28746 case "(($ac_try" in
28747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748   *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751   (eval "$ac_compile") 2>conftest.er1
28752   ac_status=$?
28753   grep -v '^ *+' conftest.er1 >conftest.err
28754   rm -f conftest.er1
28755   cat conftest.err >&5
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); } && {
28758          test -z "$ac_c_werror_flag" ||
28759          test ! -s conftest.err
28760        } && test -s conftest.$ac_objext; then
28761   ac_cv_type_long=yes
28762 else
28763   echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766         ac_cv_type_long=no
28767 fi
28768
28769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28770 fi
28771 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28772 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28773
28774 # The cast to long int works around a bug in the HP C Compiler
28775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28777 # This bug is HP SR number 8606223364.
28778 { echo "$as_me:$LINENO: checking size of long" >&5
28779 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28780 if test "${ac_cv_sizeof_long+set}" = set; then
28781   echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783   if test "$cross_compiling" = yes; then
28784   # Depending upon the size, compute the lo and hi bounds.
28785 cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h.  */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h.  */
28791 $ac_includes_default
28792    typedef long ac__type_sizeof_;
28793 int
28794 main ()
28795 {
28796 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28797 test_array @<:@0@:>@ = 0
28798
28799   ;
28800   return 0;
28801 }
28802 _ACEOF
28803 rm -f conftest.$ac_objext
28804 if { (ac_try="$ac_compile"
28805 case "(($ac_try" in
28806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807   *) ac_try_echo=$ac_try;;
28808 esac
28809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810   (eval "$ac_compile") 2>conftest.er1
28811   ac_status=$?
28812   grep -v '^ *+' conftest.er1 >conftest.err
28813   rm -f conftest.er1
28814   cat conftest.err >&5
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); } && {
28817          test -z "$ac_c_werror_flag" ||
28818          test ! -s conftest.err
28819        } && test -s conftest.$ac_objext; then
28820   ac_lo=0 ac_mid=0
28821   while :; do
28822     cat >conftest.$ac_ext <<_ACEOF
28823 /* confdefs.h.  */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h.  */
28828 $ac_includes_default
28829    typedef long ac__type_sizeof_;
28830 int
28831 main ()
28832 {
28833 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28834 test_array @<:@0@:>@ = 0
28835
28836   ;
28837   return 0;
28838 }
28839 _ACEOF
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_compile") 2>conftest.er1
28848   ac_status=$?
28849   grep -v '^ *+' conftest.er1 >conftest.err
28850   rm -f conftest.er1
28851   cat conftest.err >&5
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } && {
28854          test -z "$ac_c_werror_flag" ||
28855          test ! -s conftest.err
28856        } && test -s conftest.$ac_objext; then
28857   ac_hi=$ac_mid; break
28858 else
28859   echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28861
28862         ac_lo=`expr $ac_mid + 1`
28863                         if test $ac_lo -le $ac_mid; then
28864                           ac_lo= ac_hi=
28865                           break
28866                         fi
28867                         ac_mid=`expr 2 '*' $ac_mid + 1`
28868 fi
28869
28870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28871   done
28872 else
28873   echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876         cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 $ac_includes_default
28883    typedef long ac__type_sizeof_;
28884 int
28885 main ()
28886 {
28887 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28888 test_array @<:@0@:>@ = 0
28889
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 rm -f conftest.$ac_objext
28895 if { (ac_try="$ac_compile"
28896 case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_compile") 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } && {
28908          test -z "$ac_c_werror_flag" ||
28909          test ! -s conftest.err
28910        } && test -s conftest.$ac_objext; then
28911   ac_hi=-1 ac_mid=-1
28912   while :; do
28913     cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h.  */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h.  */
28919 $ac_includes_default
28920    typedef long ac__type_sizeof_;
28921 int
28922 main ()
28923 {
28924 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28925 test_array @<:@0@:>@ = 0
28926
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext
28932 if { (ac_try="$ac_compile"
28933 case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938   (eval "$ac_compile") 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } && {
28945          test -z "$ac_c_werror_flag" ||
28946          test ! -s conftest.err
28947        } && test -s conftest.$ac_objext; then
28948   ac_lo=$ac_mid; break
28949 else
28950   echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28952
28953         ac_hi=`expr '(' $ac_mid ')' - 1`
28954                         if test $ac_mid -le $ac_hi; then
28955                           ac_lo= ac_hi=
28956                           break
28957                         fi
28958                         ac_mid=`expr 2 '*' $ac_mid`
28959 fi
28960
28961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28962   done
28963 else
28964   echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28966
28967         ac_lo= ac_hi=
28968 fi
28969
28970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28971 fi
28972
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974 # Binary search between lo and hi bounds.
28975 while test "x$ac_lo" != "x$ac_hi"; do
28976   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28977   cat >conftest.$ac_ext <<_ACEOF
28978 /* confdefs.h.  */
28979 _ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h.  */
28983 $ac_includes_default
28984    typedef long ac__type_sizeof_;
28985 int
28986 main ()
28987 {
28988 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28989 test_array @<:@0@:>@ = 0
28990
28991   ;
28992   return 0;
28993 }
28994 _ACEOF
28995 rm -f conftest.$ac_objext
28996 if { (ac_try="$ac_compile"
28997 case "(($ac_try" in
28998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999   *) ac_try_echo=$ac_try;;
29000 esac
29001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29002   (eval "$ac_compile") 2>conftest.er1
29003   ac_status=$?
29004   grep -v '^ *+' conftest.er1 >conftest.err
29005   rm -f conftest.er1
29006   cat conftest.err >&5
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } && {
29009          test -z "$ac_c_werror_flag" ||
29010          test ! -s conftest.err
29011        } && test -s conftest.$ac_objext; then
29012   ac_hi=$ac_mid
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017         ac_lo=`expr '(' $ac_mid ')' + 1`
29018 fi
29019
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021 done
29022 case $ac_lo in
29023 ?*) ac_cv_sizeof_long=$ac_lo;;
29024 '') if test "$ac_cv_type_long" = yes; then
29025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29026 See \`config.log' for more details." >&5
29027 echo "$as_me: error: cannot compute sizeof (long)
29028 See \`config.log' for more details." >&2;}
29029    { (exit 77); exit 77; }; }
29030    else
29031      ac_cv_sizeof_long=0
29032    fi ;;
29033 esac
29034 else
29035   cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041 $ac_includes_default
29042    typedef long ac__type_sizeof_;
29043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29045 @%:@include <stdio.h>
29046 @%:@include <stdlib.h>
29047 int
29048 main ()
29049 {
29050
29051   FILE *f = fopen ("conftest.val", "w");
29052   if (! f)
29053     return 1;
29054   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29055     {
29056       long int i = longval ();
29057       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29058         return 1;
29059       fprintf (f, "%ld\n", i);
29060     }
29061   else
29062     {
29063       unsigned long int i = ulongval ();
29064       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29065         return 1;
29066       fprintf (f, "%lu\n", i);
29067     }
29068   return ferror (f) || fclose (f) != 0;
29069
29070   ;
29071   return 0;
29072 }
29073 _ACEOF
29074 rm -f conftest$ac_exeext
29075 if { (ac_try="$ac_link"
29076 case "(($ac_try" in
29077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078   *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081   (eval "$ac_link") 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29085   { (case "(($ac_try" in
29086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087   *) ac_try_echo=$ac_try;;
29088 esac
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090   (eval "$ac_try") 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; }; then
29094   ac_cv_sizeof_long=`cat conftest.val`
29095 else
29096   echo "$as_me: program exited with status $ac_status" >&5
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29099
29100 ( exit $ac_status )
29101 if test "$ac_cv_type_long" = yes; then
29102      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29103 See \`config.log' for more details." >&5
29104 echo "$as_me: error: cannot compute sizeof (long)
29105 See \`config.log' for more details." >&2;}
29106    { (exit 77); exit 77; }; }
29107    else
29108      ac_cv_sizeof_long=0
29109    fi
29110 fi
29111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29112 fi
29113 rm -f conftest.val
29114 fi
29115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29116 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29117
29118
29119
29120 cat >>confdefs.h <<_ACEOF
29121 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29122 _ACEOF
29123
29124
29125 { echo "$as_me:$LINENO: checking for size_t" >&5
29126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29127 if test "${ac_cv_type_size_t+set}" = set; then
29128   echo $ECHO_N "(cached) $ECHO_C" >&6
29129 else
29130   cat >conftest.$ac_ext <<_ACEOF
29131 /* confdefs.h.  */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h.  */
29136 $ac_includes_default
29137 typedef size_t ac__type_new_;
29138 int
29139 main ()
29140 {
29141 if ((ac__type_new_ *) 0)
29142   return 0;
29143 if (sizeof (ac__type_new_))
29144   return 0;
29145   ;
29146   return 0;
29147 }
29148 _ACEOF
29149 rm -f conftest.$ac_objext
29150 if { (ac_try="$ac_compile"
29151 case "(($ac_try" in
29152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153   *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156   (eval "$ac_compile") 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } && {
29163          test -z "$ac_c_werror_flag" ||
29164          test ! -s conftest.err
29165        } && test -s conftest.$ac_objext; then
29166   ac_cv_type_size_t=yes
29167 else
29168   echo "$as_me: failed program was:" >&5
29169 sed 's/^/| /' conftest.$ac_ext >&5
29170
29171         ac_cv_type_size_t=no
29172 fi
29173
29174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29175 fi
29176 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29177 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29178
29179 # The cast to long int works around a bug in the HP C Compiler
29180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29182 # This bug is HP SR number 8606223364.
29183 { echo "$as_me:$LINENO: checking size of size_t" >&5
29184 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29185 if test "${ac_cv_sizeof_size_t+set}" = set; then
29186   echo $ECHO_N "(cached) $ECHO_C" >&6
29187 else
29188   if test "$cross_compiling" = yes; then
29189   # Depending upon the size, compute the lo and hi bounds.
29190 cat >conftest.$ac_ext <<_ACEOF
29191 /* confdefs.h.  */
29192 _ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h.  */
29196 $ac_includes_default
29197    typedef size_t ac__type_sizeof_;
29198 int
29199 main ()
29200 {
29201 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29202 test_array @<:@0@:>@ = 0
29203
29204   ;
29205   return 0;
29206 }
29207 _ACEOF
29208 rm -f conftest.$ac_objext
29209 if { (ac_try="$ac_compile"
29210 case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_compile") 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } && {
29222          test -z "$ac_c_werror_flag" ||
29223          test ! -s conftest.err
29224        } && test -s conftest.$ac_objext; then
29225   ac_lo=0 ac_mid=0
29226   while :; do
29227     cat >conftest.$ac_ext <<_ACEOF
29228 /* confdefs.h.  */
29229 _ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h.  */
29233 $ac_includes_default
29234    typedef size_t ac__type_sizeof_;
29235 int
29236 main ()
29237 {
29238 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29239 test_array @<:@0@:>@ = 0
29240
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 rm -f conftest.$ac_objext
29246 if { (ac_try="$ac_compile"
29247 case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_compile") 2>conftest.er1
29253   ac_status=$?
29254   grep -v '^ *+' conftest.er1 >conftest.err
29255   rm -f conftest.er1
29256   cat conftest.err >&5
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); } && {
29259          test -z "$ac_c_werror_flag" ||
29260          test ! -s conftest.err
29261        } && test -s conftest.$ac_objext; then
29262   ac_hi=$ac_mid; break
29263 else
29264   echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29266
29267         ac_lo=`expr $ac_mid + 1`
29268                         if test $ac_lo -le $ac_mid; then
29269                           ac_lo= ac_hi=
29270                           break
29271                         fi
29272                         ac_mid=`expr 2 '*' $ac_mid + 1`
29273 fi
29274
29275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276   done
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         cat >conftest.$ac_ext <<_ACEOF
29282 /* confdefs.h.  */
29283 _ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h.  */
29287 $ac_includes_default
29288    typedef size_t ac__type_sizeof_;
29289 int
29290 main ()
29291 {
29292 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29293 test_array @<:@0@:>@ = 0
29294
29295   ;
29296   return 0;
29297 }
29298 _ACEOF
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303   *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306   (eval "$ac_compile") 2>conftest.er1
29307   ac_status=$?
29308   grep -v '^ *+' conftest.er1 >conftest.err
29309   rm -f conftest.er1
29310   cat conftest.err >&5
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } && {
29313          test -z "$ac_c_werror_flag" ||
29314          test ! -s conftest.err
29315        } && test -s conftest.$ac_objext; then
29316   ac_hi=-1 ac_mid=-1
29317   while :; do
29318     cat >conftest.$ac_ext <<_ACEOF
29319 /* confdefs.h.  */
29320 _ACEOF
29321 cat confdefs.h >>conftest.$ac_ext
29322 cat >>conftest.$ac_ext <<_ACEOF
29323 /* end confdefs.h.  */
29324 $ac_includes_default
29325    typedef size_t ac__type_sizeof_;
29326 int
29327 main ()
29328 {
29329 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29330 test_array @<:@0@:>@ = 0
29331
29332   ;
29333   return 0;
29334 }
29335 _ACEOF
29336 rm -f conftest.$ac_objext
29337 if { (ac_try="$ac_compile"
29338 case "(($ac_try" in
29339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340   *) ac_try_echo=$ac_try;;
29341 esac
29342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343   (eval "$ac_compile") 2>conftest.er1
29344   ac_status=$?
29345   grep -v '^ *+' conftest.er1 >conftest.err
29346   rm -f conftest.er1
29347   cat conftest.err >&5
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); } && {
29350          test -z "$ac_c_werror_flag" ||
29351          test ! -s conftest.err
29352        } && test -s conftest.$ac_objext; then
29353   ac_lo=$ac_mid; break
29354 else
29355   echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358         ac_hi=`expr '(' $ac_mid ')' - 1`
29359                         if test $ac_mid -le $ac_hi; then
29360                           ac_lo= ac_hi=
29361                           break
29362                         fi
29363                         ac_mid=`expr 2 '*' $ac_mid`
29364 fi
29365
29366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29367   done
29368 else
29369   echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29371
29372         ac_lo= ac_hi=
29373 fi
29374
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29376 fi
29377
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379 # Binary search between lo and hi bounds.
29380 while test "x$ac_lo" != "x$ac_hi"; do
29381   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29382   cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h.  */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h.  */
29388 $ac_includes_default
29389    typedef size_t ac__type_sizeof_;
29390 int
29391 main ()
29392 {
29393 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29394 test_array @<:@0@:>@ = 0
29395
29396   ;
29397   return 0;
29398 }
29399 _ACEOF
29400 rm -f conftest.$ac_objext
29401 if { (ac_try="$ac_compile"
29402 case "(($ac_try" in
29403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404   *) ac_try_echo=$ac_try;;
29405 esac
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407   (eval "$ac_compile") 2>conftest.er1
29408   ac_status=$?
29409   grep -v '^ *+' conftest.er1 >conftest.err
29410   rm -f conftest.er1
29411   cat conftest.err >&5
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); } && {
29414          test -z "$ac_c_werror_flag" ||
29415          test ! -s conftest.err
29416        } && test -s conftest.$ac_objext; then
29417   ac_hi=$ac_mid
29418 else
29419   echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29421
29422         ac_lo=`expr '(' $ac_mid ')' + 1`
29423 fi
29424
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426 done
29427 case $ac_lo in
29428 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29429 '') if test "$ac_cv_type_size_t" = yes; then
29430      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29431 See \`config.log' for more details." >&5
29432 echo "$as_me: error: cannot compute sizeof (size_t)
29433 See \`config.log' for more details." >&2;}
29434    { (exit 77); exit 77; }; }
29435    else
29436      ac_cv_sizeof_size_t=0
29437    fi ;;
29438 esac
29439 else
29440   cat >conftest.$ac_ext <<_ACEOF
29441 /* confdefs.h.  */
29442 _ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h.  */
29446 $ac_includes_default
29447    typedef size_t ac__type_sizeof_;
29448 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29449 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29450 @%:@include <stdio.h>
29451 @%:@include <stdlib.h>
29452 int
29453 main ()
29454 {
29455
29456   FILE *f = fopen ("conftest.val", "w");
29457   if (! f)
29458     return 1;
29459   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29460     {
29461       long int i = longval ();
29462       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29463         return 1;
29464       fprintf (f, "%ld\n", i);
29465     }
29466   else
29467     {
29468       unsigned long int i = ulongval ();
29469       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29470         return 1;
29471       fprintf (f, "%lu\n", i);
29472     }
29473   return ferror (f) || fclose (f) != 0;
29474
29475   ;
29476   return 0;
29477 }
29478 _ACEOF
29479 rm -f conftest$ac_exeext
29480 if { (ac_try="$ac_link"
29481 case "(($ac_try" in
29482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483   *) ac_try_echo=$ac_try;;
29484 esac
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486   (eval "$ac_link") 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29490   { (case "(($ac_try" in
29491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492   *) ac_try_echo=$ac_try;;
29493 esac
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495   (eval "$ac_try") 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; }; then
29499   ac_cv_sizeof_size_t=`cat conftest.val`
29500 else
29501   echo "$as_me: program exited with status $ac_status" >&5
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ( exit $ac_status )
29506 if test "$ac_cv_type_size_t" = yes; then
29507      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29508 See \`config.log' for more details." >&5
29509 echo "$as_me: error: cannot compute sizeof (size_t)
29510 See \`config.log' for more details." >&2;}
29511    { (exit 77); exit 77; }; }
29512    else
29513      ac_cv_sizeof_size_t=0
29514    fi
29515 fi
29516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29517 fi
29518 rm -f conftest.val
29519 fi
29520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29521 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29522
29523
29524
29525 cat >>confdefs.h <<_ACEOF
29526 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29527 _ACEOF
29528
29529
29530 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29531 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29532 if test "${ac_cv_type_socklen_t+set}" = set; then
29533   echo $ECHO_N "(cached) $ECHO_C" >&6
29534 else
29535   cat >conftest.$ac_ext <<_ACEOF
29536 /* confdefs.h.  */
29537 _ACEOF
29538 cat confdefs.h >>conftest.$ac_ext
29539 cat >>conftest.$ac_ext <<_ACEOF
29540 /* end confdefs.h.  */
29541 $ac_includes_default
29542 typedef socklen_t ac__type_new_;
29543 int
29544 main ()
29545 {
29546 if ((ac__type_new_ *) 0)
29547   return 0;
29548 if (sizeof (ac__type_new_))
29549   return 0;
29550   ;
29551   return 0;
29552 }
29553 _ACEOF
29554 rm -f conftest.$ac_objext
29555 if { (ac_try="$ac_compile"
29556 case "(($ac_try" in
29557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558   *) ac_try_echo=$ac_try;;
29559 esac
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561   (eval "$ac_compile") 2>conftest.er1
29562   ac_status=$?
29563   grep -v '^ *+' conftest.er1 >conftest.err
29564   rm -f conftest.er1
29565   cat conftest.err >&5
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); } && {
29568          test -z "$ac_c_werror_flag" ||
29569          test ! -s conftest.err
29570        } && test -s conftest.$ac_objext; then
29571   ac_cv_type_socklen_t=yes
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576         ac_cv_type_socklen_t=no
29577 fi
29578
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29580 fi
29581 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29582 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29583
29584 # The cast to long int works around a bug in the HP C Compiler
29585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29587 # This bug is HP SR number 8606223364.
29588 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29589 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29590 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29591   echo $ECHO_N "(cached) $ECHO_C" >&6
29592 else
29593   if test "$cross_compiling" = yes; then
29594   # Depending upon the size, compute the lo and hi bounds.
29595 cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h.  */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h.  */
29601 $ac_includes_default
29602    typedef socklen_t ac__type_sizeof_;
29603 int
29604 main ()
29605 {
29606 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29607 test_array @<:@0@:>@ = 0
29608
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 rm -f conftest.$ac_objext
29614 if { (ac_try="$ac_compile"
29615 case "(($ac_try" in
29616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617   *) ac_try_echo=$ac_try;;
29618 esac
29619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620   (eval "$ac_compile") 2>conftest.er1
29621   ac_status=$?
29622   grep -v '^ *+' conftest.er1 >conftest.err
29623   rm -f conftest.er1
29624   cat conftest.err >&5
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); } && {
29627          test -z "$ac_c_werror_flag" ||
29628          test ! -s conftest.err
29629        } && test -s conftest.$ac_objext; then
29630   ac_lo=0 ac_mid=0
29631   while :; do
29632     cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638 $ac_includes_default
29639    typedef socklen_t ac__type_sizeof_;
29640 int
29641 main ()
29642 {
29643 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29644 test_array @<:@0@:>@ = 0
29645
29646   ;
29647   return 0;
29648 }
29649 _ACEOF
29650 rm -f conftest.$ac_objext
29651 if { (ac_try="$ac_compile"
29652 case "(($ac_try" in
29653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654   *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657   (eval "$ac_compile") 2>conftest.er1
29658   ac_status=$?
29659   grep -v '^ *+' conftest.er1 >conftest.err
29660   rm -f conftest.er1
29661   cat conftest.err >&5
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } && {
29664          test -z "$ac_c_werror_flag" ||
29665          test ! -s conftest.err
29666        } && test -s conftest.$ac_objext; then
29667   ac_hi=$ac_mid; break
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672         ac_lo=`expr $ac_mid + 1`
29673                         if test $ac_lo -le $ac_mid; then
29674                           ac_lo= ac_hi=
29675                           break
29676                         fi
29677                         ac_mid=`expr 2 '*' $ac_mid + 1`
29678 fi
29679
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681   done
29682 else
29683   echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29685
29686         cat >conftest.$ac_ext <<_ACEOF
29687 /* confdefs.h.  */
29688 _ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h.  */
29692 $ac_includes_default
29693    typedef socklen_t ac__type_sizeof_;
29694 int
29695 main ()
29696 {
29697 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29698 test_array @<:@0@:>@ = 0
29699
29700   ;
29701   return 0;
29702 }
29703 _ACEOF
29704 rm -f conftest.$ac_objext
29705 if { (ac_try="$ac_compile"
29706 case "(($ac_try" in
29707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708   *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711   (eval "$ac_compile") 2>conftest.er1
29712   ac_status=$?
29713   grep -v '^ *+' conftest.er1 >conftest.err
29714   rm -f conftest.er1
29715   cat conftest.err >&5
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); } && {
29718          test -z "$ac_c_werror_flag" ||
29719          test ! -s conftest.err
29720        } && test -s conftest.$ac_objext; then
29721   ac_hi=-1 ac_mid=-1
29722   while :; do
29723     cat >conftest.$ac_ext <<_ACEOF
29724 /* confdefs.h.  */
29725 _ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h.  */
29729 $ac_includes_default
29730    typedef socklen_t ac__type_sizeof_;
29731 int
29732 main ()
29733 {
29734 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29735 test_array @<:@0@:>@ = 0
29736
29737   ;
29738   return 0;
29739 }
29740 _ACEOF
29741 rm -f conftest.$ac_objext
29742 if { (ac_try="$ac_compile"
29743 case "(($ac_try" in
29744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745   *) ac_try_echo=$ac_try;;
29746 esac
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748   (eval "$ac_compile") 2>conftest.er1
29749   ac_status=$?
29750   grep -v '^ *+' conftest.er1 >conftest.err
29751   rm -f conftest.er1
29752   cat conftest.err >&5
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); } && {
29755          test -z "$ac_c_werror_flag" ||
29756          test ! -s conftest.err
29757        } && test -s conftest.$ac_objext; then
29758   ac_lo=$ac_mid; break
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763         ac_hi=`expr '(' $ac_mid ')' - 1`
29764                         if test $ac_mid -le $ac_hi; then
29765                           ac_lo= ac_hi=
29766                           break
29767                         fi
29768                         ac_mid=`expr 2 '*' $ac_mid`
29769 fi
29770
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29772   done
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777         ac_lo= ac_hi=
29778 fi
29779
29780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29781 fi
29782
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784 # Binary search between lo and hi bounds.
29785 while test "x$ac_lo" != "x$ac_hi"; do
29786   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29787   cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793 $ac_includes_default
29794    typedef socklen_t ac__type_sizeof_;
29795 int
29796 main ()
29797 {
29798 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29799 test_array @<:@0@:>@ = 0
29800
29801   ;
29802   return 0;
29803 }
29804 _ACEOF
29805 rm -f conftest.$ac_objext
29806 if { (ac_try="$ac_compile"
29807 case "(($ac_try" in
29808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809   *) ac_try_echo=$ac_try;;
29810 esac
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812   (eval "$ac_compile") 2>conftest.er1
29813   ac_status=$?
29814   grep -v '^ *+' conftest.er1 >conftest.err
29815   rm -f conftest.er1
29816   cat conftest.err >&5
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); } && {
29819          test -z "$ac_c_werror_flag" ||
29820          test ! -s conftest.err
29821        } && test -s conftest.$ac_objext; then
29822   ac_hi=$ac_mid
29823 else
29824   echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29826
29827         ac_lo=`expr '(' $ac_mid ')' + 1`
29828 fi
29829
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831 done
29832 case $ac_lo in
29833 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29834 '') if test "$ac_cv_type_socklen_t" = yes; then
29835      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29836 See \`config.log' for more details." >&5
29837 echo "$as_me: error: cannot compute sizeof (socklen_t)
29838 See \`config.log' for more details." >&2;}
29839    { (exit 77); exit 77; }; }
29840    else
29841      ac_cv_sizeof_socklen_t=0
29842    fi ;;
29843 esac
29844 else
29845   cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851 $ac_includes_default
29852    typedef socklen_t ac__type_sizeof_;
29853 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29854 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29855 @%:@include <stdio.h>
29856 @%:@include <stdlib.h>
29857 int
29858 main ()
29859 {
29860
29861   FILE *f = fopen ("conftest.val", "w");
29862   if (! f)
29863     return 1;
29864   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29865     {
29866       long int i = longval ();
29867       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29868         return 1;
29869       fprintf (f, "%ld\n", i);
29870     }
29871   else
29872     {
29873       unsigned long int i = ulongval ();
29874       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29875         return 1;
29876       fprintf (f, "%lu\n", i);
29877     }
29878   return ferror (f) || fclose (f) != 0;
29879
29880   ;
29881   return 0;
29882 }
29883 _ACEOF
29884 rm -f conftest$ac_exeext
29885 if { (ac_try="$ac_link"
29886 case "(($ac_try" in
29887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888   *) ac_try_echo=$ac_try;;
29889 esac
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891   (eval "$ac_link") 2>&5
29892   ac_status=$?
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29895   { (case "(($ac_try" in
29896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897   *) ac_try_echo=$ac_try;;
29898 esac
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900   (eval "$ac_try") 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; }; then
29904   ac_cv_sizeof_socklen_t=`cat conftest.val`
29905 else
29906   echo "$as_me: program exited with status $ac_status" >&5
29907 echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29909
29910 ( exit $ac_status )
29911 if test "$ac_cv_type_socklen_t" = yes; then
29912      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29913 See \`config.log' for more details." >&5
29914 echo "$as_me: error: cannot compute sizeof (socklen_t)
29915 See \`config.log' for more details." >&2;}
29916    { (exit 77); exit 77; }; }
29917    else
29918      ac_cv_sizeof_socklen_t=0
29919    fi
29920 fi
29921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29922 fi
29923 rm -f conftest.val
29924 fi
29925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29926 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29927
29928
29929
29930 cat >>confdefs.h <<_ACEOF
29931 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29932 _ACEOF
29933
29934
29935
29936
29937
29938 cat >>confdefs.h <<_ACEOF
29939 @%:@define NFS_STATEDIR "$statedir"
29940 _ACEOF
29941
29942
29943 if test "x$cross_compiling" = "xno"; then
29944         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29945         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29946         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29947         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29948 else
29949         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29950         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29951         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29952         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29953 fi
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965 case $host in
29966   *)
29967     ARCHFLAGS="" ;;
29968 esac
29969
29970 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29971
29972 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29973
29974 AM_CFLAGS="$my_am_cflags"
29975
29976
29977 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29978 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29979
29980
29981 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"
29982
29983 cat >confcache <<\_ACEOF
29984 # This file is a shell script that caches the results of configure
29985 # tests run on this system so they can be shared between configure
29986 # scripts and configure runs, see configure's option --config-cache.
29987 # It is not useful on other systems.  If it contains results you don't
29988 # want to keep, you may remove or edit it.
29989 #
29990 # config.status only pays attention to the cache file if you give it
29991 # the --recheck option to rerun configure.
29992 #
29993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29995 # following values.
29996
29997 _ACEOF
29998
29999 # The following way of writing the cache mishandles newlines in values,
30000 # but we know of no workaround that is simple, portable, and efficient.
30001 # So, we kill variables containing newlines.
30002 # Ultrix sh set writes to stderr and can't be redirected directly,
30003 # and sets the high bit in the cache file unless we assign to the vars.
30004 (
30005   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30006     eval ac_val=\$$ac_var
30007     case $ac_val in #(
30008     *${as_nl}*)
30009       case $ac_var in #(
30010       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30011 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30012       esac
30013       case $ac_var in #(
30014       _ | IFS | as_nl) ;; #(
30015       *) $as_unset $ac_var ;;
30016       esac ;;
30017     esac
30018   done
30019
30020   (set) 2>&1 |
30021     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30022     *${as_nl}ac_space=\ *)
30023       # `set' does not quote correctly, so add quotes (double-quote
30024       # substitution turns \\\\ into \\, and sed turns \\ into \).
30025       sed -n \
30026         "s/'/'\\\\''/g;
30027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30028       ;; #(
30029     *)
30030       # `set' quotes correctly as required by POSIX, so do not add quotes.
30031       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30032       ;;
30033     esac |
30034     sort
30035 ) |
30036   sed '
30037      /^ac_cv_env_/b end
30038      t clear
30039      :clear
30040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30041      t end
30042      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30043      :end' >>confcache
30044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30045   if test -w "$cache_file"; then
30046     test "x$cache_file" != "x/dev/null" &&
30047       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30048 echo "$as_me: updating cache $cache_file" >&6;}
30049     cat confcache >$cache_file
30050   else
30051     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30052 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30053   fi
30054 fi
30055 rm -f confcache
30056
30057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30058 # Let make expand exec_prefix.
30059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30060
30061 DEFS=-DHAVE_CONFIG_H
30062
30063 ac_libobjs=
30064 ac_ltlibobjs=
30065 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30066   # 1. Remove the extension, and $U if already installed.
30067   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30068   ac_i=`echo "$ac_i" | sed "$ac_script"`
30069   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30070   #    will be set to the directory where LIBOBJS objects are built.
30071   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30072   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30073 done
30074 LIB@&t@OBJS=$ac_libobjs
30075
30076 LTLIBOBJS=$ac_ltlibobjs
30077
30078
30079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30080   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30081 Usually this means the macro was only invoked conditionally." >&5
30082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30083 Usually this means the macro was only invoked conditionally." >&2;}
30084    { (exit 1); exit 1; }; }
30085 fi
30086 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30087   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30088 Usually this means the macro was only invoked conditionally." >&5
30089 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30090 Usually this means the macro was only invoked conditionally." >&2;}
30091    { (exit 1); exit 1; }; }
30092 fi
30093 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30094   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30095 Usually this means the macro was only invoked conditionally." >&5
30096 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30097 Usually this means the macro was only invoked conditionally." >&2;}
30098    { (exit 1); exit 1; }; }
30099 fi
30100 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30101   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30102 Usually this means the macro was only invoked conditionally." >&5
30103 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30104 Usually this means the macro was only invoked conditionally." >&2;}
30105    { (exit 1); exit 1; }; }
30106 fi
30107 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30108   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30109 Usually this means the macro was only invoked conditionally." >&5
30110 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30111 Usually this means the macro was only invoked conditionally." >&2;}
30112    { (exit 1); exit 1; }; }
30113 fi
30114 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30115   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30116 Usually this means the macro was only invoked conditionally." >&5
30117 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30118 Usually this means the macro was only invoked conditionally." >&2;}
30119    { (exit 1); exit 1; }; }
30120 fi
30121 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30122   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30123 Usually this means the macro was only invoked conditionally." >&5
30124 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30125 Usually this means the macro was only invoked conditionally." >&2;}
30126    { (exit 1); exit 1; }; }
30127 fi
30128 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30129   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30130 Usually this means the macro was only invoked conditionally." >&5
30131 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30132 Usually this means the macro was only invoked conditionally." >&2;}
30133    { (exit 1); exit 1; }; }
30134 fi
30135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30136   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30137 Usually this means the macro was only invoked conditionally." >&5
30138 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30139 Usually this means the macro was only invoked conditionally." >&2;}
30140    { (exit 1); exit 1; }; }
30141 fi
30142
30143 : ${CONFIG_STATUS=./config.status}
30144 ac_clean_files_save=$ac_clean_files
30145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30148 cat >$CONFIG_STATUS <<_ACEOF
30149 #! $SHELL
30150 # Generated by $as_me.
30151 # Run this file to recreate the current configuration.
30152 # Compiler output produced by configure, useful for debugging
30153 # configure, is in config.log if it exists.
30154
30155 debug=false
30156 ac_cs_recheck=false
30157 ac_cs_silent=false
30158 SHELL=\${CONFIG_SHELL-$SHELL}
30159 _ACEOF
30160
30161 cat >>$CONFIG_STATUS <<\_ACEOF
30162 ## --------------------- ##
30163 ## M4sh Initialization.  ##
30164 ## --------------------- ##
30165
30166 # Be more Bourne compatible
30167 DUALCASE=1; export DUALCASE # for MKS sh
30168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30169   emulate sh
30170   NULLCMD=:
30171   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30172   # is contrary to our usage.  Disable this feature.
30173   alias -g '${1+"$@"}'='"$@"'
30174   setopt NO_GLOB_SUBST
30175 else
30176   case `(set -o) 2>/dev/null` in
30177   *posix*) set -o posix ;;
30178 esac
30179
30180 fi
30181
30182
30183
30184
30185 # PATH needs CR
30186 # Avoid depending upon Character Ranges.
30187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30190 as_cr_digits='0123456789'
30191 as_cr_alnum=$as_cr_Letters$as_cr_digits
30192
30193 # The user is always right.
30194 if test "${PATH_SEPARATOR+set}" != set; then
30195   echo "#! /bin/sh" >conf$$.sh
30196   echo  "exit 0"   >>conf$$.sh
30197   chmod +x conf$$.sh
30198   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30199     PATH_SEPARATOR=';'
30200   else
30201     PATH_SEPARATOR=:
30202   fi
30203   rm -f conf$$.sh
30204 fi
30205
30206 # Support unset when possible.
30207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30208   as_unset=unset
30209 else
30210   as_unset=false
30211 fi
30212
30213
30214 # IFS
30215 # We need space, tab and new line, in precisely that order.  Quoting is
30216 # there to prevent editors from complaining about space-tab.
30217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30218 # splitting by setting IFS to empty value.)
30219 as_nl='
30220 '
30221 IFS=" ""        $as_nl"
30222
30223 # Find who we are.  Look in the path if we contain no directory separator.
30224 case $0 in
30225   *[\\/]* ) as_myself=$0 ;;
30226   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30227 for as_dir in $PATH
30228 do
30229   IFS=$as_save_IFS
30230   test -z "$as_dir" && as_dir=.
30231   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30232 done
30233 IFS=$as_save_IFS
30234
30235      ;;
30236 esac
30237 # We did not find ourselves, most probably we were run as `sh COMMAND'
30238 # in which case we are not to be found in the path.
30239 if test "x$as_myself" = x; then
30240   as_myself=$0
30241 fi
30242 if test ! -f "$as_myself"; then
30243   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30244   { (exit 1); exit 1; }
30245 fi
30246
30247 # Work around bugs in pre-3.0 UWIN ksh.
30248 for as_var in ENV MAIL MAILPATH
30249 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30250 done
30251 PS1='$ '
30252 PS2='> '
30253 PS4='+ '
30254
30255 # NLS nuisances.
30256 for as_var in \
30257   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30258   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30259   LC_TELEPHONE LC_TIME
30260 do
30261   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30262     eval $as_var=C; export $as_var
30263   else
30264     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30265   fi
30266 done
30267
30268 # Required to use basename.
30269 if expr a : '\(a\)' >/dev/null 2>&1 &&
30270    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30271   as_expr=expr
30272 else
30273   as_expr=false
30274 fi
30275
30276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30277   as_basename=basename
30278 else
30279   as_basename=false
30280 fi
30281
30282
30283 # Name of the executable.
30284 as_me=`$as_basename -- "$0" ||
30285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30286          X"$0" : 'X\(//\)$' \| \
30287          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30288 echo X/"$0" |
30289     sed '/^.*\/\([^/][^/]*\)\/*$/{
30290             s//\1/
30291             q
30292           }
30293           /^X\/\(\/\/\)$/{
30294             s//\1/
30295             q
30296           }
30297           /^X\/\(\/\).*/{
30298             s//\1/
30299             q
30300           }
30301           s/.*/./; q'`
30302
30303 # CDPATH.
30304 $as_unset CDPATH
30305
30306
30307
30308   as_lineno_1=$LINENO
30309   as_lineno_2=$LINENO
30310   test "x$as_lineno_1" != "x$as_lineno_2" &&
30311   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30312
30313   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30314   # uniformly replaced by the line number.  The first 'sed' inserts a
30315   # line-number line after each line using $LINENO; the second 'sed'
30316   # does the real work.  The second script uses 'N' to pair each
30317   # line-number line with the line containing $LINENO, and appends
30318   # trailing '-' during substitution so that $LINENO is not a special
30319   # case at line end.
30320   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30321   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30322   # E. McMahon (1931-1989) for sed's syntax.  :-)
30323   sed -n '
30324     p
30325     /[$]LINENO/=
30326   ' <$as_myself |
30327     sed '
30328       s/[$]LINENO.*/&-/
30329       t lineno
30330       b
30331       :lineno
30332       N
30333       :loop
30334       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30335       t loop
30336       s/-\n.*//
30337     ' >$as_me.lineno &&
30338   chmod +x "$as_me.lineno" ||
30339     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30340    { (exit 1); exit 1; }; }
30341
30342   # Don't try to exec as it changes $[0], causing all sort of problems
30343   # (the dirname of $[0] is not the place where we might find the
30344   # original and so on.  Autoconf is especially sensitive to this).
30345   . "./$as_me.lineno"
30346   # Exit status is that of the last command.
30347   exit
30348 }
30349
30350
30351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30352   as_dirname=dirname
30353 else
30354   as_dirname=false
30355 fi
30356
30357 ECHO_C= ECHO_N= ECHO_T=
30358 case `echo -n x` in
30359 -n*)
30360   case `echo 'x\c'` in
30361   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30362   *)   ECHO_C='\c';;
30363   esac;;
30364 *)
30365   ECHO_N='-n';;
30366 esac
30367
30368 if expr a : '\(a\)' >/dev/null 2>&1 &&
30369    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30370   as_expr=expr
30371 else
30372   as_expr=false
30373 fi
30374
30375 rm -f conf$$ conf$$.exe conf$$.file
30376 if test -d conf$$.dir; then
30377   rm -f conf$$.dir/conf$$.file
30378 else
30379   rm -f conf$$.dir
30380   mkdir conf$$.dir
30381 fi
30382 echo >conf$$.file
30383 if ln -s conf$$.file conf$$ 2>/dev/null; then
30384   as_ln_s='ln -s'
30385   # ... but there are two gotchas:
30386   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30387   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30388   # In both cases, we have to default to `cp -p'.
30389   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30390     as_ln_s='cp -p'
30391 elif ln conf$$.file conf$$ 2>/dev/null; then
30392   as_ln_s=ln
30393 else
30394   as_ln_s='cp -p'
30395 fi
30396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30397 rmdir conf$$.dir 2>/dev/null
30398
30399 if mkdir -p . 2>/dev/null; then
30400   as_mkdir_p=:
30401 else
30402   test -d ./-p && rmdir ./-p
30403   as_mkdir_p=false
30404 fi
30405
30406 if test -x / >/dev/null 2>&1; then
30407   as_test_x='test -x'
30408 else
30409   if ls -dL / >/dev/null 2>&1; then
30410     as_ls_L_option=L
30411   else
30412     as_ls_L_option=
30413   fi
30414   as_test_x='
30415     eval sh -c '\''
30416       if test -d "$1"; then
30417         test -d "$1/.";
30418       else
30419         case $1 in
30420         -*)set "./$1";;
30421         esac;
30422         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30423         ???[sx]*):;;*)false;;esac;fi
30424     '\'' sh
30425   '
30426 fi
30427 as_executable_p=$as_test_x
30428
30429 # Sed expression to map a string onto a valid CPP name.
30430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30431
30432 # Sed expression to map a string onto a valid variable name.
30433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30434
30435
30436 exec 6>&1
30437
30438 # Save the log message, to keep $[0] and so on meaningful, and to
30439 # report actual input values of CONFIG_FILES etc. instead of their
30440 # values after options handling.
30441 ac_log="
30442 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30443 generated by GNU Autoconf 2.61.  Invocation command line was
30444
30445   CONFIG_FILES    = $CONFIG_FILES
30446   CONFIG_HEADERS  = $CONFIG_HEADERS
30447   CONFIG_LINKS    = $CONFIG_LINKS
30448   CONFIG_COMMANDS = $CONFIG_COMMANDS
30449   $ $0 $@
30450
30451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30452 "
30453
30454 _ACEOF
30455
30456 cat >>$CONFIG_STATUS <<_ACEOF
30457 # Files that config.status was made for.
30458 config_files="$ac_config_files"
30459 config_headers="$ac_config_headers"
30460 config_commands="$ac_config_commands"
30461
30462 _ACEOF
30463
30464 cat >>$CONFIG_STATUS <<\_ACEOF
30465 ac_cs_usage="\
30466 \`$as_me' instantiates files from templates according to the
30467 current configuration.
30468
30469 Usage: $0 [OPTIONS] [FILE]...
30470
30471   -h, --help       print this help, then exit
30472   -V, --version    print version number and configuration settings, then exit
30473   -q, --quiet      do not print progress messages
30474   -d, --debug      don't remove temporary files
30475       --recheck    update $as_me by reconfiguring in the same conditions
30476   --file=FILE[:TEMPLATE]
30477                    instantiate the configuration file FILE
30478   --header=FILE[:TEMPLATE]
30479                    instantiate the configuration header FILE
30480
30481 Configuration files:
30482 $config_files
30483
30484 Configuration headers:
30485 $config_headers
30486
30487 Configuration commands:
30488 $config_commands
30489
30490 Report bugs to <bug-autoconf@gnu.org>."
30491
30492 _ACEOF
30493 cat >>$CONFIG_STATUS <<_ACEOF
30494 ac_cs_version="\\
30495 linux nfs-utils config.status 1.1.0
30496 configured by $0, generated by GNU Autoconf 2.61,
30497   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30498
30499 Copyright (C) 2006 Free Software Foundation, Inc.
30500 This config.status script is free software; the Free Software Foundation
30501 gives unlimited permission to copy, distribute and modify it."
30502
30503 ac_pwd='$ac_pwd'
30504 srcdir='$srcdir'
30505 INSTALL='$INSTALL'
30506 _ACEOF
30507
30508 cat >>$CONFIG_STATUS <<\_ACEOF
30509 # If no file are specified by the user, then we need to provide default
30510 # value.  By we need to know if files were specified by the user.
30511 ac_need_defaults=:
30512 while test $# != 0
30513 do
30514   case $1 in
30515   --*=*)
30516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30517     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30518     ac_shift=:
30519     ;;
30520   *)
30521     ac_option=$1
30522     ac_optarg=$2
30523     ac_shift=shift
30524     ;;
30525   esac
30526
30527   case $ac_option in
30528   # Handling of the options.
30529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30530     ac_cs_recheck=: ;;
30531   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30532     echo "$ac_cs_version"; exit ;;
30533   --debug | --debu | --deb | --de | --d | -d )
30534     debug=: ;;
30535   --file | --fil | --fi | --f )
30536     $ac_shift
30537     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30538     ac_need_defaults=false;;
30539   --header | --heade | --head | --hea )
30540     $ac_shift
30541     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30542     ac_need_defaults=false;;
30543   --he | --h)
30544     # Conflict between --help and --header
30545     { echo "$as_me: error: ambiguous option: $1
30546 Try \`$0 --help' for more information." >&2
30547    { (exit 1); exit 1; }; };;
30548   --help | --hel | -h )
30549     echo "$ac_cs_usage"; exit ;;
30550   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30551   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30552     ac_cs_silent=: ;;
30553
30554   # This is an error.
30555   -*) { echo "$as_me: error: unrecognized option: $1
30556 Try \`$0 --help' for more information." >&2
30557    { (exit 1); exit 1; }; } ;;
30558
30559   *) ac_config_targets="$ac_config_targets $1"
30560      ac_need_defaults=false ;;
30561
30562   esac
30563   shift
30564 done
30565
30566 ac_configure_extra_args=
30567
30568 if $ac_cs_silent; then
30569   exec 6>/dev/null
30570   ac_configure_extra_args="$ac_configure_extra_args --silent"
30571 fi
30572
30573 _ACEOF
30574 cat >>$CONFIG_STATUS <<_ACEOF
30575 if \$ac_cs_recheck; then
30576   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30577   CONFIG_SHELL=$SHELL
30578   export CONFIG_SHELL
30579   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30580 fi
30581
30582 _ACEOF
30583 cat >>$CONFIG_STATUS <<\_ACEOF
30584 exec 5>>config.log
30585 {
30586   echo
30587   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30588 @%:@@%:@ Running $as_me. @%:@@%:@
30589 _ASBOX
30590   echo "$ac_log"
30591 } >&5
30592
30593 _ACEOF
30594 cat >>$CONFIG_STATUS <<_ACEOF
30595 #
30596 # INIT-COMMANDS
30597 #
30598 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30599
30600 _ACEOF
30601
30602 cat >>$CONFIG_STATUS <<\_ACEOF
30603
30604 # Handling of arguments.
30605 for ac_config_target in $ac_config_targets
30606 do
30607   case $ac_config_target in
30608     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30609     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30610     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30611     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30612     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30613     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30614     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30615     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30616     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30617     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30618     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30619     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30620     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30621     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30622     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30623     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30624     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30625     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30626     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30627     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30628     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30629     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30630     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30631     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30632     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30633     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30634     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30635     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30636
30637   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30638 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30639    { (exit 1); exit 1; }; };;
30640   esac
30641 done
30642
30643
30644 # If the user did not use the arguments to specify the items to instantiate,
30645 # then the envvar interface is used.  Set only those that are not.
30646 # We use the long form for the default assignment because of an extremely
30647 # bizarre bug on SunOS 4.1.3.
30648 if $ac_need_defaults; then
30649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30652 fi
30653
30654 # Have a temporary directory for convenience.  Make it in the build tree
30655 # simply because there is no reason against having it here, and in addition,
30656 # creating and moving files from /tmp can sometimes cause problems.
30657 # Hook for its removal unless debugging.
30658 # Note that there is a small window in which the directory will not be cleaned:
30659 # after its creation but before its name has been assigned to `$tmp'.
30660 $debug ||
30661 {
30662   tmp=
30663   trap 'exit_status=$?
30664   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30665 ' 0
30666   trap '{ (exit 1); exit 1; }' 1 2 13 15
30667 }
30668 # Create a (secure) tmp directory for tmp files.
30669
30670 {
30671   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30672   test -n "$tmp" && test -d "$tmp"
30673 }  ||
30674 {
30675   tmp=./conf$$-$RANDOM
30676   (umask 077 && mkdir "$tmp")
30677 } ||
30678 {
30679    echo "$me: cannot create a temporary directory in ." >&2
30680    { (exit 1); exit 1; }
30681 }
30682
30683 #
30684 # Set up the sed scripts for CONFIG_FILES section.
30685 #
30686
30687 # No need to generate the scripts if there are no CONFIG_FILES.
30688 # This happens for instance when ./config.status config.h
30689 if test -n "$CONFIG_FILES"; then
30690
30691 _ACEOF
30692
30693
30694
30695 ac_delim='%!_!# '
30696 for ac_last_try in false false false false false :; do
30697   cat >conf$$subs.sed <<_ACEOF
30698 SHELL!$SHELL$ac_delim
30699 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30700 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30701 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30702 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30703 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30704 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30705 exec_prefix!$exec_prefix$ac_delim
30706 prefix!$prefix$ac_delim
30707 program_transform_name!$program_transform_name$ac_delim
30708 bindir!$bindir$ac_delim
30709 sbindir!$sbindir$ac_delim
30710 libexecdir!$libexecdir$ac_delim
30711 datarootdir!$datarootdir$ac_delim
30712 datadir!$datadir$ac_delim
30713 sysconfdir!$sysconfdir$ac_delim
30714 sharedstatedir!$sharedstatedir$ac_delim
30715 localstatedir!$localstatedir$ac_delim
30716 includedir!$includedir$ac_delim
30717 oldincludedir!$oldincludedir$ac_delim
30718 docdir!$docdir$ac_delim
30719 infodir!$infodir$ac_delim
30720 htmldir!$htmldir$ac_delim
30721 dvidir!$dvidir$ac_delim
30722 pdfdir!$pdfdir$ac_delim
30723 psdir!$psdir$ac_delim
30724 libdir!$libdir$ac_delim
30725 localedir!$localedir$ac_delim
30726 mandir!$mandir$ac_delim
30727 DEFS!$DEFS$ac_delim
30728 ECHO_C!$ECHO_C$ac_delim
30729 ECHO_N!$ECHO_N$ac_delim
30730 ECHO_T!$ECHO_T$ac_delim
30731 LIBS!$LIBS$ac_delim
30732 build_alias!$build_alias$ac_delim
30733 host_alias!$host_alias$ac_delim
30734 target_alias!$target_alias$ac_delim
30735 build!$build$ac_delim
30736 build_cpu!$build_cpu$ac_delim
30737 build_vendor!$build_vendor$ac_delim
30738 build_os!$build_os$ac_delim
30739 host!$host$ac_delim
30740 host_cpu!$host_cpu$ac_delim
30741 host_vendor!$host_vendor$ac_delim
30742 host_os!$host_os$ac_delim
30743 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30744 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30745 INSTALL_DATA!$INSTALL_DATA$ac_delim
30746 CYGPATH_W!$CYGPATH_W$ac_delim
30747 PACKAGE!$PACKAGE$ac_delim
30748 VERSION!$VERSION$ac_delim
30749 ACLOCAL!$ACLOCAL$ac_delim
30750 AUTOCONF!$AUTOCONF$ac_delim
30751 AUTOMAKE!$AUTOMAKE$ac_delim
30752 AUTOHEADER!$AUTOHEADER$ac_delim
30753 MAKEINFO!$MAKEINFO$ac_delim
30754 install_sh!$install_sh$ac_delim
30755 STRIP!$STRIP$ac_delim
30756 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30757 mkdir_p!$mkdir_p$ac_delim
30758 AWK!$AWK$ac_delim
30759 SET_MAKE!$SET_MAKE$ac_delim
30760 am__leading_dot!$am__leading_dot$ac_delim
30761 AMTAR!$AMTAR$ac_delim
30762 am__tar!$am__tar$ac_delim
30763 am__untar!$am__untar$ac_delim
30764 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30765 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30766 MAINT!$MAINT$ac_delim
30767 RELEASE!$RELEASE$ac_delim
30768 statedir!$statedir$ac_delim
30769 statduser!$statduser$ac_delim
30770 startstatd!$startstatd$ac_delim
30771 enable_nfsv3!$enable_nfsv3$ac_delim
30772 IDMAPD!$IDMAPD$ac_delim
30773 enable_nfsv4!$enable_nfsv4$ac_delim
30774 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30775 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30776 GSSD!$GSSD$ac_delim
30777 SVCGSSD!$SVCGSSD$ac_delim
30778 enable_gss!$enable_gss$ac_delim
30779 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30780 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30781 kprefix!$kprefix$ac_delim
30782 secure_statd!$secure_statd$ac_delim
30783 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30784 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30785 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30786 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30787 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30788 CC!$CC$ac_delim
30789 CFLAGS!$CFLAGS$ac_delim
30790 LDFLAGS!$LDFLAGS$ac_delim
30791 CPPFLAGS!$CPPFLAGS$ac_delim
30792 ac_ct_CC!$ac_ct_CC$ac_delim
30793 EXEEXT!$EXEEXT$ac_delim
30794 OBJEXT!$OBJEXT$ac_delim
30795 _ACEOF
30796
30797   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30798     break
30799   elif $ac_last_try; then
30800     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30802    { (exit 1); exit 1; }; }
30803   else
30804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30805   fi
30806 done
30807
30808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30809 if test -n "$ac_eof"; then
30810   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30811   ac_eof=`expr $ac_eof + 1`
30812 fi
30813
30814 cat >>$CONFIG_STATUS <<_ACEOF
30815 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30817 _ACEOF
30818 sed '
30819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30820 s/^/s,@/; s/!/@,|#_!!_#|/
30821 :n
30822 t n
30823 s/'"$ac_delim"'$/,g/; t
30824 s/$/\\/; p
30825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30826 ' >>$CONFIG_STATUS <conf$$subs.sed
30827 rm -f conf$$subs.sed
30828 cat >>$CONFIG_STATUS <<_ACEOF
30829 CEOF$ac_eof
30830 _ACEOF
30831
30832
30833 ac_delim='%!_!# '
30834 for ac_last_try in false false false false false :; do
30835   cat >conf$$subs.sed <<_ACEOF
30836 DEPDIR!$DEPDIR$ac_delim
30837 am__include!$am__include$ac_delim
30838 am__quote!$am__quote$ac_delim
30839 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30840 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30841 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30842 CCDEPMODE!$CCDEPMODE$ac_delim
30843 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30844 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30845 LIBWRAP!$LIBWRAP$ac_delim
30846 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30847 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30848 CXX!$CXX$ac_delim
30849 CXXFLAGS!$CXXFLAGS$ac_delim
30850 ac_ct_CXX!$ac_ct_CXX$ac_delim
30851 CXXDEPMODE!$CXXDEPMODE$ac_delim
30852 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30853 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30854 CPP!$CPP$ac_delim
30855 LN_S!$LN_S$ac_delim
30856 SED!$SED$ac_delim
30857 GREP!$GREP$ac_delim
30858 EGREP!$EGREP$ac_delim
30859 ECHO!$ECHO$ac_delim
30860 AR!$AR$ac_delim
30861 RANLIB!$RANLIB$ac_delim
30862 CXXCPP!$CXXCPP$ac_delim
30863 F77!$F77$ac_delim
30864 FFLAGS!$FFLAGS$ac_delim
30865 ac_ct_F77!$ac_ct_F77$ac_delim
30866 LIBTOOL!$LIBTOOL$ac_delim
30867 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30868 LD!$LD$ac_delim
30869 LIBNSL!$LIBNSL$ac_delim
30870 PKG_CONFIG!$PKG_CONFIG$ac_delim
30871 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30872 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30873 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30874 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30875 LIBSOCKET!$LIBSOCKET$ac_delim
30876 LIBCRYPT!$LIBCRYPT$ac_delim
30877 LIBBSD!$LIBBSD$ac_delim
30878 LIBBLKID!$LIBBLKID$ac_delim
30879 KRBDIR!$KRBDIR$ac_delim
30880 KRBLIBS!$KRBLIBS$ac_delim
30881 KRBCFLAGS!$KRBCFLAGS$ac_delim
30882 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30883 K5VERS!$K5VERS$ac_delim
30884 ALLOCA!$ALLOCA$ac_delim
30885 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30886 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30887 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30888 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30889 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30890 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30891 AM_CFLAGS!$AM_CFLAGS$ac_delim
30892 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30893 LTLIBOBJS!$LTLIBOBJS$ac_delim
30894 _ACEOF
30895
30896   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30897     break
30898   elif $ac_last_try; then
30899     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30901    { (exit 1); exit 1; }; }
30902   else
30903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30904   fi
30905 done
30906
30907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30908 if test -n "$ac_eof"; then
30909   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30910   ac_eof=`expr $ac_eof + 1`
30911 fi
30912
30913 cat >>$CONFIG_STATUS <<_ACEOF
30914 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30916 _ACEOF
30917 sed '
30918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30919 s/^/s,@/; s/!/@,|#_!!_#|/
30920 :n
30921 t n
30922 s/'"$ac_delim"'$/,g/; t
30923 s/$/\\/; p
30924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30925 ' >>$CONFIG_STATUS <conf$$subs.sed
30926 rm -f conf$$subs.sed
30927 cat >>$CONFIG_STATUS <<_ACEOF
30928 :end
30929 s/|#_!!_#|//g
30930 CEOF$ac_eof
30931 _ACEOF
30932
30933
30934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30936 # trailing colons and then remove the whole line if VPATH becomes empty
30937 # (actually we leave an empty line to preserve line numbers).
30938 if test "x$srcdir" = x.; then
30939   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30940 s/:*\$(srcdir):*/:/
30941 s/:*\${srcdir}:*/:/
30942 s/:*@srcdir@:*/:/
30943 s/^\([^=]*=[     ]*\):*/\1/
30944 s/:*$//
30945 s/^[^=]*=[       ]*$//
30946 }'
30947 fi
30948
30949 cat >>$CONFIG_STATUS <<\_ACEOF
30950 fi # test -n "$CONFIG_FILES"
30951
30952
30953 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30954 do
30955   case $ac_tag in
30956   :[FHLC]) ac_mode=$ac_tag; continue;;
30957   esac
30958   case $ac_mode$ac_tag in
30959   :[FHL]*:*);;
30960   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30962    { (exit 1); exit 1; }; };;
30963   :[FH]-) ac_tag=-:-;;
30964   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30965   esac
30966   ac_save_IFS=$IFS
30967   IFS=:
30968   set x $ac_tag
30969   IFS=$ac_save_IFS
30970   shift
30971   ac_file=$1
30972   shift
30973
30974   case $ac_mode in
30975   :L) ac_source=$1;;
30976   :[FH])
30977     ac_file_inputs=
30978     for ac_f
30979     do
30980       case $ac_f in
30981       -) ac_f="$tmp/stdin";;
30982       *) # Look for the file first in the build tree, then in the source tree
30983          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30984          # because $ac_f cannot contain `:'.
30985          test -f "$ac_f" ||
30986            case $ac_f in
30987            [\\/$]*) false;;
30988            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30989            esac ||
30990            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30992    { (exit 1); exit 1; }; };;
30993       esac
30994       ac_file_inputs="$ac_file_inputs $ac_f"
30995     done
30996
30997     # Let's still pretend it is `configure' which instantiates (i.e., don't
30998     # use $as_me), people would be surprised to read:
30999     #    /* config.h.  Generated by config.status.  */
31000     configure_input="Generated from "`IFS=:
31001           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31002     if test x"$ac_file" != x-; then
31003       configure_input="$ac_file.  $configure_input"
31004       { echo "$as_me:$LINENO: creating $ac_file" >&5
31005 echo "$as_me: creating $ac_file" >&6;}
31006     fi
31007
31008     case $ac_tag in
31009     *:-:* | *:-) cat >"$tmp/stdin";;
31010     esac
31011     ;;
31012   esac
31013
31014   ac_dir=`$as_dirname -- "$ac_file" ||
31015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31016          X"$ac_file" : 'X\(//\)[^/]' \| \
31017          X"$ac_file" : 'X\(//\)$' \| \
31018          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31019 echo X"$ac_file" |
31020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31021             s//\1/
31022             q
31023           }
31024           /^X\(\/\/\)[^/].*/{
31025             s//\1/
31026             q
31027           }
31028           /^X\(\/\/\)$/{
31029             s//\1/
31030             q
31031           }
31032           /^X\(\/\).*/{
31033             s//\1/
31034             q
31035           }
31036           s/.*/./; q'`
31037   { as_dir="$ac_dir"
31038   case $as_dir in #(
31039   -*) as_dir=./$as_dir;;
31040   esac
31041   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31042     as_dirs=
31043     while :; do
31044       case $as_dir in #(
31045       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31046       *) as_qdir=$as_dir;;
31047       esac
31048       as_dirs="'$as_qdir' $as_dirs"
31049       as_dir=`$as_dirname -- "$as_dir" ||
31050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31051          X"$as_dir" : 'X\(//\)[^/]' \| \
31052          X"$as_dir" : 'X\(//\)$' \| \
31053          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31054 echo X"$as_dir" |
31055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31056             s//\1/
31057             q
31058           }
31059           /^X\(\/\/\)[^/].*/{
31060             s//\1/
31061             q
31062           }
31063           /^X\(\/\/\)$/{
31064             s//\1/
31065             q
31066           }
31067           /^X\(\/\).*/{
31068             s//\1/
31069             q
31070           }
31071           s/.*/./; q'`
31072       test -d "$as_dir" && break
31073     done
31074     test -z "$as_dirs" || eval "mkdir $as_dirs"
31075   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31077    { (exit 1); exit 1; }; }; }
31078   ac_builddir=.
31079
31080 case "$ac_dir" in
31081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31082 *)
31083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31084   # A ".." for each directory in $ac_dir_suffix.
31085   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31086   case $ac_top_builddir_sub in
31087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31089   esac ;;
31090 esac
31091 ac_abs_top_builddir=$ac_pwd
31092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31093 # for backward compatibility:
31094 ac_top_builddir=$ac_top_build_prefix
31095
31096 case $srcdir in
31097   .)  # We are building in place.
31098     ac_srcdir=.
31099     ac_top_srcdir=$ac_top_builddir_sub
31100     ac_abs_top_srcdir=$ac_pwd ;;
31101   [\\/]* | ?:[\\/]* )  # Absolute name.
31102     ac_srcdir=$srcdir$ac_dir_suffix;
31103     ac_top_srcdir=$srcdir
31104     ac_abs_top_srcdir=$srcdir ;;
31105   *) # Relative name.
31106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31107     ac_top_srcdir=$ac_top_build_prefix$srcdir
31108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31109 esac
31110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31111
31112
31113   case $ac_mode in
31114   :F)
31115   #
31116   # CONFIG_FILE
31117   #
31118
31119   case $INSTALL in
31120   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31121   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31122   esac
31123 _ACEOF
31124
31125 cat >>$CONFIG_STATUS <<\_ACEOF
31126 # If the template does not know about datarootdir, expand it.
31127 # FIXME: This hack should be removed a few years after 2.60.
31128 ac_datarootdir_hack=; ac_datarootdir_seen=
31129
31130 case `sed -n '/datarootdir/ {
31131   p
31132   q
31133 }
31134 /@datadir@/p
31135 /@docdir@/p
31136 /@infodir@/p
31137 /@localedir@/p
31138 /@mandir@/p
31139 ' $ac_file_inputs` in
31140 *datarootdir*) ac_datarootdir_seen=yes;;
31141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31142   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31144 _ACEOF
31145 cat >>$CONFIG_STATUS <<_ACEOF
31146   ac_datarootdir_hack='
31147   s&@datadir@&$datadir&g
31148   s&@docdir@&$docdir&g
31149   s&@infodir@&$infodir&g
31150   s&@localedir@&$localedir&g
31151   s&@mandir@&$mandir&g
31152     s&\\\${datarootdir}&$datarootdir&g' ;;
31153 esac
31154 _ACEOF
31155
31156 # Neutralize VPATH when `$srcdir' = `.'.
31157 # Shell code in configure.ac might set extrasub.
31158 # FIXME: do we really want to maintain this feature?
31159 cat >>$CONFIG_STATUS <<_ACEOF
31160   sed "$ac_vpsub
31161 $extrasub
31162 _ACEOF
31163 cat >>$CONFIG_STATUS <<\_ACEOF
31164 :t
31165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31166 s&@configure_input@&$configure_input&;t t
31167 s&@top_builddir@&$ac_top_builddir_sub&;t t
31168 s&@srcdir@&$ac_srcdir&;t t
31169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31170 s&@top_srcdir@&$ac_top_srcdir&;t t
31171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31172 s&@builddir@&$ac_builddir&;t t
31173 s&@abs_builddir@&$ac_abs_builddir&;t t
31174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31175 s&@INSTALL@&$ac_INSTALL&;t t
31176 $ac_datarootdir_hack
31177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31178
31179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31180   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31181   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31182   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31183 which seems to be undefined.  Please make sure it is defined." >&5
31184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31185 which seems to be undefined.  Please make sure it is defined." >&2;}
31186
31187   rm -f "$tmp/stdin"
31188   case $ac_file in
31189   -) cat "$tmp/out"; rm -f "$tmp/out";;
31190   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31191   esac
31192  ;;
31193   :H)
31194   #
31195   # CONFIG_HEADER
31196   #
31197 _ACEOF
31198
31199 # Transform confdefs.h into a sed script `conftest.defines', that
31200 # substitutes the proper values into config.h.in to produce config.h.
31201 rm -f conftest.defines conftest.tail
31202 # First, append a space to every undef/define line, to ease matching.
31203 echo 's/$/ /' >conftest.defines
31204 # Then, protect against being on the right side of a sed subst, or in
31205 # an unquoted here document, in config.status.  If some macros were
31206 # called several times there might be several #defines for the same
31207 # symbol, which is useless.  But do not sort them, since the last
31208 # AC_DEFINE must be honored.
31209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31210 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31211 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31212 # PARAMS is the parameter list in the macro definition--in most cases, it's
31213 # just an empty string.
31214 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31215 ac_dB='\\)[      (].*,\\1define\\2'
31216 ac_dC=' '
31217 ac_dD=' ,'
31218
31219 uniq confdefs.h |
31220   sed -n '
31221         t rset
31222         :rset
31223         s/^[     ]*#[    ]*define[       ][      ]*//
31224         t ok
31225         d
31226         :ok
31227         s/[\\&,]/\\&/g
31228         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31229         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31230   ' >>conftest.defines
31231
31232 # Remove the space that was appended to ease matching.
31233 # Then replace #undef with comments.  This is necessary, for
31234 # example, in the case of _POSIX_SOURCE, which is predefined and required
31235 # on some systems where configure will not decide to define it.
31236 # (The regexp can be short, since the line contains either #define or #undef.)
31237 echo 's/ $//
31238 s,^[     #]*u.*,/* & */,' >>conftest.defines
31239
31240 # Break up conftest.defines:
31241 ac_max_sed_lines=50
31242
31243 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31244 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31245 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31246 # et cetera.
31247 ac_in='$ac_file_inputs'
31248 ac_out='"$tmp/out1"'
31249 ac_nxt='"$tmp/out2"'
31250
31251 while :
31252 do
31253   # Write a here document:
31254     cat >>$CONFIG_STATUS <<_ACEOF
31255     # First, check the format of the line:
31256     cat >"\$tmp/defines.sed" <<\\CEOF
31257 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31258 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31259 b
31260 :def
31261 _ACEOF
31262   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31263   echo 'CEOF
31264     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31265   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31266   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31267   grep . conftest.tail >/dev/null || break
31268   rm -f conftest.defines
31269   mv conftest.tail conftest.defines
31270 done
31271 rm -f conftest.defines conftest.tail
31272
31273 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31274 cat >>$CONFIG_STATUS <<\_ACEOF
31275   if test x"$ac_file" != x-; then
31276     echo "/* $configure_input  */" >"$tmp/config.h"
31277     cat "$ac_result" >>"$tmp/config.h"
31278     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31279       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31280 echo "$as_me: $ac_file is unchanged" >&6;}
31281     else
31282       rm -f $ac_file
31283       mv "$tmp/config.h" $ac_file
31284     fi
31285   else
31286     echo "/* $configure_input  */"
31287     cat "$ac_result"
31288   fi
31289   rm -f "$tmp/out12"
31290 # Compute $ac_file's index in $config_headers.
31291 _am_stamp_count=1
31292 for _am_header in $config_headers :; do
31293   case $_am_header in
31294     $ac_file | $ac_file:* )
31295       break ;;
31296     * )
31297       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31298   esac
31299 done
31300 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31301 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31302          X$ac_file : 'X\(//\)[^/]' \| \
31303          X$ac_file : 'X\(//\)$' \| \
31304          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31305 echo X$ac_file |
31306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31307             s//\1/
31308             q
31309           }
31310           /^X\(\/\/\)[^/].*/{
31311             s//\1/
31312             q
31313           }
31314           /^X\(\/\/\)$/{
31315             s//\1/
31316             q
31317           }
31318           /^X\(\/\).*/{
31319             s//\1/
31320             q
31321           }
31322           s/.*/./; q'`/stamp-h$_am_stamp_count
31323  ;;
31324   
31325   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31326 echo "$as_me: executing $ac_file commands" >&6;}
31327  ;;
31328   esac
31329
31330
31331   case $ac_file$ac_mode in
31332     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31333   # Strip MF so we end up with the name of the file.
31334   mf=`echo "$mf" | sed -e 's/:.*$//'`
31335   # Check whether this is an Automake generated Makefile or not.
31336   # We used to match only the files named `Makefile.in', but
31337   # some people rename them; so instead we look at the file content.
31338   # Grep'ing the first line is not enough: some people post-process
31339   # each Makefile.in and add a new line on top of each file to say so.
31340   # So let's grep whole file.
31341   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31342     dirpart=`$as_dirname -- "$mf" ||
31343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31344          X"$mf" : 'X\(//\)[^/]' \| \
31345          X"$mf" : 'X\(//\)$' \| \
31346          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31347 echo X"$mf" |
31348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31349             s//\1/
31350             q
31351           }
31352           /^X\(\/\/\)[^/].*/{
31353             s//\1/
31354             q
31355           }
31356           /^X\(\/\/\)$/{
31357             s//\1/
31358             q
31359           }
31360           /^X\(\/\).*/{
31361             s//\1/
31362             q
31363           }
31364           s/.*/./; q'`
31365   else
31366     continue
31367   fi
31368   # Extract the definition of DEPDIR, am__include, and am__quote
31369   # from the Makefile without running `make'.
31370   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31371   test -z "$DEPDIR" && continue
31372   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31373   test -z "am__include" && continue
31374   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31375   # When using ansi2knr, U may be empty or an underscore; expand it
31376   U=`sed -n 's/^U = //p' < "$mf"`
31377   # Find all dependency output files, they are included files with
31378   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31379   # simplest approach to changing $(DEPDIR) to its actual value in the
31380   # expansion.
31381   for file in `sed -n "
31382     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31383        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31384     # Make sure the directory exists.
31385     test -f "$dirpart/$file" && continue
31386     fdir=`$as_dirname -- "$file" ||
31387 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31388          X"$file" : 'X\(//\)[^/]' \| \
31389          X"$file" : 'X\(//\)$' \| \
31390          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31391 echo X"$file" |
31392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31393             s//\1/
31394             q
31395           }
31396           /^X\(\/\/\)[^/].*/{
31397             s//\1/
31398             q
31399           }
31400           /^X\(\/\/\)$/{
31401             s//\1/
31402             q
31403           }
31404           /^X\(\/\).*/{
31405             s//\1/
31406             q
31407           }
31408           s/.*/./; q'`
31409     { as_dir=$dirpart/$fdir
31410   case $as_dir in #(
31411   -*) as_dir=./$as_dir;;
31412   esac
31413   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31414     as_dirs=
31415     while :; do
31416       case $as_dir in #(
31417       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31418       *) as_qdir=$as_dir;;
31419       esac
31420       as_dirs="'$as_qdir' $as_dirs"
31421       as_dir=`$as_dirname -- "$as_dir" ||
31422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31423          X"$as_dir" : 'X\(//\)[^/]' \| \
31424          X"$as_dir" : 'X\(//\)$' \| \
31425          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31426 echo X"$as_dir" |
31427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31428             s//\1/
31429             q
31430           }
31431           /^X\(\/\/\)[^/].*/{
31432             s//\1/
31433             q
31434           }
31435           /^X\(\/\/\)$/{
31436             s//\1/
31437             q
31438           }
31439           /^X\(\/\).*/{
31440             s//\1/
31441             q
31442           }
31443           s/.*/./; q'`
31444       test -d "$as_dir" && break
31445     done
31446     test -z "$as_dirs" || eval "mkdir $as_dirs"
31447   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31448 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31449    { (exit 1); exit 1; }; }; }
31450     # echo "creating $dirpart/$file"
31451     echo '# dummy' > "$dirpart/$file"
31452   done
31453 done
31454  ;;
31455
31456   esac
31457 done # for ac_tag
31458
31459
31460 { (exit 0); exit 0; }
31461 _ACEOF
31462 chmod +x $CONFIG_STATUS
31463 ac_clean_files=$ac_clean_files_save
31464
31465
31466 # configure is writing to config.log, and then calls config.status.
31467 # config.status does its own redirection, appending to config.log.
31468 # Unfortunately, on DOS this fails, as config.log is still kept open
31469 # by configure, so config.status won't be able to write to it; its
31470 # output is simply discarded.  So we exec the FD to /dev/null,
31471 # effectively closing config.log, so it can be properly (re)opened and
31472 # appended to by config.status.  When coming back to configure, we
31473 # need to make the FD available again.
31474 if test "$no_create" != yes; then
31475   ac_cs_success=:
31476   ac_config_status_args=
31477   test "$silent" = yes &&
31478     ac_config_status_args="$ac_config_status_args --quiet"
31479   exec 5>/dev/null
31480   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31481   exec 5>>config.log
31482   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31483   # would make configure fail if this is the last instruction.
31484   $ac_cs_success || { (exit 1); exit 1; }
31485 fi
31486
31487