]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.11.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.11'
732 PACKAGE_STRING='linux nfs-utils 1.0.11'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 am__isrc
823 CYGPATH_W
824 PACKAGE
825 VERSION
826 ACLOCAL
827 AUTOCONF
828 AUTOMAKE
829 AUTOHEADER
830 MAKEINFO
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 AMTAR
839 am__tar
840 am__untar
841 MAINTAINER_MODE_TRUE
842 MAINTAINER_MODE_FALSE
843 MAINT
844 RELEASE
845 statedir
846 statduser
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 CONFIG_RQUOTAD_TRUE
860 CONFIG_RQUOTAD_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 GREP
891 EGREP
892 ECHO
893 AR
894 RANLIB
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 CC_FOR_BUILD
901 LD
902 LIBNSL
903 PKG_CONFIG
904 RPCSECGSS_CFLAGS
905 RPCSECGSS_LIBS
906 GSSAPI_CFLAGS
907 GSSAPI_LIBS
908 LIBSOCKET
909 LIBCRYPT
910 LIBBSD
911 LIBBLKID
912 KRBDIR
913 KRBLIBS
914 KRBCFLAGS
915 KRBLDFLAGS
916 K5VERS
917 ALLOCA
918 LIBOBJS
919 CFLAGS_FOR_BUILD
920 CXXFLAGS_FOR_BUILD
921 CPPFLAGS_FOR_BUILD
922 LDFLAGS_FOR_BUILD
923 AM_CPPFLAGS
924 AM_CFLAGS
925 ACLOCAL_AMFLAGS
926 LTLIBOBJS'
927 ac_subst_files=''
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CPP
940 CXXCPP
941 F77
942 FFLAGS
943 PKG_CONFIG
944 RPCSECGSS_CFLAGS
945 RPCSECGSS_LIBS
946 GSSAPI_CFLAGS
947 GSSAPI_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055    { (exit 1); exit 1; }; }
1056     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057     eval enable_$ac_feature=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074    { (exit 1); exit 1; }; }
1075     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076     eval enable_$ac_feature=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       { echo "$as_me: error: invalid package name: $ac_package" >&2
1271    { (exit 1); exit 1; }; }
1272     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273     eval with_$ac_package=\$ac_optarg ;;
1274
1275   -without-* | --without-*)
1276     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282     eval with_$ac_package=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304    { (exit 1); exit 1; }; }
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312    { (exit 1); exit 1; }; }
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   { echo "$as_me: error: missing argument to $ac_option" >&2
1330    { (exit 1); exit 1; }; }
1331 fi
1332
1333 # Be sure to have absolute directory names.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   case $ac_val in
1341     [\\/$]* | ?:[\\/]* )  continue;;
1342     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343   esac
1344   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345    { (exit 1); exit 1; }; }
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357   if test "x$build_alias" = x; then
1358     cross_compiling=maybe
1359     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360     If a cross compiler is detected then cross compile mode will be used." >&2
1361   elif test "x$build_alias" != "x$host_alias"; then
1362     cross_compiling=yes
1363   fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375   { echo "$as_me: error: Working directory cannot be determined" >&2
1376    { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   { echo "$as_me: error: pwd does not report name of working directory" >&2
1379    { (exit 1); exit 1; }; }
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$0" : 'X\(//\)[^/]' \| \
1389          X"$0" : 'X\(//\)$' \| \
1390          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 echo X"$0" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424    { (exit 1); exit 1; }; }
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures linux nfs-utils 1.0.11 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR           user executables [EPREFIX/bin]
1485   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR       program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR           object code libraries [EPREFIX/lib]
1491   --includedir=DIR       C header files [PREFIX/include]
1492   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR          info documentation [DATAROOTDIR/info]
1496   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR           man documentation [DATAROOTDIR/man]
1498   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1499   --htmldir=DIR          html documentation [DOCDIR]
1500   --dvidir=DIR           dvi documentation [DOCDIR]
1501   --pdfdir=DIR           pdf documentation [DOCDIR]
1502   --psdir=DIR            ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 Program names:
1508   --program-prefix=PREFIX            prepend PREFIX to installed program names
1509   --program-suffix=SUFFIX            append SUFFIX to installed program names
1510   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1511
1512 System types:
1513   --build=BUILD     configure for building on BUILD [guessed]
1514   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515 _ACEOF
1516 fi
1517
1518 if test -n "$ac_init_help"; then
1519   case $ac_init_help in
1520      short | recursive ) echo "Configuration of linux nfs-utils 1.0.11:";;
1521    esac
1522   cat <<\_ACEOF
1523
1524 Optional Features:
1525   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1526   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1527   --enable-maintainer-mode  enable make rules and dependencies not useful
1528                           (and sometimes confusing) to the casual installer
1529   --enable-nfsv3          enable support for NFSv3 [default=yes]
1530   --enable-nfsv4          enable support for NFSv4 [default=yes]
1531   --enable-gss            enable support for rpcsec_gss [default=yes]
1532   --enable-kprefix        install progs as rpc.knfsd etc
1533   --enable-secure-statd   Only lockd can use statd (security)
1534   --enable-rquotad        enable rquotad [default=yes]
1535   --enable-mount          Create mount.nfs and don't use the util-linux
1536                           mount(8) functionality. [default=no]
1537   --disable-dependency-tracking  speeds up one-time build
1538   --enable-dependency-tracking   do not reject slow dependency extractors
1539   --enable-shared[=PKGS]  build shared libraries [default=yes]
1540   --enable-static[=PKGS]  build static libraries [default=yes]
1541   --enable-fast-install[=PKGS]
1542                           optimize for fast installation [default=yes]
1543   --disable-libtool-lock  avoid locking (might break parallel builds)
1544
1545 Optional Packages:
1546   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548   --with-release=XXX      set release to XXX [1]
1549   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1550   --with-statduser=rpcuser
1551                           statd to run under [rpcuser or nobody]
1552   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1553                  (optionally in PATH)
1554   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555   --with-pic              try to use only PIC/non-PIC objects [default=use
1556                           both]
1557   --with-tags[=TAGS]      include additional configurations [automatic]
1558   --with-krb5=DIR         use Kerberos v5 installation in DIR
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CPP         C preprocessor
1571   CXXCPP      C++ preprocessor
1572   F77         Fortran 77 compiler command
1573   FFLAGS      Fortran 77 compiler flags
1574   PKG_CONFIG  path to pkg-config utility
1575   RPCSECGSS_CFLAGS
1576               C compiler flags for RPCSECGSS, overriding pkg-config
1577   RPCSECGSS_LIBS
1578               linker flags for RPCSECGSS, overriding pkg-config
1579   GSSAPI_CFLAGS
1580               C compiler flags for GSSAPI, overriding pkg-config
1581   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1582
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1585
1586 Report bugs to <nfs@lists.sf.net>.
1587 _ACEOF
1588 ac_status=$?
1589 fi
1590
1591 if test "$ac_init_help" = "recursive"; then
1592   # If there are subdirs, report their specific --help.
1593   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594     test -d "$ac_dir" || continue
1595     ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601   # A ".." for each directory in $ac_dir_suffix.
1602   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603   case $ac_top_builddir_sub in
1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606   esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614   .)  # We are building in place.
1615     ac_srcdir=.
1616     ac_top_srcdir=$ac_top_builddir_sub
1617     ac_abs_top_srcdir=$ac_pwd ;;
1618   [\\/]* | ?:[\\/]* )  # Absolute name.
1619     ac_srcdir=$srcdir$ac_dir_suffix;
1620     ac_top_srcdir=$srcdir
1621     ac_abs_top_srcdir=$srcdir ;;
1622   *) # Relative name.
1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629     cd "$ac_dir" || { ac_status=$?; continue; }
1630     # Check for guested configure.
1631     if test -f "$ac_srcdir/configure.gnu"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634     elif test -f "$ac_srcdir/configure"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure" --help=recursive
1637     else
1638       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639     fi || ac_status=$?
1640     cd "$ac_pwd" || { ac_status=$?; break; }
1641   done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646   cat <<\_ACEOF
1647 linux nfs-utils configure 1.0.11
1648 generated by GNU Autoconf 2.61
1649
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1654 _ACEOF
1655   exit
1656 fi
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1660
1661 It was created by linux nfs-utils $as_me 1.0.11, which was
1662 generated by GNU Autoconf 2.61.  Invocation command line was
1663
1664   $ $0 $@
1665
1666 _ACEOF
1667 exec 5>>config.log
1668 {
1669 cat <<_ASUNAME
1670 ## --------- ##
1671 ## Platform. ##
1672 ## --------- ##
1673
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1682
1683 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1684 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1687 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1688 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1689 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1690
1691 _ASUNAME
1692
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   echo "PATH: $as_dir"
1699 done
1700 IFS=$as_save_IFS
1701
1702 } >&5
1703
1704 cat >&5 <<_ACEOF
1705
1706
1707 ## ----------- ##
1708 ## Core tests. ##
1709 ## ----------- ##
1710
1711 _ACEOF
1712
1713
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1719 ac_configure_args=
1720 ac_configure_args0=
1721 ac_configure_args1=
1722 ac_must_keep_next=false
1723 for ac_pass in 1 2
1724 do
1725   for ac_arg
1726   do
1727     case $ac_arg in
1728     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730     | -silent | --silent | --silen | --sile | --sil)
1731       continue ;;
1732     *\'*)
1733       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734     esac
1735     case $ac_pass in
1736     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737     2)
1738       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739       if test $ac_must_keep_next = true; then
1740         ac_must_keep_next=false # Got value, back to normal.
1741       else
1742         case $ac_arg in
1743           *=* | --config-cache | -C | -disable-* | --disable-* \
1744           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746           | -with-* | --with-* | -without-* | --without-* | --x)
1747             case "$ac_configure_args0 " in
1748               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749             esac
1750             ;;
1751           -* ) ac_must_keep_next=true ;;
1752         esac
1753       fi
1754       ac_configure_args="$ac_configure_args '$ac_arg'"
1755       ;;
1756     esac
1757   done
1758 done
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log.  We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768   # Save into config.log some information that might help in debugging.
1769   {
1770     echo
1771
1772     cat <<\_ASBOX
1773 ## ---------------- ##
1774 ## Cache variables. ##
1775 ## ---------------- ##
1776 _ASBOX
1777     echo
1778     # The following way of writing the cache mishandles newlines in values,
1779 (
1780   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781     eval ac_val=\$$ac_var
1782     case $ac_val in #(
1783     *${as_nl}*)
1784       case $ac_var in #(
1785       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787       esac
1788       case $ac_var in #(
1789       _ | IFS | as_nl) ;; #(
1790       *) $as_unset $ac_var ;;
1791       esac ;;
1792     esac
1793   done
1794   (set) 2>&1 |
1795     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796     *${as_nl}ac_space=\ *)
1797       sed -n \
1798         "s/'\''/'\''\\\\'\'''\''/g;
1799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800       ;; #(
1801     *)
1802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803       ;;
1804     esac |
1805     sort
1806 )
1807     echo
1808
1809     cat <<\_ASBOX
1810 ## ----------------- ##
1811 ## Output variables. ##
1812 ## ----------------- ##
1813 _ASBOX
1814     echo
1815     for ac_var in $ac_subst_vars
1816     do
1817       eval ac_val=\$$ac_var
1818       case $ac_val in
1819       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820       esac
1821       echo "$ac_var='\''$ac_val'\''"
1822     done | sort
1823     echo
1824
1825     if test -n "$ac_subst_files"; then
1826       cat <<\_ASBOX
1827 ## ------------------- ##
1828 ## File substitutions. ##
1829 ## ------------------- ##
1830 _ASBOX
1831       echo
1832       for ac_var in $ac_subst_files
1833       do
1834         eval ac_val=\$$ac_var
1835         case $ac_val in
1836         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837         esac
1838         echo "$ac_var='\''$ac_val'\''"
1839       done | sort
1840       echo
1841     fi
1842
1843     if test -s confdefs.h; then
1844       cat <<\_ASBOX
1845 ## ----------- ##
1846 ## confdefs.h. ##
1847 ## ----------- ##
1848 _ASBOX
1849       echo
1850       cat confdefs.h
1851       echo
1852     fi
1853     test "$ac_signal" != 0 &&
1854       echo "$as_me: caught signal $ac_signal"
1855     echo "$as_me: exit $exit_status"
1856   } >&5
1857   rm -f core *.core core.conftest.* &&
1858     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859     exit $exit_status
1860 ' 0
1861 for ac_signal in 1 2 13 15; do
1862   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863 done
1864 ac_signal=0
1865
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1868
1869 # Predefined preprocessor variables.
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_STRING "$PACKAGE_STRING"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 _ACEOF
1894
1895
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899   set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1902 else
1903   set x "$ac_default_prefix/share/config.site" \
1904         "$ac_default_prefix/etc/config.site"
1905 fi
1906 shift
1907 for ac_site_file
1908 do
1909   if test -r "$ac_site_file"; then
1910     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912     sed 's/^/| /' "$ac_site_file" >&5
1913     . "$ac_site_file"
1914   fi
1915 done
1916
1917 if test -r "$cache_file"; then
1918   # Some versions of bash will fail to source /dev/null (special
1919   # files actually), so we avoid doing that.
1920   if test -f "$cache_file"; then
1921     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1923     case $cache_file in
1924       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925       *)                      . "./$cache_file";;
1926     esac
1927   fi
1928 else
1929   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1931   >$cache_file
1932 fi
1933
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939   eval ac_new_set=\$ac_env_${ac_var}_set
1940   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941   eval ac_new_val=\$ac_env_${ac_var}_value
1942   case $ac_old_set,$ac_new_set in
1943     set,)
1944       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,set)
1948       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,);;
1952     *)
1953       if test "x$ac_old_val" != "x$ac_new_val"; then
1954         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1957 echo "$as_me:   former value:  $ac_old_val" >&2;}
1958         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1959 echo "$as_me:   current value: $ac_new_val" >&2;}
1960         ac_cache_corrupted=:
1961       fi;;
1962   esac
1963   # Pass precious variables to config.status.
1964   if test "$ac_new_set" = set; then
1965     case $ac_new_val in
1966     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967     *) ac_arg=$ac_var=$ac_new_val ;;
1968     esac
1969     case " $ac_configure_args " in
1970       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1971       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1972     esac
1973   fi
1974 done
1975 if $ac_cache_corrupted; then
1976   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062    { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test "x$host_alias" = x; then
2097   ac_cv_host=$ac_cv_build
2098 else
2099   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112    { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126
2127
2128
2129
2130 am__api_version='1.10'
2131
2132 # Find a good install program.  We prefer a C program (faster),
2133 # so one script is as good as another.  But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2138 # AIX /bin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2147 if test -z "$INSTALL"; then
2148 if test "${ac_cv_path_install+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   # Account for people who put trailing slashes in PATH elements.
2157 case $as_dir/ in
2158   ./ | .// | /cC/* | \
2159   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2161   /usr/ucb/* ) ;;
2162   *)
2163     # OSF1 and SCO ODT 3.0 have their own names for install.
2164     # Don't use installbsd from OSF since it installs stuff as root
2165     # by default.
2166     for ac_prog in ginstall scoinst install; do
2167       for ac_exec_ext in '' $ac_executable_extensions; do
2168         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169           if test $ac_prog = install &&
2170             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171             # AIX install.  It has an incompatible calling convention.
2172             :
2173           elif test $ac_prog = install &&
2174             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175             # program-specific install script used by HP pwplus--don't use.
2176             :
2177           else
2178             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179             break 3
2180           fi
2181         fi
2182       done
2183     done
2184     ;;
2185 esac
2186 done
2187 IFS=$as_save_IFS
2188
2189
2190 fi
2191   if test "${ac_cv_path_install+set}" = set; then
2192     INSTALL=$ac_cv_path_install
2193   else
2194     # As a last resort, use the slow shell script.  Don't cache a
2195     # value for INSTALL within a source directory, because that will
2196     # break other packages using the cache if that directory is
2197     # removed, or if the value is a relative name.
2198     INSTALL=$ac_install_sh
2199   fi
2200 fi
2201 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2202 echo "${ECHO_T}$INSTALL" >&6; }
2203
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2213 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2214 # Just in case
2215 sleep 1
2216 echo timestamp > conftest.file
2217 # Do `set' in a subshell so we don't clobber the current shell's
2218 # arguments.  Must try -L first in case configure is actually a
2219 # symlink; some systems play weird games with the mod time of symlinks
2220 # (eg FreeBSD returns the mod time of the symlink's containing
2221 # directory).
2222 if (
2223    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2224    if test "$*" = "X"; then
2225       # -L didn't work.
2226       set X `ls -t $srcdir/configure conftest.file`
2227    fi
2228    rm -f conftest.file
2229    if test "$*" != "X $srcdir/configure conftest.file" \
2230       && test "$*" != "X conftest.file $srcdir/configure"; then
2231
2232       # If neither matched, then we have a broken ls.  This can happen
2233       # if, for instance, CONFIG_SHELL is bash and it inherits a
2234       # broken ls alias from the environment.  This has actually
2235       # happened.  Such a system could not be considered "sane".
2236       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2237 alias in your environment" >&5
2238 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2239 alias in your environment" >&2;}
2240    { (exit 1); exit 1; }; }
2241    fi
2242
2243    test "$2" = conftest.file
2244    )
2245 then
2246    # Ok.
2247    :
2248 else
2249    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2250 Check your system clock" >&5
2251 echo "$as_me: error: newly created file is older than distributed files!
2252 Check your system clock" >&2;}
2253    { (exit 1); exit 1; }; }
2254 fi
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 test "$program_prefix" != NONE &&
2258   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259 # Use a double $ so make ignores it.
2260 test "$program_suffix" != NONE &&
2261   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262 # Double any \ or $.  echo might interpret backslashes.
2263 # By default was `s,x,x', remove it if useless.
2264 cat <<\_ACEOF >conftest.sed
2265 s/[\\$]/&&/g;s/;s,x,x,$//
2266 _ACEOF
2267 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2268 rm -f conftest.sed
2269
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2272
2273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2274 # Use eval to expand $SHELL
2275 if eval "$MISSING --run true"; then
2276   am_missing_run="$MISSING --run "
2277 else
2278   am_missing_run=
2279   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2280 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2281 fi
2282
2283 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2284 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2285 if test -z "$MKDIR_P"; then
2286   if test "${ac_cv_path_mkdir+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_prog in mkdir gmkdir; do
2295          for ac_exec_ext in '' $ac_executable_extensions; do
2296            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2297            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2298              'mkdir (GNU coreutils) '* | \
2299              'mkdir (coreutils) '* | \
2300              'mkdir (fileutils) '4.1*)
2301                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2302                break 3;;
2303            esac
2304          done
2305        done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310
2311   if test "${ac_cv_path_mkdir+set}" = set; then
2312     MKDIR_P="$ac_cv_path_mkdir -p"
2313   else
2314     # As a last resort, use the slow shell script.  Don't cache a
2315     # value for MKDIR_P within a source directory, because that will
2316     # break other packages using the cache if that directory is
2317     # removed, or if the value is a relative name.
2318     test -d ./--version && rmdir ./--version
2319     MKDIR_P="$ac_install_sh -d"
2320   fi
2321 fi
2322 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2323 echo "${ECHO_T}$MKDIR_P" >&6; }
2324
2325 mkdir_p="$MKDIR_P"
2326 case $mkdir_p in
2327   [\\/$]* | ?:[\\/]*) ;;
2328   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2329 esac
2330
2331 for ac_prog in gawk mawk nawk awk
2332 do
2333   # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_AWK+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$AWK"; then
2341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350     ac_cv_prog_AWK="$ac_prog"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 AWK=$ac_cv_prog_AWK
2361 if test -n "$AWK"; then
2362   { echo "$as_me:$LINENO: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6; }
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2368
2369
2370   test -n "$AWK" && break
2371 done
2372
2373 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2374 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2375 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   cat >conftest.make <<\_ACEOF
2380 SHELL = /bin/sh
2381 all:
2382         @echo '@@@%%%=$(MAKE)=@@@%%%'
2383 _ACEOF
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386   *@@@%%%=?*=@@@%%%*)
2387     eval ac_cv_prog_make_${ac_make}_set=yes;;
2388   *)
2389     eval ac_cv_prog_make_${ac_make}_set=no;;
2390 esac
2391 rm -f conftest.make
2392 fi
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394   { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396   SET_MAKE=
2397 else
2398   { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400   SET_MAKE="MAKE=${MAKE-make}"
2401 fi
2402
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2406   am__leading_dot=.
2407 else
2408   am__leading_dot=_
2409 fi
2410 rmdir .tst 2>/dev/null
2411
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414   # is not polluted with repeated "-I."
2415   am__isrc=' -I$(srcdir)'
2416   # test to see if srcdir already configured
2417   if test -f $srcdir/config.status; then
2418     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420    { (exit 1); exit 1; }; }
2421   fi
2422 fi
2423
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426   if (cygpath --version) >/dev/null 2>/dev/null; then
2427     CYGPATH_W='cygpath -w'
2428   else
2429     CYGPATH_W=echo
2430   fi
2431 fi
2432
2433
2434 # Define the identity of the package.
2435  PACKAGE='nfs-utils'
2436  VERSION='1.0.11'
2437
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE "$PACKAGE"
2441 _ACEOF
2442
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define VERSION "$VERSION"
2446 _ACEOF
2447
2448 # Some tools Automake needs.
2449
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2451
2452
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2454
2455
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2457
2458
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2460
2461
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2464 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'.  However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471   if test -n "$ac_tool_prefix"; then
2472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$STRIP"; then
2480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501   { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511   ac_ct_STRIP=$STRIP
2512   # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_STRIP"; then
2520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_ac_ct_STRIP="strip"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548   if test "x$ac_ct_STRIP" = x; then
2549     STRIP=":"
2550   else
2551     case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet.  If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561     STRIP=$ac_ct_STRIP
2562   fi
2563 else
2564   STRIP="$ac_cv_prog_STRIP"
2565 fi
2566
2567 fi
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569
2570 # We need awk for the "check" target.  The system "awk" is bad on
2571 # some platforms.
2572 # Always define AMTAR for backward compatibility.
2573
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2575
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2577
2578
2579
2580
2581
2582
2583
2584 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2586     # Check whether --enable-maintainer-mode was given.
2587 if test "${enable_maintainer_mode+set}" = set; then
2588   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2589 else
2590   USE_MAINTAINER_MODE=no
2591 fi
2592
2593   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2594 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2595    if test $USE_MAINTAINER_MODE = yes; then
2596   MAINTAINER_MODE_TRUE=
2597   MAINTAINER_MODE_FALSE='#'
2598 else
2599   MAINTAINER_MODE_TRUE='#'
2600   MAINTAINER_MODE_FALSE=
2601 fi
2602
2603   MAINT=$MAINTAINER_MODE_TRUE
2604
2605
2606
2607
2608 # Check whether --with-release was given.
2609 if test "${with_release+set}" = set; then
2610   withval=$with_release; RELEASE=$withval
2611 else
2612   RELEASE=1
2613 fi
2614
2615
2616
2617 # Check whether --with-statedir was given.
2618 if test "${with_statedir+set}" = set; then
2619   withval=$with_statedir; statedir=$withval
2620 else
2621   statedir=/var/lib/nfs
2622 fi
2623
2624
2625
2626 # Check whether --with-statduser was given.
2627 if test "${with_statduser+set}" = set; then
2628   withval=$with_statduser; statduser=$withval
2629 else
2630   if test "x$cross_compiling" = "xno"; then
2631                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2632                         statduser=rpcuser
2633                 else
2634                         statduser=nobody
2635                 fi
2636         else
2637                 statduser=nobody
2638         fi
2639 fi
2640
2641
2642 # Check whether --enable-nfsv3 was given.
2643 if test "${enable_nfsv3+set}" = set; then
2644   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2645 else
2646   enable_nfsv3=yes
2647 fi
2648
2649         if test "$enable_nfsv3" = yes; then
2650
2651 cat >>confdefs.h <<\_ACEOF
2652 #define NFS3_SUPPORTED 1
2653 _ACEOF
2654
2655         else
2656                 enable_nfsv3=
2657         fi
2658
2659 # Check whether --enable-nfsv4 was given.
2660 if test "${enable_nfsv4+set}" = set; then
2661   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2662 else
2663   enable_nfsv4=yes
2664 fi
2665
2666         if test "$enable_nfsv4" = yes; then
2667
2668 cat >>confdefs.h <<\_ACEOF
2669 #define NFS4_SUPPORTED 1
2670 _ACEOF
2671
2672                 IDMAPD=idmapd
2673         else
2674                 enable_nfsv4=
2675                 IDMAPD=
2676         fi
2677
2678
2679          if test "$enable_nfsv4" = "yes"; then
2680   CONFIG_NFSV4_TRUE=
2681   CONFIG_NFSV4_FALSE='#'
2682 else
2683   CONFIG_NFSV4_TRUE='#'
2684   CONFIG_NFSV4_FALSE=
2685 fi
2686
2687 # Check whether --enable-gss was given.
2688 if test "${enable_gss+set}" = set; then
2689   enableval=$enable_gss; enable_gss=$enableval
2690 else
2691   enable_gss=yes
2692 fi
2693
2694         if test "$enable_gss" = yes; then
2695
2696 cat >>confdefs.h <<\_ACEOF
2697 #define GSS_SUPPORTED 1
2698 _ACEOF
2699
2700                 GSSD=gssd
2701                 SVCGSSD=svcgssd
2702         else
2703                 enable_gss=
2704                 GSSD=
2705                 SVCGSSD=
2706         fi
2707
2708
2709
2710          if test "$enable_gss" = "yes"; then
2711   CONFIG_GSS_TRUE=
2712   CONFIG_GSS_FALSE='#'
2713 else
2714   CONFIG_GSS_TRUE='#'
2715   CONFIG_GSS_FALSE=
2716 fi
2717
2718 # Check whether --enable-kprefix was given.
2719 if test "${enable_kprefix+set}" = set; then
2720   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2721 else
2722   kprefix=
2723 fi
2724
2725
2726 # Check whether --enable-secure-statd was given.
2727 if test "${enable_secure_statd+set}" = set; then
2728   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2729 else
2730   secure_statd=no
2731 fi
2732
2733         if test "$secure_statd" = yes; then
2734
2735 cat >>confdefs.h <<\_ACEOF
2736 #define RESTRICTED_STATD 1
2737 _ACEOF
2738
2739         fi
2740
2741 # Check whether --enable-rquotad was given.
2742 if test "${enable_rquotad+set}" = set; then
2743   enableval=$enable_rquotad; enable_rquotad=$enableval
2744 else
2745   enable_rquotad=yes
2746 fi
2747
2748         if test "$enable_rquotad" = yes; then
2749                 RQUOTAD=rquotad
2750         else
2751                 RQUOTAD=
2752         fi
2753          if test "$enable_rquotad" = "yes"; then
2754   CONFIG_RQUOTAD_TRUE=
2755   CONFIG_RQUOTAD_FALSE='#'
2756 else
2757   CONFIG_RQUOTAD_TRUE='#'
2758   CONFIG_RQUOTAD_FALSE=
2759 fi
2760
2761
2762 # Check whether --enable-mount was given.
2763 if test "${enable_mount+set}" = set; then
2764   enableval=$enable_mount; enable_mount=$enableval
2765 else
2766   enable_mount=no
2767 fi
2768
2769          if test "$enable_mount" = "yes"; then
2770   CONFIG_MOUNT_TRUE=
2771   CONFIG_MOUNT_FALSE='#'
2772 else
2773   CONFIG_MOUNT_TRUE='#'
2774   CONFIG_MOUNT_FALSE=
2775 fi
2776
2777
2778 # Check whether user wants TCP wrappers support
2779 DEPDIR="${am__leading_dot}deps"
2780
2781 ac_config_commands="$ac_config_commands depfiles"
2782
2783
2784 am_make=${MAKE-make}
2785 cat > confinc << 'END'
2786 am__doit:
2787         @echo done
2788 .PHONY: am__doit
2789 END
2790 # If we don't find an include directive, just comment out the code.
2791 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2793 am__include="#"
2794 am__quote=
2795 _am_result=none
2796 # First try GNU make style include.
2797 echo "include confinc" > confmf
2798 # We grep out `Entering directory' and `Leaving directory'
2799 # messages which can occur if `w' ends up in MAKEFLAGS.
2800 # In particular we don't look at `^make:' because GNU make might
2801 # be invoked under some other name (usually "gmake"), in which
2802 # case it prints its new name instead of `make'.
2803 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2804    am__include=include
2805    am__quote=
2806    _am_result=GNU
2807 fi
2808 # Now try BSD make style include.
2809 if test "$am__include" = "#"; then
2810    echo '.include "confinc"' > confmf
2811    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2812       am__include=.include
2813       am__quote="\""
2814       _am_result=BSD
2815    fi
2816 fi
2817
2818
2819 { echo "$as_me:$LINENO: result: $_am_result" >&5
2820 echo "${ECHO_T}$_am_result" >&6; }
2821 rm -f confinc confmf
2822
2823 # Check whether --enable-dependency-tracking was given.
2824 if test "${enable_dependency_tracking+set}" = set; then
2825   enableval=$enable_dependency_tracking;
2826 fi
2827
2828 if test "x$enable_dependency_tracking" != xno; then
2829   am_depcomp="$ac_aux_dir/depcomp"
2830   AMDEPBACKSLASH='\'
2831 fi
2832  if test "x$enable_dependency_tracking" != xno; then
2833   AMDEP_TRUE=
2834   AMDEP_FALSE='#'
2835 else
2836   AMDEP_TRUE='#'
2837   AMDEP_FALSE=
2838 fi
2839
2840
2841 ac_ext=c
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   if test -n "$CC"; then
2855   ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862   for ac_exec_ext in '' $ac_executable_extensions; do
2863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876   { echo "$as_me:$LINENO: result: $CC" >&5
2877 echo "${ECHO_T}$CC" >&6; }
2878 else
2879   { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_CC"; then
2886   ac_ct_CC=$CC
2887   # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   if test -n "$ac_ct_CC"; then
2895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900   IFS=$as_save_IFS
2901   test -z "$as_dir" && as_dir=.
2902   for ac_exec_ext in '' $ac_executable_extensions; do
2903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904     ac_cv_prog_ac_ct_CC="gcc"
2905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906     break 2
2907   fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6; }
2918 else
2919   { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2921 fi
2922
2923   if test "x$ac_ct_CC" = x; then
2924     CC=""
2925   else
2926     case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet.  If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet.  If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936     CC=$ac_ct_CC
2937   fi
2938 else
2939   CC="$ac_cv_prog_CC"
2940 fi
2941
2942 if test -z "$CC"; then
2943           if test -n "$ac_tool_prefix"; then
2944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959   for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_CC="${ac_tool_prefix}cc"
2962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6; }
2975 else
2976   { echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6; }
2978 fi
2979
2980
2981   fi
2982 fi
2983 if test -z "$CC"; then
2984   # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994   ac_prog_rejected=no
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000   for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003        ac_prog_rejected=yes
3004        continue
3005      fi
3006     ac_cv_prog_CC="cc"
3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 if test $ac_prog_rejected = yes; then
3015   # We found a bogon in the path, so make sure we never use it.
3016   set dummy $ac_cv_prog_CC
3017   shift
3018   if test $# != 0; then
3019     # We chose a different compiler from the bogus one.
3020     # However, it has the same basename, so the bogon will be chosen
3021     # first if we set CC to just the basename; use the full file name.
3022     shift
3023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024   fi
3025 fi
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { echo "$as_me:$LINENO: result: $CC" >&5
3031 echo "${ECHO_T}$CC" >&6; }
3032 else
3033   { echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$CC"; then
3040   if test -n "$ac_tool_prefix"; then
3041   for ac_prog in cl.exe
3042   do
3043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { echo "$as_me:$LINENO: result: $CC" >&5
3073 echo "${ECHO_T}$CC" >&6; }
3074 else
3075   { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3077 fi
3078
3079
3080     test -n "$CC" && break
3081   done
3082 fi
3083 if test -z "$CC"; then
3084   ac_ct_CC=$CC
3085   for ac_prog in cl.exe
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   if test -n "$ac_ct_CC"; then
3095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102   for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     ac_cv_prog_ac_ct_CC="$ac_prog"
3105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117 echo "${ECHO_T}$ac_ct_CC" >&6; }
3118 else
3119   { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3121 fi
3122
3123
3124   test -n "$ac_ct_CC" && break
3125 done
3126
3127   if test "x$ac_ct_CC" = x; then
3128     CC=""
3129   else
3130     case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3133 whose name does not start with the host triplet.  If you think this
3134 configuration is useful to you, please write to autoconf@gnu.org." >&5
3135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3136 whose name does not start with the host triplet.  If you think this
3137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&2;}
3151    { (exit 1); exit 1; }; }
3152
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler --version >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -v >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -V >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3208 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210 #
3211 # List of possible output files, starting from the most likely.
3212 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3213 # only as a last resort.  b.out is created by i960 compilers.
3214 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3215 #
3216 # The IRIX 6 linker writes into existing files which may not be
3217 # executable, retaining their permissions.  Remove them first so a
3218 # subsequent execution test works.
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3221 do
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3224     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225   esac
3226 done
3227 rm -f $ac_rmfiles
3228
3229 if { (ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_link_default") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; then
3239   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3243 # Autoconf.
3244 for ac_file in $ac_files ''
3245 do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3249         ;;
3250     [ab].out )
3251         # We found the default executable, but exeext='' is most
3252         # certainly right.
3253         break;;
3254     *.* )
3255         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256         then :; else
3257            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258         fi
3259         # We set ac_cv_exeext here because the later test for it is not
3260         # safe: cross compilers may not add the suffix if given an `-o'
3261         # argument, so we may need to know it at that point already.
3262         # Even if this section looks crufty: it has the advantage of
3263         # actually working.
3264         break;;
3265     * )
3266         break;;
3267   esac
3268 done
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270
3271 else
3272   ac_file=''
3273 fi
3274
3275 { echo "$as_me:$LINENO: result: $ac_file" >&5
3276 echo "${ECHO_T}$ac_file" >&6; }
3277 if test -z "$ac_file"; then
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&2;}
3285    { (exit 77); exit 77; }; }
3286 fi
3287
3288 ac_exeext=$ac_cv_exeext
3289
3290 # Check that the compiler produces executables we can run.  If not, either
3291 # the compiler is broken, or we cross compile.
3292 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3293 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3294 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3295 # If not cross compiling, check that we can run a simple program.
3296 if test "$cross_compiling" != yes; then
3297   if { ac_try='./$ac_file'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; }; then
3307     cross_compiling=no
3308   else
3309     if test "$cross_compiling" = maybe; then
3310         cross_compiling=yes
3311     else
3312         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot run C compiled programs.
3316 If you meant to cross compile, use \`--host'.
3317 See \`config.log' for more details." >&2;}
3318    { (exit 1); exit 1; }; }
3319     fi
3320   fi
3321 fi
3322 { echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6; }
3324
3325 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 # Check that the compiler produces executables we can run.  If not, either
3328 # the compiler is broken, or we cross compile.
3329 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3330 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3331 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3332 echo "${ECHO_T}$cross_compiling" >&6; }
3333
3334 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3335 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3336 if { (ac_try="$ac_link"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; then
3346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351   test -f "$ac_file" || continue
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355           break;;
3356     * ) break;;
3357   esac
3358 done
3359 else
3360   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364    { (exit 1); exit 1; }; }
3365 fi
3366
3367 rm -f conftest$ac_cv_exeext
3368 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3370
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3373 ac_exeext=$EXEEXT
3374 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377   echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379   cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_compile") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; then
3405   for ac_file in conftest.o conftest.obj conftest.*; do
3406   test -f "$ac_file" || continue;
3407   case $ac_file in
3408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3409     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410        break;;
3411   esac
3412 done
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&2;}
3421    { (exit 1); exit 1; }; }
3422 fi
3423
3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3425 fi
3426 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3427 echo "${ECHO_T}$ac_cv_objext" >&6; }
3428 OBJEXT=$ac_cv_objext
3429 ac_objext=$OBJEXT
3430 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3431 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3432 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445 #ifndef __GNUC__
3446        choke me
3447 #endif
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_compile") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } && {
3467          test -z "$ac_c_werror_flag" ||
3468          test ! -s conftest.err
3469        } && test -s conftest.$ac_objext; then
3470   ac_compiler_gnu=yes
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475         ac_compiler_gnu=no
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481 fi
3482 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3483 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3484 GCC=`test $ac_compiler_gnu = yes && echo yes`
3485 ac_test_CFLAGS=${CFLAGS+set}
3486 ac_save_CFLAGS=$CFLAGS
3487 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_cc_g+set}" = set; then
3490   echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492   ac_save_c_werror_flag=$ac_c_werror_flag
3493    ac_c_werror_flag=yes
3494    ac_cv_prog_cc_g=no
3495    CFLAGS="-g"
3496    cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_compile") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } && {
3525          test -z "$ac_c_werror_flag" ||
3526          test ! -s conftest.err
3527        } && test -s conftest.$ac_objext; then
3528   ac_cv_prog_cc_g=yes
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533         CFLAGS=""
3534       cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_compile") 2>conftest.er1
3557   ac_status=$?
3558   grep -v '^ *+' conftest.er1 >conftest.err
3559   rm -f conftest.er1
3560   cat conftest.err >&5
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } && {
3563          test -z "$ac_c_werror_flag" ||
3564          test ! -s conftest.err
3565        } && test -s conftest.$ac_objext; then
3566   :
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571         ac_c_werror_flag=$ac_save_c_werror_flag
3572          CFLAGS="-g"
3573          cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_compile") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } && {
3602          test -z "$ac_c_werror_flag" ||
3603          test ! -s conftest.err
3604        } && test -s conftest.$ac_objext; then
3605   ac_cv_prog_cc_g=yes
3606 else
3607   echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 fi
3615
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620    ac_c_werror_flag=$ac_save_c_werror_flag
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625   CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627   if test "$GCC" = yes; then
3628     CFLAGS="-g -O2"
3629   else
3630     CFLAGS="-g"
3631   fi
3632 else
3633   if test "$GCC" = yes; then
3634     CFLAGS="-O2"
3635   else
3636     CFLAGS=
3637   fi
3638 fi
3639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   ac_cv_prog_cc_c89=no
3645 ac_save_CC=$CC
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660      char **p;
3661      int i;
3662 {
3663   return p[i];
3664 }
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3666 {
3667   char *s;
3668   va_list v;
3669   va_start (v,p);
3670   s = g (p, va_arg (v,int));
3671   va_end (v);
3672   return s;
3673 }
3674
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3676    function prototypes and stuff, but not '\xHH' hex character constants.
3677    These don't provoke an error unfortunately, instead are silently treated
3678    as 'x'.  The following induces an error, until -std is added to get
3679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3680    array size at least.  It's necessary to write '\x00'==0 to get something
3681    that's true only with -std.  */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685    inside strings and character constants.  */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3695 int
3696 main ()
3697 {
3698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 do
3706   CC="$ac_save_CC $ac_arg"
3707   rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714   (eval "$ac_compile") 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } && {
3721          test -z "$ac_c_werror_flag" ||
3722          test ! -s conftest.err
3723        } && test -s conftest.$ac_objext; then
3724   ac_cv_prog_cc_c89=$ac_arg
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext
3733   test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3737
3738 fi
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3741   x)
3742     { echo "$as_me:$LINENO: result: none needed" >&5
3743 echo "${ECHO_T}none needed" >&6; } ;;
3744   xno)
3745     { echo "$as_me:$LINENO: result: unsupported" >&5
3746 echo "${ECHO_T}unsupported" >&6; } ;;
3747   *)
3748     CC="$CC $ac_cv_prog_cc_c89"
3749     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3750 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752
3753
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760 depcc="$CC"   am_compiler_list=
3761
3762 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3763 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3764 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768   # We make a subdir and do the tests there.  Otherwise we can end up
3769   # making bogus files that we don't know about and never remove.  For
3770   # instance it was reported that on HP-UX the gcc test will end up
3771   # making a dummy file named `D' -- because `-MD' means `put the output
3772   # in D'.
3773   mkdir conftest.dir
3774   # Copy depcomp to subdir because otherwise we won't find it if we're
3775   # using a relative directory.
3776   cp "$am_depcomp" conftest.dir
3777   cd conftest.dir
3778   # We will build objects and dependencies in a subdirectory because
3779   # it helps to detect inapplicable dependency modes.  For instance
3780   # both Tru64's cc and ICC support -MD to output dependencies as a
3781   # side effect of compilation, but ICC will put the dependencies in
3782   # the current directory while Tru64 will put them in the object
3783   # directory.
3784   mkdir sub
3785
3786   am_cv_CC_dependencies_compiler_type=none
3787   if test "$am_compiler_list" = ""; then
3788      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3789   fi
3790   for depmode in $am_compiler_list; do
3791     # Setup a source with many dependencies, because some compilers
3792     # like to wrap large dependency lists on column 80 (with \), and
3793     # we should not choose a depcomp mode which is confused by this.
3794     #
3795     # We need to recreate these files for each test, as the compiler may
3796     # overwrite some of them when testing with obscure command lines.
3797     # This happens at least with the AIX C compiler.
3798     : > sub/conftest.c
3799     for i in 1 2 3 4 5 6; do
3800       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802       # Solaris 8's {/usr,}/bin/sh.
3803       touch sub/conftst$i.h
3804     done
3805     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807     case $depmode in
3808     nosideeffect)
3809       # after this tag, mechanisms are not by side-effect, so they'll
3810       # only be used when explicitly requested
3811       if test "x$enable_dependency_tracking" = xyes; then
3812         continue
3813       else
3814         break
3815       fi
3816       ;;
3817     none) break ;;
3818     esac
3819     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820     # mode.  It turns out that the SunPro C++ compiler does not properly
3821     # handle `-M -o', and we need to detect this.
3822     if depmode=$depmode \
3823        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3824        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3826          >/dev/null 2>conftest.err &&
3827        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3830        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831       # icc doesn't choke on unknown options, it will just issue warnings
3832       # or remarks (even with -Werror).  So we grep stderr for any message
3833       # that says an option was ignored or not supported.
3834       # When given -MP, icc 7.0 and 7.1 complain thusly:
3835       #   icc: Command line warning: ignoring option '-M'; no argument required
3836       # The diagnosis changed in icc 8.0:
3837       #   icc: Command line remark: option '-MP' not supported
3838       if (grep 'ignoring option' conftest.err ||
3839           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840         am_cv_CC_dependencies_compiler_type=$depmode
3841         break
3842       fi
3843     fi
3844   done
3845
3846   cd ..
3847   rm -rf conftest.dir
3848 else
3849   am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857  if
3858   test "x$enable_dependency_tracking" != xno \
3859   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860   am__fastdepCC_TRUE=
3861   am__fastdepCC_FALSE='#'
3862 else
3863   am__fastdepCC_TRUE='#'
3864   am__fastdepCC_FALSE=
3865 fi
3866
3867
3868
3869
3870   TCPW_MSG="no"
3871
3872 # Check whether --with-tcp-wrappers was given.
3873 if test "${with_tcp_wrappers+set}" = set; then
3874   withval=$with_tcp_wrappers; with_tcpw=$withval
3875 else
3876   $with_tcpw=yes
3877 fi
3878
3879         if test "x$with_tcpw" != "xno" ; then
3880             saved_LIBS="$LIBS"
3881             saved_LDFLAGS="$LDFLAGS"
3882             saved_CPPFLAGS="$CPPFLAGS"
3883             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3884                 if test -d "${with_tcpw}/lib"; then
3885                     if test -n "${need_dash_r}"; then
3886                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3887                     else
3888                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3889                     fi
3890                 else
3891                     if test -n "${need_dash_r}"; then
3892                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3893                     else
3894                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3895                     fi
3896                 fi
3897                 if test -d "${with_tcpw}/include"; then
3898                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3899                 else
3900                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3901                 fi
3902             fi
3903             LIBWRAP="-lwrap"
3904             LIBS="$LIBWRAP $LIBS"
3905             { echo "$as_me:$LINENO: checking for libwrap" >&5
3906 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3907             cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913
3914                 #include <tcpd.h>
3915                 int deny_severity = 0, allow_severity = 0;
3916
3917 int
3918 main ()
3919 {
3920 hosts_access(0);
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932   (eval "$ac_link") 2>conftest.er1
3933   ac_status=$?
3934   grep -v '^ *+' conftest.er1 >conftest.err
3935   rm -f conftest.er1
3936   cat conftest.err >&5
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } && {
3939          test -z "$ac_c_werror_flag" ||
3940          test ! -s conftest.err
3941        } && test -s conftest$ac_exeext &&
3942        $as_test_x conftest$ac_exeext; then
3943
3944                 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3946
3947
3948 cat >>confdefs.h <<\_ACEOF
3949 #define LIBWRAP 1
3950 _ACEOF
3951
3952
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_LIBWRAP 1
3955 _ACEOF
3956
3957
3958 cat >>confdefs.h <<\_ACEOF
3959 #define HAVE_TCP_WRAPPER 1
3960 _ACEOF
3961
3962                 TCPW_MSG="yes"
3963
3964 else
3965   echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968
3969                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3970 echo "$as_me: error: *** libwrap missing" >&2;}
3971    { (exit 1); exit 1; }; }
3972
3973
3974 fi
3975
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977       conftest$ac_exeext conftest.$ac_ext
3978             LIBS="$saved_LIBS"
3979         fi
3980
3981
3982
3983
3984
3985
3986 ac_config_headers="$ac_config_headers support/include/config.h"
3987
3988
3989 # Checks for programs.
3990 ac_ext=cpp
3991 ac_cpp='$CXXCPP $CPPFLAGS'
3992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3995 if test -z "$CXX"; then
3996   if test -n "$CCC"; then
3997     CXX=$CCC
3998   else
3999     if test -n "$ac_tool_prefix"; then
4000   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4001   do
4002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006 if test "${ac_cv_prog_CXX+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$CXX"; then
4010   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 CXX=$ac_cv_prog_CXX
4030 if test -n "$CXX"; then
4031   { echo "$as_me:$LINENO: result: $CXX" >&5
4032 echo "${ECHO_T}$CXX" >&6; }
4033 else
4034   { echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6; }
4036 fi
4037
4038
4039     test -n "$CXX" && break
4040   done
4041 fi
4042 if test -z "$CXX"; then
4043   ac_ct_CXX=$CXX
4044   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4045 do
4046   # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   if test -n "$ac_ct_CXX"; then
4054   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_exec_ext in '' $ac_executable_extensions; do
4062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063     ac_cv_prog_ac_ct_CXX="$ac_prog"
4064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4074 if test -n "$ac_ct_CXX"; then
4075   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4076 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4077 else
4078   { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4080 fi
4081
4082
4083   test -n "$ac_ct_CXX" && break
4084 done
4085
4086   if test "x$ac_ct_CXX" = x; then
4087     CXX="g++"
4088   else
4089     case $cross_compiling:$ac_tool_warned in
4090 yes:)
4091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4092 whose name does not start with the host triplet.  If you think this
4093 configuration is useful to you, please write to autoconf@gnu.org." >&5
4094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4095 whose name does not start with the host triplet.  If you think this
4096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4097 ac_tool_warned=yes ;;
4098 esac
4099     CXX=$ac_ct_CXX
4100   fi
4101 fi
4102
4103   fi
4104 fi
4105 # Provide some information about the compiler.
4106 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4107 ac_compiler=`set X $ac_compile; echo $2`
4108 { (ac_try="$ac_compiler --version >&5"
4109 case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_compiler --version >&5") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }
4118 { (ac_try="$ac_compiler -v >&5"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_compiler -v >&5") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }
4128 { (ac_try="$ac_compiler -V >&5"
4129 case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_compiler -V >&5") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }
4138
4139 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4140 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4141 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154 #ifndef __GNUC__
4155        choke me
4156 #endif
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4164 case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_compile") 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } && {
4176          test -z "$ac_cxx_werror_flag" ||
4177          test ! -s conftest.err
4178        } && test -s conftest.$ac_objext; then
4179   ac_compiler_gnu=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         ac_compiler_gnu=no
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4189
4190 fi
4191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4192 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4193 GXX=`test $ac_compiler_gnu = yes && echo yes`
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4197 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202    ac_cxx_werror_flag=yes
4203    ac_cv_prog_cxx_g=no
4204    CXXFLAGS="-g"
4205    cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_compile") 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } && {
4234          test -z "$ac_cxx_werror_flag" ||
4235          test ! -s conftest.err
4236        } && test -s conftest.$ac_objext; then
4237   ac_cv_prog_cxx_g=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242         CXXFLAGS=""
4243       cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249
4250 int
4251 main ()
4252 {
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } && {
4272          test -z "$ac_cxx_werror_flag" ||
4273          test ! -s conftest.err
4274        } && test -s conftest.$ac_objext; then
4275   :
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4281          CXXFLAGS="-g"
4282          cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288
4289 int
4290 main ()
4291 {
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_compile") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } && {
4311          test -z "$ac_cxx_werror_flag" ||
4312          test ! -s conftest.err
4313        } && test -s conftest.$ac_objext; then
4314   ac_cv_prog_cxx_g=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319
4320 fi
4321
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4332 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4333 if test "$ac_test_CXXFLAGS" = set; then
4334   CXXFLAGS=$ac_save_CXXFLAGS
4335 elif test $ac_cv_prog_cxx_g = yes; then
4336   if test "$GXX" = yes; then
4337     CXXFLAGS="-g -O2"
4338   else
4339     CXXFLAGS="-g"
4340   fi
4341 else
4342   if test "$GXX" = yes; then
4343     CXXFLAGS="-O2"
4344   else
4345     CXXFLAGS=
4346   fi
4347 fi
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353
4354 depcc="$CXX"  am_compiler_list=
4355
4356 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362   # We make a subdir and do the tests there.  Otherwise we can end up
4363   # making bogus files that we don't know about and never remove.  For
4364   # instance it was reported that on HP-UX the gcc test will end up
4365   # making a dummy file named `D' -- because `-MD' means `put the output
4366   # in D'.
4367   mkdir conftest.dir
4368   # Copy depcomp to subdir because otherwise we won't find it if we're
4369   # using a relative directory.
4370   cp "$am_depcomp" conftest.dir
4371   cd conftest.dir
4372   # We will build objects and dependencies in a subdirectory because
4373   # it helps to detect inapplicable dependency modes.  For instance
4374   # both Tru64's cc and ICC support -MD to output dependencies as a
4375   # side effect of compilation, but ICC will put the dependencies in
4376   # the current directory while Tru64 will put them in the object
4377   # directory.
4378   mkdir sub
4379
4380   am_cv_CXX_dependencies_compiler_type=none
4381   if test "$am_compiler_list" = ""; then
4382      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4383   fi
4384   for depmode in $am_compiler_list; do
4385     # Setup a source with many dependencies, because some compilers
4386     # like to wrap large dependency lists on column 80 (with \), and
4387     # we should not choose a depcomp mode which is confused by this.
4388     #
4389     # We need to recreate these files for each test, as the compiler may
4390     # overwrite some of them when testing with obscure command lines.
4391     # This happens at least with the AIX C compiler.
4392     : > sub/conftest.c
4393     for i in 1 2 3 4 5 6; do
4394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396       # Solaris 8's {/usr,}/bin/sh.
4397       touch sub/conftst$i.h
4398     done
4399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400
4401     case $depmode in
4402     nosideeffect)
4403       # after this tag, mechanisms are not by side-effect, so they'll
4404       # only be used when explicitly requested
4405       if test "x$enable_dependency_tracking" = xyes; then
4406         continue
4407       else
4408         break
4409       fi
4410       ;;
4411     none) break ;;
4412     esac
4413     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414     # mode.  It turns out that the SunPro C++ compiler does not properly
4415     # handle `-M -o', and we need to detect this.
4416     if depmode=$depmode \
4417        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420          >/dev/null 2>conftest.err &&
4421        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4424        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425       # icc doesn't choke on unknown options, it will just issue warnings
4426       # or remarks (even with -Werror).  So we grep stderr for any message
4427       # that says an option was ignored or not supported.
4428       # When given -MP, icc 7.0 and 7.1 complain thusly:
4429       #   icc: Command line warning: ignoring option '-M'; no argument required
4430       # The diagnosis changed in icc 8.0:
4431       #   icc: Command line remark: option '-MP' not supported
4432       if (grep 'ignoring option' conftest.err ||
4433           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434         am_cv_CXX_dependencies_compiler_type=$depmode
4435         break
4436       fi
4437     fi
4438   done
4439
4440   cd ..
4441   rm -rf conftest.dir
4442 else
4443   am_cv_CXX_dependencies_compiler_type=none
4444 fi
4445
4446 fi
4447 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4448 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4449 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4450
4451  if
4452   test "x$enable_dependency_tracking" != xno \
4453   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4454   am__fastdepCXX_TRUE=
4455   am__fastdepCXX_FALSE='#'
4456 else
4457   am__fastdepCXX_TRUE='#'
4458   am__fastdepCXX_FALSE=
4459 fi
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$CC"; then
4476   ac_cv_prog_CC="$CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 fi
4494 fi
4495 CC=$ac_cv_prog_CC
4496 if test -n "$CC"; then
4497   { echo "$as_me:$LINENO: result: $CC" >&5
4498 echo "${ECHO_T}$CC" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503
4504
4505 fi
4506 if test -z "$ac_cv_prog_CC"; then
4507   ac_ct_CC=$CC
4508   # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$ac_ct_CC"; then
4516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_prog_ac_ct_CC="gcc"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 fi
4534 fi
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 echo "${ECHO_T}$ac_ct_CC" >&6; }
4539 else
4540   { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 fi
4543
4544   if test "x$ac_ct_CC" = x; then
4545     CC=""
4546   else
4547     case $cross_compiling:$ac_tool_warned in
4548 yes:)
4549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet.  If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&5
4552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4553 whose name does not start with the host triplet.  If you think this
4554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4555 ac_tool_warned=yes ;;
4556 esac
4557     CC=$ac_ct_CC
4558   fi
4559 else
4560   CC="$ac_cv_prog_CC"
4561 fi
4562
4563 if test -z "$CC"; then
4564           if test -n "$ac_tool_prefix"; then
4565     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   if test -n "$CC"; then
4573   ac_cv_prog_CC="$CC" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_prog_CC="${ac_tool_prefix}cc"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 CC=$ac_cv_prog_CC
4593 if test -n "$CC"; then
4594   { echo "$as_me:$LINENO: result: $CC" >&5
4595 echo "${ECHO_T}$CC" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602   fi
4603 fi
4604 if test -z "$CC"; then
4605   # Extract the first word of "cc", so it can be a program name with args.
4606 set dummy cc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test -n "$CC"; then
4613   ac_cv_prog_CC="$CC" # Let the user override the test.
4614 else
4615   ac_prog_rejected=no
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4624        ac_prog_rejected=yes
4625        continue
4626      fi
4627     ac_cv_prog_CC="cc"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 if test $ac_prog_rejected = yes; then
4636   # We found a bogon in the path, so make sure we never use it.
4637   set dummy $ac_cv_prog_CC
4638   shift
4639   if test $# != 0; then
4640     # We chose a different compiler from the bogus one.
4641     # However, it has the same basename, so the bogon will be chosen
4642     # first if we set CC to just the basename; use the full file name.
4643     shift
4644     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4645   fi
4646 fi
4647 fi
4648 fi
4649 CC=$ac_cv_prog_CC
4650 if test -n "$CC"; then
4651   { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658
4659 fi
4660 if test -z "$CC"; then
4661   if test -n "$ac_tool_prefix"; then
4662   for ac_prog in cl.exe
4663   do
4664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_CC+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$CC"; then
4672   ac_cv_prog_CC="$CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 CC=$ac_cv_prog_CC
4692 if test -n "$CC"; then
4693   { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701     test -n "$CC" && break
4702   done
4703 fi
4704 if test -z "$CC"; then
4705   ac_ct_CC=$CC
4706   for ac_prog in cl.exe
4707 do
4708   # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   if test -n "$ac_ct_CC"; then
4716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723   for ac_exec_ext in '' $ac_executable_extensions; do
4724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725     ac_cv_prog_ac_ct_CC="$ac_prog"
4726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4738 echo "${ECHO_T}$ac_ct_CC" >&6; }
4739 else
4740   { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 fi
4743
4744
4745   test -n "$ac_ct_CC" && break
4746 done
4747
4748   if test "x$ac_ct_CC" = x; then
4749     CC=""
4750   else
4751     case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet.  If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&5
4756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4757 whose name does not start with the host triplet.  If you think this
4758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761     CC=$ac_ct_CC
4762   fi
4763 fi
4764
4765 fi
4766
4767
4768 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: no acceptable C compiler found in \$PATH
4771 See \`config.log' for more details." >&2;}
4772    { (exit 1); exit 1; }; }
4773
4774 # Provide some information about the compiler.
4775 echo "$as_me:$LINENO: checking for C compiler version" >&5
4776 ac_compiler=`set X $ac_compile; echo $2`
4777 { (ac_try="$ac_compiler --version >&5"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_compiler --version >&5") 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }
4787 { (ac_try="$ac_compiler -v >&5"
4788 case "(($ac_try" in
4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790   *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793   (eval "$ac_compiler -v >&5") 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }
4797 { (ac_try="$ac_compiler -V >&5"
4798 case "(($ac_try" in
4799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800   *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803   (eval "$ac_compiler -V >&5") 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }
4807
4808 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4809 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4810 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819
4820 int
4821 main ()
4822 {
4823 #ifndef __GNUC__
4824        choke me
4825 #endif
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (ac_try="$ac_compile"
4833 case "(($ac_try" in
4834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835   *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838   (eval "$ac_compile") 2>conftest.er1
4839   ac_status=$?
4840   grep -v '^ *+' conftest.er1 >conftest.err
4841   rm -f conftest.er1
4842   cat conftest.err >&5
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } && {
4845          test -z "$ac_c_werror_flag" ||
4846          test ! -s conftest.err
4847        } && test -s conftest.$ac_objext; then
4848   ac_compiler_gnu=yes
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853         ac_compiler_gnu=no
4854 fi
4855
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4858
4859 fi
4860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4862 GCC=`test $ac_compiler_gnu = yes && echo yes`
4863 ac_test_CFLAGS=${CFLAGS+set}
4864 ac_save_CFLAGS=$CFLAGS
4865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_cc_g+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   ac_save_c_werror_flag=$ac_c_werror_flag
4871    ac_c_werror_flag=yes
4872    ac_cv_prog_cc_g=no
4873    CFLAGS="-g"
4874    cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880
4881 int
4882 main ()
4883 {
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4891 case "(($ac_try" in
4892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893   *) ac_try_echo=$ac_try;;
4894 esac
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896   (eval "$ac_compile") 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } && {
4903          test -z "$ac_c_werror_flag" ||
4904          test ! -s conftest.err
4905        } && test -s conftest.$ac_objext; then
4906   ac_cv_prog_cc_g=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911         CFLAGS=""
4912       cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934   (eval "$ac_compile") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest.$ac_objext; then
4944   :
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949         ac_c_werror_flag=$ac_save_c_werror_flag
4950          CFLAGS="-g"
4951          cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957
4958 int
4959 main ()
4960 {
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973   (eval "$ac_compile") 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } && {
4980          test -z "$ac_c_werror_flag" ||
4981          test ! -s conftest.err
4982        } && test -s conftest.$ac_objext; then
4983   ac_cv_prog_cc_g=yes
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988
4989 fi
4990
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998    ac_c_werror_flag=$ac_save_c_werror_flag
4999 fi
5000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5002 if test "$ac_test_CFLAGS" = set; then
5003   CFLAGS=$ac_save_CFLAGS
5004 elif test $ac_cv_prog_cc_g = yes; then
5005   if test "$GCC" = yes; then
5006     CFLAGS="-g -O2"
5007   else
5008     CFLAGS="-g"
5009   fi
5010 else
5011   if test "$GCC" = yes; then
5012     CFLAGS="-O2"
5013   else
5014     CFLAGS=
5015   fi
5016 fi
5017 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5018 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_cc_c89+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   ac_cv_prog_cc_c89=no
5023 ac_save_CC=$CC
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 #include <stdarg.h>
5031 #include <stdio.h>
5032 #include <sys/types.h>
5033 #include <sys/stat.h>
5034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5035 struct buf { int x; };
5036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5037 static char *e (p, i)
5038      char **p;
5039      int i;
5040 {
5041   return p[i];
5042 }
5043 static char *f (char * (*g) (char **, int), char **p, ...)
5044 {
5045   char *s;
5046   va_list v;
5047   va_start (v,p);
5048   s = g (p, va_arg (v,int));
5049   va_end (v);
5050   return s;
5051 }
5052
5053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5054    function prototypes and stuff, but not '\xHH' hex character constants.
5055    These don't provoke an error unfortunately, instead are silently treated
5056    as 'x'.  The following induces an error, until -std is added to get
5057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5058    array size at least.  It's necessary to write '\x00'==0 to get something
5059    that's true only with -std.  */
5060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5061
5062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5063    inside strings and character constants.  */
5064 #define FOO(x) 'x'
5065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5066
5067 int test (int i, double x);
5068 struct s1 {int (*f) (int a);};
5069 struct s2 {int (*f) (double a);};
5070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5071 int argc;
5072 char **argv;
5073 int
5074 main ()
5075 {
5076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5083 do
5084   CC="$ac_save_CC $ac_arg"
5085   rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_compile") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest.$ac_objext; then
5102   ac_cv_prog_cc_c89=$ac_arg
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107
5108 fi
5109
5110 rm -f core conftest.err conftest.$ac_objext
5111   test "x$ac_cv_prog_cc_c89" != "xno" && break
5112 done
5113 rm -f conftest.$ac_ext
5114 CC=$ac_save_CC
5115
5116 fi
5117 # AC_CACHE_VAL
5118 case "x$ac_cv_prog_cc_c89" in
5119   x)
5120     { echo "$as_me:$LINENO: result: none needed" >&5
5121 echo "${ECHO_T}none needed" >&6; } ;;
5122   xno)
5123     { echo "$as_me:$LINENO: result: unsupported" >&5
5124 echo "${ECHO_T}unsupported" >&6; } ;;
5125   *)
5126     CC="$CC $ac_cv_prog_cc_c89"
5127     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5129 esac
5130
5131
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138 depcc="$CC"   am_compiler_list=
5139
5140 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146   # We make a subdir and do the tests there.  Otherwise we can end up
5147   # making bogus files that we don't know about and never remove.  For
5148   # instance it was reported that on HP-UX the gcc test will end up
5149   # making a dummy file named `D' -- because `-MD' means `put the output
5150   # in D'.
5151   mkdir conftest.dir
5152   # Copy depcomp to subdir because otherwise we won't find it if we're
5153   # using a relative directory.
5154   cp "$am_depcomp" conftest.dir
5155   cd conftest.dir
5156   # We will build objects and dependencies in a subdirectory because
5157   # it helps to detect inapplicable dependency modes.  For instance
5158   # both Tru64's cc and ICC support -MD to output dependencies as a
5159   # side effect of compilation, but ICC will put the dependencies in
5160   # the current directory while Tru64 will put them in the object
5161   # directory.
5162   mkdir sub
5163
5164   am_cv_CC_dependencies_compiler_type=none
5165   if test "$am_compiler_list" = ""; then
5166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5167   fi
5168   for depmode in $am_compiler_list; do
5169     # Setup a source with many dependencies, because some compilers
5170     # like to wrap large dependency lists on column 80 (with \), and
5171     # we should not choose a depcomp mode which is confused by this.
5172     #
5173     # We need to recreate these files for each test, as the compiler may
5174     # overwrite some of them when testing with obscure command lines.
5175     # This happens at least with the AIX C compiler.
5176     : > sub/conftest.c
5177     for i in 1 2 3 4 5 6; do
5178       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180       # Solaris 8's {/usr,}/bin/sh.
5181       touch sub/conftst$i.h
5182     done
5183     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5184
5185     case $depmode in
5186     nosideeffect)
5187       # after this tag, mechanisms are not by side-effect, so they'll
5188       # only be used when explicitly requested
5189       if test "x$enable_dependency_tracking" = xyes; then
5190         continue
5191       else
5192         break
5193       fi
5194       ;;
5195     none) break ;;
5196     esac
5197     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198     # mode.  It turns out that the SunPro C++ compiler does not properly
5199     # handle `-M -o', and we need to detect this.
5200     if depmode=$depmode \
5201        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204          >/dev/null 2>conftest.err &&
5205        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5206        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5207        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5208        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5209       # icc doesn't choke on unknown options, it will just issue warnings
5210       # or remarks (even with -Werror).  So we grep stderr for any message
5211       # that says an option was ignored or not supported.
5212       # When given -MP, icc 7.0 and 7.1 complain thusly:
5213       #   icc: Command line warning: ignoring option '-M'; no argument required
5214       # The diagnosis changed in icc 8.0:
5215       #   icc: Command line remark: option '-MP' not supported
5216       if (grep 'ignoring option' conftest.err ||
5217           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5218         am_cv_CC_dependencies_compiler_type=$depmode
5219         break
5220       fi
5221     fi
5222   done
5223
5224   cd ..
5225   rm -rf conftest.dir
5226 else
5227   am_cv_CC_dependencies_compiler_type=none
5228 fi
5229
5230 fi
5231 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5234
5235  if
5236   test "x$enable_dependency_tracking" != xno \
5237   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5238   am__fastdepCC_TRUE=
5239   am__fastdepCC_FALSE='#'
5240 else
5241   am__fastdepCC_TRUE='#'
5242   am__fastdepCC_FALSE=
5243 fi
5244
5245
5246 ac_ext=c
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5255   CPP=
5256 fi
5257 if test -z "$CPP"; then
5258   if test "${ac_cv_prog_CPP+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261       # Double quotes because CPP needs to be expanded
5262     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5263     do
5264       ac_preproc_ok=false
5265 for ac_c_preproc_warn_flag in '' yes
5266 do
5267   # Use a header file that comes with gcc, so configuring glibc
5268   # with a fresh cross-compiler works.
5269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270   # <limits.h> exists even on freestanding compilers.
5271   # On the NeXT, cc -E runs the code through the compiler's parser,
5272   # not just through cpp. "Syntax error" is here to catch this case.
5273   cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 #ifdef __STDC__
5280 # include <limits.h>
5281 #else
5282 # include <assert.h>
5283 #endif
5284                      Syntax error
5285 _ACEOF
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } >/dev/null && {
5299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300          test ! -s conftest.err
5301        }; then
5302   :
5303 else
5304   echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307   # Broken: fails on valid input.
5308 continue
5309 fi
5310
5311 rm -f conftest.err conftest.$ac_ext
5312
5313   # OK, works on sane cases.  Now check whether nonexistent headers
5314   # can be detected and how.
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 #include <ac_nonexistent.h>
5322 _ACEOF
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5330   ac_status=$?
5331   grep -v '^ *+' conftest.er1 >conftest.err
5332   rm -f conftest.er1
5333   cat conftest.err >&5
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); } >/dev/null && {
5336          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337          test ! -s conftest.err
5338        }; then
5339   # Broken: success on invalid input.
5340 continue
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345   # Passes both tests.
5346 ac_preproc_ok=:
5347 break
5348 fi
5349
5350 rm -f conftest.err conftest.$ac_ext
5351
5352 done
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5356   break
5357 fi
5358
5359     done
5360     ac_cv_prog_CPP=$CPP
5361
5362 fi
5363   CPP=$ac_cv_prog_CPP
5364 else
5365   ac_cv_prog_CPP=$CPP
5366 fi
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5369 ac_preproc_ok=false
5370 for ac_c_preproc_warn_flag in '' yes
5371 do
5372   # Use a header file that comes with gcc, so configuring glibc
5373   # with a fresh cross-compiler works.
5374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375   # <limits.h> exists even on freestanding compilers.
5376   # On the NeXT, cc -E runs the code through the compiler's parser,
5377   # not just through cpp. "Syntax error" is here to catch this case.
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 #ifdef __STDC__
5385 # include <limits.h>
5386 #else
5387 # include <assert.h>
5388 #endif
5389                      Syntax error
5390 _ACEOF
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5392 case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } >/dev/null && {
5404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405          test ! -s conftest.err
5406        }; then
5407   :
5408 else
5409   echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412   # Broken: fails on valid input.
5413 continue
5414 fi
5415
5416 rm -f conftest.err conftest.$ac_ext
5417
5418   # OK, works on sane cases.  Now check whether nonexistent headers
5419   # can be detected and how.
5420   cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 #include <ac_nonexistent.h>
5427 _ACEOF
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } >/dev/null && {
5441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442          test ! -s conftest.err
5443        }; then
5444   # Broken: success on invalid input.
5445 continue
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450   # Passes both tests.
5451 ac_preproc_ok=:
5452 break
5453 fi
5454
5455 rm -f conftest.err conftest.$ac_ext
5456
5457 done
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5461   :
5462 else
5463   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467    { (exit 1); exit 1; }; }
5468 fi
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476 # Find a good install program.  We prefer a C program (faster),
5477 # so one script is as good as another.  But avoid the broken or
5478 # incompatible versions:
5479 # SysV /etc/install, /usr/sbin/install
5480 # SunOS /usr/etc/install
5481 # IRIX /sbin/install
5482 # AIX /bin/install
5483 # AmigaOS /C/install, which installs bootblocks on floppy discs
5484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5487 # OS/2's system install, which has a completely different semantic
5488 # ./install, which can be erroneously created by make from ./install.sh.
5489 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5491 if test -z "$INSTALL"; then
5492 if test "${ac_cv_path_install+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500   # Account for people who put trailing slashes in PATH elements.
5501 case $as_dir/ in
5502   ./ | .// | /cC/* | \
5503   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5504   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5505   /usr/ucb/* ) ;;
5506   *)
5507     # OSF1 and SCO ODT 3.0 have their own names for install.
5508     # Don't use installbsd from OSF since it installs stuff as root
5509     # by default.
5510     for ac_prog in ginstall scoinst install; do
5511       for ac_exec_ext in '' $ac_executable_extensions; do
5512         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5513           if test $ac_prog = install &&
5514             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5515             # AIX install.  It has an incompatible calling convention.
5516             :
5517           elif test $ac_prog = install &&
5518             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5519             # program-specific install script used by HP pwplus--don't use.
5520             :
5521           else
5522             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5523             break 3
5524           fi
5525         fi
5526       done
5527     done
5528     ;;
5529 esac
5530 done
5531 IFS=$as_save_IFS
5532
5533
5534 fi
5535   if test "${ac_cv_path_install+set}" = set; then
5536     INSTALL=$ac_cv_path_install
5537   else
5538     # As a last resort, use the slow shell script.  Don't cache a
5539     # value for INSTALL within a source directory, because that will
5540     # break other packages using the cache if that directory is
5541     # removed, or if the value is a relative name.
5542     INSTALL=$ac_install_sh
5543   fi
5544 fi
5545 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5546 echo "${ECHO_T}$INSTALL" >&6; }
5547
5548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5549 # It thinks the first close brace ends the variable substitution.
5550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5551
5552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5553
5554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5555
5556 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5557 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5558 LN_S=$as_ln_s
5559 if test "$LN_S" = "ln -s"; then
5560   { echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6; }
5562 else
5563   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5564 echo "${ECHO_T}no, using $LN_S" >&6; }
5565 fi
5566
5567 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5569 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.make <<\_ACEOF
5574 SHELL = /bin/sh
5575 all:
5576         @echo '@@@%%%=$(MAKE)=@@@%%%'
5577 _ACEOF
5578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5580   *@@@%%%=?*=@@@%%%*)
5581     eval ac_cv_prog_make_${ac_make}_set=yes;;
5582   *)
5583     eval ac_cv_prog_make_${ac_make}_set=no;;
5584 esac
5585 rm -f conftest.make
5586 fi
5587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5588   { echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6; }
5590   SET_MAKE=
5591 else
5592   { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5594   SET_MAKE="MAKE=${MAKE-make}"
5595 fi
5596
5597 # Check whether --enable-shared was given.
5598 if test "${enable_shared+set}" = set; then
5599   enableval=$enable_shared; p=${PACKAGE-default}
5600     case $enableval in
5601     yes) enable_shared=yes ;;
5602     no) enable_shared=no ;;
5603     *)
5604       enable_shared=no
5605       # Look at the argument we got.  We use all the common list separators.
5606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607       for pkg in $enableval; do
5608         IFS="$lt_save_ifs"
5609         if test "X$pkg" = "X$p"; then
5610           enable_shared=yes
5611         fi
5612       done
5613       IFS="$lt_save_ifs"
5614       ;;
5615     esac
5616 else
5617   enable_shared=yes
5618 fi
5619
5620
5621 # Check whether --enable-static was given.
5622 if test "${enable_static+set}" = set; then
5623   enableval=$enable_static; p=${PACKAGE-default}
5624     case $enableval in
5625     yes) enable_static=yes ;;
5626     no) enable_static=no ;;
5627     *)
5628      enable_static=no
5629       # Look at the argument we got.  We use all the common list separators.
5630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5631       for pkg in $enableval; do
5632         IFS="$lt_save_ifs"
5633         if test "X$pkg" = "X$p"; then
5634           enable_static=yes
5635         fi
5636       done
5637       IFS="$lt_save_ifs"
5638       ;;
5639     esac
5640 else
5641   enable_static=yes
5642 fi
5643
5644
5645 # Check whether --enable-fast-install was given.
5646 if test "${enable_fast_install+set}" = set; then
5647   enableval=$enable_fast_install; p=${PACKAGE-default}
5648     case $enableval in
5649     yes) enable_fast_install=yes ;;
5650     no) enable_fast_install=no ;;
5651     *)
5652       enable_fast_install=no
5653       # Look at the argument we got.  We use all the common list separators.
5654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5655       for pkg in $enableval; do
5656         IFS="$lt_save_ifs"
5657         if test "X$pkg" = "X$p"; then
5658           enable_fast_install=yes
5659         fi
5660       done
5661       IFS="$lt_save_ifs"
5662       ;;
5663     esac
5664 else
5665   enable_fast_install=yes
5666 fi
5667
5668
5669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_SED+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   # Loop through the user's path and test for sed and gsed.
5675 # Then use that list of sed's as ones to test for truncation.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for lt_ac_prog in sed gsed; do
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5684         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5685       fi
5686     done
5687   done
5688 done
5689 lt_ac_max=0
5690 lt_ac_count=0
5691 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5692 # along with /bin/sed that truncates output.
5693 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5694   test ! -f $lt_ac_sed && continue
5695   cat /dev/null > conftest.in
5696   lt_ac_count=0
5697   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5698   # Check for GNU sed and select it if it is found.
5699   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5700     lt_cv_path_SED=$lt_ac_sed
5701     break
5702   fi
5703   while true; do
5704     cat conftest.in conftest.in >conftest.tmp
5705     mv conftest.tmp conftest.in
5706     cp conftest.in conftest.nl
5707     echo >>conftest.nl
5708     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5709     cmp -s conftest.out conftest.nl || break
5710     # 10000 chars as input seems more than enough
5711     test $lt_ac_count -gt 10 && break
5712     lt_ac_count=`expr $lt_ac_count + 1`
5713     if test $lt_ac_count -gt $lt_ac_max; then
5714       lt_ac_max=$lt_ac_count
5715       lt_cv_path_SED=$lt_ac_sed
5716     fi
5717   done
5718 done
5719
5720 fi
5721
5722 SED=$lt_cv_path_SED
5723 { echo "$as_me:$LINENO: result: $SED" >&5
5724 echo "${ECHO_T}$SED" >&6; }
5725
5726 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5727 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_GREP+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   # Extract the first word of "grep ggrep" to use in msg output
5732 if test -z "$GREP"; then
5733 set dummy grep ggrep; ac_prog_name=$2
5734 if test "${ac_cv_path_GREP+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744   for ac_prog in grep ggrep; do
5745   for ac_exec_ext in '' $ac_executable_extensions; do
5746     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5748     # Check for GNU ac_path_GREP and select it if it is found.
5749   # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5751 *GNU*)
5752   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5753 *)
5754   ac_count=0
5755   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5756   while :
5757   do
5758     cat "conftest.in" "conftest.in" >"conftest.tmp"
5759     mv "conftest.tmp" "conftest.in"
5760     cp "conftest.in" "conftest.nl"
5761     echo 'GREP' >> "conftest.nl"
5762     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764     ac_count=`expr $ac_count + 1`
5765     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766       # Best one so far, save it but keep looking for a better one
5767       ac_cv_path_GREP="$ac_path_GREP"
5768       ac_path_GREP_max=$ac_count
5769     fi
5770     # 10*(2^10) chars as input seems more than enough
5771     test $ac_count -gt 10 && break
5772   done
5773   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5775
5776
5777     $ac_path_GREP_found && break 3
5778   done
5779 done
5780
5781 done
5782 IFS=$as_save_IFS
5783
5784
5785 fi
5786
5787 GREP="$ac_cv_path_GREP"
5788 if test -z "$GREP"; then
5789   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5791    { (exit 1); exit 1; }; }
5792 fi
5793
5794 else
5795   ac_cv_path_GREP=$GREP
5796 fi
5797
5798
5799 fi
5800 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5801 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5802  GREP="$ac_cv_path_GREP"
5803
5804
5805 { echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_EGREP+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5811    then ac_cv_path_EGREP="$GREP -E"
5812    else
5813      # Extract the first word of "egrep" to use in msg output
5814 if test -z "$EGREP"; then
5815 set dummy egrep; ac_prog_name=$2
5816 if test "${ac_cv_path_EGREP+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   ac_path_EGREP_found=false
5820 # Loop through the user's path and test for each of PROGNAME-LIST
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_prog in egrep; do
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5829     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5830     # Check for GNU ac_path_EGREP and select it if it is found.
5831   # Check for GNU $ac_path_EGREP
5832 case `"$ac_path_EGREP" --version 2>&1` in
5833 *GNU*)
5834   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5835 *)
5836   ac_count=0
5837   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5838   while :
5839   do
5840     cat "conftest.in" "conftest.in" >"conftest.tmp"
5841     mv "conftest.tmp" "conftest.in"
5842     cp "conftest.in" "conftest.nl"
5843     echo 'EGREP' >> "conftest.nl"
5844     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5846     ac_count=`expr $ac_count + 1`
5847     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5848       # Best one so far, save it but keep looking for a better one
5849       ac_cv_path_EGREP="$ac_path_EGREP"
5850       ac_path_EGREP_max=$ac_count
5851     fi
5852     # 10*(2^10) chars as input seems more than enough
5853     test $ac_count -gt 10 && break
5854   done
5855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5856 esac
5857
5858
5859     $ac_path_EGREP_found && break 3
5860   done
5861 done
5862
5863 done
5864 IFS=$as_save_IFS
5865
5866
5867 fi
5868
5869 EGREP="$ac_cv_path_EGREP"
5870 if test -z "$EGREP"; then
5871   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5873    { (exit 1); exit 1; }; }
5874 fi
5875
5876 else
5877   ac_cv_path_EGREP=$EGREP
5878 fi
5879
5880
5881    fi
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5884 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5885  EGREP="$ac_cv_path_EGREP"
5886
5887
5888
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then
5891   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5892 else
5893   with_gnu_ld=no
5894 fi
5895
5896 ac_prog=ld
5897 if test "$GCC" = yes; then
5898   # Check if gcc -print-prog-name=ld gives a path.
5899   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5900 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5901   case $host in
5902   *-*-mingw*)
5903     # gcc leaves a trailing carriage return which upsets mingw
5904     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5905   *)
5906     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5907   esac
5908   case $ac_prog in
5909     # Accept absolute paths.
5910     [\\/]* | ?:[\\/]*)
5911       re_direlt='/[^/][^/]*/\.\./'
5912       # Canonicalize the pathname of ld
5913       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5914       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5915         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5916       done
5917       test -z "$LD" && LD="$ac_prog"
5918       ;;
5919   "")
5920     # If it fails, then pretend we aren't using GCC.
5921     ac_prog=ld
5922     ;;
5923   *)
5924     # If it is relative, then search for the first ld in PATH.
5925     with_gnu_ld=unknown
5926     ;;
5927   esac
5928 elif test "$with_gnu_ld" = yes; then
5929   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5930 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5931 else
5932   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5933 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5934 fi
5935 if test "${lt_cv_path_LD+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -z "$LD"; then
5939   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940   for ac_dir in $PATH; do
5941     IFS="$lt_save_ifs"
5942     test -z "$ac_dir" && ac_dir=.
5943     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944       lt_cv_path_LD="$ac_dir/$ac_prog"
5945       # Check to see if the program is GNU ld.  I'd rather use --version,
5946       # but apparently some variants of GNU ld only accept -v.
5947       # Break only if it was the GNU/non-GNU ld that we prefer.
5948       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949       *GNU* | *'with BFD'*)
5950         test "$with_gnu_ld" != no && break
5951         ;;
5952       *)
5953         test "$with_gnu_ld" != yes && break
5954         ;;
5955       esac
5956     fi
5957   done
5958   IFS="$lt_save_ifs"
5959 else
5960   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5961 fi
5962 fi
5963
5964 LD="$lt_cv_path_LD"
5965 if test -n "$LD"; then
5966   { echo "$as_me:$LINENO: result: $LD" >&5
5967 echo "${ECHO_T}$LD" >&6; }
5968 else
5969   { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5971 fi
5972 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5973 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5974    { (exit 1); exit 1; }; }
5975 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5976 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5977 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5981 case `$LD -v 2>&1 </dev/null` in
5982 *GNU* | *'with BFD'*)
5983   lt_cv_prog_gnu_ld=yes
5984   ;;
5985 *)
5986   lt_cv_prog_gnu_ld=no
5987   ;;
5988 esac
5989 fi
5990 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5991 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5992 with_gnu_ld=$lt_cv_prog_gnu_ld
5993
5994
5995 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5996 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   lt_cv_ld_reload_flag='-r'
6001 fi
6002 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6003 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6006 "" | " "*) ;;
6007 *) reload_flag=" $reload_flag" ;;
6008 esac
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010 case $host_os in
6011   darwin*)
6012     if test "$GCC" = yes; then
6013       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6014     else
6015       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016     fi
6017     ;;
6018 esac
6019
6020 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6021 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if test -n "$NM"; then
6026   # Let the user override the test.
6027   lt_cv_path_NM="$NM"
6028 else
6029   lt_nm_to_check="${ac_tool_prefix}nm"
6030   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6031     lt_nm_to_check="$lt_nm_to_check nm"
6032   fi
6033   for lt_tmp_nm in $lt_nm_to_check; do
6034     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6036       IFS="$lt_save_ifs"
6037       test -z "$ac_dir" && ac_dir=.
6038       tmp_nm="$ac_dir/$lt_tmp_nm"
6039       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040         # Check to see if the nm accepts a BSD-compat flag.
6041         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042         #   nm: unknown option "B" ignored
6043         # Tru64's nm complains that /dev/null is an invalid object file
6044         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045         */dev/null* | *'Invalid file or object type'*)
6046           lt_cv_path_NM="$tmp_nm -B"
6047           break
6048           ;;
6049         *)
6050           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6051           */dev/null*)
6052             lt_cv_path_NM="$tmp_nm -p"
6053             break
6054             ;;
6055           *)
6056             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057             continue # so that we can try to find one that supports BSD flags
6058             ;;
6059           esac
6060           ;;
6061         esac
6062       fi
6063     done
6064     IFS="$lt_save_ifs"
6065   done
6066   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6067 fi
6068 fi
6069 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6070 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6071 NM="$lt_cv_path_NM"
6072
6073 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6074 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6075 if test "${lt_cv_deplibs_check_method+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   lt_cv_file_magic_cmd='$MAGIC_CMD'
6079 lt_cv_file_magic_test_file=
6080 lt_cv_deplibs_check_method='unknown'
6081 # Need to set the preceding variable on all platforms that support
6082 # interlibrary dependencies.
6083 # 'none' -- dependencies not supported.
6084 # `unknown' -- same as none, but documents that we really don't know.
6085 # 'pass_all' -- all dependencies passed with no checks.
6086 # 'test_compile' -- check by making test program.
6087 # 'file_magic [[regex]]' -- check by looking for files in library path
6088 # which responds to the $file_magic_cmd with a given extended regex.
6089 # If you have `file' or equivalent on your system and you're not sure
6090 # whether `pass_all' will *always* work, you probably want this one.
6091
6092 case $host_os in
6093 aix4* | aix5*)
6094   lt_cv_deplibs_check_method=pass_all
6095   ;;
6096
6097 beos*)
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 bsdi[45]*)
6102   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6103   lt_cv_file_magic_cmd='/usr/bin/file -L'
6104   lt_cv_file_magic_test_file=/shlib/libc.so
6105   ;;
6106
6107 cygwin*)
6108   # func_win32_libid is a shell function defined in ltmain.sh
6109   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6110   lt_cv_file_magic_cmd='func_win32_libid'
6111   ;;
6112
6113 mingw* | pw32*)
6114   # Base MSYS/MinGW do not provide the 'file' command needed by
6115   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6116   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6117   lt_cv_file_magic_cmd='$OBJDUMP -f'
6118   ;;
6119
6120 darwin* | rhapsody*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 freebsd* | dragonfly*)
6125   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6126     case $host_cpu in
6127     i*86 )
6128       # Not sure whether the presence of OpenBSD here was a mistake.
6129       # Let's accept both of them until this is cleared up.
6130       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131       lt_cv_file_magic_cmd=/usr/bin/file
6132       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6133       ;;
6134     esac
6135   else
6136     lt_cv_deplibs_check_method=pass_all
6137   fi
6138   ;;
6139
6140 gnu*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143
6144 hpux10.20* | hpux11*)
6145   lt_cv_file_magic_cmd=/usr/bin/file
6146   case $host_cpu in
6147   ia64*)
6148     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6150     ;;
6151   hppa*64*)
6152     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]'
6153     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6154     ;;
6155   *)
6156     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6157     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158     ;;
6159   esac
6160   ;;
6161
6162 interix3*)
6163   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6165   ;;
6166
6167 irix5* | irix6* | nonstopux*)
6168   case $LD in
6169   *-32|*"-32 ") libmagic=32-bit;;
6170   *-n32|*"-n32 ") libmagic=N32;;
6171   *-64|*"-64 ") libmagic=64-bit;;
6172   *) libmagic=never-match;;
6173   esac
6174   lt_cv_deplibs_check_method=pass_all
6175   ;;
6176
6177 # This must be Linux ELF.
6178 linux* | k*bsd*-gnu)
6179   lt_cv_deplibs_check_method=pass_all
6180   ;;
6181
6182 netbsd* | netbsdelf*-gnu)
6183   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6185   else
6186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6187   fi
6188   ;;
6189
6190 newos6*)
6191   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192   lt_cv_file_magic_cmd=/usr/bin/file
6193   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6194   ;;
6195
6196 nto-qnx*)
6197   lt_cv_deplibs_check_method=unknown
6198   ;;
6199
6200 openbsd*)
6201   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6202     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6203   else
6204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205   fi
6206   ;;
6207
6208 osf3* | osf4* | osf5*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 solaris*)
6213   lt_cv_deplibs_check_method=pass_all
6214   ;;
6215
6216 sysv4 | sysv4.3*)
6217   case $host_vendor in
6218   motorola)
6219     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]'
6220     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6221     ;;
6222   ncr)
6223     lt_cv_deplibs_check_method=pass_all
6224     ;;
6225   sequent)
6226     lt_cv_file_magic_cmd='/bin/file'
6227     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6228     ;;
6229   sni)
6230     lt_cv_file_magic_cmd='/bin/file'
6231     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6232     lt_cv_file_magic_test_file=/lib/libc.so
6233     ;;
6234   siemens)
6235     lt_cv_deplibs_check_method=pass_all
6236     ;;
6237   pc)
6238     lt_cv_deplibs_check_method=pass_all
6239     ;;
6240   esac
6241   ;;
6242
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246 esac
6247
6248 fi
6249 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6250 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6251 file_magic_cmd=$lt_cv_file_magic_cmd
6252 deplibs_check_method=$lt_cv_deplibs_check_method
6253 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6254
6255
6256
6257
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6260
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6266
6267 # Check whether --enable-libtool-lock was given.
6268 if test "${enable_libtool_lock+set}" = set; then
6269   enableval=$enable_libtool_lock;
6270 fi
6271
6272 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6273
6274 # Some flags need to be propagated to the compiler or linker for good
6275 # libtool support.
6276 case $host in
6277 ia64-*-hpux*)
6278   # Find out which ABI we are using.
6279   echo 'int i;' > conftest.$ac_ext
6280   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; then
6285     case `/usr/bin/file conftest.$ac_objext` in
6286     *ELF-32*)
6287       HPUX_IA64_MODE="32"
6288       ;;
6289     *ELF-64*)
6290       HPUX_IA64_MODE="64"
6291       ;;
6292     esac
6293   fi
6294   rm -rf conftest*
6295   ;;
6296 *-*-irix6*)
6297   # Find out which ABI we are using.
6298   echo '#line 6298 "configure"' > conftest.$ac_ext
6299   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300   (eval $ac_compile) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; then
6304    if test "$lt_cv_prog_gnu_ld" = yes; then
6305     case `/usr/bin/file conftest.$ac_objext` in
6306     *32-bit*)
6307       LD="${LD-ld} -melf32bsmip"
6308       ;;
6309     *N32*)
6310       LD="${LD-ld} -melf32bmipn32"
6311       ;;
6312     *64-bit*)
6313       LD="${LD-ld} -melf64bmip"
6314       ;;
6315     esac
6316    else
6317     case `/usr/bin/file conftest.$ac_objext` in
6318     *32-bit*)
6319       LD="${LD-ld} -32"
6320       ;;
6321     *N32*)
6322       LD="${LD-ld} -n32"
6323       ;;
6324     *64-bit*)
6325       LD="${LD-ld} -64"
6326       ;;
6327     esac
6328    fi
6329   fi
6330   rm -rf conftest*
6331   ;;
6332
6333 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6334   # Find out which ABI we are using.
6335   echo 'int i;' > conftest.$ac_ext
6336   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337   (eval $ac_compile) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; then
6341     case `/usr/bin/file conftest.o` in
6342     *32-bit*)
6343       case $host in
6344         x86_64-*linux*)
6345           LD="${LD-ld} -m elf_i386"
6346           ;;
6347         ppc64-*linux*|powerpc64-*linux*)
6348           LD="${LD-ld} -m elf32ppclinux"
6349           ;;
6350         s390x-*linux*)
6351           LD="${LD-ld} -m elf_s390"
6352           ;;
6353         sparc64-*linux*)
6354           LD="${LD-ld} -m elf32_sparc"
6355           ;;
6356       esac
6357       ;;
6358     *64-bit*)
6359       case $host in
6360         x86_64-*linux*)
6361           LD="${LD-ld} -m elf_x86_64"
6362           ;;
6363         ppc*-*linux*|powerpc*-*linux*)
6364           LD="${LD-ld} -m elf64ppc"
6365           ;;
6366         s390*-*linux*)
6367           LD="${LD-ld} -m elf64_s390"
6368           ;;
6369         sparc*-*linux*)
6370           LD="${LD-ld} -m elf64_sparc"
6371           ;;
6372       esac
6373       ;;
6374     esac
6375   fi
6376   rm -rf conftest*
6377   ;;
6378
6379 *-*-sco3.2v5*)
6380   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6381   SAVE_CFLAGS="$CFLAGS"
6382   CFLAGS="$CFLAGS -belf"
6383   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6385 if test "${lt_cv_cc_needs_belf+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394      cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400
6401 int
6402 main ()
6403 {
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6411 case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_link") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && {
6423          test -z "$ac_c_werror_flag" ||
6424          test ! -s conftest.err
6425        } && test -s conftest$ac_exeext &&
6426        $as_test_x conftest$ac_exeext; then
6427   lt_cv_cc_needs_belf=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432         lt_cv_cc_needs_belf=no
6433 fi
6434
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436       conftest$ac_exeext conftest.$ac_ext
6437      ac_ext=c
6438 ac_cpp='$CPP $CPPFLAGS'
6439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6442
6443 fi
6444 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6445 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6446   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6447     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6448     CFLAGS="$SAVE_CFLAGS"
6449   fi
6450   ;;
6451 sparc*-*solaris*)
6452   # Find out which ABI we are using.
6453   echo 'int i;' > conftest.$ac_ext
6454   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455   (eval $ac_compile) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; then
6459     case `/usr/bin/file conftest.o` in
6460     *64-bit*)
6461       case $lt_cv_prog_gnu_ld in
6462       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6463       *)    LD="${LD-ld} -64" ;;
6464       esac
6465       ;;
6466     esac
6467   fi
6468   rm -rf conftest*
6469   ;;
6470
6471
6472 esac
6473
6474 need_locks="$enable_libtool_lock"
6475
6476
6477
6478 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6480 if test "${ac_cv_header_stdc+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #include <stdlib.h>
6490 #include <stdarg.h>
6491 #include <string.h>
6492 #include <float.h>
6493
6494 int
6495 main ()
6496 {
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6504 case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509   (eval "$ac_compile") 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } && {
6516          test -z "$ac_c_werror_flag" ||
6517          test ! -s conftest.err
6518        } && test -s conftest.$ac_objext; then
6519   ac_cv_header_stdc=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524         ac_cv_header_stdc=no
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529 if test $ac_cv_header_stdc = yes; then
6530   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6531   cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537 #include <string.h>
6538
6539 _ACEOF
6540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541   $EGREP "memchr" >/dev/null 2>&1; then
6542   :
6543 else
6544   ac_cv_header_stdc=no
6545 fi
6546 rm -f conftest*
6547
6548 fi
6549
6550 if test $ac_cv_header_stdc = yes; then
6551   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6552   cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <stdlib.h>
6559
6560 _ACEOF
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562   $EGREP "free" >/dev/null 2>&1; then
6563   :
6564 else
6565   ac_cv_header_stdc=no
6566 fi
6567 rm -f conftest*
6568
6569 fi
6570
6571 if test $ac_cv_header_stdc = yes; then
6572   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6573   if test "$cross_compiling" = yes; then
6574   :
6575 else
6576   cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <ctype.h>
6583 #include <stdlib.h>
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6587 #else
6588 # define ISLOWER(c) \
6589                    (('a' <= (c) && (c) <= 'i') \
6590                      || ('j' <= (c) && (c) <= 'r') \
6591                      || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6593 #endif
6594
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6596 int
6597 main ()
6598 {
6599   int i;
6600   for (i = 0; i < 256; i++)
6601     if (XOR (islower (i), ISLOWER (i))
6602         || toupper (i) != TOUPPER (i))
6603       return 2;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611   *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614   (eval "$ac_link") 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6618   { (case "(($ac_try" in
6619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620   *) ac_try_echo=$ac_try;;
6621 esac
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623   (eval "$ac_try") 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   :
6628 else
6629   echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ( exit $ac_status )
6634 ac_cv_header_stdc=no
6635 fi
6636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6637 fi
6638
6639
6640 fi
6641 fi
6642 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6643 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6644 if test $ac_cv_header_stdc = yes; then
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define STDC_HEADERS 1
6648 _ACEOF
6649
6650 fi
6651
6652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6663                   inttypes.h stdint.h unistd.h
6664 do
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 $ac_includes_default
6678
6679 #include <$ac_header>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_compile") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && {
6695          test -z "$ac_c_werror_flag" ||
6696          test ! -s conftest.err
6697        } && test -s conftest.$ac_objext; then
6698   eval "$as_ac_Header=yes"
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703         eval "$as_ac_Header=no"
6704 fi
6705
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709                { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712   cat >>confdefs.h <<_ACEOF
6713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714 _ACEOF
6715
6716 fi
6717
6718 done
6719
6720
6721
6722 for ac_header in dlfcn.h
6723 do
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6726   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 fi
6731 ac_res=`eval echo '${'$as_ac_Header'}'`
6732                { echo "$as_me:$LINENO: result: $ac_res" >&5
6733 echo "${ECHO_T}$ac_res" >&6; }
6734 else
6735   # Is the header compilable?
6736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 $ac_includes_default
6745 #include <$ac_header>
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6749 case "(($ac_try" in
6750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751   *) ac_try_echo=$ac_try;;
6752 esac
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754   (eval "$ac_compile") 2>conftest.er1
6755   ac_status=$?
6756   grep -v '^ *+' conftest.er1 >conftest.err
6757   rm -f conftest.er1
6758   cat conftest.err >&5
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } && {
6761          test -z "$ac_c_werror_flag" ||
6762          test ! -s conftest.err
6763        } && test -s conftest.$ac_objext; then
6764   ac_header_compiler=yes
6765 else
6766   echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769         ac_header_compiler=no
6770 fi
6771
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6774 echo "${ECHO_T}$ac_header_compiler" >&6; }
6775
6776 # Is the header present?
6777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 #include <$ac_header>
6786 _ACEOF
6787 if { (ac_try="$ac_cpp conftest.$ac_ext"
6788 case "(($ac_try" in
6789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790   *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6794   ac_status=$?
6795   grep -v '^ *+' conftest.er1 >conftest.err
6796   rm -f conftest.er1
6797   cat conftest.err >&5
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } >/dev/null && {
6800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6801          test ! -s conftest.err
6802        }; then
6803   ac_header_preproc=yes
6804 else
6805   echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808   ac_header_preproc=no
6809 fi
6810
6811 rm -f conftest.err conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6813 echo "${ECHO_T}$ac_header_preproc" >&6; }
6814
6815 # So?  What about this header?
6816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6817   yes:no: )
6818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6822     ac_header_preproc=yes
6823     ;;
6824   no:yes:* )
6825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6837     ( cat <<\_ASBOX
6838 ## ------------------------------- ##
6839 ## Report this to nfs@lists.sf.net ##
6840 ## ------------------------------- ##
6841 _ASBOX
6842      ) | sed "s/^/$as_me: WARNING:     /" >&2
6843     ;;
6844 esac
6845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   eval "$as_ac_Header=\$ac_header_preproc"
6851 fi
6852 ac_res=`eval echo '${'$as_ac_Header'}'`
6853                { echo "$as_me:$LINENO: result: $ac_res" >&5
6854 echo "${ECHO_T}$ac_res" >&6; }
6855
6856 fi
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858   cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 fi
6863
6864 done
6865
6866
6867
6868 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6869     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6870     (test "X$CXX" != "Xg++"))) ; then
6871   ac_ext=cpp
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6878 if test -z "$CXXCPP"; then
6879   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882       # Double quotes because CXXCPP needs to be expanded
6883     for CXXCPP in "$CXX -E" "/lib/cpp"
6884     do
6885       ac_preproc_ok=false
6886 for ac_cxx_preproc_warn_flag in '' yes
6887 do
6888   # Use a header file that comes with gcc, so configuring glibc
6889   # with a fresh cross-compiler works.
6890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891   # <limits.h> exists even on freestanding compilers.
6892   # On the NeXT, cc -E runs the code through the compiler's parser,
6893   # not just through cpp. "Syntax error" is here to catch this case.
6894   cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900 #ifdef __STDC__
6901 # include <limits.h>
6902 #else
6903 # include <assert.h>
6904 #endif
6905                      Syntax error
6906 _ACEOF
6907 if { (ac_try="$ac_cpp conftest.$ac_ext"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } >/dev/null && {
6920          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6921          test ! -s conftest.err
6922        }; then
6923   :
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928   # Broken: fails on valid input.
6929 continue
6930 fi
6931
6932 rm -f conftest.err conftest.$ac_ext
6933
6934   # OK, works on sane cases.  Now check whether nonexistent headers
6935   # can be detected and how.
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #include <ac_nonexistent.h>
6943 _ACEOF
6944 if { (ac_try="$ac_cpp conftest.$ac_ext"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } >/dev/null && {
6957          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6958          test ! -s conftest.err
6959        }; then
6960   # Broken: success on invalid input.
6961 continue
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966   # Passes both tests.
6967 ac_preproc_ok=:
6968 break
6969 fi
6970
6971 rm -f conftest.err conftest.$ac_ext
6972
6973 done
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6977   break
6978 fi
6979
6980     done
6981     ac_cv_prog_CXXCPP=$CXXCPP
6982
6983 fi
6984   CXXCPP=$ac_cv_prog_CXXCPP
6985 else
6986   ac_cv_prog_CXXCPP=$CXXCPP
6987 fi
6988 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6; }
6990 ac_preproc_ok=false
6991 for ac_cxx_preproc_warn_flag in '' yes
6992 do
6993   # Use a header file that comes with gcc, so configuring glibc
6994   # with a fresh cross-compiler works.
6995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996   # <limits.h> exists even on freestanding compilers.
6997   # On the NeXT, cc -E runs the code through the compiler's parser,
6998   # not just through cpp. "Syntax error" is here to catch this case.
6999   cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #ifdef __STDC__
7006 # include <limits.h>
7007 #else
7008 # include <assert.h>
7009 #endif
7010                      Syntax error
7011 _ACEOF
7012 if { (ac_try="$ac_cpp conftest.$ac_ext"
7013 case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } >/dev/null && {
7025          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7026          test ! -s conftest.err
7027        }; then
7028   :
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033   # Broken: fails on valid input.
7034 continue
7035 fi
7036
7037 rm -f conftest.err conftest.$ac_ext
7038
7039   # OK, works on sane cases.  Now check whether nonexistent headers
7040   # can be detected and how.
7041   cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 #include <ac_nonexistent.h>
7048 _ACEOF
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7050 case "(($ac_try" in
7051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052   *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } >/dev/null && {
7062          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7063          test ! -s conftest.err
7064        }; then
7065   # Broken: success on invalid input.
7066 continue
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071   # Passes both tests.
7072 ac_preproc_ok=:
7073 break
7074 fi
7075
7076 rm -f conftest.err conftest.$ac_ext
7077
7078 done
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7082   :
7083 else
7084   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088    { (exit 1); exit 1; }; }
7089 fi
7090
7091 ac_ext=cpp
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096
7097 fi
7098
7099
7100 ac_ext=f
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105   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
7106   do
7107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$F77"; then
7115   ac_cv_prog_F77="$F77" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 F77=$ac_cv_prog_F77
7135 if test -n "$F77"; then
7136   { echo "$as_me:$LINENO: result: $F77" >&5
7137 echo "${ECHO_T}$F77" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144     test -n "$F77" && break
7145   done
7146 fi
7147 if test -z "$F77"; then
7148   ac_ct_F77=$F77
7149   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
7150 do
7151   # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   if test -n "$ac_ct_F77"; then
7159   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_prog_ac_ct_F77="$ac_prog"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7179 if test -n "$ac_ct_F77"; then
7180   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7181 echo "${ECHO_T}$ac_ct_F77" >&6; }
7182 else
7183   { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7186
7187
7188   test -n "$ac_ct_F77" && break
7189 done
7190
7191   if test "x$ac_ct_F77" = x; then
7192     F77=""
7193   else
7194     case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet.  If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet.  If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204     F77=$ac_ct_F77
7205   fi
7206 fi
7207
7208
7209 # Provide some information about the compiler.
7210 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7211 ac_compiler=`set X $ac_compile; echo $2`
7212 { (ac_try="$ac_compiler --version >&5"
7213 case "(($ac_try" in
7214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215   *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218   (eval "$ac_compiler --version >&5") 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }
7222 { (ac_try="$ac_compiler -v >&5"
7223 case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228   (eval "$ac_compiler -v >&5") 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }
7232 { (ac_try="$ac_compiler -V >&5"
7233 case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238   (eval "$ac_compiler -V >&5") 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }
7242 rm -f a.out
7243
7244 # If we don't use `.F' as extension, the preprocessor is not run on the
7245 # input file.  (Note that this only needs to work for GNU compilers.)
7246 ac_save_ext=$ac_ext
7247 ac_ext=F
7248 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7249 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7250 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   cat >conftest.$ac_ext <<_ACEOF
7254       program main
7255 #ifndef __GNUC__
7256        choke me
7257 #endif
7258
7259       end
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265   *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268   (eval "$ac_compile") 2>conftest.er1
7269   ac_status=$?
7270   grep -v '^ *+' conftest.er1 >conftest.err
7271   rm -f conftest.er1
7272   cat conftest.err >&5
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); } && {
7275          test -z "$ac_f77_werror_flag" ||
7276          test ! -s conftest.err
7277        } && test -s conftest.$ac_objext; then
7278   ac_compiler_gnu=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283         ac_compiler_gnu=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7288
7289 fi
7290 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7291 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7292 ac_ext=$ac_save_ext
7293 ac_test_FFLAGS=${FFLAGS+set}
7294 ac_save_FFLAGS=$FFLAGS
7295 FFLAGS=
7296 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7297 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_f77_g+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   FFLAGS=-g
7302 cat >conftest.$ac_ext <<_ACEOF
7303       program main
7304
7305       end
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } && {
7321          test -z "$ac_f77_werror_flag" ||
7322          test ! -s conftest.err
7323        } && test -s conftest.$ac_objext; then
7324   ac_cv_prog_f77_g=yes
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         ac_cv_prog_f77_g=no
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333
7334 fi
7335 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7337 if test "$ac_test_FFLAGS" = set; then
7338   FFLAGS=$ac_save_FFLAGS
7339 elif test $ac_cv_prog_f77_g = yes; then
7340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7341     FFLAGS="-g -O2"
7342   else
7343     FFLAGS="-g"
7344   fi
7345 else
7346   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7347     FFLAGS="-O2"
7348   else
7349     FFLAGS=
7350   fi
7351 fi
7352
7353 G77=`test $ac_compiler_gnu = yes && echo yes`
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360
7361
7362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7363
7364 # find the maximum length of command line arguments
7365 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370     i=0
7371   teststring="ABCD"
7372
7373   case $build_os in
7374   msdosdjgpp*)
7375     # On DJGPP, this test can blow up pretty badly due to problems in libc
7376     # (any single argument exceeding 2000 bytes causes a buffer overrun
7377     # during glob expansion).  Even if it were fixed, the result of this
7378     # check would be larger than it should be.
7379     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7380     ;;
7381
7382   gnu*)
7383     # Under GNU Hurd, this test is not required because there is
7384     # no limit to the length of command line arguments.
7385     # Libtool will interpret -1 as no limit whatsoever
7386     lt_cv_sys_max_cmd_len=-1;
7387     ;;
7388
7389   cygwin* | mingw*)
7390     # On Win9x/ME, this test blows up -- it succeeds, but takes
7391     # about 5 minutes as the teststring grows exponentially.
7392     # Worse, since 9x/ME are not pre-emptively multitasking,
7393     # you end up with a "frozen" computer, even though with patience
7394     # the test eventually succeeds (with a max line length of 256k).
7395     # Instead, let's just punt: use the minimum linelength reported by
7396     # all of the supported platforms: 8192 (on NT/2K/XP).
7397     lt_cv_sys_max_cmd_len=8192;
7398     ;;
7399
7400   amigaos*)
7401     # On AmigaOS with pdksh, this test takes hours, literally.
7402     # So we just punt and use a minimum line length of 8192.
7403     lt_cv_sys_max_cmd_len=8192;
7404     ;;
7405
7406   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7407     # This has been around since 386BSD, at least.  Likely further.
7408     if test -x /sbin/sysctl; then
7409       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7410     elif test -x /usr/sbin/sysctl; then
7411       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7412     else
7413       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7414     fi
7415     # And add a safety zone
7416     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7418     ;;
7419
7420   interix*)
7421     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7422     lt_cv_sys_max_cmd_len=196608
7423     ;;
7424
7425   osf*)
7426     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428     # nice to cause kernel panics so lets avoid the loop below.
7429     # First set a reasonable default.
7430     lt_cv_sys_max_cmd_len=16384
7431     #
7432     if test -x /sbin/sysconfig; then
7433       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7435       esac
7436     fi
7437     ;;
7438   sco3.2v5*)
7439     lt_cv_sys_max_cmd_len=102400
7440     ;;
7441   sysv5* | sco5v6* | sysv4.2uw2*)
7442     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443     if test -n "$kargmax"; then
7444       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7445     else
7446       lt_cv_sys_max_cmd_len=32768
7447     fi
7448     ;;
7449   *)
7450     # If test is not a shell built-in, we'll probably end up computing a
7451     # maximum length that is only half of the actual maximum length, but
7452     # we can't tell.
7453     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7454     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7455                = "XX$teststring") >/dev/null 2>&1 &&
7456             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7457             lt_cv_sys_max_cmd_len=$new_result &&
7458             test $i != 17 # 1/2 MB should be enough
7459     do
7460       i=`expr $i + 1`
7461       teststring=$teststring$teststring
7462     done
7463     teststring=
7464     # Add a significant safety factor because C++ compilers can tack on massive
7465     # amounts of additional arguments before passing them to the linker.
7466     # It appears as though 1/2 is a usable value.
7467     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7468     ;;
7469   esac
7470
7471 fi
7472
7473 if test -n $lt_cv_sys_max_cmd_len ; then
7474   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7475 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7476 else
7477   { echo "$as_me:$LINENO: result: none" >&5
7478 echo "${ECHO_T}none" >&6; }
7479 fi
7480
7481
7482
7483
7484 # Check for command to grab the raw symbol name followed by C symbol from nm.
7485 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7486 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490
7491 # These are sane defaults that work on at least a few old systems.
7492 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7493
7494 # Character class describing NM global symbol codes.
7495 symcode='[BCDEGRST]'
7496
7497 # Regexp to match symbols that can be accessed directly from C.
7498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7499
7500 # Transform an extracted symbol line into a proper C declaration
7501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7502
7503 # Transform an extracted symbol line into symbol name and symbol address
7504 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'"
7505
7506 # Define system-specific variables.
7507 case $host_os in
7508 aix*)
7509   symcode='[BCDT]'
7510   ;;
7511 cygwin* | mingw* | pw32*)
7512   symcode='[ABCDGISTW]'
7513   ;;
7514 hpux*) # Its linker distinguishes data from code symbols
7515   if test "$host_cpu" = ia64; then
7516     symcode='[ABCDEGRST]'
7517   fi
7518   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519   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'"
7520   ;;
7521 linux* | k*bsd*-gnu)
7522   if test "$host_cpu" = ia64; then
7523     symcode='[ABCDGIRSTW]'
7524     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7525     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'"
7526   fi
7527   ;;
7528 irix* | nonstopux*)
7529   symcode='[BCDEGRST]'
7530   ;;
7531 osf*)
7532   symcode='[BCDEGQRST]'
7533   ;;
7534 solaris*)
7535   symcode='[BDRT]'
7536   ;;
7537 sco3.2v5*)
7538   symcode='[DT]'
7539   ;;
7540 sysv4.2uw2*)
7541   symcode='[DT]'
7542   ;;
7543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7544   symcode='[ABDT]'
7545   ;;
7546 sysv4)
7547   symcode='[DFNSTU]'
7548   ;;
7549 esac
7550
7551 # Handle CRLF in mingw tool chain
7552 opt_cr=
7553 case $build_os in
7554 mingw*)
7555   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7556   ;;
7557 esac
7558
7559 # If we're using GNU nm, then use its standard symbol codes.
7560 case `$NM -V 2>&1` in
7561 *GNU* | *'with BFD'*)
7562   symcode='[ABCDGIRSTW]' ;;
7563 esac
7564
7565 # Try without a prefix undercore, then with it.
7566 for ac_symprfx in "" "_"; do
7567
7568   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7569   symxfrm="\\1 $ac_symprfx\\2 \\2"
7570
7571   # Write the raw and C identifiers.
7572   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7573
7574   # Check to see that the pipe works correctly.
7575   pipe_works=no
7576
7577   rm -f conftest*
7578   cat > conftest.$ac_ext <<EOF
7579 #ifdef __cplusplus
7580 extern "C" {
7581 #endif
7582 char nm_test_var;
7583 void nm_test_func(){}
7584 #ifdef __cplusplus
7585 }
7586 #endif
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7588 EOF
7589
7590   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591   (eval $ac_compile) 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; then
7595     # Now try to grab the symbols.
7596     nlist=conftest.nm
7597     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7598   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } && test -s "$nlist"; then
7602       # Try sorting and uniquifying the output.
7603       if sort "$nlist" | uniq > "$nlist"T; then
7604         mv -f "$nlist"T "$nlist"
7605       else
7606         rm -f "$nlist"T
7607       fi
7608
7609       # Make sure that we snagged all the symbols we need.
7610       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7611         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7612           cat <<EOF > conftest.$ac_ext
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7616
7617 EOF
7618           # Now generate the symbol file.
7619           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7620
7621           cat <<EOF >> conftest.$ac_ext
7622 #if defined (__STDC__) && __STDC__
7623 # define lt_ptr_t void *
7624 #else
7625 # define lt_ptr_t char *
7626 # define const
7627 #endif
7628
7629 /* The mapping between symbol names and symbols. */
7630 const struct {
7631   const char *name;
7632   lt_ptr_t address;
7633 }
7634 lt_preloaded_symbols[] =
7635 {
7636 EOF
7637           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7638           cat <<\EOF >> conftest.$ac_ext
7639   {0, (lt_ptr_t) 0}
7640 };
7641
7642 #ifdef __cplusplus
7643 }
7644 #endif
7645 EOF
7646           # Now try linking the two files.
7647           mv conftest.$ac_objext conftstm.$ac_objext
7648           lt_save_LIBS="$LIBS"
7649           lt_save_CFLAGS="$CFLAGS"
7650           LIBS="conftstm.$ac_objext"
7651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7652           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653   (eval $ac_link) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7657             pipe_works=yes
7658           fi
7659           LIBS="$lt_save_LIBS"
7660           CFLAGS="$lt_save_CFLAGS"
7661         else
7662           echo "cannot find nm_test_func in $nlist" >&5
7663         fi
7664       else
7665         echo "cannot find nm_test_var in $nlist" >&5
7666       fi
7667     else
7668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7669     fi
7670   else
7671     echo "$progname: failed program was:" >&5
7672     cat conftest.$ac_ext >&5
7673   fi
7674   rm -f conftest* conftst*
7675
7676   # Do not use the global_symbol_pipe unless it works.
7677   if test "$pipe_works" = yes; then
7678     break
7679   else
7680     lt_cv_sys_global_symbol_pipe=
7681   fi
7682 done
7683
7684 fi
7685
7686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7687   lt_cv_sys_global_symbol_to_cdecl=
7688 fi
7689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7690   { echo "$as_me:$LINENO: result: failed" >&5
7691 echo "${ECHO_T}failed" >&6; }
7692 else
7693   { echo "$as_me:$LINENO: result: ok" >&5
7694 echo "${ECHO_T}ok" >&6; }
7695 fi
7696
7697 { echo "$as_me:$LINENO: checking for objdir" >&5
7698 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7699 if test "${lt_cv_objdir+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   rm -f .libs 2>/dev/null
7703 mkdir .libs 2>/dev/null
7704 if test -d .libs; then
7705   lt_cv_objdir=.libs
7706 else
7707   # MS-DOS does not allow filenames that begin with a dot.
7708   lt_cv_objdir=_libs
7709 fi
7710 rmdir .libs 2>/dev/null
7711 fi
7712 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7713 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7714 objdir=$lt_cv_objdir
7715
7716
7717
7718
7719
7720 case $host_os in
7721 aix3*)
7722   # AIX sometimes has problems with the GCC collect2 program.  For some
7723   # reason, if we set the COLLECT_NAMES environment variable, the problems
7724   # vanish in a puff of smoke.
7725   if test "X${COLLECT_NAMES+set}" != Xset; then
7726     COLLECT_NAMES=
7727     export COLLECT_NAMES
7728   fi
7729   ;;
7730 esac
7731
7732 # Sed substitution that helps us do robust quoting.  It backslashifies
7733 # metacharacters that are still active within double-quoted strings.
7734 Xsed='sed -e 1s/^X//'
7735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7736
7737 # Same as above, but do not quote variable references.
7738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7739
7740 # Sed substitution to delay expansion of an escaped shell variable in a
7741 # double_quote_subst'ed string.
7742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7743
7744 # Sed substitution to avoid accidental globbing in evaled expressions
7745 no_glob_subst='s/\*/\\\*/g'
7746
7747 # Constants:
7748 rm="rm -f"
7749
7750 # Global variables:
7751 default_ofile=libtool
7752 can_build_shared=yes
7753
7754 # All known linkers require a `.a' archive for static linking (except MSVC,
7755 # which needs '.lib').
7756 libext=a
7757 ltmain="$ac_aux_dir/ltmain.sh"
7758 ofile="$default_ofile"
7759 with_gnu_ld="$lt_cv_prog_gnu_ld"
7760
7761 if test -n "$ac_tool_prefix"; then
7762   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}ar; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_AR+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   if test -n "$AR"; then
7770   ac_cv_prog_AR="$AR" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_AR="${ac_tool_prefix}ar"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 AR=$ac_cv_prog_AR
7790 if test -n "$AR"; then
7791   { echo "$as_me:$LINENO: result: $AR" >&5
7792 echo "${ECHO_T}$AR" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_AR"; then
7801   ac_ct_AR=$AR
7802   # Extract the first word of "ar", so it can be a program name with args.
7803 set dummy ar; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   if test -n "$ac_ct_AR"; then
7810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817   for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_ac_ct_AR="ar"
7820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7830 if test -n "$ac_ct_AR"; then
7831   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7832 echo "${ECHO_T}$ac_ct_AR" >&6; }
7833 else
7834   { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7836 fi
7837
7838   if test "x$ac_ct_AR" = x; then
7839     AR="false"
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet.  If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet.  If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851     AR=$ac_ct_AR
7852   fi
7853 else
7854   AR="$ac_cv_prog_AR"
7855 fi
7856
7857 if test -n "$ac_tool_prefix"; then
7858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_prog_RANLIB+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   if test -n "$RANLIB"; then
7866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873   for ac_exec_ext in '' $ac_executable_extensions; do
7874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 RANLIB=$ac_cv_prog_RANLIB
7886 if test -n "$RANLIB"; then
7887   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7888 echo "${ECHO_T}$RANLIB" >&6; }
7889 else
7890   { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_RANLIB"; then
7897   ac_ct_RANLIB=$RANLIB
7898   # Extract the first word of "ranlib", so it can be a program name with args.
7899 set dummy ranlib; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   if test -n "$ac_ct_RANLIB"; then
7906   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913   for ac_exec_ext in '' $ac_executable_extensions; do
7914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915     ac_cv_prog_ac_ct_RANLIB="ranlib"
7916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7926 if test -n "$ac_ct_RANLIB"; then
7927   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7928 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7929 else
7930   { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7932 fi
7933
7934   if test "x$ac_ct_RANLIB" = x; then
7935     RANLIB=":"
7936   else
7937     case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7940 whose name does not start with the host triplet.  If you think this
7941 configuration is useful to you, please write to autoconf@gnu.org." >&5
7942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7943 whose name does not start with the host triplet.  If you think this
7944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947     RANLIB=$ac_ct_RANLIB
7948   fi
7949 else
7950   RANLIB="$ac_cv_prog_RANLIB"
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}strip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_prog_STRIP+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   if test -n "$STRIP"; then
7962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969   for ac_exec_ext in '' $ac_executable_extensions; do
7970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 STRIP=$ac_cv_prog_STRIP
7982 if test -n "$STRIP"; then
7983   { echo "$as_me:$LINENO: result: $STRIP" >&5
7984 echo "${ECHO_T}$STRIP" >&6; }
7985 else
7986   { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7988 fi
7989
7990
7991 fi
7992 if test -z "$ac_cv_prog_STRIP"; then
7993   ac_ct_STRIP=$STRIP
7994   # Extract the first word of "strip", so it can be a program name with args.
7995 set dummy strip; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   if test -n "$ac_ct_STRIP"; then
8002   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009   for ac_exec_ext in '' $ac_executable_extensions; do
8010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011     ac_cv_prog_ac_ct_STRIP="strip"
8012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8022 if test -n "$ac_ct_STRIP"; then
8023   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8024 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8025 else
8026   { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8028 fi
8029
8030   if test "x$ac_ct_STRIP" = x; then
8031     STRIP=":"
8032   else
8033     case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8036 whose name does not start with the host triplet.  If you think this
8037 configuration is useful to you, please write to autoconf@gnu.org." >&5
8038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8039 whose name does not start with the host triplet.  If you think this
8040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043     STRIP=$ac_ct_STRIP
8044   fi
8045 else
8046   STRIP="$ac_cv_prog_STRIP"
8047 fi
8048
8049
8050 old_CC="$CC"
8051 old_CFLAGS="$CFLAGS"
8052
8053 # Set sane defaults for various variables
8054 test -z "$AR" && AR=ar
8055 test -z "$AR_FLAGS" && AR_FLAGS=cru
8056 test -z "$AS" && AS=as
8057 test -z "$CC" && CC=cc
8058 test -z "$LTCC" && LTCC=$CC
8059 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060 test -z "$DLLTOOL" && DLLTOOL=dlltool
8061 test -z "$LD" && LD=ld
8062 test -z "$LN_S" && LN_S="ln -s"
8063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064 test -z "$NM" && NM=nm
8065 test -z "$SED" && SED=sed
8066 test -z "$OBJDUMP" && OBJDUMP=objdump
8067 test -z "$RANLIB" && RANLIB=:
8068 test -z "$STRIP" && STRIP=:
8069 test -z "$ac_objext" && ac_objext=o
8070
8071 # Determine commands to create old-style static archives.
8072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8073 old_postinstall_cmds='chmod 644 $oldlib'
8074 old_postuninstall_cmds=
8075
8076 if test -n "$RANLIB"; then
8077   case $host_os in
8078   openbsd*)
8079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8080     ;;
8081   *)
8082     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8083     ;;
8084   esac
8085   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8086 fi
8087
8088 for cc_temp in $compiler""; do
8089   case $cc_temp in
8090     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8091     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8092     \-*) ;;
8093     *) break;;
8094   esac
8095 done
8096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8097
8098
8099 # Only perform the check for file, if the check method requires it
8100 case $deplibs_check_method in
8101 file_magic*)
8102   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8103     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8104 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   case $MAGIC_CMD in
8109 [\\/*] |  ?:[\\/]*)
8110   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8111   ;;
8112 *)
8113   lt_save_MAGIC_CMD="$MAGIC_CMD"
8114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116   for ac_dir in $ac_dummy; do
8117     IFS="$lt_save_ifs"
8118     test -z "$ac_dir" && ac_dir=.
8119     if test -f $ac_dir/${ac_tool_prefix}file; then
8120       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8121       if test -n "$file_magic_test_file"; then
8122         case $deplibs_check_method in
8123         "file_magic "*)
8124           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127             $EGREP "$file_magic_regex" > /dev/null; then
8128             :
8129           else
8130             cat <<EOF 1>&2
8131
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such.  This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem.  Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8140
8141 EOF
8142           fi ;;
8143         esac
8144       fi
8145       break
8146     fi
8147   done
8148   IFS="$lt_save_ifs"
8149   MAGIC_CMD="$lt_save_MAGIC_CMD"
8150   ;;
8151 esac
8152 fi
8153
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if test -n "$MAGIC_CMD"; then
8156   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8157 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8158 else
8159   { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8161 fi
8162
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164   if test -n "$ac_tool_prefix"; then
8165     { echo "$as_me:$LINENO: checking for file" >&5
8166 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   case $MAGIC_CMD in
8171 [\\/*] |  ?:[\\/]*)
8172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8173   ;;
8174 *)
8175   lt_save_MAGIC_CMD="$MAGIC_CMD"
8176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178   for ac_dir in $ac_dummy; do
8179     IFS="$lt_save_ifs"
8180     test -z "$ac_dir" && ac_dir=.
8181     if test -f $ac_dir/file; then
8182       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183       if test -n "$file_magic_test_file"; then
8184         case $deplibs_check_method in
8185         "file_magic "*)
8186           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189             $EGREP "$file_magic_regex" > /dev/null; then
8190             :
8191           else
8192             cat <<EOF 1>&2
8193
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such.  This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem.  Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8202
8203 EOF
8204           fi ;;
8205         esac
8206       fi
8207       break
8208     fi
8209   done
8210   IFS="$lt_save_ifs"
8211   MAGIC_CMD="$lt_save_MAGIC_CMD"
8212   ;;
8213 esac
8214 fi
8215
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8220 else
8221   { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8223 fi
8224
8225   else
8226     MAGIC_CMD=:
8227   fi
8228 fi
8229
8230   fi
8231   ;;
8232 esac
8233
8234 enable_dlopen=no
8235 enable_win32_dll=no
8236
8237 # Check whether --enable-libtool-lock was given.
8238 if test "${enable_libtool_lock+set}" = set; then
8239   enableval=$enable_libtool_lock;
8240 fi
8241
8242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8243
8244
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then
8247   withval=$with_pic; pic_mode="$withval"
8248 else
8249   pic_mode=default
8250 fi
8251
8252 test -z "$pic_mode" && pic_mode=default
8253
8254 # Use C for the default configuration in the libtool script
8255 tagname=
8256 lt_save_CC="$CC"
8257 ac_ext=c
8258 ac_cpp='$CPP $CPPFLAGS'
8259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262
8263
8264 # Source file extension for C test sources.
8265 ac_ext=c
8266
8267 # Object file extension for compiled C test sources.
8268 objext=o
8269 objext=$objext
8270
8271 # Code to be used in simple compile tests
8272 lt_simple_compile_test_code="int some_variable = 0;\n"
8273
8274 # Code to be used in simple link tests
8275 lt_simple_link_test_code='int main(){return(0);}\n'
8276
8277
8278 # If no C compiler was specified, use CC.
8279 LTCC=${LTCC-"$CC"}
8280
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8283
8284 # Allow CC to be a program name with arguments.
8285 compiler=$CC
8286
8287
8288 # save warnings/boilerplate of simple test code
8289 ac_outfile=conftest.$ac_objext
8290 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_compiler_boilerplate=`cat conftest.err`
8293 $rm conftest*
8294
8295 ac_outfile=conftest.$ac_objext
8296 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_linker_boilerplate=`cat conftest.err`
8299 $rm conftest*
8300
8301
8302
8303 lt_prog_compiler_no_builtin_flag=
8304
8305 if test "$GCC" = yes; then
8306   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8307
8308
8309 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8310 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   lt_cv_prog_compiler_rtti_exceptions=no
8315   ac_outfile=conftest.$ac_objext
8316    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8317    lt_compiler_flag="-fno-rtti -fno-exceptions"
8318    # Insert the option either (1) after the last *FLAGS variable, or
8319    # (2) before a word containing "conftest.", or (3) at the end.
8320    # Note that $ac_compile itself does not contain backslashes and begins
8321    # with a dollar sign (not a hyphen), so the echo should work correctly.
8322    # The option is referenced via a variable to avoid confusing sed.
8323    lt_compile=`echo "$ac_compile" | $SED \
8324    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326    -e 's:$: $lt_compiler_flag:'`
8327    (eval echo "\"\$as_me:8327: $lt_compile\"" >&5)
8328    (eval "$lt_compile" 2>conftest.err)
8329    ac_status=$?
8330    cat conftest.err >&5
8331    echo "$as_me:8331: \$? = $ac_status" >&5
8332    if (exit $ac_status) && test -s "$ac_outfile"; then
8333      # The compiler can only warn and ignore the option if not recognized
8334      # So say no if there are warnings other than the usual output.
8335      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8336      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8338        lt_cv_prog_compiler_rtti_exceptions=yes
8339      fi
8340    fi
8341    $rm conftest*
8342
8343 fi
8344 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8346
8347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8348     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8349 else
8350     :
8351 fi
8352
8353 fi
8354
8355 lt_prog_compiler_wl=
8356 lt_prog_compiler_pic=
8357 lt_prog_compiler_static=
8358
8359 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8360 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8361
8362   if test "$GCC" = yes; then
8363     lt_prog_compiler_wl='-Wl,'
8364     lt_prog_compiler_static='-static'
8365
8366     case $host_os in
8367       aix*)
8368       # All AIX code is PIC.
8369       if test "$host_cpu" = ia64; then
8370         # AIX 5 now supports IA64 processor
8371         lt_prog_compiler_static='-Bstatic'
8372       fi
8373       ;;
8374
8375     amigaos*)
8376       # FIXME: we need at least 68020 code to build shared libraries, but
8377       # adding the `-m68020' flag to GCC prevents building anything better,
8378       # like `-m68040'.
8379       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8380       ;;
8381
8382     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8383       # PIC is the default for these OSes.
8384       ;;
8385
8386     mingw* | pw32* | os2*)
8387       # This hack is so that the source file can tell whether it is being
8388       # built for inclusion in a dll (and should export symbols for example).
8389       lt_prog_compiler_pic='-DDLL_EXPORT'
8390       ;;
8391
8392     darwin* | rhapsody*)
8393       # PIC is the default on this platform
8394       # Common symbols not allowed in MH_DYLIB files
8395       lt_prog_compiler_pic='-fno-common'
8396       ;;
8397
8398     interix3*)
8399       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8400       # Instead, we relocate shared libraries at runtime.
8401       ;;
8402
8403     msdosdjgpp*)
8404       # Just because we use GCC doesn't mean we suddenly get shared libraries
8405       # on systems that don't support them.
8406       lt_prog_compiler_can_build_shared=no
8407       enable_shared=no
8408       ;;
8409
8410     sysv4*MP*)
8411       if test -d /usr/nec; then
8412         lt_prog_compiler_pic=-Kconform_pic
8413       fi
8414       ;;
8415
8416     hpux*)
8417       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8418       # not for PA HP-UX.
8419       case $host_cpu in
8420       hppa*64*|ia64*)
8421         # +Z the default
8422         ;;
8423       *)
8424         lt_prog_compiler_pic='-fPIC'
8425         ;;
8426       esac
8427       ;;
8428
8429     *)
8430       lt_prog_compiler_pic='-fPIC'
8431       ;;
8432     esac
8433   else
8434     # PORTME Check for flag to pass linker flags through the system compiler.
8435     case $host_os in
8436     aix*)
8437       lt_prog_compiler_wl='-Wl,'
8438       if test "$host_cpu" = ia64; then
8439         # AIX 5 now supports IA64 processor
8440         lt_prog_compiler_static='-Bstatic'
8441       else
8442         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8443       fi
8444       ;;
8445       darwin*)
8446         # PIC is the default on this platform
8447         # Common symbols not allowed in MH_DYLIB files
8448        case $cc_basename in
8449          xlc*)
8450          lt_prog_compiler_pic='-qnocommon'
8451          lt_prog_compiler_wl='-Wl,'
8452          ;;
8453        esac
8454        ;;
8455
8456     mingw* | pw32* | os2*)
8457       # This hack is so that the source file can tell whether it is being
8458       # built for inclusion in a dll (and should export symbols for example).
8459       lt_prog_compiler_pic='-DDLL_EXPORT'
8460       ;;
8461
8462     hpux9* | hpux10* | hpux11*)
8463       lt_prog_compiler_wl='-Wl,'
8464       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8465       # not for PA HP-UX.
8466       case $host_cpu in
8467       hppa*64*|ia64*)
8468         # +Z the default
8469         ;;
8470       *)
8471         lt_prog_compiler_pic='+Z'
8472         ;;
8473       esac
8474       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8475       lt_prog_compiler_static='${wl}-a ${wl}archive'
8476       ;;
8477
8478     irix5* | irix6* | nonstopux*)
8479       lt_prog_compiler_wl='-Wl,'
8480       # PIC (with -KPIC) is the default.
8481       lt_prog_compiler_static='-non_shared'
8482       ;;
8483
8484     newsos6)
8485       lt_prog_compiler_pic='-KPIC'
8486       lt_prog_compiler_static='-Bstatic'
8487       ;;
8488
8489     linux* | k*bsd*-gnu)
8490       case $cc_basename in
8491       icc* | ecc*)
8492         lt_prog_compiler_wl='-Wl,'
8493         lt_prog_compiler_pic='-KPIC'
8494         lt_prog_compiler_static='-static'
8495         ;;
8496       pgcc* | pgf77* | pgf90* | pgf95*)
8497         # Portland Group compilers (*not* the Pentium gcc compiler,
8498         # which looks to be a dead project)
8499         lt_prog_compiler_wl='-Wl,'
8500         lt_prog_compiler_pic='-fpic'
8501         lt_prog_compiler_static='-Bstatic'
8502         ;;
8503       ccc*)
8504         lt_prog_compiler_wl='-Wl,'
8505         # All Alpha code is PIC.
8506         lt_prog_compiler_static='-non_shared'
8507         ;;
8508       esac
8509       ;;
8510
8511     osf3* | osf4* | osf5*)
8512       lt_prog_compiler_wl='-Wl,'
8513       # All OSF/1 code is PIC.
8514       lt_prog_compiler_static='-non_shared'
8515       ;;
8516
8517     solaris*)
8518       lt_prog_compiler_pic='-KPIC'
8519       lt_prog_compiler_static='-Bstatic'
8520       case $cc_basename in
8521       f77* | f90* | f95*)
8522         lt_prog_compiler_wl='-Qoption ld ';;
8523       *)
8524         lt_prog_compiler_wl='-Wl,';;
8525       esac
8526       ;;
8527
8528     sunos4*)
8529       lt_prog_compiler_wl='-Qoption ld '
8530       lt_prog_compiler_pic='-PIC'
8531       lt_prog_compiler_static='-Bstatic'
8532       ;;
8533
8534     sysv4 | sysv4.2uw2* | sysv4.3*)
8535       lt_prog_compiler_wl='-Wl,'
8536       lt_prog_compiler_pic='-KPIC'
8537       lt_prog_compiler_static='-Bstatic'
8538       ;;
8539
8540     sysv4*MP*)
8541       if test -d /usr/nec ;then
8542         lt_prog_compiler_pic='-Kconform_pic'
8543         lt_prog_compiler_static='-Bstatic'
8544       fi
8545       ;;
8546
8547     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8548       lt_prog_compiler_wl='-Wl,'
8549       lt_prog_compiler_pic='-KPIC'
8550       lt_prog_compiler_static='-Bstatic'
8551       ;;
8552
8553     unicos*)
8554       lt_prog_compiler_wl='-Wl,'
8555       lt_prog_compiler_can_build_shared=no
8556       ;;
8557
8558     uts4*)
8559       lt_prog_compiler_pic='-pic'
8560       lt_prog_compiler_static='-Bstatic'
8561       ;;
8562
8563     *)
8564       lt_prog_compiler_can_build_shared=no
8565       ;;
8566     esac
8567   fi
8568
8569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8570 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8571
8572 #
8573 # Check to make sure the PIC flag actually works.
8574 #
8575 if test -n "$lt_prog_compiler_pic"; then
8576
8577 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8578 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8579 if test "${lt_prog_compiler_pic_works+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   lt_prog_compiler_pic_works=no
8583   ac_outfile=conftest.$ac_objext
8584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8585    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8586    # Insert the option either (1) after the last *FLAGS variable, or
8587    # (2) before a word containing "conftest.", or (3) at the end.
8588    # Note that $ac_compile itself does not contain backslashes and begins
8589    # with a dollar sign (not a hyphen), so the echo should work correctly.
8590    # The option is referenced via a variable to avoid confusing sed.
8591    lt_compile=`echo "$ac_compile" | $SED \
8592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594    -e 's:$: $lt_compiler_flag:'`
8595    (eval echo "\"\$as_me:8595: $lt_compile\"" >&5)
8596    (eval "$lt_compile" 2>conftest.err)
8597    ac_status=$?
8598    cat conftest.err >&5
8599    echo "$as_me:8599: \$? = $ac_status" >&5
8600    if (exit $ac_status) && test -s "$ac_outfile"; then
8601      # The compiler can only warn and ignore the option if not recognized
8602      # So say no if there are warnings other than the usual output.
8603      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8604      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606        lt_prog_compiler_pic_works=yes
8607      fi
8608    fi
8609    $rm conftest*
8610
8611 fi
8612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8613 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8614
8615 if test x"$lt_prog_compiler_pic_works" = xyes; then
8616     case $lt_prog_compiler_pic in
8617      "" | " "*) ;;
8618      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8619      esac
8620 else
8621     lt_prog_compiler_pic=
8622      lt_prog_compiler_can_build_shared=no
8623 fi
8624
8625 fi
8626 case $host_os in
8627   # For platforms which do not support PIC, -DPIC is meaningless:
8628   *djgpp*)
8629     lt_prog_compiler_pic=
8630     ;;
8631   *)
8632     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8633     ;;
8634 esac
8635
8636 #
8637 # Check to make sure the static flag actually works.
8638 #
8639 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8640 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8641 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8642 if test "${lt_prog_compiler_static_works+set}" = set; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645   lt_prog_compiler_static_works=no
8646    save_LDFLAGS="$LDFLAGS"
8647    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8648    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8649    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8650      # The linker can only warn and ignore the option if not recognized
8651      # So say no if there are warnings
8652      if test -s conftest.err; then
8653        # Append any errors to the config.log.
8654        cat conftest.err 1>&5
8655        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8656        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657        if diff conftest.exp conftest.er2 >/dev/null; then
8658          lt_prog_compiler_static_works=yes
8659        fi
8660      else
8661        lt_prog_compiler_static_works=yes
8662      fi
8663    fi
8664    $rm conftest*
8665    LDFLAGS="$save_LDFLAGS"
8666
8667 fi
8668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8669 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8670
8671 if test x"$lt_prog_compiler_static_works" = xyes; then
8672     :
8673 else
8674     lt_prog_compiler_static=
8675 fi
8676
8677
8678 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8679 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   lt_cv_prog_compiler_c_o=no
8684    $rm -r conftest 2>/dev/null
8685    mkdir conftest
8686    cd conftest
8687    mkdir out
8688    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8689
8690    lt_compiler_flag="-o out/conftest2.$ac_objext"
8691    # Insert the option either (1) after the last *FLAGS variable, or
8692    # (2) before a word containing "conftest.", or (3) at the end.
8693    # Note that $ac_compile itself does not contain backslashes and begins
8694    # with a dollar sign (not a hyphen), so the echo should work correctly.
8695    lt_compile=`echo "$ac_compile" | $SED \
8696    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698    -e 's:$: $lt_compiler_flag:'`
8699    (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700    (eval "$lt_compile" 2>out/conftest.err)
8701    ac_status=$?
8702    cat out/conftest.err >&5
8703    echo "$as_me:8703: \$? = $ac_status" >&5
8704    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8705    then
8706      # The compiler can only warn and ignore the option if not recognized
8707      # So say no if there are warnings
8708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8709      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8710      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8711        lt_cv_prog_compiler_c_o=yes
8712      fi
8713    fi
8714    chmod u+w . 2>&5
8715    $rm conftest*
8716    # SGI C++ compiler will create directory out/ii_files/ for
8717    # template instantiation
8718    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8719    $rm out/* && rmdir out
8720    cd ..
8721    rmdir conftest
8722    $rm conftest*
8723
8724 fi
8725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8726 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8727
8728
8729 hard_links="nottested"
8730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8731   # do not overwrite the value of need_locks provided by the user
8732   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8733 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8734   hard_links=yes
8735   $rm conftest*
8736   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8737   touch conftest.a
8738   ln conftest.a conftest.b 2>&5 || hard_links=no
8739   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8740   { echo "$as_me:$LINENO: result: $hard_links" >&5
8741 echo "${ECHO_T}$hard_links" >&6; }
8742   if test "$hard_links" = no; then
8743     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8744 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8745     need_locks=warn
8746   fi
8747 else
8748   need_locks=no
8749 fi
8750
8751 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8752 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8753
8754   runpath_var=
8755   allow_undefined_flag=
8756   enable_shared_with_static_runtimes=no
8757   archive_cmds=
8758   archive_expsym_cmds=
8759   old_archive_From_new_cmds=
8760   old_archive_from_expsyms_cmds=
8761   export_dynamic_flag_spec=
8762   whole_archive_flag_spec=
8763   thread_safe_flag_spec=
8764   hardcode_libdir_flag_spec=
8765   hardcode_libdir_flag_spec_ld=
8766   hardcode_libdir_separator=
8767   hardcode_direct=no
8768   hardcode_minus_L=no
8769   hardcode_shlibpath_var=unsupported
8770   link_all_deplibs=unknown
8771   hardcode_automatic=no
8772   module_cmds=
8773   module_expsym_cmds=
8774   always_export_symbols=no
8775   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8776   # include_expsyms should be a list of space-separated symbols to be *always*
8777   # included in the symbol list
8778   include_expsyms=
8779   # exclude_expsyms can be an extended regexp of symbols to exclude
8780   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8781   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8782   # as well as any symbol that contains `d'.
8783   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8784   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8785   # platforms (ab)use it in PIC code, but their linkers get confused if
8786   # the symbol is explicitly referenced.  Since portable code cannot
8787   # rely on this symbol name, it's probably fine to never include it in
8788   # preloaded symbol tables.
8789   extract_expsyms_cmds=
8790   # Just being paranoid about ensuring that cc_basename is set.
8791   for cc_temp in $compiler""; do
8792   case $cc_temp in
8793     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8794     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8795     \-*) ;;
8796     *) break;;
8797   esac
8798 done
8799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8800
8801   case $host_os in
8802   cygwin* | mingw* | pw32*)
8803     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8804     # When not using gcc, we currently assume that we are using
8805     # Microsoft Visual C++.
8806     if test "$GCC" != yes; then
8807       with_gnu_ld=no
8808     fi
8809     ;;
8810   interix*)
8811     # we just hope/assume this is gcc and not c89 (= MSVC++)
8812     with_gnu_ld=yes
8813     ;;
8814   openbsd*)
8815     with_gnu_ld=no
8816     ;;
8817   esac
8818
8819   ld_shlibs=yes
8820   if test "$with_gnu_ld" = yes; then
8821     # If archive_cmds runs LD, not CC, wlarc should be empty
8822     wlarc='${wl}'
8823
8824     # Set some defaults for GNU ld with shared library support. These
8825     # are reset later if shared libraries are not supported. Putting them
8826     # here allows them to be overridden if necessary.
8827     runpath_var=LD_RUN_PATH
8828     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8829     export_dynamic_flag_spec='${wl}--export-dynamic'
8830     # ancient GNU ld didn't support --whole-archive et. al.
8831     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8832         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8833       else
8834         whole_archive_flag_spec=
8835     fi
8836     supports_anon_versioning=no
8837     case `$LD -v 2>/dev/null` in
8838       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8839       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8840       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8841       *\ 2.11.*) ;; # other 2.11 versions
8842       *) supports_anon_versioning=yes ;;
8843     esac
8844
8845     # See if GNU ld supports shared libraries.
8846     case $host_os in
8847     aix3* | aix4* | aix5*)
8848       # On AIX/PPC, the GNU linker is very broken
8849       if test "$host_cpu" != ia64; then
8850         ld_shlibs=no
8851         cat <<EOF 1>&2
8852
8853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8854 *** to be unable to reliably create shared libraries on AIX.
8855 *** Therefore, libtool is disabling shared libraries support.  If you
8856 *** really care for shared libraries, you may want to modify your PATH
8857 *** so that a non-GNU linker is found, and then restart.
8858
8859 EOF
8860       fi
8861       ;;
8862
8863     amigaos*)
8864       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)'
8865       hardcode_libdir_flag_spec='-L$libdir'
8866       hardcode_minus_L=yes
8867
8868       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8869       # that the semantics of dynamic libraries on AmigaOS, at least up
8870       # to version 4, is to share data among multiple programs linked
8871       # with the same dynamic library.  Since this doesn't match the
8872       # behavior of shared libraries on other platforms, we can't use
8873       # them.
8874       ld_shlibs=no
8875       ;;
8876
8877     beos*)
8878       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8879         allow_undefined_flag=unsupported
8880         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8881         # support --undefined.  This deserves some investigation.  FIXME
8882         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883       else
8884         ld_shlibs=no
8885       fi
8886       ;;
8887
8888     cygwin* | mingw* | pw32*)
8889       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8890       # as there is no search path for DLLs.
8891       hardcode_libdir_flag_spec='-L$libdir'
8892       allow_undefined_flag=unsupported
8893       always_export_symbols=no
8894       enable_shared_with_static_runtimes=yes
8895       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8896
8897       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8898         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899         # If the export-symbols file already is a .def file (1st line
8900         # is EXPORTS), use it as is; otherwise, prepend...
8901         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8902           cp $export_symbols $output_objdir/$soname.def;
8903         else
8904           echo EXPORTS > $output_objdir/$soname.def;
8905           cat $export_symbols >> $output_objdir/$soname.def;
8906         fi~
8907         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908       else
8909         ld_shlibs=no
8910       fi
8911       ;;
8912
8913     interix3*)
8914       hardcode_direct=no
8915       hardcode_shlibpath_var=no
8916       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917       export_dynamic_flag_spec='${wl}-E'
8918       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919       # Instead, shared libraries are loaded at an image base (0x10000000 by
8920       # default) and relocated if they conflict, which is a slow very memory
8921       # consuming and fragmenting process.  To avoid this, we pick a random,
8922       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8924       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925       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'
8926       ;;
8927
8928     linux* | k*bsd*-gnu)
8929       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8930         tmp_addflag=
8931         case $cc_basename,$host_cpu in
8932         pgcc*)                          # Portland Group C compiler
8933           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'
8934           tmp_addflag=' $pic_flag'
8935           ;;
8936         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8937           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'
8938           tmp_addflag=' $pic_flag -Mnomain' ;;
8939         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8940           tmp_addflag=' -i_dynamic' ;;
8941         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8942           tmp_addflag=' -i_dynamic -nofor_main' ;;
8943         ifc* | ifort*)                  # Intel Fortran compiler
8944           tmp_addflag=' -nofor_main' ;;
8945         esac
8946         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947
8948         if test $supports_anon_versioning = yes; then
8949           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8950   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951   $echo "local: *; };" >> $output_objdir/$libname.ver~
8952           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8953         fi
8954         link_all_deplibs=no
8955       else
8956         ld_shlibs=no
8957       fi
8958       ;;
8959
8960     netbsd* | netbsdelf*-gnu)
8961       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8963         wlarc=
8964       else
8965         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8967       fi
8968       ;;
8969
8970     solaris*)
8971       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8972         ld_shlibs=no
8973         cat <<EOF 1>&2
8974
8975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8976 *** create shared libraries on Solaris systems.  Therefore, libtool
8977 *** is disabling shared libraries support.  We urge you to upgrade GNU
8978 *** binutils to release 2.9.1 or newer.  Another option is to modify
8979 *** your PATH or compiler configuration so that the native linker is
8980 *** used, and then restart.
8981
8982 EOF
8983       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8984         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986       else
8987         ld_shlibs=no
8988       fi
8989       ;;
8990
8991     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8992       case `$LD -v 2>&1` in
8993         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8994         ld_shlibs=no
8995         cat <<_LT_EOF 1>&2
8996
8997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8998 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8999 *** is disabling shared libraries support.  We urge you to upgrade GNU
9000 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9001 *** your PATH or compiler configuration so that the native linker is
9002 *** used, and then restart.
9003
9004 _LT_EOF
9005         ;;
9006         *)
9007           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9010             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9011           else
9012             ld_shlibs=no
9013           fi
9014         ;;
9015       esac
9016       ;;
9017
9018     sunos4*)
9019       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9020       wlarc=
9021       hardcode_direct=yes
9022       hardcode_shlibpath_var=no
9023       ;;
9024
9025     *)
9026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029       else
9030         ld_shlibs=no
9031       fi
9032       ;;
9033     esac
9034
9035     if test "$ld_shlibs" = no; then
9036       runpath_var=
9037       hardcode_libdir_flag_spec=
9038       export_dynamic_flag_spec=
9039       whole_archive_flag_spec=
9040     fi
9041   else
9042     # PORTME fill in a description of your system's linker (not GNU ld)
9043     case $host_os in
9044     aix3*)
9045       allow_undefined_flag=unsupported
9046       always_export_symbols=yes
9047       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'
9048       # Note: this linker hardcodes the directories in LIBPATH if there
9049       # are no directories specified by -L.
9050       hardcode_minus_L=yes
9051       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9052         # Neither direct hardcoding nor static linking is supported with a
9053         # broken collect2.
9054         hardcode_direct=unsupported
9055       fi
9056       ;;
9057
9058     aix4* | aix5*)
9059       if test "$host_cpu" = ia64; then
9060         # On IA64, the linker does run time linking by default, so we don't
9061         # have to do anything special.
9062         aix_use_runtimelinking=no
9063         exp_sym_flag='-Bexport'
9064         no_entry_flag=""
9065       else
9066         # If we're using GNU nm, then we don't want the "-C" option.
9067         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9068         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9069           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'
9070         else
9071           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'
9072         fi
9073         aix_use_runtimelinking=no
9074
9075         # Test if we are trying to use run time linking or normal
9076         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077         # need to do runtime linking.
9078         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9079           for ld_flag in $LDFLAGS; do
9080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9081             aix_use_runtimelinking=yes
9082             break
9083           fi
9084           done
9085           ;;
9086         esac
9087
9088         exp_sym_flag='-bexport'
9089         no_entry_flag='-bnoentry'
9090       fi
9091
9092       # When large executables or shared objects are built, AIX ld can
9093       # have problems creating the table of contents.  If linking a library
9094       # or program results in "error TOC overflow" add -mminimal-toc to
9095       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9096       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098       archive_cmds=''
9099       hardcode_direct=yes
9100       hardcode_libdir_separator=':'
9101       link_all_deplibs=yes
9102
9103       if test "$GCC" = yes; then
9104         case $host_os in aix4.[012]|aix4.[012].*)
9105         # We only want to do this on AIX 4.2 and lower, the check
9106         # below for broken collect2 doesn't work under 4.3+
9107           collect2name=`${CC} -print-prog-name=collect2`
9108           if test -f "$collect2name" && \
9109            strings "$collect2name" | grep resolve_lib_name >/dev/null
9110           then
9111           # We have reworked collect2
9112           hardcode_direct=yes
9113           else
9114           # We have old collect2
9115           hardcode_direct=unsupported
9116           # It fails to find uninstalled libraries when the uninstalled
9117           # path is not listed in the libpath.  Setting hardcode_minus_L
9118           # to unsupported forces relinking
9119           hardcode_minus_L=yes
9120           hardcode_libdir_flag_spec='-L$libdir'
9121           hardcode_libdir_separator=
9122           fi
9123           ;;
9124         esac
9125         shared_flag='-shared'
9126         if test "$aix_use_runtimelinking" = yes; then
9127           shared_flag="$shared_flag "'${wl}-G'
9128         fi
9129       else
9130         # not using gcc
9131         if test "$host_cpu" = ia64; then
9132         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9133         # chokes on -Wl,-G. The following line is correct:
9134           shared_flag='-G'
9135         else
9136           if test "$aix_use_runtimelinking" = yes; then
9137             shared_flag='${wl}-G'
9138           else
9139             shared_flag='${wl}-bM:SRE'
9140           fi
9141         fi
9142       fi
9143
9144       # It seems that -bexpall does not export symbols beginning with
9145       # underscore (_), so it is better to generate a list of symbols to export.
9146       always_export_symbols=yes
9147       if test "$aix_use_runtimelinking" = yes; then
9148         # Warning - without using the other runtime loading flags (-brtl),
9149         # -berok will link without error, but may produce a broken library.
9150         allow_undefined_flag='-berok'
9151        # Determine the default libpath from the value encoded in an empty executable.
9152        cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 int
9160 main ()
9161 {
9162
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9169 case "(($ac_try" in
9170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171   *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174   (eval "$ac_link") 2>conftest.er1
9175   ac_status=$?
9176   grep -v '^ *+' conftest.er1 >conftest.err
9177   rm -f conftest.er1
9178   cat conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); } && {
9181          test -z "$ac_c_werror_flag" ||
9182          test ! -s conftest.err
9183        } && test -s conftest$ac_exeext &&
9184        $as_test_x conftest$ac_exeext; then
9185
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9187 }'`
9188 # Check for a 64-bit object if we didn't find anything.
9189 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9190 }'`; fi
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195
9196 fi
9197
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199       conftest$ac_exeext conftest.$ac_ext
9200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9201
9202        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9203         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"
9204        else
9205         if test "$host_cpu" = ia64; then
9206           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9207           allow_undefined_flag="-z nodefs"
9208           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"
9209         else
9210          # Determine the default libpath from the value encoded in an empty executable.
9211          cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h.  */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h.  */
9217
9218 int
9219 main ()
9220 {
9221
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9228 case "(($ac_try" in
9229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230   *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233   (eval "$ac_link") 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } && {
9240          test -z "$ac_c_werror_flag" ||
9241          test ! -s conftest.err
9242        } && test -s conftest$ac_exeext &&
9243        $as_test_x conftest$ac_exeext; then
9244
9245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9246 }'`
9247 # Check for a 64-bit object if we didn't find anything.
9248 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9249 }'`; fi
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254
9255 fi
9256
9257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9258       conftest$ac_exeext conftest.$ac_ext
9259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9260
9261          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9262           # Warning - without using the other run time loading flags,
9263           # -berok will link without error, but may produce a broken library.
9264           no_undefined_flag=' ${wl}-bernotok'
9265           allow_undefined_flag=' ${wl}-berok'
9266           # Exported symbols can be pulled into shared objects from archives
9267           whole_archive_flag_spec='$convenience'
9268           archive_cmds_need_lc=yes
9269           # This is similar to how AIX traditionally builds its shared libraries.
9270           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'
9271         fi
9272       fi
9273       ;;
9274
9275     amigaos*)
9276       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)'
9277       hardcode_libdir_flag_spec='-L$libdir'
9278       hardcode_minus_L=yes
9279       # see comment about different semantics on the GNU ld section
9280       ld_shlibs=no
9281       ;;
9282
9283     bsdi[45]*)
9284       export_dynamic_flag_spec=-rdynamic
9285       ;;
9286
9287     cygwin* | mingw* | pw32*)
9288       # When not using gcc, we currently assume that we are using
9289       # Microsoft Visual C++.
9290       # hardcode_libdir_flag_spec is actually meaningless, as there is
9291       # no search path for DLLs.
9292       hardcode_libdir_flag_spec=' '
9293       allow_undefined_flag=unsupported
9294       # Tell ltmain to make .lib files, not .a files.
9295       libext=lib
9296       # Tell ltmain to make .dll files, not .so files.
9297       shrext_cmds=".dll"
9298       # FIXME: Setting linknames here is a bad hack.
9299       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9300       # The linker will automatically build a .lib file if we build a DLL.
9301       old_archive_From_new_cmds='true'
9302       # FIXME: Should let the user specify the lib program.
9303       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9304       fix_srcfile_path='`cygpath -w "$srcfile"`'
9305       enable_shared_with_static_runtimes=yes
9306       ;;
9307
9308     darwin* | rhapsody*)
9309       case $host_os in
9310         rhapsody* | darwin1.[012])
9311          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9312          ;;
9313        *) # Darwin 1.3 on
9314          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9315            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9316          else
9317            case ${MACOSX_DEPLOYMENT_TARGET} in
9318              10.[012])
9319                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9320                ;;
9321              10.*)
9322                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9323                ;;
9324            esac
9325          fi
9326          ;;
9327       esac
9328       archive_cmds_need_lc=no
9329       hardcode_direct=no
9330       hardcode_automatic=yes
9331       hardcode_shlibpath_var=unsupported
9332       whole_archive_flag_spec=''
9333       link_all_deplibs=yes
9334     if test "$GCC" = yes ; then
9335         output_verbose_link_cmd='echo'
9336         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9337       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9338       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9339       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}'
9340       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}'
9341     else
9342       case $cc_basename in
9343         xlc*)
9344          output_verbose_link_cmd='echo'
9345          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9346          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9347           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9348          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9349           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}'
9350           ;;
9351        *)
9352          ld_shlibs=no
9353           ;;
9354       esac
9355     fi
9356       ;;
9357
9358     dgux*)
9359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360       hardcode_libdir_flag_spec='-L$libdir'
9361       hardcode_shlibpath_var=no
9362       ;;
9363
9364     freebsd1*)
9365       ld_shlibs=no
9366       ;;
9367
9368     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9369     # support.  Future versions do this automatically, but an explicit c++rt0.o
9370     # does not break anything, and helps significantly (at the cost of a little
9371     # extra space).
9372     freebsd2.2*)
9373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9374       hardcode_libdir_flag_spec='-R$libdir'
9375       hardcode_direct=yes
9376       hardcode_shlibpath_var=no
9377       ;;
9378
9379     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9380     freebsd2*)
9381       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_direct=yes
9383       hardcode_minus_L=yes
9384       hardcode_shlibpath_var=no
9385       ;;
9386
9387     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9388     freebsd* | dragonfly*)
9389       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9390       hardcode_libdir_flag_spec='-R$libdir'
9391       hardcode_direct=yes
9392       hardcode_shlibpath_var=no
9393       ;;
9394
9395     hpux9*)
9396       if test "$GCC" = yes; then
9397         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'
9398       else
9399         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'
9400       fi
9401       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402       hardcode_libdir_separator=:
9403       hardcode_direct=yes
9404
9405       # hardcode_minus_L: Not really in the search PATH,
9406       # but as the default location of the library.
9407       hardcode_minus_L=yes
9408       export_dynamic_flag_spec='${wl}-E'
9409       ;;
9410
9411     hpux10*)
9412       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9413         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9414       else
9415         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9416       fi
9417       if test "$with_gnu_ld" = no; then
9418         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9419         hardcode_libdir_separator=:
9420
9421         hardcode_direct=yes
9422         export_dynamic_flag_spec='${wl}-E'
9423
9424         # hardcode_minus_L: Not really in the search PATH,
9425         # but as the default location of the library.
9426         hardcode_minus_L=yes
9427       fi
9428       ;;
9429
9430     hpux11*)
9431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9432         case $host_cpu in
9433         hppa*64*)
9434           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435           ;;
9436         ia64*)
9437           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438           ;;
9439         *)
9440           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441           ;;
9442         esac
9443       else
9444         case $host_cpu in
9445         hppa*64*)
9446           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9447           ;;
9448         ia64*)
9449           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450           ;;
9451         *)
9452           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453           ;;
9454         esac
9455       fi
9456       if test "$with_gnu_ld" = no; then
9457         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458         hardcode_libdir_separator=:
9459
9460         case $host_cpu in
9461         hppa*64*|ia64*)
9462           hardcode_libdir_flag_spec_ld='+b $libdir'
9463           hardcode_direct=no
9464           hardcode_shlibpath_var=no
9465           ;;
9466         *)
9467           hardcode_direct=yes
9468           export_dynamic_flag_spec='${wl}-E'
9469
9470           # hardcode_minus_L: Not really in the search PATH,
9471           # but as the default location of the library.
9472           hardcode_minus_L=yes
9473           ;;
9474         esac
9475       fi
9476       ;;
9477
9478     irix5* | irix6* | nonstopux*)
9479       if test "$GCC" = yes; then
9480         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'
9481       else
9482         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'
9483         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9484       fi
9485       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486       hardcode_libdir_separator=:
9487       link_all_deplibs=yes
9488       ;;
9489
9490     netbsd* | netbsdelf*-gnu)
9491       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9493       else
9494         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9495       fi
9496       hardcode_libdir_flag_spec='-R$libdir'
9497       hardcode_direct=yes
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     newsos6)
9502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503       hardcode_direct=yes
9504       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505       hardcode_libdir_separator=:
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     openbsd*)
9510       hardcode_direct=yes
9511       hardcode_shlibpath_var=no
9512       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9515         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516         export_dynamic_flag_spec='${wl}-E'
9517       else
9518        case $host_os in
9519          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9520            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521            hardcode_libdir_flag_spec='-R$libdir'
9522            ;;
9523          *)
9524            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526            ;;
9527        esac
9528       fi
9529       ;;
9530
9531     os2*)
9532       hardcode_libdir_flag_spec='-L$libdir'
9533       hardcode_minus_L=yes
9534       allow_undefined_flag=unsupported
9535       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'
9536       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9537       ;;
9538
9539     osf3*)
9540       if test "$GCC" = yes; then
9541         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9542         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'
9543       else
9544         allow_undefined_flag=' -expect_unresolved \*'
9545         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'
9546       fi
9547       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548       hardcode_libdir_separator=:
9549       ;;
9550
9551     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9552       if test "$GCC" = yes; then
9553         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9554         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'
9555         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556       else
9557         allow_undefined_flag=' -expect_unresolved \*'
9558         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'
9559         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9560         $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'
9561
9562         # Both c and cxx compiler support -rpath directly
9563         hardcode_libdir_flag_spec='-rpath $libdir'
9564       fi
9565       hardcode_libdir_separator=:
9566       ;;
9567
9568     solaris*)
9569       no_undefined_flag=' -z text'
9570       if test "$GCC" = yes; then
9571         wlarc='${wl}'
9572         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9573         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9574           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9575       else
9576         wlarc=''
9577         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9579         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9580       fi
9581       hardcode_libdir_flag_spec='-R$libdir'
9582       hardcode_shlibpath_var=no
9583       case $host_os in
9584       solaris2.[0-5] | solaris2.[0-5].*) ;;
9585       *)
9586         # The compiler driver will combine linker options so we
9587         # cannot just pass the convience library names through
9588         # without $wl, iff we do not link with $LD.
9589         # Luckily, gcc supports the same syntax we need for Sun Studio.
9590         # Supported since Solaris 2.6 (maybe 2.5.1?)
9591         case $wlarc in
9592         '')
9593           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9594         *)
9595           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9596         esac ;;
9597       esac
9598       link_all_deplibs=yes
9599       ;;
9600
9601     sunos4*)
9602       if test "x$host_vendor" = xsequent; then
9603         # Use $CC to link under sequent, because it throws in some extra .o
9604         # files that make .init and .fini sections work.
9605         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9606       else
9607         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9608       fi
9609       hardcode_libdir_flag_spec='-L$libdir'
9610       hardcode_direct=yes
9611       hardcode_minus_L=yes
9612       hardcode_shlibpath_var=no
9613       ;;
9614
9615     sysv4)
9616       case $host_vendor in
9617         sni)
9618           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619           hardcode_direct=yes # is this really true???
9620         ;;
9621         siemens)
9622           ## LD is ld it makes a PLAMLIB
9623           ## CC just makes a GrossModule.
9624           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9625           reload_cmds='$CC -r -o $output$reload_objs'
9626           hardcode_direct=no
9627         ;;
9628         motorola)
9629           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9631         ;;
9632       esac
9633       runpath_var='LD_RUN_PATH'
9634       hardcode_shlibpath_var=no
9635       ;;
9636
9637     sysv4.3*)
9638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639       hardcode_shlibpath_var=no
9640       export_dynamic_flag_spec='-Bexport'
9641       ;;
9642
9643     sysv4*MP*)
9644       if test -d /usr/nec; then
9645         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646         hardcode_shlibpath_var=no
9647         runpath_var=LD_RUN_PATH
9648         hardcode_runpath_var=yes
9649         ld_shlibs=yes
9650       fi
9651       ;;
9652
9653     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9654       no_undefined_flag='${wl}-z,text'
9655       archive_cmds_need_lc=no
9656       hardcode_shlibpath_var=no
9657       runpath_var='LD_RUN_PATH'
9658
9659       if test "$GCC" = yes; then
9660         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662       else
9663         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665       fi
9666       ;;
9667
9668     sysv5* | sco3.2v5* | sco5v6*)
9669       # Note: We can NOT use -z defs as we might desire, because we do not
9670       # link with -lc, and that would cause any symbols used from libc to
9671       # always be unresolved, which means just about no library would
9672       # ever link correctly.  If we're not using GNU ld we use -z text
9673       # though, which does catch some bad symbols but isn't as heavy-handed
9674       # as -z defs.
9675       no_undefined_flag='${wl}-z,text'
9676       allow_undefined_flag='${wl}-z,nodefs'
9677       archive_cmds_need_lc=no
9678       hardcode_shlibpath_var=no
9679       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9680       hardcode_libdir_separator=':'
9681       link_all_deplibs=yes
9682       export_dynamic_flag_spec='${wl}-Bexport'
9683       runpath_var='LD_RUN_PATH'
9684
9685       if test "$GCC" = yes; then
9686         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9688       else
9689         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691       fi
9692       ;;
9693
9694     uts4*)
9695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696       hardcode_libdir_flag_spec='-L$libdir'
9697       hardcode_shlibpath_var=no
9698       ;;
9699
9700     *)
9701       ld_shlibs=no
9702       ;;
9703     esac
9704   fi
9705
9706 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9707 echo "${ECHO_T}$ld_shlibs" >&6; }
9708 test "$ld_shlibs" = no && can_build_shared=no
9709
9710 #
9711 # Do we need to explicitly link libc?
9712 #
9713 case "x$archive_cmds_need_lc" in
9714 x|xyes)
9715   # Assume -lc should be added
9716   archive_cmds_need_lc=yes
9717
9718   if test "$enable_shared" = yes && test "$GCC" = yes; then
9719     case $archive_cmds in
9720     *'~'*)
9721       # FIXME: we may have to deal with multi-command sequences.
9722       ;;
9723     '$CC '*)
9724       # Test whether the compiler implicitly links with -lc since on some
9725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9726       # to ld, don't add -lc before -lgcc.
9727       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9729       $rm conftest*
9730       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9731
9732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733   (eval $ac_compile) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } 2>conftest.err; then
9737         soname=conftest
9738         lib=conftest
9739         libobjs=conftest.$ac_objext
9740         deplibs=
9741         wl=$lt_prog_compiler_wl
9742         pic_flag=$lt_prog_compiler_pic
9743         compiler_flags=-v
9744         linker_flags=-v
9745         verstring=
9746         output_objdir=.
9747         libname=conftest
9748         lt_save_allow_undefined_flag=$allow_undefined_flag
9749         allow_undefined_flag=
9750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9751   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }
9755         then
9756           archive_cmds_need_lc=no
9757         else
9758           archive_cmds_need_lc=yes
9759         fi
9760         allow_undefined_flag=$lt_save_allow_undefined_flag
9761       else
9762         cat conftest.err 1>&5
9763       fi
9764       $rm conftest*
9765       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9766 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9767       ;;
9768     esac
9769   fi
9770   ;;
9771 esac
9772
9773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9775 library_names_spec=
9776 libname_spec='lib$name'
9777 soname_spec=
9778 shrext_cmds=".so"
9779 postinstall_cmds=
9780 postuninstall_cmds=
9781 finish_cmds=
9782 finish_eval=
9783 shlibpath_var=
9784 shlibpath_overrides_runpath=unknown
9785 version_type=none
9786 dynamic_linker="$host_os ld.so"
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9788 if test "$GCC" = yes; then
9789   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9791     # if the path contains ";" then we assume it to be the separator
9792     # otherwise default to the standard path separator (i.e. ":") - it is
9793     # assumed that no part of a normal pathname contains ";" but that should
9794     # okay in the real world where ";" in dirpaths is itself problematic.
9795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9796   else
9797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9798   fi
9799 else
9800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9801 fi
9802 need_lib_prefix=unknown
9803 hardcode_into_libs=no
9804
9805 # when you set need_version to no, make sure it does not cause -set_version
9806 # flags to be left without arguments
9807 need_version=unknown
9808
9809 case $host_os in
9810 aix3*)
9811   version_type=linux
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9813   shlibpath_var=LIBPATH
9814
9815   # AIX 3 has no versioning support, so we append a major version to the name.
9816   soname_spec='${libname}${release}${shared_ext}$major'
9817   ;;
9818
9819 aix4* | aix5*)
9820   version_type=linux
9821   need_lib_prefix=no
9822   need_version=no
9823   hardcode_into_libs=yes
9824   if test "$host_cpu" = ia64; then
9825     # AIX 5 supports IA64
9826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9827     shlibpath_var=LD_LIBRARY_PATH
9828   else
9829     # With GCC up to 2.95.x, collect2 would create an import file
9830     # for dependence libraries.  The import file would start with
9831     # the line `#! .'.  This would cause the generated library to
9832     # depend on `.', always an invalid library.  This was fixed in
9833     # development snapshots of GCC prior to 3.0.
9834     case $host_os in
9835       aix4 | aix4.[01] | aix4.[01].*)
9836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9837            echo ' yes '
9838            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9839         :
9840       else
9841         can_build_shared=no
9842       fi
9843       ;;
9844     esac
9845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9846     # soname into executable. Probably we can add versioning support to
9847     # collect2, so additional links can be useful in future.
9848     if test "$aix_use_runtimelinking" = yes; then
9849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9850       # instead of lib<name>.a to let people know that these are not
9851       # typical AIX shared libraries.
9852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853     else
9854       # We preserve .a as extension for shared libraries through AIX4.2
9855       # and later when we are not doing run time linking.
9856       library_names_spec='${libname}${release}.a $libname.a'
9857       soname_spec='${libname}${release}${shared_ext}$major'
9858     fi
9859     shlibpath_var=LIBPATH
9860   fi
9861   ;;
9862
9863 amigaos*)
9864   library_names_spec='$libname.ixlibrary $libname.a'
9865   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9866   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'
9867   ;;
9868
9869 beos*)
9870   library_names_spec='${libname}${shared_ext}'
9871   dynamic_linker="$host_os ld.so"
9872   shlibpath_var=LIBRARY_PATH
9873   ;;
9874
9875 bsdi[45]*)
9876   version_type=linux
9877   need_version=no
9878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879   soname_spec='${libname}${release}${shared_ext}$major'
9880   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9881   shlibpath_var=LD_LIBRARY_PATH
9882   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9883   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9884   # the default ld.so.conf also contains /usr/contrib/lib and
9885   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9886   # libtool to hard-code these into programs
9887   ;;
9888
9889 cygwin* | mingw* | pw32*)
9890   version_type=windows
9891   shrext_cmds=".dll"
9892   need_version=no
9893   need_lib_prefix=no
9894
9895   case $GCC,$host_os in
9896   yes,cygwin* | yes,mingw* | yes,pw32*)
9897     library_names_spec='$libname.dll.a'
9898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9899     postinstall_cmds='base_file=`basename \${file}`~
9900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9901       dldir=$destdir/`dirname \$dlpath`~
9902       test -d \$dldir || mkdir -p \$dldir~
9903       $install_prog $dir/$dlname \$dldir/$dlname~
9904       chmod a+x \$dldir/$dlname'
9905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9906       dlpath=$dir/\$dldll~
9907        $rm \$dlpath'
9908     shlibpath_overrides_runpath=yes
9909
9910     case $host_os in
9911     cygwin*)
9912       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9913       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9914       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9915       ;;
9916     mingw*)
9917       # MinGW DLLs use traditional 'lib' prefix
9918       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9920       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9921         # It is most probably a Windows format PATH printed by
9922         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9923         # path with ; separators, and with drive letters. We can handle the
9924         # drive letters (cygwin fileutils understands them), so leave them,
9925         # especially as we might pass files found there to a mingw objdump,
9926         # which wouldn't understand a cygwinified path. Ahh.
9927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9928       else
9929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9930       fi
9931       ;;
9932     pw32*)
9933       # pw32 DLLs use 'pw' prefix rather than 'lib'
9934       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9935       ;;
9936     esac
9937     ;;
9938
9939   *)
9940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9941     ;;
9942   esac
9943   dynamic_linker='Win32 ld.exe'
9944   # FIXME: first we should search . and the directory the executable is in
9945   shlibpath_var=PATH
9946   ;;
9947
9948 darwin* | rhapsody*)
9949   dynamic_linker="$host_os dyld"
9950   version_type=darwin
9951   need_lib_prefix=no
9952   need_version=no
9953   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9954   soname_spec='${libname}${release}${major}$shared_ext'
9955   shlibpath_overrides_runpath=yes
9956   shlibpath_var=DYLD_LIBRARY_PATH
9957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9958   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9959   if test "$GCC" = yes; then
9960     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9961   else
9962     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9963   fi
9964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9965   ;;
9966
9967 dgux*)
9968   version_type=linux
9969   need_lib_prefix=no
9970   need_version=no
9971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9972   soname_spec='${libname}${release}${shared_ext}$major'
9973   shlibpath_var=LD_LIBRARY_PATH
9974   ;;
9975
9976 freebsd1*)
9977   dynamic_linker=no
9978   ;;
9979
9980 freebsd* | dragonfly*)
9981   # DragonFly does not have aout.  When/if they implement a new
9982   # versioning mechanism, adjust this.
9983   if test -x /usr/bin/objformat; then
9984     objformat=`/usr/bin/objformat`
9985   else
9986     case $host_os in
9987     freebsd[123]*) objformat=aout ;;
9988     *) objformat=elf ;;
9989     esac
9990   fi
9991   version_type=freebsd-$objformat
9992   case $version_type in
9993     freebsd-elf*)
9994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9995       need_version=no
9996       need_lib_prefix=no
9997       ;;
9998     freebsd-*)
9999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10000       need_version=yes
10001       ;;
10002   esac
10003   shlibpath_var=LD_LIBRARY_PATH
10004   case $host_os in
10005   freebsd2*)
10006     shlibpath_overrides_runpath=yes
10007     ;;
10008   freebsd3.[01]* | freebsdelf3.[01]*)
10009     shlibpath_overrides_runpath=yes
10010     hardcode_into_libs=yes
10011     ;;
10012   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10013   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10014     shlibpath_overrides_runpath=no
10015     hardcode_into_libs=yes
10016     ;;
10017   freebsd*) # from 4.6 on
10018     shlibpath_overrides_runpath=yes
10019     hardcode_into_libs=yes
10020     ;;
10021   esac
10022   ;;
10023
10024 gnu*)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   hardcode_into_libs=yes
10032   ;;
10033
10034 hpux9* | hpux10* | hpux11*)
10035   # Give a soname corresponding to the major version so that dld.sl refuses to
10036   # link against other versions.
10037   version_type=sunos
10038   need_lib_prefix=no
10039   need_version=no
10040   case $host_cpu in
10041   ia64*)
10042     shrext_cmds='.so'
10043     hardcode_into_libs=yes
10044     dynamic_linker="$host_os dld.so"
10045     shlibpath_var=LD_LIBRARY_PATH
10046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048     soname_spec='${libname}${release}${shared_ext}$major'
10049     if test "X$HPUX_IA64_MODE" = X32; then
10050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10051     else
10052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10053     fi
10054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055     ;;
10056    hppa*64*)
10057      shrext_cmds='.sl'
10058      hardcode_into_libs=yes
10059      dynamic_linker="$host_os dld.sl"
10060      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063      soname_spec='${libname}${release}${shared_ext}$major'
10064      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066      ;;
10067    *)
10068     shrext_cmds='.sl'
10069     dynamic_linker="$host_os dld.sl"
10070     shlibpath_var=SHLIB_PATH
10071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073     soname_spec='${libname}${release}${shared_ext}$major'
10074     ;;
10075   esac
10076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10077   postinstall_cmds='chmod 555 $lib'
10078   ;;
10079
10080 interix3*)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10087   shlibpath_var=LD_LIBRARY_PATH
10088   shlibpath_overrides_runpath=no
10089   hardcode_into_libs=yes
10090   ;;
10091
10092 irix5* | irix6* | nonstopux*)
10093   case $host_os in
10094     nonstopux*) version_type=nonstopux ;;
10095     *)
10096         if test "$lt_cv_prog_gnu_ld" = yes; then
10097                 version_type=linux
10098         else
10099                 version_type=irix
10100         fi ;;
10101   esac
10102   need_lib_prefix=no
10103   need_version=no
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10106   case $host_os in
10107   irix5* | nonstopux*)
10108     libsuff= shlibsuff=
10109     ;;
10110   *)
10111     case $LD in # libtool.m4 will add one of these switches to LD
10112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10113       libsuff= shlibsuff= libmagic=32-bit;;
10114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10115       libsuff=32 shlibsuff=N32 libmagic=N32;;
10116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10118     *) libsuff= shlibsuff= libmagic=never-match;;
10119     esac
10120     ;;
10121   esac
10122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10123   shlibpath_overrides_runpath=no
10124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10126   hardcode_into_libs=yes
10127   ;;
10128
10129 # No shared lib support for Linux oldld, aout, or coff.
10130 linux*oldld* | linux*aout* | linux*coff*)
10131   dynamic_linker=no
10132   ;;
10133
10134 # This must be Linux ELF.
10135 linux* | k*bsd*-gnu)
10136   version_type=linux
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   shlibpath_overrides_runpath=no
10144   # This implies no fast_install, which is unacceptable.
10145   # Some rework will be needed to allow for fast_install
10146   # before this can be enabled.
10147   hardcode_into_libs=yes
10148
10149   # Append ld.so.conf contents to the search path
10150   if test -f /etc/ld.so.conf; then
10151     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10152     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10153   fi
10154
10155   # We used to test for /lib/ld.so.1 and disable shared libraries on
10156   # powerpc, because MkLinux only supported shared libraries with the
10157   # GNU dynamic linker.  Since this was broken with cross compilers,
10158   # most powerpc-linux boxes support dynamic linking these days and
10159   # people can always --disable-shared, the test was removed, and we
10160   # assume the GNU/Linux dynamic linker is in use.
10161   dynamic_linker='GNU/Linux ld.so'
10162   ;;
10163
10164 netbsdelf*-gnu)
10165   version_type=linux
10166   need_lib_prefix=no
10167   need_version=no
10168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10169   soname_spec='${libname}${release}${shared_ext}$major'
10170   shlibpath_var=LD_LIBRARY_PATH
10171   shlibpath_overrides_runpath=no
10172   hardcode_into_libs=yes
10173   dynamic_linker='NetBSD ld.elf_so'
10174   ;;
10175
10176 netbsd*)
10177   version_type=sunos
10178   need_lib_prefix=no
10179   need_version=no
10180   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10182     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10183     dynamic_linker='NetBSD (a.out) ld.so'
10184   else
10185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10186     soname_spec='${libname}${release}${shared_ext}$major'
10187     dynamic_linker='NetBSD ld.elf_so'
10188   fi
10189   shlibpath_var=LD_LIBRARY_PATH
10190   shlibpath_overrides_runpath=yes
10191   hardcode_into_libs=yes
10192   ;;
10193
10194 newsos6)
10195   version_type=linux
10196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197   shlibpath_var=LD_LIBRARY_PATH
10198   shlibpath_overrides_runpath=yes
10199   ;;
10200
10201 nto-qnx*)
10202   version_type=linux
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206   soname_spec='${libname}${release}${shared_ext}$major'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   shlibpath_overrides_runpath=yes
10209   ;;
10210
10211 openbsd*)
10212   version_type=sunos
10213   sys_lib_dlsearch_path_spec="/usr/lib"
10214   need_lib_prefix=no
10215   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10216   case $host_os in
10217     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10218     *)                         need_version=no  ;;
10219   esac
10220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10222   shlibpath_var=LD_LIBRARY_PATH
10223   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10224     case $host_os in
10225       openbsd2.[89] | openbsd2.[89].*)
10226         shlibpath_overrides_runpath=no
10227         ;;
10228       *)
10229         shlibpath_overrides_runpath=yes
10230         ;;
10231       esac
10232   else
10233     shlibpath_overrides_runpath=yes
10234   fi
10235   ;;
10236
10237 os2*)
10238   libname_spec='$name'
10239   shrext_cmds=".dll"
10240   need_lib_prefix=no
10241   library_names_spec='$libname${shared_ext} $libname.a'
10242   dynamic_linker='OS/2 ld.exe'
10243   shlibpath_var=LIBPATH
10244   ;;
10245
10246 osf3* | osf4* | osf5*)
10247   version_type=osf
10248   need_lib_prefix=no
10249   need_version=no
10250   soname_spec='${libname}${release}${shared_ext}$major'
10251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252   shlibpath_var=LD_LIBRARY_PATH
10253   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10254   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10255   ;;
10256
10257 solaris*)
10258   version_type=linux
10259   need_lib_prefix=no
10260   need_version=no
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262   soname_spec='${libname}${release}${shared_ext}$major'
10263   shlibpath_var=LD_LIBRARY_PATH
10264   shlibpath_overrides_runpath=yes
10265   hardcode_into_libs=yes
10266   # ldd complains unless libraries are executable
10267   postinstall_cmds='chmod +x $lib'
10268   ;;
10269
10270 sunos4*)
10271   version_type=sunos
10272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10274   shlibpath_var=LD_LIBRARY_PATH
10275   shlibpath_overrides_runpath=yes
10276   if test "$with_gnu_ld" = yes; then
10277     need_lib_prefix=no
10278   fi
10279   need_version=yes
10280   ;;
10281
10282 sysv4 | sysv4.3*)
10283   version_type=linux
10284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285   soname_spec='${libname}${release}${shared_ext}$major'
10286   shlibpath_var=LD_LIBRARY_PATH
10287   case $host_vendor in
10288     sni)
10289       shlibpath_overrides_runpath=no
10290       need_lib_prefix=no
10291       export_dynamic_flag_spec='${wl}-Blargedynsym'
10292       runpath_var=LD_RUN_PATH
10293       ;;
10294     siemens)
10295       need_lib_prefix=no
10296       ;;
10297     motorola)
10298       need_lib_prefix=no
10299       need_version=no
10300       shlibpath_overrides_runpath=no
10301       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10302       ;;
10303   esac
10304   ;;
10305
10306 sysv4*MP*)
10307   if test -d /usr/nec ;then
10308     version_type=linux
10309     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10310     soname_spec='$libname${shared_ext}.$major'
10311     shlibpath_var=LD_LIBRARY_PATH
10312   fi
10313   ;;
10314
10315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10316   version_type=freebsd-elf
10317   need_lib_prefix=no
10318   need_version=no
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10320   soname_spec='${libname}${release}${shared_ext}$major'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   hardcode_into_libs=yes
10323   if test "$with_gnu_ld" = yes; then
10324     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10325     shlibpath_overrides_runpath=no
10326   else
10327     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10328     shlibpath_overrides_runpath=yes
10329     case $host_os in
10330       sco3.2v5*)
10331         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10332         ;;
10333     esac
10334   fi
10335   sys_lib_dlsearch_path_spec='/usr/lib'
10336   ;;
10337
10338 uts4*)
10339   version_type=linux
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341   soname_spec='${libname}${release}${shared_ext}$major'
10342   shlibpath_var=LD_LIBRARY_PATH
10343   ;;
10344
10345 *)
10346   dynamic_linker=no
10347   ;;
10348 esac
10349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10350 echo "${ECHO_T}$dynamic_linker" >&6; }
10351 test "$dynamic_linker" = no && can_build_shared=no
10352
10353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10354 if test "$GCC" = yes; then
10355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10356 fi
10357
10358 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10360 hardcode_action=
10361 if test -n "$hardcode_libdir_flag_spec" || \
10362    test -n "$runpath_var" || \
10363    test "X$hardcode_automatic" = "Xyes" ; then
10364
10365   # We can hardcode non-existant directories.
10366   if test "$hardcode_direct" != no &&
10367      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10368      # have to relink, otherwise we might link with an installed library
10369      # when we should be linking with a yet-to-be-installed one
10370      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10371      test "$hardcode_minus_L" != no; then
10372     # Linking always hardcodes the temporary library directory.
10373     hardcode_action=relink
10374   else
10375     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10376     hardcode_action=immediate
10377   fi
10378 else
10379   # We cannot hardcode anything, or else we can only hardcode existing
10380   # directories.
10381   hardcode_action=unsupported
10382 fi
10383 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10384 echo "${ECHO_T}$hardcode_action" >&6; }
10385
10386 if test "$hardcode_action" = relink; then
10387   # Fast installation is not supported
10388   enable_fast_install=no
10389 elif test "$shlibpath_overrides_runpath" = yes ||
10390      test "$enable_shared" = no; then
10391   # Fast installation is not necessary
10392   enable_fast_install=needless
10393 fi
10394
10395 striplib=
10396 old_striplib=
10397 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10400   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10401   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10402   { echo "$as_me:$LINENO: result: yes" >&5
10403 echo "${ECHO_T}yes" >&6; }
10404 else
10405 # FIXME - insert some real tests, host_os isn't really good enough
10406   case $host_os in
10407    darwin*)
10408        if test -n "$STRIP" ; then
10409          striplib="$STRIP -x"
10410          { echo "$as_me:$LINENO: result: yes" >&5
10411 echo "${ECHO_T}yes" >&6; }
10412        else
10413   { echo "$as_me:$LINENO: result: no" >&5
10414 echo "${ECHO_T}no" >&6; }
10415 fi
10416        ;;
10417    *)
10418   { echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6; }
10420     ;;
10421   esac
10422 fi
10423
10424 if test "x$enable_dlopen" != xyes; then
10425   enable_dlopen=unknown
10426   enable_dlopen_self=unknown
10427   enable_dlopen_self_static=unknown
10428 else
10429   lt_cv_dlopen=no
10430   lt_cv_dlopen_libs=
10431
10432   case $host_os in
10433   beos*)
10434     lt_cv_dlopen="load_add_on"
10435     lt_cv_dlopen_libs=
10436     lt_cv_dlopen_self=yes
10437     ;;
10438
10439   mingw* | pw32*)
10440     lt_cv_dlopen="LoadLibrary"
10441     lt_cv_dlopen_libs=
10442    ;;
10443
10444   cygwin*)
10445     lt_cv_dlopen="dlopen"
10446     lt_cv_dlopen_libs=
10447    ;;
10448
10449   darwin*)
10450   # if libdl is installed we need to link against it
10451     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-ldl  $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464
10465 /* Override any GCC internal prototype to avoid an error.
10466    Use char because int might match the return type of a GCC
10467    builtin and then its argument prototype would still apply.  */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char dlopen ();
10472 int
10473 main ()
10474 {
10475 return dlopen ();
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484   *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487   (eval "$ac_link") 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } && {
10494          test -z "$ac_c_werror_flag" ||
10495          test ! -s conftest.err
10496        } && test -s conftest$ac_exeext &&
10497        $as_test_x conftest$ac_exeext; then
10498   ac_cv_lib_dl_dlopen=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503         ac_cv_lib_dl_dlopen=no
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507       conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10509 fi
10510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10512 if test $ac_cv_lib_dl_dlopen = yes; then
10513   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10514 else
10515
10516     lt_cv_dlopen="dyld"
10517     lt_cv_dlopen_libs=
10518     lt_cv_dlopen_self=yes
10519
10520 fi
10521
10522    ;;
10523
10524   *)
10525     { echo "$as_me:$LINENO: checking for shl_load" >&5
10526 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10527 if test "${ac_cv_func_shl_load+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10538 #define shl_load innocuous_shl_load
10539
10540 /* System header to define __stub macros and hopefully few prototypes,
10541     which can conflict with char shl_load (); below.
10542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10543     <limits.h> exists even on freestanding compilers.  */
10544
10545 #ifdef __STDC__
10546 # include <limits.h>
10547 #else
10548 # include <assert.h>
10549 #endif
10550
10551 #undef shl_load
10552
10553 /* Override any GCC internal prototype to avoid an error.
10554    Use char because int might match the return type of a GCC
10555    builtin and then its argument prototype would still apply.  */
10556 #ifdef __cplusplus
10557 extern "C"
10558 #endif
10559 char shl_load ();
10560 /* The GNU C library defines this for functions which it implements
10561     to always fail with ENOSYS.  Some functions are actually named
10562     something starting with __ and the normal name is an alias.  */
10563 #if defined __stub_shl_load || defined __stub___shl_load
10564 choke me
10565 #endif
10566
10567 int
10568 main ()
10569 {
10570 return shl_load ();
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (ac_try="$ac_link"
10577 case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_link") 2>conftest.er1
10583   ac_status=$?
10584   grep -v '^ *+' conftest.er1 >conftest.err
10585   rm -f conftest.er1
10586   cat conftest.err >&5
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } && {
10589          test -z "$ac_c_werror_flag" ||
10590          test ! -s conftest.err
10591        } && test -s conftest$ac_exeext &&
10592        $as_test_x conftest$ac_exeext; then
10593   ac_cv_func_shl_load=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598         ac_cv_func_shl_load=no
10599 fi
10600
10601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602       conftest$ac_exeext conftest.$ac_ext
10603 fi
10604 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10606 if test $ac_cv_func_shl_load = yes; then
10607   lt_cv_dlopen="shl_load"
10608 else
10609   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-ldld  $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622
10623 /* Override any GCC internal prototype to avoid an error.
10624    Use char because int might match the return type of a GCC
10625    builtin and then its argument prototype would still apply.  */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char shl_load ();
10630 int
10631 main ()
10632 {
10633 return shl_load ();
10634   ;
10635   return 0;
10636 }
10637 _ACEOF
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (ac_try="$ac_link"
10640 case "(($ac_try" in
10641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642   *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645   (eval "$ac_link") 2>conftest.er1
10646   ac_status=$?
10647   grep -v '^ *+' conftest.er1 >conftest.err
10648   rm -f conftest.er1
10649   cat conftest.err >&5
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } && {
10652          test -z "$ac_c_werror_flag" ||
10653          test ! -s conftest.err
10654        } && test -s conftest$ac_exeext &&
10655        $as_test_x conftest$ac_exeext; then
10656   ac_cv_lib_dld_shl_load=yes
10657 else
10658   echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661         ac_cv_lib_dld_shl_load=no
10662 fi
10663
10664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665       conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10670 if test $ac_cv_lib_dld_shl_load = yes; then
10671   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10672 else
10673   { echo "$as_me:$LINENO: checking for dlopen" >&5
10674 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10675 if test "${ac_cv_func_dlopen+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10686 #define dlopen innocuous_dlopen
10687
10688 /* System header to define __stub macros and hopefully few prototypes,
10689     which can conflict with char dlopen (); below.
10690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10691     <limits.h> exists even on freestanding compilers.  */
10692
10693 #ifdef __STDC__
10694 # include <limits.h>
10695 #else
10696 # include <assert.h>
10697 #endif
10698
10699 #undef dlopen
10700
10701 /* Override any GCC internal prototype to avoid an error.
10702    Use char because int might match the return type of a GCC
10703    builtin and then its argument prototype would still apply.  */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 char dlopen ();
10708 /* The GNU C library defines this for functions which it implements
10709     to always fail with ENOSYS.  Some functions are actually named
10710     something starting with __ and the normal name is an alias.  */
10711 #if defined __stub_dlopen || defined __stub___dlopen
10712 choke me
10713 #endif
10714
10715 int
10716 main ()
10717 {
10718 return dlopen ();
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (ac_try="$ac_link"
10725 case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_link") 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } && {
10737          test -z "$ac_c_werror_flag" ||
10738          test ! -s conftest.err
10739        } && test -s conftest$ac_exeext &&
10740        $as_test_x conftest$ac_exeext; then
10741   ac_cv_func_dlopen=yes
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_cv_func_dlopen=no
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10750       conftest$ac_exeext conftest.$ac_ext
10751 fi
10752 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10753 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10754 if test $ac_cv_func_dlopen = yes; then
10755   lt_cv_dlopen="dlopen"
10756 else
10757   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-ldl  $LIBS"
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770
10771 /* Override any GCC internal prototype to avoid an error.
10772    Use char because int might match the return type of a GCC
10773    builtin and then its argument prototype would still apply.  */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char dlopen ();
10778 int
10779 main ()
10780 {
10781 return dlopen ();
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_link") 2>conftest.er1
10794   ac_status=$?
10795   grep -v '^ *+' conftest.er1 >conftest.err
10796   rm -f conftest.er1
10797   cat conftest.err >&5
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); } && {
10800          test -z "$ac_c_werror_flag" ||
10801          test ! -s conftest.err
10802        } && test -s conftest$ac_exeext &&
10803        $as_test_x conftest$ac_exeext; then
10804   ac_cv_lib_dl_dlopen=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809         ac_cv_lib_dl_dlopen=no
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813       conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10818 if test $ac_cv_lib_dl_dlopen = yes; then
10819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10820 else
10821   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10822 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10823 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-lsvld  $LIBS"
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836    Use char because int might match the return type of a GCC
10837    builtin and then its argument prototype would still apply.  */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dlopen ();
10842 int
10843 main ()
10844 {
10845 return dlopen ();
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_link") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } && {
10864          test -z "$ac_c_werror_flag" ||
10865          test ! -s conftest.err
10866        } && test -s conftest$ac_exeext &&
10867        $as_test_x conftest$ac_exeext; then
10868   ac_cv_lib_svld_dlopen=yes
10869 else
10870   echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873         ac_cv_lib_svld_dlopen=no
10874 fi
10875
10876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10877       conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10879 fi
10880 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10881 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10882 if test $ac_cv_lib_svld_dlopen = yes; then
10883   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10884 else
10885   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10886 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10887 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10888   echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890   ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld  $LIBS"
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898
10899 /* Override any GCC internal prototype to avoid an error.
10900    Use char because int might match the return type of a GCC
10901    builtin and then its argument prototype would still apply.  */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 char dld_link ();
10906 int
10907 main ()
10908 {
10909 return dld_link ();
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_link") 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } && {
10928          test -z "$ac_c_werror_flag" ||
10929          test ! -s conftest.err
10930        } && test -s conftest$ac_exeext &&
10931        $as_test_x conftest$ac_exeext; then
10932   ac_cv_lib_dld_dld_link=yes
10933 else
10934   echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937         ac_cv_lib_dld_dld_link=no
10938 fi
10939
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941       conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10945 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10946 if test $ac_cv_lib_dld_dld_link = yes; then
10947   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10948 fi
10949
10950
10951 fi
10952
10953
10954 fi
10955
10956
10957 fi
10958
10959
10960 fi
10961
10962
10963 fi
10964
10965     ;;
10966   esac
10967
10968   if test "x$lt_cv_dlopen" != xno; then
10969     enable_dlopen=yes
10970   else
10971     enable_dlopen=no
10972   fi
10973
10974   case $lt_cv_dlopen in
10975   dlopen)
10976     save_CPPFLAGS="$CPPFLAGS"
10977     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10978
10979     save_LDFLAGS="$LDFLAGS"
10980     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10981
10982     save_LIBS="$LIBS"
10983     LIBS="$lt_cv_dlopen_libs $LIBS"
10984
10985     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10986 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10987 if test "${lt_cv_dlopen_self+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990           if test "$cross_compiling" = yes; then :
10991   lt_cv_dlopen_self=cross
10992 else
10993   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10994   lt_status=$lt_dlunknown
10995   cat > conftest.$ac_ext <<EOF
10996 #line 10996 "configure"
10997 #include "confdefs.h"
10998
10999 #if HAVE_DLFCN_H
11000 #include <dlfcn.h>
11001 #endif
11002
11003 #include <stdio.h>
11004
11005 #ifdef RTLD_GLOBAL
11006 #  define LT_DLGLOBAL           RTLD_GLOBAL
11007 #else
11008 #  ifdef DL_GLOBAL
11009 #    define LT_DLGLOBAL         DL_GLOBAL
11010 #  else
11011 #    define LT_DLGLOBAL         0
11012 #  endif
11013 #endif
11014
11015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11016    find out it does not work in some platform. */
11017 #ifndef LT_DLLAZY_OR_NOW
11018 #  ifdef RTLD_LAZY
11019 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11020 #  else
11021 #    ifdef DL_LAZY
11022 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11023 #    else
11024 #      ifdef RTLD_NOW
11025 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11026 #      else
11027 #        ifdef DL_NOW
11028 #          define LT_DLLAZY_OR_NOW      DL_NOW
11029 #        else
11030 #          define LT_DLLAZY_OR_NOW      0
11031 #        endif
11032 #      endif
11033 #    endif
11034 #  endif
11035 #endif
11036
11037 #ifdef __cplusplus
11038 extern "C" void exit (int);
11039 #endif
11040
11041 void fnord() { int i=42;}
11042 int main ()
11043 {
11044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11045   int status = $lt_dlunknown;
11046
11047   if (self)
11048     {
11049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11050       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11051       /* dlclose (self); */
11052     }
11053   else
11054     puts (dlerror ());
11055
11056     exit (status);
11057 }
11058 EOF
11059   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060   (eval $ac_link) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11064     (./conftest; exit; ) >&5 2>/dev/null
11065     lt_status=$?
11066     case x$lt_status in
11067       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11068       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11069       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11070     esac
11071   else :
11072     # compilation failed
11073     lt_cv_dlopen_self=no
11074   fi
11075 fi
11076 rm -fr conftest*
11077
11078
11079 fi
11080 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11081 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11082
11083     if test "x$lt_cv_dlopen_self" = xyes; then
11084       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11085       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11086 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11087 if test "${lt_cv_dlopen_self_static+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090           if test "$cross_compiling" = yes; then :
11091   lt_cv_dlopen_self_static=cross
11092 else
11093   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11094   lt_status=$lt_dlunknown
11095   cat > conftest.$ac_ext <<EOF
11096 #line 11096 "configure"
11097 #include "confdefs.h"
11098
11099 #if HAVE_DLFCN_H
11100 #include <dlfcn.h>
11101 #endif
11102
11103 #include <stdio.h>
11104
11105 #ifdef RTLD_GLOBAL
11106 #  define LT_DLGLOBAL           RTLD_GLOBAL
11107 #else
11108 #  ifdef DL_GLOBAL
11109 #    define LT_DLGLOBAL         DL_GLOBAL
11110 #  else
11111 #    define LT_DLGLOBAL         0
11112 #  endif
11113 #endif
11114
11115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11116    find out it does not work in some platform. */
11117 #ifndef LT_DLLAZY_OR_NOW
11118 #  ifdef RTLD_LAZY
11119 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11120 #  else
11121 #    ifdef DL_LAZY
11122 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11123 #    else
11124 #      ifdef RTLD_NOW
11125 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11126 #      else
11127 #        ifdef DL_NOW
11128 #          define LT_DLLAZY_OR_NOW      DL_NOW
11129 #        else
11130 #          define LT_DLLAZY_OR_NOW      0
11131 #        endif
11132 #      endif
11133 #    endif
11134 #  endif
11135 #endif
11136
11137 #ifdef __cplusplus
11138 extern "C" void exit (int);
11139 #endif
11140
11141 void fnord() { int i=42;}
11142 int main ()
11143 {
11144   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11145   int status = $lt_dlunknown;
11146
11147   if (self)
11148     {
11149       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11150       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11151       /* dlclose (self); */
11152     }
11153   else
11154     puts (dlerror ());
11155
11156     exit (status);
11157 }
11158 EOF
11159   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11164     (./conftest; exit; ) >&5 2>/dev/null
11165     lt_status=$?
11166     case x$lt_status in
11167       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11168       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11169       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11170     esac
11171   else :
11172     # compilation failed
11173     lt_cv_dlopen_self_static=no
11174   fi
11175 fi
11176 rm -fr conftest*
11177
11178
11179 fi
11180 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11181 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11182     fi
11183
11184     CPPFLAGS="$save_CPPFLAGS"
11185     LDFLAGS="$save_LDFLAGS"
11186     LIBS="$save_LIBS"
11187     ;;
11188   esac
11189
11190   case $lt_cv_dlopen_self in
11191   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11192   *) enable_dlopen_self=unknown ;;
11193   esac
11194
11195   case $lt_cv_dlopen_self_static in
11196   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11197   *) enable_dlopen_self_static=unknown ;;
11198   esac
11199 fi
11200
11201
11202 # Report which library types will actually be built
11203 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11204 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11205 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11206 echo "${ECHO_T}$can_build_shared" >&6; }
11207
11208 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11209 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11210 test "$can_build_shared" = "no" && enable_shared=no
11211
11212 # On AIX, shared libraries and static libraries use the same namespace, and
11213 # are all built from PIC.
11214 case $host_os in
11215 aix3*)
11216   test "$enable_shared" = yes && enable_static=no
11217   if test -n "$RANLIB"; then
11218     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11219     postinstall_cmds='$RANLIB $lib'
11220   fi
11221   ;;
11222
11223 aix4* | aix5*)
11224   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11225     test "$enable_shared" = yes && enable_static=no
11226   fi
11227     ;;
11228 esac
11229 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11230 echo "${ECHO_T}$enable_shared" >&6; }
11231
11232 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11233 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11234 # Make sure either enable_shared or enable_static is yes.
11235 test "$enable_shared" = yes || enable_static=yes
11236 { echo "$as_me:$LINENO: result: $enable_static" >&5
11237 echo "${ECHO_T}$enable_static" >&6; }
11238
11239 # The else clause should only fire when bootstrapping the
11240 # libtool distribution, otherwise you forgot to ship ltmain.sh
11241 # with your package, and you will get complaints that there are
11242 # no rules to generate ltmain.sh.
11243 if test -f "$ltmain"; then
11244   # See if we are running on zsh, and set the options which allow our commands through
11245   # without removal of \ escapes.
11246   if test -n "${ZSH_VERSION+set}" ; then
11247     setopt NO_GLOB_SUBST
11248   fi
11249   # Now quote all the things that may contain metacharacters while being
11250   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11251   # variables and quote the copies for generation of the libtool script.
11252   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11253     SED SHELL STRIP \
11254     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11255     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11256     deplibs_check_method reload_flag reload_cmds need_locks \
11257     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11258     lt_cv_sys_global_symbol_to_c_name_address \
11259     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11260     old_postinstall_cmds old_postuninstall_cmds \
11261     compiler \
11262     CC \
11263     LD \
11264     lt_prog_compiler_wl \
11265     lt_prog_compiler_pic \
11266     lt_prog_compiler_static \
11267     lt_prog_compiler_no_builtin_flag \
11268     export_dynamic_flag_spec \
11269     thread_safe_flag_spec \
11270     whole_archive_flag_spec \
11271     enable_shared_with_static_runtimes \
11272     old_archive_cmds \
11273     old_archive_from_new_cmds \
11274     predep_objects \
11275     postdep_objects \
11276     predeps \
11277     postdeps \
11278     compiler_lib_search_path \
11279     archive_cmds \
11280     archive_expsym_cmds \
11281     postinstall_cmds \
11282     postuninstall_cmds \
11283     old_archive_from_expsyms_cmds \
11284     allow_undefined_flag \
11285     no_undefined_flag \
11286     export_symbols_cmds \
11287     hardcode_libdir_flag_spec \
11288     hardcode_libdir_flag_spec_ld \
11289     hardcode_libdir_separator \
11290     hardcode_automatic \
11291     module_cmds \
11292     module_expsym_cmds \
11293     lt_cv_prog_compiler_c_o \
11294     exclude_expsyms \
11295     include_expsyms; do
11296
11297     case $var in
11298     old_archive_cmds | \
11299     old_archive_from_new_cmds | \
11300     archive_cmds | \
11301     archive_expsym_cmds | \
11302     module_cmds | \
11303     module_expsym_cmds | \
11304     old_archive_from_expsyms_cmds | \
11305     export_symbols_cmds | \
11306     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11307     postinstall_cmds | postuninstall_cmds | \
11308     old_postinstall_cmds | old_postuninstall_cmds | \
11309     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11310       # Double-quote double-evaled strings.
11311       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11312       ;;
11313     *)
11314       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11315       ;;
11316     esac
11317   done
11318
11319   case $lt_echo in
11320   *'\$0 --fallback-echo"')
11321     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11322     ;;
11323   esac
11324
11325 cfgfile="${ofile}T"
11326   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11327   $rm -f "$cfgfile"
11328   { echo "$as_me:$LINENO: creating $ofile" >&5
11329 echo "$as_me: creating $ofile" >&6;}
11330
11331   cat <<__EOF__ >> "$cfgfile"
11332 #! $SHELL
11333
11334 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11335 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11336 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11337 #
11338 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11339 # Free Software Foundation, Inc.
11340 #
11341 # This file is part of GNU Libtool:
11342 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11343 #
11344 # This program is free software; you can redistribute it and/or modify
11345 # it under the terms of the GNU General Public License as published by
11346 # the Free Software Foundation; either version 2 of the License, or
11347 # (at your option) any later version.
11348 #
11349 # This program is distributed in the hope that it will be useful, but
11350 # WITHOUT ANY WARRANTY; without even the implied warranty of
11351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11352 # General Public License for more details.
11353 #
11354 # You should have received a copy of the GNU General Public License
11355 # along with this program; if not, write to the Free Software
11356 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11357 #
11358 # As a special exception to the GNU General Public License, if you
11359 # distribute this file as part of a program that contains a
11360 # configuration script generated by Autoconf, you may include it under
11361 # the same distribution terms that you use for the rest of that program.
11362
11363 # A sed program that does not truncate output.
11364 SED=$lt_SED
11365
11366 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11367 Xsed="$SED -e 1s/^X//"
11368
11369 # The HP-UX ksh and POSIX shell print the target directory to stdout
11370 # if CDPATH is set.
11371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11372
11373 # The names of the tagged configurations supported by this script.
11374 available_tags=
11375
11376 # ### BEGIN LIBTOOL CONFIG
11377
11378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11379
11380 # Shell to use when invoking shell scripts.
11381 SHELL=$lt_SHELL
11382
11383 # Whether or not to build shared libraries.
11384 build_libtool_libs=$enable_shared
11385
11386 # Whether or not to build static libraries.
11387 build_old_libs=$enable_static
11388
11389 # Whether or not to add -lc for building shared libraries.
11390 build_libtool_need_lc=$archive_cmds_need_lc
11391
11392 # Whether or not to disallow shared libs when runtime libs are static
11393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11394
11395 # Whether or not to optimize for fast installation.
11396 fast_install=$enable_fast_install
11397
11398 # The host system.
11399 host_alias=$host_alias
11400 host=$host
11401 host_os=$host_os
11402
11403 # The build system.
11404 build_alias=$build_alias
11405 build=$build
11406 build_os=$build_os
11407
11408 # An echo program that does not interpret backslashes.
11409 echo=$lt_echo
11410
11411 # The archiver.
11412 AR=$lt_AR
11413 AR_FLAGS=$lt_AR_FLAGS
11414
11415 # A C compiler.
11416 LTCC=$lt_LTCC
11417
11418 # LTCC compiler flags.
11419 LTCFLAGS=$lt_LTCFLAGS
11420
11421 # A language-specific compiler.
11422 CC=$lt_compiler
11423
11424 # Is the compiler the GNU C compiler?
11425 with_gcc=$GCC
11426
11427 # An ERE matcher.
11428 EGREP=$lt_EGREP
11429
11430 # The linker used to build libraries.
11431 LD=$lt_LD
11432
11433 # Whether we need hard or soft links.
11434 LN_S=$lt_LN_S
11435
11436 # A BSD-compatible nm program.
11437 NM=$lt_NM
11438
11439 # A symbol stripping program
11440 STRIP=$lt_STRIP
11441
11442 # Used to examine libraries when file_magic_cmd begins "file"
11443 MAGIC_CMD=$MAGIC_CMD
11444
11445 # Used on cygwin: DLL creation program.
11446 DLLTOOL="$DLLTOOL"
11447
11448 # Used on cygwin: object dumper.
11449 OBJDUMP="$OBJDUMP"
11450
11451 # Used on cygwin: assembler.
11452 AS="$AS"
11453
11454 # The name of the directory that contains temporary libtool files.
11455 objdir=$objdir
11456
11457 # How to create reloadable object files.
11458 reload_flag=$lt_reload_flag
11459 reload_cmds=$lt_reload_cmds
11460
11461 # How to pass a linker flag through the compiler.
11462 wl=$lt_lt_prog_compiler_wl
11463
11464 # Object file suffix (normally "o").
11465 objext="$ac_objext"
11466
11467 # Old archive suffix (normally "a").
11468 libext="$libext"
11469
11470 # Shared library suffix (normally ".so").
11471 shrext_cmds='$shrext_cmds'
11472
11473 # Executable file suffix (normally "").
11474 exeext="$exeext"
11475
11476 # Additional compiler flags for building library objects.
11477 pic_flag=$lt_lt_prog_compiler_pic
11478 pic_mode=$pic_mode
11479
11480 # What is the maximum length of a command?
11481 max_cmd_len=$lt_cv_sys_max_cmd_len
11482
11483 # Does compiler simultaneously support -c and -o options?
11484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11485
11486 # Must we lock files when doing compilation?
11487 need_locks=$lt_need_locks
11488
11489 # Do we need the lib prefix for modules?
11490 need_lib_prefix=$need_lib_prefix
11491
11492 # Do we need a version for libraries?
11493 need_version=$need_version
11494
11495 # Whether dlopen is supported.
11496 dlopen_support=$enable_dlopen
11497
11498 # Whether dlopen of programs is supported.
11499 dlopen_self=$enable_dlopen_self
11500
11501 # Whether dlopen of statically linked programs is supported.
11502 dlopen_self_static=$enable_dlopen_self_static
11503
11504 # Compiler flag to prevent dynamic linking.
11505 link_static_flag=$lt_lt_prog_compiler_static
11506
11507 # Compiler flag to turn off builtin functions.
11508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11509
11510 # Compiler flag to allow reflexive dlopens.
11511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11512
11513 # Compiler flag to generate shared objects directly from archives.
11514 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11515
11516 # Compiler flag to generate thread-safe objects.
11517 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11518
11519 # Library versioning type.
11520 version_type=$version_type
11521
11522 # Format of library name prefix.
11523 libname_spec=$lt_libname_spec
11524
11525 # List of archive names.  First name is the real one, the rest are links.
11526 # The last name is the one that the linker finds with -lNAME.
11527 library_names_spec=$lt_library_names_spec
11528
11529 # The coded name of the library, if different from the real name.
11530 soname_spec=$lt_soname_spec
11531
11532 # Commands used to build and install an old-style archive.
11533 RANLIB=$lt_RANLIB
11534 old_archive_cmds=$lt_old_archive_cmds
11535 old_postinstall_cmds=$lt_old_postinstall_cmds
11536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11537
11538 # Create an old-style archive from a shared archive.
11539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11540
11541 # Create a temporary old-style archive to link instead of a shared archive.
11542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11543
11544 # Commands used to build and install a shared archive.
11545 archive_cmds=$lt_archive_cmds
11546 archive_expsym_cmds=$lt_archive_expsym_cmds
11547 postinstall_cmds=$lt_postinstall_cmds
11548 postuninstall_cmds=$lt_postuninstall_cmds
11549
11550 # Commands used to build a loadable module (assumed same as above if empty)
11551 module_cmds=$lt_module_cmds
11552 module_expsym_cmds=$lt_module_expsym_cmds
11553
11554 # Commands to strip libraries.
11555 old_striplib=$lt_old_striplib
11556 striplib=$lt_striplib
11557
11558 # Dependencies to place before the objects being linked to create a
11559 # shared library.
11560 predep_objects=$lt_predep_objects
11561
11562 # Dependencies to place after the objects being linked to create a
11563 # shared library.
11564 postdep_objects=$lt_postdep_objects
11565
11566 # Dependencies to place before the objects being linked to create a
11567 # shared library.
11568 predeps=$lt_predeps
11569
11570 # Dependencies to place after the objects being linked to create a
11571 # shared library.
11572 postdeps=$lt_postdeps
11573
11574 # The library search path used internally by the compiler when linking
11575 # a shared library.
11576 compiler_lib_search_path=$lt_compiler_lib_search_path
11577
11578 # Method to check whether dependent libraries are shared objects.
11579 deplibs_check_method=$lt_deplibs_check_method
11580
11581 # Command to use when deplibs_check_method == file_magic.
11582 file_magic_cmd=$lt_file_magic_cmd
11583
11584 # Flag that allows shared libraries with undefined symbols to be built.
11585 allow_undefined_flag=$lt_allow_undefined_flag
11586
11587 # Flag that forces no undefined symbols.
11588 no_undefined_flag=$lt_no_undefined_flag
11589
11590 # Commands used to finish a libtool library installation in a directory.
11591 finish_cmds=$lt_finish_cmds
11592
11593 # Same as above, but a single script fragment to be evaled but not shown.
11594 finish_eval=$lt_finish_eval
11595
11596 # Take the output of nm and produce a listing of raw symbols and C names.
11597 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11598
11599 # Transform the output of nm in a proper C declaration
11600 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11601
11602 # Transform the output of nm in a C name address pair
11603 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11604
11605 # This is the shared library runtime path variable.
11606 runpath_var=$runpath_var
11607
11608 # This is the shared library path variable.
11609 shlibpath_var=$shlibpath_var
11610
11611 # Is shlibpath searched before the hard-coded library search path?
11612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11613
11614 # How to hardcode a shared library path into an executable.
11615 hardcode_action=$hardcode_action
11616
11617 # Whether we should hardcode library paths into libraries.
11618 hardcode_into_libs=$hardcode_into_libs
11619
11620 # Flag to hardcode \$libdir into a binary during linking.
11621 # This must work even if \$libdir does not exist.
11622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11623
11624 # If ld is used when linking, flag to hardcode \$libdir into
11625 # a binary during linking. This must work even if \$libdir does
11626 # not exist.
11627 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11628
11629 # Whether we need a single -rpath flag with a separated argument.
11630 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11631
11632 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11633 # resulting binary.
11634 hardcode_direct=$hardcode_direct
11635
11636 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11637 # resulting binary.
11638 hardcode_minus_L=$hardcode_minus_L
11639
11640 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11641 # the resulting binary.
11642 hardcode_shlibpath_var=$hardcode_shlibpath_var
11643
11644 # Set to yes if building a shared library automatically hardcodes DIR into the library
11645 # and all subsequent libraries and executables linked against it.
11646 hardcode_automatic=$hardcode_automatic
11647
11648 # Variables whose values should be saved in libtool wrapper scripts and
11649 # restored at relink time.
11650 variables_saved_for_relink="$variables_saved_for_relink"
11651
11652 # Whether libtool must link a program against all its dependency libraries.
11653 link_all_deplibs=$link_all_deplibs
11654
11655 # Compile-time system search path for libraries
11656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11657
11658 # Run-time system search path for libraries
11659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11660
11661 # Fix the shell variable \$srcfile for the compiler.
11662 fix_srcfile_path="$fix_srcfile_path"
11663
11664 # Set to yes if exported symbols are required.
11665 always_export_symbols=$always_export_symbols
11666
11667 # The commands to list exported symbols.
11668 export_symbols_cmds=$lt_export_symbols_cmds
11669
11670 # The commands to extract the exported symbol list from a shared archive.
11671 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11672
11673 # Symbols that should not be listed in the preloaded symbols.
11674 exclude_expsyms=$lt_exclude_expsyms
11675
11676 # Symbols that must always be exported.
11677 include_expsyms=$lt_include_expsyms
11678
11679 # ### END LIBTOOL CONFIG
11680
11681 __EOF__
11682
11683
11684   case $host_os in
11685   aix3*)
11686     cat <<\EOF >> "$cfgfile"
11687
11688 # AIX sometimes has problems with the GCC collect2 program.  For some
11689 # reason, if we set the COLLECT_NAMES environment variable, the problems
11690 # vanish in a puff of smoke.
11691 if test "X${COLLECT_NAMES+set}" != Xset; then
11692   COLLECT_NAMES=
11693   export COLLECT_NAMES
11694 fi
11695 EOF
11696     ;;
11697   esac
11698
11699   # We use sed instead of cat because bash on DJGPP gets confused if
11700   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11701   # text mode, it properly converts lines to CR/LF.  This bash problem
11702   # is reportedly fixed, but why not run on old versions too?
11703   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11704
11705   mv -f "$cfgfile" "$ofile" || \
11706     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11707   chmod +x "$ofile"
11708
11709 else
11710   # If there is no Makefile yet, we rely on a make rule to execute
11711   # `config.status --recheck' to rerun these tests and create the
11712   # libtool script then.
11713   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11714   if test -f "$ltmain_in"; then
11715     test -f Makefile && make "$ltmain"
11716   fi
11717 fi
11718
11719
11720 ac_ext=c
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11725
11726 CC="$lt_save_CC"
11727
11728
11729 # Check whether --with-tags was given.
11730 if test "${with_tags+set}" = set; then
11731   withval=$with_tags; tagnames="$withval"
11732 fi
11733
11734
11735 if test -f "$ltmain" && test -n "$tagnames"; then
11736   if test ! -f "${ofile}"; then
11737     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11738 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11739   fi
11740
11741   if test -z "$LTCC"; then
11742     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11743     if test -z "$LTCC"; then
11744       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11745 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11746     else
11747       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11748 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11749     fi
11750   fi
11751   if test -z "$LTCFLAGS"; then
11752     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11753   fi
11754
11755   # Extract list of available tagged configurations in $ofile.
11756   # Note that this assumes the entire list is on one line.
11757   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11758
11759   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11760   for tagname in $tagnames; do
11761     IFS="$lt_save_ifs"
11762     # Check whether tagname contains only valid characters
11763     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11764     "") ;;
11765     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11766 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11767    { (exit 1); exit 1; }; }
11768         ;;
11769     esac
11770
11771     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11772     then
11773       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11774 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11775    { (exit 1); exit 1; }; }
11776     fi
11777
11778     # Update the list of available tags.
11779     if test -n "$tagname"; then
11780       echo appending configuration tag \"$tagname\" to $ofile
11781
11782       case $tagname in
11783       CXX)
11784         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11785             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11786             (test "X$CXX" != "Xg++"))) ; then
11787           ac_ext=cpp
11788 ac_cpp='$CXXCPP $CPPFLAGS'
11789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11792
11793
11794
11795
11796 archive_cmds_need_lc_CXX=no
11797 allow_undefined_flag_CXX=
11798 always_export_symbols_CXX=no
11799 archive_expsym_cmds_CXX=
11800 export_dynamic_flag_spec_CXX=
11801 hardcode_direct_CXX=no
11802 hardcode_libdir_flag_spec_CXX=
11803 hardcode_libdir_flag_spec_ld_CXX=
11804 hardcode_libdir_separator_CXX=
11805 hardcode_minus_L_CXX=no
11806 hardcode_shlibpath_var_CXX=unsupported
11807 hardcode_automatic_CXX=no
11808 module_cmds_CXX=
11809 module_expsym_cmds_CXX=
11810 link_all_deplibs_CXX=unknown
11811 old_archive_cmds_CXX=$old_archive_cmds
11812 no_undefined_flag_CXX=
11813 whole_archive_flag_spec_CXX=
11814 enable_shared_with_static_runtimes_CXX=no
11815
11816 # Dependencies to place before and after the object being linked:
11817 predep_objects_CXX=
11818 postdep_objects_CXX=
11819 predeps_CXX=
11820 postdeps_CXX=
11821 compiler_lib_search_path_CXX=
11822
11823 # Source file extension for C++ test sources.
11824 ac_ext=cpp
11825
11826 # Object file extension for compiled C++ test sources.
11827 objext=o
11828 objext_CXX=$objext
11829
11830 # Code to be used in simple compile tests
11831 lt_simple_compile_test_code="int some_variable = 0;\n"
11832
11833 # Code to be used in simple link tests
11834 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11835
11836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11837
11838 # If no C compiler was specified, use CC.
11839 LTCC=${LTCC-"$CC"}
11840
11841 # If no C compiler flags were specified, use CFLAGS.
11842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11843
11844 # Allow CC to be a program name with arguments.
11845 compiler=$CC
11846
11847
11848 # save warnings/boilerplate of simple test code
11849 ac_outfile=conftest.$ac_objext
11850 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_compiler_boilerplate=`cat conftest.err`
11853 $rm conftest*
11854
11855 ac_outfile=conftest.$ac_objext
11856 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_linker_boilerplate=`cat conftest.err`
11859 $rm conftest*
11860
11861
11862 # Allow CC to be a program name with arguments.
11863 lt_save_CC=$CC
11864 lt_save_LD=$LD
11865 lt_save_GCC=$GCC
11866 GCC=$GXX
11867 lt_save_with_gnu_ld=$with_gnu_ld
11868 lt_save_path_LD=$lt_cv_path_LD
11869 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11870   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11871 else
11872   $as_unset lt_cv_prog_gnu_ld
11873 fi
11874 if test -n "${lt_cv_path_LDCXX+set}"; then
11875   lt_cv_path_LD=$lt_cv_path_LDCXX
11876 else
11877   $as_unset lt_cv_path_LD
11878 fi
11879 test -z "${LDCXX+set}" || LD=$LDCXX
11880 CC=${CXX-"c++"}
11881 compiler=$CC
11882 compiler_CXX=$CC
11883 for cc_temp in $compiler""; do
11884   case $cc_temp in
11885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11887     \-*) ;;
11888     *) break;;
11889   esac
11890 done
11891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11892
11893
11894 # We don't want -fno-exception wen compiling C++ code, so set the
11895 # no_builtin_flag separately
11896 if test "$GXX" = yes; then
11897   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11898 else
11899   lt_prog_compiler_no_builtin_flag_CXX=
11900 fi
11901
11902 if test "$GXX" = yes; then
11903   # Set up default GNU C++ configuration
11904
11905
11906 # Check whether --with-gnu-ld was given.
11907 if test "${with_gnu_ld+set}" = set; then
11908   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11909 else
11910   with_gnu_ld=no
11911 fi
11912
11913 ac_prog=ld
11914 if test "$GCC" = yes; then
11915   # Check if gcc -print-prog-name=ld gives a path.
11916   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11917 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11918   case $host in
11919   *-*-mingw*)
11920     # gcc leaves a trailing carriage return which upsets mingw
11921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11922   *)
11923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11924   esac
11925   case $ac_prog in
11926     # Accept absolute paths.
11927     [\\/]* | ?:[\\/]*)
11928       re_direlt='/[^/][^/]*/\.\./'
11929       # Canonicalize the pathname of ld
11930       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11931       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11932         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11933       done
11934       test -z "$LD" && LD="$ac_prog"
11935       ;;
11936   "")
11937     # If it fails, then pretend we aren't using GCC.
11938     ac_prog=ld
11939     ;;
11940   *)
11941     # If it is relative, then search for the first ld in PATH.
11942     with_gnu_ld=unknown
11943     ;;
11944   esac
11945 elif test "$with_gnu_ld" = yes; then
11946   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11947 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11948 else
11949   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11950 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11951 fi
11952 if test "${lt_cv_path_LD+set}" = set; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955   if test -z "$LD"; then
11956   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11957   for ac_dir in $PATH; do
11958     IFS="$lt_save_ifs"
11959     test -z "$ac_dir" && ac_dir=.
11960     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11961       lt_cv_path_LD="$ac_dir/$ac_prog"
11962       # Check to see if the program is GNU ld.  I'd rather use --version,
11963       # but apparently some variants of GNU ld only accept -v.
11964       # Break only if it was the GNU/non-GNU ld that we prefer.
11965       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11966       *GNU* | *'with BFD'*)
11967         test "$with_gnu_ld" != no && break
11968         ;;
11969       *)
11970         test "$with_gnu_ld" != yes && break
11971         ;;
11972       esac
11973     fi
11974   done
11975   IFS="$lt_save_ifs"
11976 else
11977   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11978 fi
11979 fi
11980
11981 LD="$lt_cv_path_LD"
11982 if test -n "$LD"; then
11983   { echo "$as_me:$LINENO: result: $LD" >&5
11984 echo "${ECHO_T}$LD" >&6; }
11985 else
11986   { echo "$as_me:$LINENO: result: no" >&5
11987 echo "${ECHO_T}no" >&6; }
11988 fi
11989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11991    { (exit 1); exit 1; }; }
11992 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11998 case `$LD -v 2>&1 </dev/null` in
11999 *GNU* | *'with BFD'*)
12000   lt_cv_prog_gnu_ld=yes
12001   ;;
12002 *)
12003   lt_cv_prog_gnu_ld=no
12004   ;;
12005 esac
12006 fi
12007 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12008 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12009 with_gnu_ld=$lt_cv_prog_gnu_ld
12010
12011
12012
12013   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12014   # archiving commands below assume that GNU ld is being used.
12015   if test "$with_gnu_ld" = yes; then
12016     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017     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'
12018
12019     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021
12022     # If archive_cmds runs LD, not CC, wlarc should be empty
12023     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12024     #     investigate it a little bit more. (MM)
12025     wlarc='${wl}'
12026
12027     # ancient GNU ld didn't support --whole-archive et. al.
12028     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12029         grep 'no-whole-archive' > /dev/null; then
12030       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12031     else
12032       whole_archive_flag_spec_CXX=
12033     fi
12034   else
12035     with_gnu_ld=no
12036     wlarc=
12037
12038     # A generic and very simple default shared library creation
12039     # command for GNU C++ for the case where it uses the native
12040     # linker, instead of GNU ld.  If possible, this setting should
12041     # overridden to take advantage of the native linker features on
12042     # the platform it is being used on.
12043     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12044   fi
12045
12046   # Commands to make compiler produce verbose output that lists
12047   # what "hidden" libraries, object files and flags are used when
12048   # linking a shared library.
12049   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12050
12051 else
12052   GXX=no
12053   with_gnu_ld=no
12054   wlarc=
12055 fi
12056
12057 # PORTME: fill in a description of your system's C++ link characteristics
12058 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12059 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12060 ld_shlibs_CXX=yes
12061 case $host_os in
12062   aix3*)
12063     # FIXME: insert proper C++ library support
12064     ld_shlibs_CXX=no
12065     ;;
12066   aix4* | aix5*)
12067     if test "$host_cpu" = ia64; then
12068       # On IA64, the linker does run time linking by default, so we don't
12069       # have to do anything special.
12070       aix_use_runtimelinking=no
12071       exp_sym_flag='-Bexport'
12072       no_entry_flag=""
12073     else
12074       aix_use_runtimelinking=no
12075
12076       # Test if we are trying to use run time linking or normal
12077       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12078       # need to do runtime linking.
12079       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12080         for ld_flag in $LDFLAGS; do
12081           case $ld_flag in
12082           *-brtl*)
12083             aix_use_runtimelinking=yes
12084             break
12085             ;;
12086           esac
12087         done
12088         ;;
12089       esac
12090
12091       exp_sym_flag='-bexport'
12092       no_entry_flag='-bnoentry'
12093     fi
12094
12095     # When large executables or shared objects are built, AIX ld can
12096     # have problems creating the table of contents.  If linking a library
12097     # or program results in "error TOC overflow" add -mminimal-toc to
12098     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12099     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12100
12101     archive_cmds_CXX=''
12102     hardcode_direct_CXX=yes
12103     hardcode_libdir_separator_CXX=':'
12104     link_all_deplibs_CXX=yes
12105
12106     if test "$GXX" = yes; then
12107       case $host_os in aix4.[012]|aix4.[012].*)
12108       # We only want to do this on AIX 4.2 and lower, the check
12109       # below for broken collect2 doesn't work under 4.3+
12110         collect2name=`${CC} -print-prog-name=collect2`
12111         if test -f "$collect2name" && \
12112            strings "$collect2name" | grep resolve_lib_name >/dev/null
12113         then
12114           # We have reworked collect2
12115           hardcode_direct_CXX=yes
12116         else
12117           # We have old collect2
12118           hardcode_direct_CXX=unsupported
12119           # It fails to find uninstalled libraries when the uninstalled
12120           # path is not listed in the libpath.  Setting hardcode_minus_L
12121           # to unsupported forces relinking
12122           hardcode_minus_L_CXX=yes
12123           hardcode_libdir_flag_spec_CXX='-L$libdir'
12124           hardcode_libdir_separator_CXX=
12125         fi
12126         ;;
12127       esac
12128       shared_flag='-shared'
12129       if test "$aix_use_runtimelinking" = yes; then
12130         shared_flag="$shared_flag "'${wl}-G'
12131       fi
12132     else
12133       # not using gcc
12134       if test "$host_cpu" = ia64; then
12135         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12136         # chokes on -Wl,-G. The following line is correct:
12137         shared_flag='-G'
12138       else
12139         if test "$aix_use_runtimelinking" = yes; then
12140           shared_flag='${wl}-G'
12141         else
12142           shared_flag='${wl}-bM:SRE'
12143         fi
12144       fi
12145     fi
12146
12147     # It seems that -bexpall does not export symbols beginning with
12148     # underscore (_), so it is better to generate a list of symbols to export.
12149     always_export_symbols_CXX=yes
12150     if test "$aix_use_runtimelinking" = yes; then
12151       # Warning - without using the other runtime loading flags (-brtl),
12152       # -berok will link without error, but may produce a broken library.
12153       allow_undefined_flag_CXX='-berok'
12154       # Determine the default libpath from the value encoded in an empty executable.
12155       cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162 int
12163 main ()
12164 {
12165
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177   (eval "$ac_link") 2>conftest.er1
12178   ac_status=$?
12179   grep -v '^ *+' conftest.er1 >conftest.err
12180   rm -f conftest.er1
12181   cat conftest.err >&5
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } && {
12184          test -z "$ac_cxx_werror_flag" ||
12185          test ! -s conftest.err
12186        } && test -s conftest$ac_exeext &&
12187        $as_test_x conftest$ac_exeext; then
12188
12189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12190 }'`
12191 # Check for a 64-bit object if we didn't find anything.
12192 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12193 }'`; fi
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12202       conftest$ac_exeext conftest.$ac_ext
12203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12204
12205       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12206
12207       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"
12208      else
12209       if test "$host_cpu" = ia64; then
12210         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12211         allow_undefined_flag_CXX="-z nodefs"
12212         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"
12213       else
12214         # Determine the default libpath from the value encoded in an empty executable.
12215         cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221
12222 int
12223 main ()
12224 {
12225
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (ac_try="$ac_link"
12232 case "(($ac_try" in
12233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234   *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237   (eval "$ac_link") 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } && {
12244          test -z "$ac_cxx_werror_flag" ||
12245          test ! -s conftest.err
12246        } && test -s conftest$ac_exeext &&
12247        $as_test_x conftest$ac_exeext; then
12248
12249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12250 }'`
12251 # Check for a 64-bit object if we didn't find anything.
12252 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12253 }'`; fi
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258
12259 fi
12260
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262       conftest$ac_exeext conftest.$ac_ext
12263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12264
12265         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12266         # Warning - without using the other run time loading flags,
12267         # -berok will link without error, but may produce a broken library.
12268         no_undefined_flag_CXX=' ${wl}-bernotok'
12269         allow_undefined_flag_CXX=' ${wl}-berok'
12270         # Exported symbols can be pulled into shared objects from archives
12271         whole_archive_flag_spec_CXX='$convenience'
12272         archive_cmds_need_lc_CXX=yes
12273         # This is similar to how AIX traditionally builds its shared libraries.
12274         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'
12275       fi
12276     fi
12277     ;;
12278
12279   beos*)
12280     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12281       allow_undefined_flag_CXX=unsupported
12282       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12283       # support --undefined.  This deserves some investigation.  FIXME
12284       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12285     else
12286       ld_shlibs_CXX=no
12287     fi
12288     ;;
12289
12290   chorus*)
12291     case $cc_basename in
12292       *)
12293         # FIXME: insert proper C++ library support
12294         ld_shlibs_CXX=no
12295         ;;
12296     esac
12297     ;;
12298
12299   cygwin* | mingw* | pw32*)
12300     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12301     # as there is no search path for DLLs.
12302     hardcode_libdir_flag_spec_CXX='-L$libdir'
12303     allow_undefined_flag_CXX=unsupported
12304     always_export_symbols_CXX=no
12305     enable_shared_with_static_runtimes_CXX=yes
12306
12307     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12308       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'
12309       # If the export-symbols file already is a .def file (1st line
12310       # is EXPORTS), use it as is; otherwise, prepend...
12311       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12312         cp $export_symbols $output_objdir/$soname.def;
12313       else
12314         echo EXPORTS > $output_objdir/$soname.def;
12315         cat $export_symbols >> $output_objdir/$soname.def;
12316       fi~
12317       $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'
12318     else
12319       ld_shlibs_CXX=no
12320     fi
12321   ;;
12322       darwin* | rhapsody*)
12323         case $host_os in
12324         rhapsody* | darwin1.[012])
12325          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12326          ;;
12327        *) # Darwin 1.3 on
12328          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12329            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12330          else
12331            case ${MACOSX_DEPLOYMENT_TARGET} in
12332              10.[012])
12333                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12334                ;;
12335              10.*)
12336                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12337                ;;
12338            esac
12339          fi
12340          ;;
12341         esac
12342       archive_cmds_need_lc_CXX=no
12343       hardcode_direct_CXX=no
12344       hardcode_automatic_CXX=yes
12345       hardcode_shlibpath_var_CXX=unsupported
12346       whole_archive_flag_spec_CXX=''
12347       link_all_deplibs_CXX=yes
12348
12349     if test "$GXX" = yes ; then
12350       lt_int_apple_cc_single_mod=no
12351       output_verbose_link_cmd='echo'
12352       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12353        lt_int_apple_cc_single_mod=yes
12354       fi
12355       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12356        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12357       else
12358           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'
12359         fi
12360         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12361         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12362           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12363             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}'
12364           else
12365             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}'
12366           fi
12367             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}'
12368       else
12369       case $cc_basename in
12370         xlc*)
12371          output_verbose_link_cmd='echo'
12372           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12373           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12374           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12375           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12376           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}'
12377           ;;
12378        *)
12379          ld_shlibs_CXX=no
12380           ;;
12381       esac
12382       fi
12383         ;;
12384
12385   dgux*)
12386     case $cc_basename in
12387       ec++*)
12388         # FIXME: insert proper C++ library support
12389         ld_shlibs_CXX=no
12390         ;;
12391       ghcx*)
12392         # Green Hills C++ Compiler
12393         # FIXME: insert proper C++ library support
12394         ld_shlibs_CXX=no
12395         ;;
12396       *)
12397         # FIXME: insert proper C++ library support
12398         ld_shlibs_CXX=no
12399         ;;
12400     esac
12401     ;;
12402   freebsd[12]*)
12403     # C++ shared libraries reported to be fairly broken before switch to ELF
12404     ld_shlibs_CXX=no
12405     ;;
12406   freebsd-elf*)
12407     archive_cmds_need_lc_CXX=no
12408     ;;
12409   freebsd* | dragonfly*)
12410     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12411     # conventions
12412     ld_shlibs_CXX=yes
12413     ;;
12414   gnu*)
12415     ;;
12416   hpux9*)
12417     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12418     hardcode_libdir_separator_CXX=:
12419     export_dynamic_flag_spec_CXX='${wl}-E'
12420     hardcode_direct_CXX=yes
12421     hardcode_minus_L_CXX=yes # Not in the search PATH,
12422                                 # but as the default
12423                                 # location of the library.
12424
12425     case $cc_basename in
12426     CC*)
12427       # FIXME: insert proper C++ library support
12428       ld_shlibs_CXX=no
12429       ;;
12430     aCC*)
12431       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'
12432       # Commands to make compiler produce verbose output that lists
12433       # what "hidden" libraries, object files and flags are used when
12434       # linking a shared library.
12435       #
12436       # There doesn't appear to be a way to prevent this compiler from
12437       # explicitly linking system object files so we need to strip them
12438       # from the output so that they don't get included in the library
12439       # dependencies.
12440       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'
12441       ;;
12442     *)
12443       if test "$GXX" = yes; then
12444         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'
12445       else
12446         # FIXME: insert proper C++ library support
12447         ld_shlibs_CXX=no
12448       fi
12449       ;;
12450     esac
12451     ;;
12452   hpux10*|hpux11*)
12453     if test $with_gnu_ld = no; then
12454       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12455       hardcode_libdir_separator_CXX=:
12456
12457       case $host_cpu in
12458       hppa*64*|ia64*)
12459         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12460         ;;
12461       *)
12462         export_dynamic_flag_spec_CXX='${wl}-E'
12463         ;;
12464       esac
12465     fi
12466     case $host_cpu in
12467     hppa*64*|ia64*)
12468       hardcode_direct_CXX=no
12469       hardcode_shlibpath_var_CXX=no
12470       ;;
12471     *)
12472       hardcode_direct_CXX=yes
12473       hardcode_minus_L_CXX=yes # Not in the search PATH,
12474                                               # but as the default
12475                                               # location of the library.
12476       ;;
12477     esac
12478
12479     case $cc_basename in
12480       CC*)
12481         # FIXME: insert proper C++ library support
12482         ld_shlibs_CXX=no
12483         ;;
12484       aCC*)
12485         case $host_cpu in
12486         hppa*64*)
12487           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12488           ;;
12489         ia64*)
12490           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12491           ;;
12492         *)
12493           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12494           ;;
12495         esac
12496         # Commands to make compiler produce verbose output that lists
12497         # what "hidden" libraries, object files and flags are used when
12498         # linking a shared library.
12499         #
12500         # There doesn't appear to be a way to prevent this compiler from
12501         # explicitly linking system object files so we need to strip them
12502         # from the output so that they don't get included in the library
12503         # dependencies.
12504         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'
12505         ;;
12506       *)
12507         if test "$GXX" = yes; then
12508           if test $with_gnu_ld = no; then
12509             case $host_cpu in
12510             hppa*64*)
12511               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12512               ;;
12513             ia64*)
12514               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12515               ;;
12516             *)
12517               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'
12518               ;;
12519             esac
12520           fi
12521         else
12522           # FIXME: insert proper C++ library support
12523           ld_shlibs_CXX=no
12524         fi
12525         ;;
12526     esac
12527     ;;
12528   interix3*)
12529     hardcode_direct_CXX=no
12530     hardcode_shlibpath_var_CXX=no
12531     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12532     export_dynamic_flag_spec_CXX='${wl}-E'
12533     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12534     # Instead, shared libraries are loaded at an image base (0x10000000 by
12535     # default) and relocated if they conflict, which is a slow very memory
12536     # consuming and fragmenting process.  To avoid this, we pick a random,
12537     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12538     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12539     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'
12540     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'
12541     ;;
12542   irix5* | irix6*)
12543     case $cc_basename in
12544       CC*)
12545         # SGI C++
12546         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'
12547
12548         # Archives containing C++ object files must be created using
12549         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12550         # necessary to make sure instantiated templates are included
12551         # in the archive.
12552         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12553         ;;
12554       *)
12555         if test "$GXX" = yes; then
12556           if test "$with_gnu_ld" = no; then
12557             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'
12558           else
12559             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'
12560           fi
12561         fi
12562         link_all_deplibs_CXX=yes
12563         ;;
12564     esac
12565     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12566     hardcode_libdir_separator_CXX=:
12567     ;;
12568   linux* | k*bsd*-gnu)
12569     case $cc_basename in
12570       KCC*)
12571         # Kuck and Associates, Inc. (KAI) C++ Compiler
12572
12573         # KCC will only create a shared library if the output file
12574         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12575         # to its proper name (with version) after linking.
12576         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'
12577         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'
12578         # Commands to make compiler produce verbose output that lists
12579         # what "hidden" libraries, object files and flags are used when
12580         # linking a shared library.
12581         #
12582         # There doesn't appear to be a way to prevent this compiler from
12583         # explicitly linking system object files so we need to strip them
12584         # from the output so that they don't get included in the library
12585         # dependencies.
12586         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'
12587
12588         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12589         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12590
12591         # Archives containing C++ object files must be created using
12592         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12593         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12594         ;;
12595       icpc*)
12596         # Intel C++
12597         with_gnu_ld=yes
12598         # version 8.0 and above of icpc choke on multiply defined symbols
12599         # if we add $predep_objects and $postdep_objects, however 7.1 and
12600         # earlier do not add the objects themselves.
12601         case `$CC -V 2>&1` in
12602         *"Version 7."*)
12603           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12604           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'
12605           ;;
12606         *)  # Version 8.0 or newer
12607           tmp_idyn=
12608           case $host_cpu in
12609             ia64*) tmp_idyn=' -i_dynamic';;
12610           esac
12611           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612           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'
12613           ;;
12614         esac
12615         archive_cmds_need_lc_CXX=no
12616         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12617         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12618         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12619         ;;
12620       pgCC*)
12621         # Portland Group C++ compiler
12622         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12623         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'
12624
12625         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12626         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12627         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'
12628         ;;
12629       cxx*)
12630         # Compaq C++
12631         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632         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'
12633
12634         runpath_var=LD_RUN_PATH
12635         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12636         hardcode_libdir_separator_CXX=:
12637
12638         # Commands to make compiler produce verbose output that lists
12639         # what "hidden" libraries, object files and flags are used when
12640         # linking a shared library.
12641         #
12642         # There doesn't appear to be a way to prevent this compiler from
12643         # explicitly linking system object files so we need to strip them
12644         # from the output so that they don't get included in the library
12645         # dependencies.
12646         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'
12647         ;;
12648     esac
12649     ;;
12650   lynxos*)
12651     # FIXME: insert proper C++ library support
12652     ld_shlibs_CXX=no
12653     ;;
12654   m88k*)
12655     # FIXME: insert proper C++ library support
12656     ld_shlibs_CXX=no
12657     ;;
12658   mvs*)
12659     case $cc_basename in
12660       cxx*)
12661         # FIXME: insert proper C++ library support
12662         ld_shlibs_CXX=no
12663         ;;
12664       *)
12665         # FIXME: insert proper C++ library support
12666         ld_shlibs_CXX=no
12667         ;;
12668     esac
12669     ;;
12670   netbsd* | netbsdelf*-gnu)
12671     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12672       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12673       wlarc=
12674       hardcode_libdir_flag_spec_CXX='-R$libdir'
12675       hardcode_direct_CXX=yes
12676       hardcode_shlibpath_var_CXX=no
12677     fi
12678     # Workaround some broken pre-1.5 toolchains
12679     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12680     ;;
12681   openbsd2*)
12682     # C++ shared libraries are fairly broken
12683     ld_shlibs_CXX=no
12684     ;;
12685   openbsd*)
12686     hardcode_direct_CXX=yes
12687     hardcode_shlibpath_var_CXX=no
12688     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12689     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12690     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12692       export_dynamic_flag_spec_CXX='${wl}-E'
12693       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12694     fi
12695     output_verbose_link_cmd='echo'
12696     ;;
12697   osf3*)
12698     case $cc_basename in
12699       KCC*)
12700         # Kuck and Associates, Inc. (KAI) C++ Compiler
12701
12702         # KCC will only create a shared library if the output file
12703         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12704         # to its proper name (with version) after linking.
12705         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'
12706
12707         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12708         hardcode_libdir_separator_CXX=:
12709
12710         # Archives containing C++ object files must be created using
12711         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12712         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12713
12714         ;;
12715       RCC*)
12716         # Rational C++ 2.4.1
12717         # FIXME: insert proper C++ library support
12718         ld_shlibs_CXX=no
12719         ;;
12720       cxx*)
12721         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12722         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'
12723
12724         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12725         hardcode_libdir_separator_CXX=:
12726
12727         # Commands to make compiler produce verbose output that lists
12728         # what "hidden" libraries, object files and flags are used when
12729         # linking a shared library.
12730         #
12731         # There doesn't appear to be a way to prevent this compiler from
12732         # explicitly linking system object files so we need to strip them
12733         # from the output so that they don't get included in the library
12734         # dependencies.
12735         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'
12736         ;;
12737       *)
12738         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12739           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12740           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'
12741
12742           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743           hardcode_libdir_separator_CXX=:
12744
12745           # Commands to make compiler produce verbose output that lists
12746           # what "hidden" libraries, object files and flags are used when
12747           # linking a shared library.
12748           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12749
12750         else
12751           # FIXME: insert proper C++ library support
12752           ld_shlibs_CXX=no
12753         fi
12754         ;;
12755     esac
12756     ;;
12757   osf4* | osf5*)
12758     case $cc_basename in
12759       KCC*)
12760         # Kuck and Associates, Inc. (KAI) C++ Compiler
12761
12762         # KCC will only create a shared library if the output file
12763         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12764         # to its proper name (with version) after linking.
12765         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'
12766
12767         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12768         hardcode_libdir_separator_CXX=:
12769
12770         # Archives containing C++ object files must be created using
12771         # the KAI C++ compiler.
12772         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12773         ;;
12774       RCC*)
12775         # Rational C++ 2.4.1
12776         # FIXME: insert proper C++ library support
12777         ld_shlibs_CXX=no
12778         ;;
12779       cxx*)
12780         allow_undefined_flag_CXX=' -expect_unresolved \*'
12781         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'
12782         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12783           echo "-hidden">> $lib.exp~
12784           $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~
12785           $rm $lib.exp'
12786
12787         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12788         hardcode_libdir_separator_CXX=:
12789
12790         # Commands to make compiler produce verbose output that lists
12791         # what "hidden" libraries, object files and flags are used when
12792         # linking a shared library.
12793         #
12794         # There doesn't appear to be a way to prevent this compiler from
12795         # explicitly linking system object files so we need to strip them
12796         # from the output so that they don't get included in the library
12797         # dependencies.
12798         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'
12799         ;;
12800       *)
12801         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12802           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12803          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'
12804
12805           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12806           hardcode_libdir_separator_CXX=:
12807
12808           # Commands to make compiler produce verbose output that lists
12809           # what "hidden" libraries, object files and flags are used when
12810           # linking a shared library.
12811           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12812
12813         else
12814           # FIXME: insert proper C++ library support
12815           ld_shlibs_CXX=no
12816         fi
12817         ;;
12818     esac
12819     ;;
12820   psos*)
12821     # FIXME: insert proper C++ library support
12822     ld_shlibs_CXX=no
12823     ;;
12824   sunos4*)
12825     case $cc_basename in
12826       CC*)
12827         # Sun C++ 4.x
12828         # FIXME: insert proper C++ library support
12829         ld_shlibs_CXX=no
12830         ;;
12831       lcc*)
12832         # Lucid
12833         # FIXME: insert proper C++ library support
12834         ld_shlibs_CXX=no
12835         ;;
12836       *)
12837         # FIXME: insert proper C++ library support
12838         ld_shlibs_CXX=no
12839         ;;
12840     esac
12841     ;;
12842   solaris*)
12843     case $cc_basename in
12844       CC*)
12845         # Sun C++ 4.2, 5.x and Centerline C++
12846         archive_cmds_need_lc_CXX=yes
12847         no_undefined_flag_CXX=' -zdefs'
12848         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12850         $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'
12851
12852         hardcode_libdir_flag_spec_CXX='-R$libdir'
12853         hardcode_shlibpath_var_CXX=no
12854         case $host_os in
12855           solaris2.[0-5] | solaris2.[0-5].*) ;;
12856           *)
12857             # The C++ compiler is used as linker so we must use $wl
12858             # flag to pass the commands to the underlying system
12859             # linker. We must also pass each convience library through
12860             # to the system linker between allextract/defaultextract.
12861             # The C++ compiler will combine linker options so we
12862             # cannot just pass the convience library names through
12863             # without $wl.
12864             # Supported since Solaris 2.6 (maybe 2.5.1?)
12865             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12866             ;;
12867         esac
12868         link_all_deplibs_CXX=yes
12869
12870         output_verbose_link_cmd='echo'
12871
12872         # Archives containing C++ object files must be created using
12873         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12874         # necessary to make sure instantiated templates are included
12875         # in the archive.
12876         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12877         ;;
12878       gcx*)
12879         # Green Hills C++ Compiler
12880         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12881
12882         # The C++ compiler must be used to create the archive.
12883         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12884         ;;
12885       *)
12886         # GNU C++ compiler with Solaris linker
12887         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12888           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12889           if $CC --version | grep -v '^2\.7' > /dev/null; then
12890             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12891             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12892                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12893
12894             # Commands to make compiler produce verbose output that lists
12895             # what "hidden" libraries, object files and flags are used when
12896             # linking a shared library.
12897             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12898           else
12899             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12900             # platform.
12901             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12902             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12903                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12904
12905             # Commands to make compiler produce verbose output that lists
12906             # what "hidden" libraries, object files and flags are used when
12907             # linking a shared library.
12908             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12909           fi
12910
12911           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12912         fi
12913         ;;
12914     esac
12915     ;;
12916   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12917     no_undefined_flag_CXX='${wl}-z,text'
12918     archive_cmds_need_lc_CXX=no
12919     hardcode_shlibpath_var_CXX=no
12920     runpath_var='LD_RUN_PATH'
12921
12922     case $cc_basename in
12923       CC*)
12924         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12925         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12926         ;;
12927       *)
12928         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12930         ;;
12931     esac
12932     ;;
12933   sysv5* | sco3.2v5* | sco5v6*)
12934     # Note: We can NOT use -z defs as we might desire, because we do not
12935     # link with -lc, and that would cause any symbols used from libc to
12936     # always be unresolved, which means just about no library would
12937     # ever link correctly.  If we're not using GNU ld we use -z text
12938     # though, which does catch some bad symbols but isn't as heavy-handed
12939     # as -z defs.
12940     # For security reasons, it is highly recommended that you always
12941     # use absolute paths for naming shared libraries, and exclude the
12942     # DT_RUNPATH tag from executables and libraries.  But doing so
12943     # requires that you compile everything twice, which is a pain.
12944     # So that behaviour is only enabled if SCOABSPATH is set to a
12945     # non-empty value in the environment.  Most likely only useful for
12946     # creating official distributions of packages.
12947     # This is a hack until libtool officially supports absolute path
12948     # names for shared libraries.
12949     no_undefined_flag_CXX='${wl}-z,text'
12950     allow_undefined_flag_CXX='${wl}-z,nodefs'
12951     archive_cmds_need_lc_CXX=no
12952     hardcode_shlibpath_var_CXX=no
12953     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12954     hardcode_libdir_separator_CXX=':'
12955     link_all_deplibs_CXX=yes
12956     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12957     runpath_var='LD_RUN_PATH'
12958
12959     case $cc_basename in
12960       CC*)
12961         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12962         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12963         ;;
12964       *)
12965         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12966         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12967         ;;
12968     esac
12969     ;;
12970   tandem*)
12971     case $cc_basename in
12972       NCC*)
12973         # NonStop-UX NCC 3.20
12974         # FIXME: insert proper C++ library support
12975         ld_shlibs_CXX=no
12976         ;;
12977       *)
12978         # FIXME: insert proper C++ library support
12979         ld_shlibs_CXX=no
12980         ;;
12981     esac
12982     ;;
12983   vxworks*)
12984     # FIXME: insert proper C++ library support
12985     ld_shlibs_CXX=no
12986     ;;
12987   *)
12988     # FIXME: insert proper C++ library support
12989     ld_shlibs_CXX=no
12990     ;;
12991 esac
12992 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12993 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12994 test "$ld_shlibs_CXX" = no && can_build_shared=no
12995
12996 GCC_CXX="$GXX"
12997 LD_CXX="$LD"
12998
12999
13000 cat > conftest.$ac_ext <<EOF
13001 class Foo
13002 {
13003 public:
13004   Foo (void) { a = 0; }
13005 private:
13006   int a;
13007 };
13008 EOF
13009
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011   (eval $ac_compile) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; then
13015   # Parse the compiler output and extract the necessary
13016   # objects, libraries and library flags.
13017
13018   # Sentinel used to keep track of whether or not we are before
13019   # the conftest object file.
13020   pre_test_object_deps_done=no
13021
13022   # The `*' in the case matches for architectures that use `case' in
13023   # $output_verbose_cmd can trigger glob expansion during the loop
13024   # eval without this substitution.
13025   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13026
13027   for p in `eval $output_verbose_link_cmd`; do
13028     case $p in
13029
13030     -L* | -R* | -l*)
13031        # Some compilers place space between "-{L,R}" and the path.
13032        # Remove the space.
13033        if test $p = "-L" \
13034           || test $p = "-R"; then
13035          prev=$p
13036          continue
13037        else
13038          prev=
13039        fi
13040
13041        if test "$pre_test_object_deps_done" = no; then
13042          case $p in
13043          -L* | -R*)
13044            # Internal compiler library paths should come after those
13045            # provided the user.  The postdeps already come after the
13046            # user supplied libs so there is no need to process them.
13047            if test -z "$compiler_lib_search_path_CXX"; then
13048              compiler_lib_search_path_CXX="${prev}${p}"
13049            else
13050              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13051            fi
13052            ;;
13053          # The "-l" case would never come before the object being
13054          # linked, so don't bother handling this case.
13055          esac
13056        else
13057          if test -z "$postdeps_CXX"; then
13058            postdeps_CXX="${prev}${p}"
13059          else
13060            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13061          fi
13062        fi
13063        ;;
13064
13065     *.$objext)
13066        # This assumes that the test object file only shows up
13067        # once in the compiler output.
13068        if test "$p" = "conftest.$objext"; then
13069          pre_test_object_deps_done=yes
13070          continue
13071        fi
13072
13073        if test "$pre_test_object_deps_done" = no; then
13074          if test -z "$predep_objects_CXX"; then
13075            predep_objects_CXX="$p"
13076          else
13077            predep_objects_CXX="$predep_objects_CXX $p"
13078          fi
13079        else
13080          if test -z "$postdep_objects_CXX"; then
13081            postdep_objects_CXX="$p"
13082          else
13083            postdep_objects_CXX="$postdep_objects_CXX $p"
13084          fi
13085        fi
13086        ;;
13087
13088     *) ;; # Ignore the rest.
13089
13090     esac
13091   done
13092
13093   # Clean up.
13094   rm -f a.out a.exe
13095 else
13096   echo "libtool.m4: error: problem compiling CXX test program"
13097 fi
13098
13099 $rm -f confest.$objext
13100
13101 # PORTME: override above test on systems where it is broken
13102 case $host_os in
13103 interix3*)
13104   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13105   # hack all around it, let's just trust "g++" to DTRT.
13106   predep_objects_CXX=
13107   postdep_objects_CXX=
13108   postdeps_CXX=
13109   ;;
13110
13111 solaris*)
13112   case $cc_basename in
13113   CC*)
13114     # Adding this requires a known-good setup of shared libraries for
13115     # Sun compiler versions before 5.6, else PIC objects from an old
13116     # archive will be linked into the output, leading to subtle bugs.
13117     postdeps_CXX='-lCstd -lCrun'
13118     ;;
13119   esac
13120   ;;
13121 esac
13122
13123
13124 case " $postdeps_CXX " in
13125 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13126 esac
13127
13128 lt_prog_compiler_wl_CXX=
13129 lt_prog_compiler_pic_CXX=
13130 lt_prog_compiler_static_CXX=
13131
13132 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13134
13135   # C++ specific cases for pic, static, wl, etc.
13136   if test "$GXX" = yes; then
13137     lt_prog_compiler_wl_CXX='-Wl,'
13138     lt_prog_compiler_static_CXX='-static'
13139
13140     case $host_os in
13141     aix*)
13142       # All AIX code is PIC.
13143       if test "$host_cpu" = ia64; then
13144         # AIX 5 now supports IA64 processor
13145         lt_prog_compiler_static_CXX='-Bstatic'
13146       fi
13147       ;;
13148     amigaos*)
13149       # FIXME: we need at least 68020 code to build shared libraries, but
13150       # adding the `-m68020' flag to GCC prevents building anything better,
13151       # like `-m68040'.
13152       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13153       ;;
13154     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13155       # PIC is the default for these OSes.
13156       ;;
13157     mingw* | os2* | pw32*)
13158       # This hack is so that the source file can tell whether it is being
13159       # built for inclusion in a dll (and should export symbols for example).
13160       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13161       ;;
13162     darwin* | rhapsody*)
13163       # PIC is the default on this platform
13164       # Common symbols not allowed in MH_DYLIB files
13165       lt_prog_compiler_pic_CXX='-fno-common'
13166       ;;
13167     *djgpp*)
13168       # DJGPP does not support shared libraries at all
13169       lt_prog_compiler_pic_CXX=
13170       ;;
13171     interix3*)
13172       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13173       # Instead, we relocate shared libraries at runtime.
13174       ;;
13175     sysv4*MP*)
13176       if test -d /usr/nec; then
13177         lt_prog_compiler_pic_CXX=-Kconform_pic
13178       fi
13179       ;;
13180     hpux*)
13181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13182       # not for PA HP-UX.
13183       case $host_cpu in
13184       hppa*64*|ia64*)
13185         ;;
13186       *)
13187         lt_prog_compiler_pic_CXX='-fPIC'
13188         ;;
13189       esac
13190       ;;
13191     *)
13192       lt_prog_compiler_pic_CXX='-fPIC'
13193       ;;
13194     esac
13195   else
13196     case $host_os in
13197       aix4* | aix5*)
13198         # All AIX code is PIC.
13199         if test "$host_cpu" = ia64; then
13200           # AIX 5 now supports IA64 processor
13201           lt_prog_compiler_static_CXX='-Bstatic'
13202         else
13203           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13204         fi
13205         ;;
13206       chorus*)
13207         case $cc_basename in
13208         cxch68*)
13209           # Green Hills C++ Compiler
13210           # _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"
13211           ;;
13212         esac
13213         ;;
13214        darwin*)
13215          # PIC is the default on this platform
13216          # Common symbols not allowed in MH_DYLIB files
13217          case $cc_basename in
13218            xlc*)
13219            lt_prog_compiler_pic_CXX='-qnocommon'
13220            lt_prog_compiler_wl_CXX='-Wl,'
13221            ;;
13222          esac
13223        ;;
13224       dgux*)
13225         case $cc_basename in
13226           ec++*)
13227             lt_prog_compiler_pic_CXX='-KPIC'
13228             ;;
13229           ghcx*)
13230             # Green Hills C++ Compiler
13231             lt_prog_compiler_pic_CXX='-pic'
13232             ;;
13233           *)
13234             ;;
13235         esac
13236         ;;
13237       freebsd* | dragonfly*)
13238         # FreeBSD uses GNU C++
13239         ;;
13240       hpux9* | hpux10* | hpux11*)
13241         case $cc_basename in
13242           CC*)
13243             lt_prog_compiler_wl_CXX='-Wl,'
13244             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13245             if test "$host_cpu" != ia64; then
13246               lt_prog_compiler_pic_CXX='+Z'
13247             fi
13248             ;;
13249           aCC*)
13250             lt_prog_compiler_wl_CXX='-Wl,'
13251             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13252             case $host_cpu in
13253             hppa*64*|ia64*)
13254               # +Z the default
13255               ;;
13256             *)
13257               lt_prog_compiler_pic_CXX='+Z'
13258               ;;
13259             esac
13260             ;;
13261           *)
13262             ;;
13263         esac
13264         ;;
13265       interix*)
13266         # This is c89, which is MS Visual C++ (no shared libs)
13267         # Anyone wants to do a port?
13268         ;;
13269       irix5* | irix6* | nonstopux*)
13270         case $cc_basename in
13271           CC*)
13272             lt_prog_compiler_wl_CXX='-Wl,'
13273             lt_prog_compiler_static_CXX='-non_shared'
13274             # CC pic flag -KPIC is the default.
13275             ;;
13276           *)
13277             ;;
13278         esac
13279         ;;
13280       linux* | k*bsd*-gnu)
13281         case $cc_basename in
13282           KCC*)
13283             # KAI C++ Compiler
13284             lt_prog_compiler_wl_CXX='--backend -Wl,'
13285             lt_prog_compiler_pic_CXX='-fPIC'
13286             ;;
13287           icpc* | ecpc*)
13288             # Intel C++
13289             lt_prog_compiler_wl_CXX='-Wl,'
13290             lt_prog_compiler_pic_CXX='-KPIC'
13291             lt_prog_compiler_static_CXX='-static'
13292             ;;
13293           pgCC*)
13294             # Portland Group C++ compiler.
13295             lt_prog_compiler_wl_CXX='-Wl,'
13296             lt_prog_compiler_pic_CXX='-fpic'
13297             lt_prog_compiler_static_CXX='-Bstatic'
13298             ;;
13299           cxx*)
13300             # Compaq C++
13301             # Make sure the PIC flag is empty.  It appears that all Alpha
13302             # Linux and Compaq Tru64 Unix objects are PIC.
13303             lt_prog_compiler_pic_CXX=
13304             lt_prog_compiler_static_CXX='-non_shared'
13305             ;;
13306           *)
13307             ;;
13308         esac
13309         ;;
13310       lynxos*)
13311         ;;
13312       m88k*)
13313         ;;
13314       mvs*)
13315         case $cc_basename in
13316           cxx*)
13317             lt_prog_compiler_pic_CXX='-W c,exportall'
13318             ;;
13319           *)
13320             ;;
13321         esac
13322         ;;
13323       netbsd* | netbsdelf*-gnu)
13324         ;;
13325       osf3* | osf4* | osf5*)
13326         case $cc_basename in
13327           KCC*)
13328             lt_prog_compiler_wl_CXX='--backend -Wl,'
13329             ;;
13330           RCC*)
13331             # Rational C++ 2.4.1
13332             lt_prog_compiler_pic_CXX='-pic'
13333             ;;
13334           cxx*)
13335             # Digital/Compaq C++
13336             lt_prog_compiler_wl_CXX='-Wl,'
13337             # Make sure the PIC flag is empty.  It appears that all Alpha
13338             # Linux and Compaq Tru64 Unix objects are PIC.
13339             lt_prog_compiler_pic_CXX=
13340             lt_prog_compiler_static_CXX='-non_shared'
13341             ;;
13342           *)
13343             ;;
13344         esac
13345         ;;
13346       psos*)
13347         ;;
13348       solaris*)
13349         case $cc_basename in
13350           CC*)
13351             # Sun C++ 4.2, 5.x and Centerline C++
13352             lt_prog_compiler_pic_CXX='-KPIC'
13353             lt_prog_compiler_static_CXX='-Bstatic'
13354             lt_prog_compiler_wl_CXX='-Qoption ld '
13355             ;;
13356           gcx*)
13357             # Green Hills C++ Compiler
13358             lt_prog_compiler_pic_CXX='-PIC'
13359             ;;
13360           *)
13361             ;;
13362         esac
13363         ;;
13364       sunos4*)
13365         case $cc_basename in
13366           CC*)
13367             # Sun C++ 4.x
13368             lt_prog_compiler_pic_CXX='-pic'
13369             lt_prog_compiler_static_CXX='-Bstatic'
13370             ;;
13371           lcc*)
13372             # Lucid
13373             lt_prog_compiler_pic_CXX='-pic'
13374             ;;
13375           *)
13376             ;;
13377         esac
13378         ;;
13379       tandem*)
13380         case $cc_basename in
13381           NCC*)
13382             # NonStop-UX NCC 3.20
13383             lt_prog_compiler_pic_CXX='-KPIC'
13384             ;;
13385           *)
13386             ;;
13387         esac
13388         ;;
13389       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13390         case $cc_basename in
13391           CC*)
13392             lt_prog_compiler_wl_CXX='-Wl,'
13393             lt_prog_compiler_pic_CXX='-KPIC'
13394             lt_prog_compiler_static_CXX='-Bstatic'
13395             ;;
13396         esac
13397         ;;
13398       vxworks*)
13399         ;;
13400       *)
13401         lt_prog_compiler_can_build_shared_CXX=no
13402         ;;
13403     esac
13404   fi
13405
13406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13407 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13408
13409 #
13410 # Check to make sure the PIC flag actually works.
13411 #
13412 if test -n "$lt_prog_compiler_pic_CXX"; then
13413
13414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13416 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13417   echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419   lt_prog_compiler_pic_works_CXX=no
13420   ac_outfile=conftest.$ac_objext
13421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13422    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13423    # Insert the option either (1) after the last *FLAGS variable, or
13424    # (2) before a word containing "conftest.", or (3) at the end.
13425    # Note that $ac_compile itself does not contain backslashes and begins
13426    # with a dollar sign (not a hyphen), so the echo should work correctly.
13427    # The option is referenced via a variable to avoid confusing sed.
13428    lt_compile=`echo "$ac_compile" | $SED \
13429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13431    -e 's:$: $lt_compiler_flag:'`
13432    (eval echo "\"\$as_me:13432: $lt_compile\"" >&5)
13433    (eval "$lt_compile" 2>conftest.err)
13434    ac_status=$?
13435    cat conftest.err >&5
13436    echo "$as_me:13436: \$? = $ac_status" >&5
13437    if (exit $ac_status) && test -s "$ac_outfile"; then
13438      # The compiler can only warn and ignore the option if not recognized
13439      # So say no if there are warnings other than the usual output.
13440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13443        lt_prog_compiler_pic_works_CXX=yes
13444      fi
13445    fi
13446    $rm conftest*
13447
13448 fi
13449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13450 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13451
13452 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13453     case $lt_prog_compiler_pic_CXX in
13454      "" | " "*) ;;
13455      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13456      esac
13457 else
13458     lt_prog_compiler_pic_CXX=
13459      lt_prog_compiler_can_build_shared_CXX=no
13460 fi
13461
13462 fi
13463 case $host_os in
13464   # For platforms which do not support PIC, -DPIC is meaningless:
13465   *djgpp*)
13466     lt_prog_compiler_pic_CXX=
13467     ;;
13468   *)
13469     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13470     ;;
13471 esac
13472
13473 #
13474 # Check to make sure the static flag actually works.
13475 #
13476 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13479 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   lt_prog_compiler_static_works_CXX=no
13483    save_LDFLAGS="$LDFLAGS"
13484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13485    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13487      # The linker can only warn and ignore the option if not recognized
13488      # So say no if there are warnings
13489      if test -s conftest.err; then
13490        # Append any errors to the config.log.
13491        cat conftest.err 1>&5
13492        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13494        if diff conftest.exp conftest.er2 >/dev/null; then
13495          lt_prog_compiler_static_works_CXX=yes
13496        fi
13497      else
13498        lt_prog_compiler_static_works_CXX=yes
13499      fi
13500    fi
13501    $rm conftest*
13502    LDFLAGS="$save_LDFLAGS"
13503
13504 fi
13505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13506 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13507
13508 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13509     :
13510 else
13511     lt_prog_compiler_static_CXX=
13512 fi
13513
13514
13515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13517 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   lt_cv_prog_compiler_c_o_CXX=no
13521    $rm -r conftest 2>/dev/null
13522    mkdir conftest
13523    cd conftest
13524    mkdir out
13525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13526
13527    lt_compiler_flag="-o out/conftest2.$ac_objext"
13528    # Insert the option either (1) after the last *FLAGS variable, or
13529    # (2) before a word containing "conftest.", or (3) at the end.
13530    # Note that $ac_compile itself does not contain backslashes and begins
13531    # with a dollar sign (not a hyphen), so the echo should work correctly.
13532    lt_compile=`echo "$ac_compile" | $SED \
13533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13535    -e 's:$: $lt_compiler_flag:'`
13536    (eval echo "\"\$as_me:13536: $lt_compile\"" >&5)
13537    (eval "$lt_compile" 2>out/conftest.err)
13538    ac_status=$?
13539    cat out/conftest.err >&5
13540    echo "$as_me:13540: \$? = $ac_status" >&5
13541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13542    then
13543      # The compiler can only warn and ignore the option if not recognized
13544      # So say no if there are warnings
13545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13548        lt_cv_prog_compiler_c_o_CXX=yes
13549      fi
13550    fi
13551    chmod u+w . 2>&5
13552    $rm conftest*
13553    # SGI C++ compiler will create directory out/ii_files/ for
13554    # template instantiation
13555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13556    $rm out/* && rmdir out
13557    cd ..
13558    rmdir conftest
13559    $rm conftest*
13560
13561 fi
13562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13564
13565
13566 hard_links="nottested"
13567 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13568   # do not overwrite the value of need_locks provided by the user
13569   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13571   hard_links=yes
13572   $rm conftest*
13573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13574   touch conftest.a
13575   ln conftest.a conftest.b 2>&5 || hard_links=no
13576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13577   { echo "$as_me:$LINENO: result: $hard_links" >&5
13578 echo "${ECHO_T}$hard_links" >&6; }
13579   if test "$hard_links" = no; then
13580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13582     need_locks=warn
13583   fi
13584 else
13585   need_locks=no
13586 fi
13587
13588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13590
13591   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13592   case $host_os in
13593   aix4* | aix5*)
13594     # If we're using GNU nm, then we don't want the "-C" option.
13595     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13596     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13597       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'
13598     else
13599       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'
13600     fi
13601     ;;
13602   pw32*)
13603     export_symbols_cmds_CXX="$ltdll_cmds"
13604   ;;
13605   cygwin* | mingw*)
13606     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'
13607   ;;
13608   linux* | k*bsd*-gnu)
13609     link_all_deplibs_CXX=no
13610   ;;
13611   *)
13612     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13613   ;;
13614   esac
13615
13616 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13617 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13618 test "$ld_shlibs_CXX" = no && can_build_shared=no
13619
13620 #
13621 # Do we need to explicitly link libc?
13622 #
13623 case "x$archive_cmds_need_lc_CXX" in
13624 x|xyes)
13625   # Assume -lc should be added
13626   archive_cmds_need_lc_CXX=yes
13627
13628   if test "$enable_shared" = yes && test "$GCC" = yes; then
13629     case $archive_cmds_CXX in
13630     *'~'*)
13631       # FIXME: we may have to deal with multi-command sequences.
13632       ;;
13633     '$CC '*)
13634       # Test whether the compiler implicitly links with -lc since on some
13635       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13636       # to ld, don't add -lc before -lgcc.
13637       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13639       $rm conftest*
13640       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13641
13642       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643   (eval $ac_compile) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } 2>conftest.err; then
13647         soname=conftest
13648         lib=conftest
13649         libobjs=conftest.$ac_objext
13650         deplibs=
13651         wl=$lt_prog_compiler_wl_CXX
13652         pic_flag=$lt_prog_compiler_pic_CXX
13653         compiler_flags=-v
13654         linker_flags=-v
13655         verstring=
13656         output_objdir=.
13657         libname=conftest
13658         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13659         allow_undefined_flag_CXX=
13660         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13661   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }
13665         then
13666           archive_cmds_need_lc_CXX=no
13667         else
13668           archive_cmds_need_lc_CXX=yes
13669         fi
13670         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13671       else
13672         cat conftest.err 1>&5
13673       fi
13674       $rm conftest*
13675       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13676 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13677       ;;
13678     esac
13679   fi
13680   ;;
13681 esac
13682
13683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13685 library_names_spec=
13686 libname_spec='lib$name'
13687 soname_spec=
13688 shrext_cmds=".so"
13689 postinstall_cmds=
13690 postuninstall_cmds=
13691 finish_cmds=
13692 finish_eval=
13693 shlibpath_var=
13694 shlibpath_overrides_runpath=unknown
13695 version_type=none
13696 dynamic_linker="$host_os ld.so"
13697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698 if test "$GCC" = yes; then
13699   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13701     # if the path contains ";" then we assume it to be the separator
13702     # otherwise default to the standard path separator (i.e. ":") - it is
13703     # assumed that no part of a normal pathname contains ";" but that should
13704     # okay in the real world where ";" in dirpaths is itself problematic.
13705     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13706   else
13707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13708   fi
13709 else
13710   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13711 fi
13712 need_lib_prefix=unknown
13713 hardcode_into_libs=no
13714
13715 # when you set need_version to no, make sure it does not cause -set_version
13716 # flags to be left without arguments
13717 need_version=unknown
13718
13719 case $host_os in
13720 aix3*)
13721   version_type=linux
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13723   shlibpath_var=LIBPATH
13724
13725   # AIX 3 has no versioning support, so we append a major version to the name.
13726   soname_spec='${libname}${release}${shared_ext}$major'
13727   ;;
13728
13729 aix4* | aix5*)
13730   version_type=linux
13731   need_lib_prefix=no
13732   need_version=no
13733   hardcode_into_libs=yes
13734   if test "$host_cpu" = ia64; then
13735     # AIX 5 supports IA64
13736     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13737     shlibpath_var=LD_LIBRARY_PATH
13738   else
13739     # With GCC up to 2.95.x, collect2 would create an import file
13740     # for dependence libraries.  The import file would start with
13741     # the line `#! .'.  This would cause the generated library to
13742     # depend on `.', always an invalid library.  This was fixed in
13743     # development snapshots of GCC prior to 3.0.
13744     case $host_os in
13745       aix4 | aix4.[01] | aix4.[01].*)
13746       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13747            echo ' yes '
13748            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13749         :
13750       else
13751         can_build_shared=no
13752       fi
13753       ;;
13754     esac
13755     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13756     # soname into executable. Probably we can add versioning support to
13757     # collect2, so additional links can be useful in future.
13758     if test "$aix_use_runtimelinking" = yes; then
13759       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13760       # instead of lib<name>.a to let people know that these are not
13761       # typical AIX shared libraries.
13762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763     else
13764       # We preserve .a as extension for shared libraries through AIX4.2
13765       # and later when we are not doing run time linking.
13766       library_names_spec='${libname}${release}.a $libname.a'
13767       soname_spec='${libname}${release}${shared_ext}$major'
13768     fi
13769     shlibpath_var=LIBPATH
13770   fi
13771   ;;
13772
13773 amigaos*)
13774   library_names_spec='$libname.ixlibrary $libname.a'
13775   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13776   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'
13777   ;;
13778
13779 beos*)
13780   library_names_spec='${libname}${shared_ext}'
13781   dynamic_linker="$host_os ld.so"
13782   shlibpath_var=LIBRARY_PATH
13783   ;;
13784
13785 bsdi[45]*)
13786   version_type=linux
13787   need_version=no
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789   soname_spec='${libname}${release}${shared_ext}$major'
13790   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791   shlibpath_var=LD_LIBRARY_PATH
13792   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794   # the default ld.so.conf also contains /usr/contrib/lib and
13795   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796   # libtool to hard-code these into programs
13797   ;;
13798
13799 cygwin* | mingw* | pw32*)
13800   version_type=windows
13801   shrext_cmds=".dll"
13802   need_version=no
13803   need_lib_prefix=no
13804
13805   case $GCC,$host_os in
13806   yes,cygwin* | yes,mingw* | yes,pw32*)
13807     library_names_spec='$libname.dll.a'
13808     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809     postinstall_cmds='base_file=`basename \${file}`~
13810       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13811       dldir=$destdir/`dirname \$dlpath`~
13812       test -d \$dldir || mkdir -p \$dldir~
13813       $install_prog $dir/$dlname \$dldir/$dlname~
13814       chmod a+x \$dldir/$dlname'
13815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816       dlpath=$dir/\$dldll~
13817        $rm \$dlpath'
13818     shlibpath_overrides_runpath=yes
13819
13820     case $host_os in
13821     cygwin*)
13822       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13825       ;;
13826     mingw*)
13827       # MinGW DLLs use traditional 'lib' prefix
13828       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831         # It is most probably a Windows format PATH printed by
13832         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833         # path with ; separators, and with drive letters. We can handle the
13834         # drive letters (cygwin fileutils understands them), so leave them,
13835         # especially as we might pass files found there to a mingw objdump,
13836         # which wouldn't understand a cygwinified path. Ahh.
13837         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13838       else
13839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13840       fi
13841       ;;
13842     pw32*)
13843       # pw32 DLLs use 'pw' prefix rather than 'lib'
13844       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13845       ;;
13846     esac
13847     ;;
13848
13849   *)
13850     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13851     ;;
13852   esac
13853   dynamic_linker='Win32 ld.exe'
13854   # FIXME: first we should search . and the directory the executable is in
13855   shlibpath_var=PATH
13856   ;;
13857
13858 darwin* | rhapsody*)
13859   dynamic_linker="$host_os dyld"
13860   version_type=darwin
13861   need_lib_prefix=no
13862   need_version=no
13863   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13864   soname_spec='${libname}${release}${major}$shared_ext'
13865   shlibpath_overrides_runpath=yes
13866   shlibpath_var=DYLD_LIBRARY_PATH
13867   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13868   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13869   if test "$GCC" = yes; then
13870     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13871   else
13872     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13873   fi
13874   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13875   ;;
13876
13877 dgux*)
13878   version_type=linux
13879   need_lib_prefix=no
13880   need_version=no
13881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13882   soname_spec='${libname}${release}${shared_ext}$major'
13883   shlibpath_var=LD_LIBRARY_PATH
13884   ;;
13885
13886 freebsd1*)
13887   dynamic_linker=no
13888   ;;
13889
13890 freebsd* | dragonfly*)
13891   # DragonFly does not have aout.  When/if they implement a new
13892   # versioning mechanism, adjust this.
13893   if test -x /usr/bin/objformat; then
13894     objformat=`/usr/bin/objformat`
13895   else
13896     case $host_os in
13897     freebsd[123]*) objformat=aout ;;
13898     *) objformat=elf ;;
13899     esac
13900   fi
13901   version_type=freebsd-$objformat
13902   case $version_type in
13903     freebsd-elf*)
13904       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13905       need_version=no
13906       need_lib_prefix=no
13907       ;;
13908     freebsd-*)
13909       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13910       need_version=yes
13911       ;;
13912   esac
13913   shlibpath_var=LD_LIBRARY_PATH
13914   case $host_os in
13915   freebsd2*)
13916     shlibpath_overrides_runpath=yes
13917     ;;
13918   freebsd3.[01]* | freebsdelf3.[01]*)
13919     shlibpath_overrides_runpath=yes
13920     hardcode_into_libs=yes
13921     ;;
13922   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13923   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13924     shlibpath_overrides_runpath=no
13925     hardcode_into_libs=yes
13926     ;;
13927   freebsd*) # from 4.6 on
13928     shlibpath_overrides_runpath=yes
13929     hardcode_into_libs=yes
13930     ;;
13931   esac
13932   ;;
13933
13934 gnu*)
13935   version_type=linux
13936   need_lib_prefix=no
13937   need_version=no
13938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13939   soname_spec='${libname}${release}${shared_ext}$major'
13940   shlibpath_var=LD_LIBRARY_PATH
13941   hardcode_into_libs=yes
13942   ;;
13943
13944 hpux9* | hpux10* | hpux11*)
13945   # Give a soname corresponding to the major version so that dld.sl refuses to
13946   # link against other versions.
13947   version_type=sunos
13948   need_lib_prefix=no
13949   need_version=no
13950   case $host_cpu in
13951   ia64*)
13952     shrext_cmds='.so'
13953     hardcode_into_libs=yes
13954     dynamic_linker="$host_os dld.so"
13955     shlibpath_var=LD_LIBRARY_PATH
13956     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958     soname_spec='${libname}${release}${shared_ext}$major'
13959     if test "X$HPUX_IA64_MODE" = X32; then
13960       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13961     else
13962       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13963     fi
13964     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13965     ;;
13966    hppa*64*)
13967      shrext_cmds='.sl'
13968      hardcode_into_libs=yes
13969      dynamic_linker="$host_os dld.sl"
13970      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13971      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13972      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973      soname_spec='${libname}${release}${shared_ext}$major'
13974      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13975      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13976      ;;
13977    *)
13978     shrext_cmds='.sl'
13979     dynamic_linker="$host_os dld.sl"
13980     shlibpath_var=SHLIB_PATH
13981     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983     soname_spec='${libname}${release}${shared_ext}$major'
13984     ;;
13985   esac
13986   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13987   postinstall_cmds='chmod 555 $lib'
13988   ;;
13989
13990 interix3*)
13991   version_type=linux
13992   need_lib_prefix=no
13993   need_version=no
13994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995   soname_spec='${libname}${release}${shared_ext}$major'
13996   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13997   shlibpath_var=LD_LIBRARY_PATH
13998   shlibpath_overrides_runpath=no
13999   hardcode_into_libs=yes
14000   ;;
14001
14002 irix5* | irix6* | nonstopux*)
14003   case $host_os in
14004     nonstopux*) version_type=nonstopux ;;
14005     *)
14006         if test "$lt_cv_prog_gnu_ld" = yes; then
14007                 version_type=linux
14008         else
14009                 version_type=irix
14010         fi ;;
14011   esac
14012   need_lib_prefix=no
14013   need_version=no
14014   soname_spec='${libname}${release}${shared_ext}$major'
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14016   case $host_os in
14017   irix5* | nonstopux*)
14018     libsuff= shlibsuff=
14019     ;;
14020   *)
14021     case $LD in # libtool.m4 will add one of these switches to LD
14022     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14023       libsuff= shlibsuff= libmagic=32-bit;;
14024     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14025       libsuff=32 shlibsuff=N32 libmagic=N32;;
14026     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14027       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14028     *) libsuff= shlibsuff= libmagic=never-match;;
14029     esac
14030     ;;
14031   esac
14032   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14033   shlibpath_overrides_runpath=no
14034   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14035   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14036   hardcode_into_libs=yes
14037   ;;
14038
14039 # No shared lib support for Linux oldld, aout, or coff.
14040 linux*oldld* | linux*aout* | linux*coff*)
14041   dynamic_linker=no
14042   ;;
14043
14044 # This must be Linux ELF.
14045 linux* | k*bsd*-gnu)
14046   version_type=linux
14047   need_lib_prefix=no
14048   need_version=no
14049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050   soname_spec='${libname}${release}${shared_ext}$major'
14051   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14052   shlibpath_var=LD_LIBRARY_PATH
14053   shlibpath_overrides_runpath=no
14054   # This implies no fast_install, which is unacceptable.
14055   # Some rework will be needed to allow for fast_install
14056   # before this can be enabled.
14057   hardcode_into_libs=yes
14058
14059   # Append ld.so.conf contents to the search path
14060   if test -f /etc/ld.so.conf; then
14061     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14062     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14063   fi
14064
14065   # We used to test for /lib/ld.so.1 and disable shared libraries on
14066   # powerpc, because MkLinux only supported shared libraries with the
14067   # GNU dynamic linker.  Since this was broken with cross compilers,
14068   # most powerpc-linux boxes support dynamic linking these days and
14069   # people can always --disable-shared, the test was removed, and we
14070   # assume the GNU/Linux dynamic linker is in use.
14071   dynamic_linker='GNU/Linux ld.so'
14072   ;;
14073
14074 netbsdelf*-gnu)
14075   version_type=linux
14076   need_lib_prefix=no
14077   need_version=no
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14079   soname_spec='${libname}${release}${shared_ext}$major'
14080   shlibpath_var=LD_LIBRARY_PATH
14081   shlibpath_overrides_runpath=no
14082   hardcode_into_libs=yes
14083   dynamic_linker='NetBSD ld.elf_so'
14084   ;;
14085
14086 netbsd*)
14087   version_type=sunos
14088   need_lib_prefix=no
14089   need_version=no
14090   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093     dynamic_linker='NetBSD (a.out) ld.so'
14094   else
14095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14096     soname_spec='${libname}${release}${shared_ext}$major'
14097     dynamic_linker='NetBSD ld.elf_so'
14098   fi
14099   shlibpath_var=LD_LIBRARY_PATH
14100   shlibpath_overrides_runpath=yes
14101   hardcode_into_libs=yes
14102   ;;
14103
14104 newsos6)
14105   version_type=linux
14106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107   shlibpath_var=LD_LIBRARY_PATH
14108   shlibpath_overrides_runpath=yes
14109   ;;
14110
14111 nto-qnx*)
14112   version_type=linux
14113   need_lib_prefix=no
14114   need_version=no
14115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   shlibpath_var=LD_LIBRARY_PATH
14118   shlibpath_overrides_runpath=yes
14119   ;;
14120
14121 openbsd*)
14122   version_type=sunos
14123   sys_lib_dlsearch_path_spec="/usr/lib"
14124   need_lib_prefix=no
14125   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14126   case $host_os in
14127     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14128     *)                         need_version=no  ;;
14129   esac
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14134     case $host_os in
14135       openbsd2.[89] | openbsd2.[89].*)
14136         shlibpath_overrides_runpath=no
14137         ;;
14138       *)
14139         shlibpath_overrides_runpath=yes
14140         ;;
14141       esac
14142   else
14143     shlibpath_overrides_runpath=yes
14144   fi
14145   ;;
14146
14147 os2*)
14148   libname_spec='$name'
14149   shrext_cmds=".dll"
14150   need_lib_prefix=no
14151   library_names_spec='$libname${shared_ext} $libname.a'
14152   dynamic_linker='OS/2 ld.exe'
14153   shlibpath_var=LIBPATH
14154   ;;
14155
14156 osf3* | osf4* | osf5*)
14157   version_type=osf
14158   need_lib_prefix=no
14159   need_version=no
14160   soname_spec='${libname}${release}${shared_ext}$major'
14161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162   shlibpath_var=LD_LIBRARY_PATH
14163   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14164   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14165   ;;
14166
14167 solaris*)
14168   version_type=linux
14169   need_lib_prefix=no
14170   need_version=no
14171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172   soname_spec='${libname}${release}${shared_ext}$major'
14173   shlibpath_var=LD_LIBRARY_PATH
14174   shlibpath_overrides_runpath=yes
14175   hardcode_into_libs=yes
14176   # ldd complains unless libraries are executable
14177   postinstall_cmds='chmod +x $lib'
14178   ;;
14179
14180 sunos4*)
14181   version_type=sunos
14182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14183   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14184   shlibpath_var=LD_LIBRARY_PATH
14185   shlibpath_overrides_runpath=yes
14186   if test "$with_gnu_ld" = yes; then
14187     need_lib_prefix=no
14188   fi
14189   need_version=yes
14190   ;;
14191
14192 sysv4 | sysv4.3*)
14193   version_type=linux
14194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195   soname_spec='${libname}${release}${shared_ext}$major'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   case $host_vendor in
14198     sni)
14199       shlibpath_overrides_runpath=no
14200       need_lib_prefix=no
14201       export_dynamic_flag_spec='${wl}-Blargedynsym'
14202       runpath_var=LD_RUN_PATH
14203       ;;
14204     siemens)
14205       need_lib_prefix=no
14206       ;;
14207     motorola)
14208       need_lib_prefix=no
14209       need_version=no
14210       shlibpath_overrides_runpath=no
14211       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14212       ;;
14213   esac
14214   ;;
14215
14216 sysv4*MP*)
14217   if test -d /usr/nec ;then
14218     version_type=linux
14219     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14220     soname_spec='$libname${shared_ext}.$major'
14221     shlibpath_var=LD_LIBRARY_PATH
14222   fi
14223   ;;
14224
14225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14226   version_type=freebsd-elf
14227   need_lib_prefix=no
14228   need_version=no
14229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14230   soname_spec='${libname}${release}${shared_ext}$major'
14231   shlibpath_var=LD_LIBRARY_PATH
14232   hardcode_into_libs=yes
14233   if test "$with_gnu_ld" = yes; then
14234     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14235     shlibpath_overrides_runpath=no
14236   else
14237     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14238     shlibpath_overrides_runpath=yes
14239     case $host_os in
14240       sco3.2v5*)
14241         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14242         ;;
14243     esac
14244   fi
14245   sys_lib_dlsearch_path_spec='/usr/lib'
14246   ;;
14247
14248 uts4*)
14249   version_type=linux
14250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251   soname_spec='${libname}${release}${shared_ext}$major'
14252   shlibpath_var=LD_LIBRARY_PATH
14253   ;;
14254
14255 *)
14256   dynamic_linker=no
14257   ;;
14258 esac
14259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14260 echo "${ECHO_T}$dynamic_linker" >&6; }
14261 test "$dynamic_linker" = no && can_build_shared=no
14262
14263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14264 if test "$GCC" = yes; then
14265   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14266 fi
14267
14268 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14270 hardcode_action_CXX=
14271 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14272    test -n "$runpath_var_CXX" || \
14273    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14274
14275   # We can hardcode non-existant directories.
14276   if test "$hardcode_direct_CXX" != no &&
14277      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14278      # have to relink, otherwise we might link with an installed library
14279      # when we should be linking with a yet-to-be-installed one
14280      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14281      test "$hardcode_minus_L_CXX" != no; then
14282     # Linking always hardcodes the temporary library directory.
14283     hardcode_action_CXX=relink
14284   else
14285     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14286     hardcode_action_CXX=immediate
14287   fi
14288 else
14289   # We cannot hardcode anything, or else we can only hardcode existing
14290   # directories.
14291   hardcode_action_CXX=unsupported
14292 fi
14293 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14294 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14295
14296 if test "$hardcode_action_CXX" = relink; then
14297   # Fast installation is not supported
14298   enable_fast_install=no
14299 elif test "$shlibpath_overrides_runpath" = yes ||
14300      test "$enable_shared" = no; then
14301   # Fast installation is not necessary
14302   enable_fast_install=needless
14303 fi
14304
14305
14306 # The else clause should only fire when bootstrapping the
14307 # libtool distribution, otherwise you forgot to ship ltmain.sh
14308 # with your package, and you will get complaints that there are
14309 # no rules to generate ltmain.sh.
14310 if test -f "$ltmain"; then
14311   # See if we are running on zsh, and set the options which allow our commands through
14312   # without removal of \ escapes.
14313   if test -n "${ZSH_VERSION+set}" ; then
14314     setopt NO_GLOB_SUBST
14315   fi
14316   # Now quote all the things that may contain metacharacters while being
14317   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14318   # variables and quote the copies for generation of the libtool script.
14319   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14320     SED SHELL STRIP \
14321     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14322     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14323     deplibs_check_method reload_flag reload_cmds need_locks \
14324     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14325     lt_cv_sys_global_symbol_to_c_name_address \
14326     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14327     old_postinstall_cmds old_postuninstall_cmds \
14328     compiler_CXX \
14329     CC_CXX \
14330     LD_CXX \
14331     lt_prog_compiler_wl_CXX \
14332     lt_prog_compiler_pic_CXX \
14333     lt_prog_compiler_static_CXX \
14334     lt_prog_compiler_no_builtin_flag_CXX \
14335     export_dynamic_flag_spec_CXX \
14336     thread_safe_flag_spec_CXX \
14337     whole_archive_flag_spec_CXX \
14338     enable_shared_with_static_runtimes_CXX \
14339     old_archive_cmds_CXX \
14340     old_archive_from_new_cmds_CXX \
14341     predep_objects_CXX \
14342     postdep_objects_CXX \
14343     predeps_CXX \
14344     postdeps_CXX \
14345     compiler_lib_search_path_CXX \
14346     archive_cmds_CXX \
14347     archive_expsym_cmds_CXX \
14348     postinstall_cmds_CXX \
14349     postuninstall_cmds_CXX \
14350     old_archive_from_expsyms_cmds_CXX \
14351     allow_undefined_flag_CXX \
14352     no_undefined_flag_CXX \
14353     export_symbols_cmds_CXX \
14354     hardcode_libdir_flag_spec_CXX \
14355     hardcode_libdir_flag_spec_ld_CXX \
14356     hardcode_libdir_separator_CXX \
14357     hardcode_automatic_CXX \
14358     module_cmds_CXX \
14359     module_expsym_cmds_CXX \
14360     lt_cv_prog_compiler_c_o_CXX \
14361     exclude_expsyms_CXX \
14362     include_expsyms_CXX; do
14363
14364     case $var in
14365     old_archive_cmds_CXX | \
14366     old_archive_from_new_cmds_CXX | \
14367     archive_cmds_CXX | \
14368     archive_expsym_cmds_CXX | \
14369     module_cmds_CXX | \
14370     module_expsym_cmds_CXX | \
14371     old_archive_from_expsyms_cmds_CXX | \
14372     export_symbols_cmds_CXX | \
14373     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14374     postinstall_cmds | postuninstall_cmds | \
14375     old_postinstall_cmds | old_postuninstall_cmds | \
14376     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14377       # Double-quote double-evaled strings.
14378       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14379       ;;
14380     *)
14381       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14382       ;;
14383     esac
14384   done
14385
14386   case $lt_echo in
14387   *'\$0 --fallback-echo"')
14388     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14389     ;;
14390   esac
14391
14392 cfgfile="$ofile"
14393
14394   cat <<__EOF__ >> "$cfgfile"
14395 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14396
14397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14398
14399 # Shell to use when invoking shell scripts.
14400 SHELL=$lt_SHELL
14401
14402 # Whether or not to build shared libraries.
14403 build_libtool_libs=$enable_shared
14404
14405 # Whether or not to build static libraries.
14406 build_old_libs=$enable_static
14407
14408 # Whether or not to add -lc for building shared libraries.
14409 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14410
14411 # Whether or not to disallow shared libs when runtime libs are static
14412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14413
14414 # Whether or not to optimize for fast installation.
14415 fast_install=$enable_fast_install
14416
14417 # The host system.
14418 host_alias=$host_alias
14419 host=$host
14420 host_os=$host_os
14421
14422 # The build system.
14423 build_alias=$build_alias
14424 build=$build
14425 build_os=$build_os
14426
14427 # An echo program that does not interpret backslashes.
14428 echo=$lt_echo
14429
14430 # The archiver.
14431 AR=$lt_AR
14432 AR_FLAGS=$lt_AR_FLAGS
14433
14434 # A C compiler.
14435 LTCC=$lt_LTCC
14436
14437 # LTCC compiler flags.
14438 LTCFLAGS=$lt_LTCFLAGS
14439
14440 # A language-specific compiler.
14441 CC=$lt_compiler_CXX
14442
14443 # Is the compiler the GNU C compiler?
14444 with_gcc=$GCC_CXX
14445
14446 # An ERE matcher.
14447 EGREP=$lt_EGREP
14448
14449 # The linker used to build libraries.
14450 LD=$lt_LD_CXX
14451
14452 # Whether we need hard or soft links.
14453 LN_S=$lt_LN_S
14454
14455 # A BSD-compatible nm program.
14456 NM=$lt_NM
14457
14458 # A symbol stripping program
14459 STRIP=$lt_STRIP
14460
14461 # Used to examine libraries when file_magic_cmd begins "file"
14462 MAGIC_CMD=$MAGIC_CMD
14463
14464 # Used on cygwin: DLL creation program.
14465 DLLTOOL="$DLLTOOL"
14466
14467 # Used on cygwin: object dumper.
14468 OBJDUMP="$OBJDUMP"
14469
14470 # Used on cygwin: assembler.
14471 AS="$AS"
14472
14473 # The name of the directory that contains temporary libtool files.
14474 objdir=$objdir
14475
14476 # How to create reloadable object files.
14477 reload_flag=$lt_reload_flag
14478 reload_cmds=$lt_reload_cmds
14479
14480 # How to pass a linker flag through the compiler.
14481 wl=$lt_lt_prog_compiler_wl_CXX
14482
14483 # Object file suffix (normally "o").
14484 objext="$ac_objext"
14485
14486 # Old archive suffix (normally "a").
14487 libext="$libext"
14488
14489 # Shared library suffix (normally ".so").
14490 shrext_cmds='$shrext_cmds'
14491
14492 # Executable file suffix (normally "").
14493 exeext="$exeext"
14494
14495 # Additional compiler flags for building library objects.
14496 pic_flag=$lt_lt_prog_compiler_pic_CXX
14497 pic_mode=$pic_mode
14498
14499 # What is the maximum length of a command?
14500 max_cmd_len=$lt_cv_sys_max_cmd_len
14501
14502 # Does compiler simultaneously support -c and -o options?
14503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14504
14505 # Must we lock files when doing compilation?
14506 need_locks=$lt_need_locks
14507
14508 # Do we need the lib prefix for modules?
14509 need_lib_prefix=$need_lib_prefix
14510
14511 # Do we need a version for libraries?
14512 need_version=$need_version
14513
14514 # Whether dlopen is supported.
14515 dlopen_support=$enable_dlopen
14516
14517 # Whether dlopen of programs is supported.
14518 dlopen_self=$enable_dlopen_self
14519
14520 # Whether dlopen of statically linked programs is supported.
14521 dlopen_self_static=$enable_dlopen_self_static
14522
14523 # Compiler flag to prevent dynamic linking.
14524 link_static_flag=$lt_lt_prog_compiler_static_CXX
14525
14526 # Compiler flag to turn off builtin functions.
14527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14528
14529 # Compiler flag to allow reflexive dlopens.
14530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14531
14532 # Compiler flag to generate shared objects directly from archives.
14533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14534
14535 # Compiler flag to generate thread-safe objects.
14536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14537
14538 # Library versioning type.
14539 version_type=$version_type
14540
14541 # Format of library name prefix.
14542 libname_spec=$lt_libname_spec
14543
14544 # List of archive names.  First name is the real one, the rest are links.
14545 # The last name is the one that the linker finds with -lNAME.
14546 library_names_spec=$lt_library_names_spec
14547
14548 # The coded name of the library, if different from the real name.
14549 soname_spec=$lt_soname_spec
14550
14551 # Commands used to build and install an old-style archive.
14552 RANLIB=$lt_RANLIB
14553 old_archive_cmds=$lt_old_archive_cmds_CXX
14554 old_postinstall_cmds=$lt_old_postinstall_cmds
14555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14556
14557 # Create an old-style archive from a shared archive.
14558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14559
14560 # Create a temporary old-style archive to link instead of a shared archive.
14561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14562
14563 # Commands used to build and install a shared archive.
14564 archive_cmds=$lt_archive_cmds_CXX
14565 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14566 postinstall_cmds=$lt_postinstall_cmds
14567 postuninstall_cmds=$lt_postuninstall_cmds
14568
14569 # Commands used to build a loadable module (assumed same as above if empty)
14570 module_cmds=$lt_module_cmds_CXX
14571 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14572
14573 # Commands to strip libraries.
14574 old_striplib=$lt_old_striplib
14575 striplib=$lt_striplib
14576
14577 # Dependencies to place before the objects being linked to create a
14578 # shared library.
14579 predep_objects=$lt_predep_objects_CXX
14580
14581 # Dependencies to place after the objects being linked to create a
14582 # shared library.
14583 postdep_objects=$lt_postdep_objects_CXX
14584
14585 # Dependencies to place before the objects being linked to create a
14586 # shared library.
14587 predeps=$lt_predeps_CXX
14588
14589 # Dependencies to place after the objects being linked to create a
14590 # shared library.
14591 postdeps=$lt_postdeps_CXX
14592
14593 # The library search path used internally by the compiler when linking
14594 # a shared library.
14595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14596
14597 # Method to check whether dependent libraries are shared objects.
14598 deplibs_check_method=$lt_deplibs_check_method
14599
14600 # Command to use when deplibs_check_method == file_magic.
14601 file_magic_cmd=$lt_file_magic_cmd
14602
14603 # Flag that allows shared libraries with undefined symbols to be built.
14604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14605
14606 # Flag that forces no undefined symbols.
14607 no_undefined_flag=$lt_no_undefined_flag_CXX
14608
14609 # Commands used to finish a libtool library installation in a directory.
14610 finish_cmds=$lt_finish_cmds
14611
14612 # Same as above, but a single script fragment to be evaled but not shown.
14613 finish_eval=$lt_finish_eval
14614
14615 # Take the output of nm and produce a listing of raw symbols and C names.
14616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14617
14618 # Transform the output of nm in a proper C declaration
14619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14620
14621 # Transform the output of nm in a C name address pair
14622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14623
14624 # This is the shared library runtime path variable.
14625 runpath_var=$runpath_var
14626
14627 # This is the shared library path variable.
14628 shlibpath_var=$shlibpath_var
14629
14630 # Is shlibpath searched before the hard-coded library search path?
14631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14632
14633 # How to hardcode a shared library path into an executable.
14634 hardcode_action=$hardcode_action_CXX
14635
14636 # Whether we should hardcode library paths into libraries.
14637 hardcode_into_libs=$hardcode_into_libs
14638
14639 # Flag to hardcode \$libdir into a binary during linking.
14640 # This must work even if \$libdir does not exist.
14641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14642
14643 # If ld is used when linking, flag to hardcode \$libdir into
14644 # a binary during linking. This must work even if \$libdir does
14645 # not exist.
14646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14647
14648 # Whether we need a single -rpath flag with a separated argument.
14649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14650
14651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14652 # resulting binary.
14653 hardcode_direct=$hardcode_direct_CXX
14654
14655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14656 # resulting binary.
14657 hardcode_minus_L=$hardcode_minus_L_CXX
14658
14659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14660 # the resulting binary.
14661 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14662
14663 # Set to yes if building a shared library automatically hardcodes DIR into the library
14664 # and all subsequent libraries and executables linked against it.
14665 hardcode_automatic=$hardcode_automatic_CXX
14666
14667 # Variables whose values should be saved in libtool wrapper scripts and
14668 # restored at relink time.
14669 variables_saved_for_relink="$variables_saved_for_relink"
14670
14671 # Whether libtool must link a program against all its dependency libraries.
14672 link_all_deplibs=$link_all_deplibs_CXX
14673
14674 # Compile-time system search path for libraries
14675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14676
14677 # Run-time system search path for libraries
14678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14679
14680 # Fix the shell variable \$srcfile for the compiler.
14681 fix_srcfile_path="$fix_srcfile_path_CXX"
14682
14683 # Set to yes if exported symbols are required.
14684 always_export_symbols=$always_export_symbols_CXX
14685
14686 # The commands to list exported symbols.
14687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14688
14689 # The commands to extract the exported symbol list from a shared archive.
14690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14691
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms_CXX
14694
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms_CXX
14697
14698 # ### END LIBTOOL TAG CONFIG: $tagname
14699
14700 __EOF__
14701
14702
14703 else
14704   # If there is no Makefile yet, we rely on a make rule to execute
14705   # `config.status --recheck' to rerun these tests and create the
14706   # libtool script then.
14707   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14708   if test -f "$ltmain_in"; then
14709     test -f Makefile && make "$ltmain"
14710   fi
14711 fi
14712
14713
14714 ac_ext=c
14715 ac_cpp='$CPP $CPPFLAGS'
14716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719
14720 CC=$lt_save_CC
14721 LDCXX=$LD
14722 LD=$lt_save_LD
14723 GCC=$lt_save_GCC
14724 with_gnu_ldcxx=$with_gnu_ld
14725 with_gnu_ld=$lt_save_with_gnu_ld
14726 lt_cv_path_LDCXX=$lt_cv_path_LD
14727 lt_cv_path_LD=$lt_save_path_LD
14728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14730
14731         else
14732           tagname=""
14733         fi
14734         ;;
14735
14736       F77)
14737         if test -n "$F77" && test "X$F77" != "Xno"; then
14738
14739 ac_ext=f
14740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14743
14744
14745 archive_cmds_need_lc_F77=no
14746 allow_undefined_flag_F77=
14747 always_export_symbols_F77=no
14748 archive_expsym_cmds_F77=
14749 export_dynamic_flag_spec_F77=
14750 hardcode_direct_F77=no
14751 hardcode_libdir_flag_spec_F77=
14752 hardcode_libdir_flag_spec_ld_F77=
14753 hardcode_libdir_separator_F77=
14754 hardcode_minus_L_F77=no
14755 hardcode_automatic_F77=no
14756 module_cmds_F77=
14757 module_expsym_cmds_F77=
14758 link_all_deplibs_F77=unknown
14759 old_archive_cmds_F77=$old_archive_cmds
14760 no_undefined_flag_F77=
14761 whole_archive_flag_spec_F77=
14762 enable_shared_with_static_runtimes_F77=no
14763
14764 # Source file extension for f77 test sources.
14765 ac_ext=f
14766
14767 # Object file extension for compiled f77 test sources.
14768 objext=o
14769 objext_F77=$objext
14770
14771 # Code to be used in simple compile tests
14772 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14773
14774 # Code to be used in simple link tests
14775 lt_simple_link_test_code="      program t\n      end\n"
14776
14777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14778
14779 # If no C compiler was specified, use CC.
14780 LTCC=${LTCC-"$CC"}
14781
14782 # If no C compiler flags were specified, use CFLAGS.
14783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14784
14785 # Allow CC to be a program name with arguments.
14786 compiler=$CC
14787
14788
14789 # save warnings/boilerplate of simple test code
14790 ac_outfile=conftest.$ac_objext
14791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14793 _lt_compiler_boilerplate=`cat conftest.err`
14794 $rm conftest*
14795
14796 ac_outfile=conftest.$ac_objext
14797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799 _lt_linker_boilerplate=`cat conftest.err`
14800 $rm conftest*
14801
14802
14803 # Allow CC to be a program name with arguments.
14804 lt_save_CC="$CC"
14805 CC=${F77-"f77"}
14806 compiler=$CC
14807 compiler_F77=$CC
14808 for cc_temp in $compiler""; do
14809   case $cc_temp in
14810     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14811     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14812     \-*) ;;
14813     *) break;;
14814   esac
14815 done
14816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14817
14818
14819 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14821 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14822 echo "${ECHO_T}$can_build_shared" >&6; }
14823
14824 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14826 test "$can_build_shared" = "no" && enable_shared=no
14827
14828 # On AIX, shared libraries and static libraries use the same namespace, and
14829 # are all built from PIC.
14830 case $host_os in
14831 aix3*)
14832   test "$enable_shared" = yes && enable_static=no
14833   if test -n "$RANLIB"; then
14834     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14835     postinstall_cmds='$RANLIB $lib'
14836   fi
14837   ;;
14838 aix4* | aix5*)
14839   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14840     test "$enable_shared" = yes && enable_static=no
14841   fi
14842   ;;
14843 esac
14844 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14845 echo "${ECHO_T}$enable_shared" >&6; }
14846
14847 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14848 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14849 # Make sure either enable_shared or enable_static is yes.
14850 test "$enable_shared" = yes || enable_static=yes
14851 { echo "$as_me:$LINENO: result: $enable_static" >&5
14852 echo "${ECHO_T}$enable_static" >&6; }
14853
14854 GCC_F77="$G77"
14855 LD_F77="$LD"
14856
14857 lt_prog_compiler_wl_F77=
14858 lt_prog_compiler_pic_F77=
14859 lt_prog_compiler_static_F77=
14860
14861 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14863
14864   if test "$GCC" = yes; then
14865     lt_prog_compiler_wl_F77='-Wl,'
14866     lt_prog_compiler_static_F77='-static'
14867
14868     case $host_os in
14869       aix*)
14870       # All AIX code is PIC.
14871       if test "$host_cpu" = ia64; then
14872         # AIX 5 now supports IA64 processor
14873         lt_prog_compiler_static_F77='-Bstatic'
14874       fi
14875       ;;
14876
14877     amigaos*)
14878       # FIXME: we need at least 68020 code to build shared libraries, but
14879       # adding the `-m68020' flag to GCC prevents building anything better,
14880       # like `-m68040'.
14881       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14882       ;;
14883
14884     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14885       # PIC is the default for these OSes.
14886       ;;
14887
14888     mingw* | pw32* | os2*)
14889       # This hack is so that the source file can tell whether it is being
14890       # built for inclusion in a dll (and should export symbols for example).
14891       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14892       ;;
14893
14894     darwin* | rhapsody*)
14895       # PIC is the default on this platform
14896       # Common symbols not allowed in MH_DYLIB files
14897       lt_prog_compiler_pic_F77='-fno-common'
14898       ;;
14899
14900     interix3*)
14901       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14902       # Instead, we relocate shared libraries at runtime.
14903       ;;
14904
14905     msdosdjgpp*)
14906       # Just because we use GCC doesn't mean we suddenly get shared libraries
14907       # on systems that don't support them.
14908       lt_prog_compiler_can_build_shared_F77=no
14909       enable_shared=no
14910       ;;
14911
14912     sysv4*MP*)
14913       if test -d /usr/nec; then
14914         lt_prog_compiler_pic_F77=-Kconform_pic
14915       fi
14916       ;;
14917
14918     hpux*)
14919       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14920       # not for PA HP-UX.
14921       case $host_cpu in
14922       hppa*64*|ia64*)
14923         # +Z the default
14924         ;;
14925       *)
14926         lt_prog_compiler_pic_F77='-fPIC'
14927         ;;
14928       esac
14929       ;;
14930
14931     *)
14932       lt_prog_compiler_pic_F77='-fPIC'
14933       ;;
14934     esac
14935   else
14936     # PORTME Check for flag to pass linker flags through the system compiler.
14937     case $host_os in
14938     aix*)
14939       lt_prog_compiler_wl_F77='-Wl,'
14940       if test "$host_cpu" = ia64; then
14941         # AIX 5 now supports IA64 processor
14942         lt_prog_compiler_static_F77='-Bstatic'
14943       else
14944         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14945       fi
14946       ;;
14947       darwin*)
14948         # PIC is the default on this platform
14949         # Common symbols not allowed in MH_DYLIB files
14950        case $cc_basename in
14951          xlc*)
14952          lt_prog_compiler_pic_F77='-qnocommon'
14953          lt_prog_compiler_wl_F77='-Wl,'
14954          ;;
14955        esac
14956        ;;
14957
14958     mingw* | pw32* | os2*)
14959       # This hack is so that the source file can tell whether it is being
14960       # built for inclusion in a dll (and should export symbols for example).
14961       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14962       ;;
14963
14964     hpux9* | hpux10* | hpux11*)
14965       lt_prog_compiler_wl_F77='-Wl,'
14966       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14967       # not for PA HP-UX.
14968       case $host_cpu in
14969       hppa*64*|ia64*)
14970         # +Z the default
14971         ;;
14972       *)
14973         lt_prog_compiler_pic_F77='+Z'
14974         ;;
14975       esac
14976       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14977       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14978       ;;
14979
14980     irix5* | irix6* | nonstopux*)
14981       lt_prog_compiler_wl_F77='-Wl,'
14982       # PIC (with -KPIC) is the default.
14983       lt_prog_compiler_static_F77='-non_shared'
14984       ;;
14985
14986     newsos6)
14987       lt_prog_compiler_pic_F77='-KPIC'
14988       lt_prog_compiler_static_F77='-Bstatic'
14989       ;;
14990
14991     linux* | k*bsd*-gnu)
14992       case $cc_basename in
14993       icc* | ecc*)
14994         lt_prog_compiler_wl_F77='-Wl,'
14995         lt_prog_compiler_pic_F77='-KPIC'
14996         lt_prog_compiler_static_F77='-static'
14997         ;;
14998       pgcc* | pgf77* | pgf90* | pgf95*)
14999         # Portland Group compilers (*not* the Pentium gcc compiler,
15000         # which looks to be a dead project)
15001         lt_prog_compiler_wl_F77='-Wl,'
15002         lt_prog_compiler_pic_F77='-fpic'
15003         lt_prog_compiler_static_F77='-Bstatic'
15004         ;;
15005       ccc*)
15006         lt_prog_compiler_wl_F77='-Wl,'
15007         # All Alpha code is PIC.
15008         lt_prog_compiler_static_F77='-non_shared'
15009         ;;
15010       esac
15011       ;;
15012
15013     osf3* | osf4* | osf5*)
15014       lt_prog_compiler_wl_F77='-Wl,'
15015       # All OSF/1 code is PIC.
15016       lt_prog_compiler_static_F77='-non_shared'
15017       ;;
15018
15019     solaris*)
15020       lt_prog_compiler_pic_F77='-KPIC'
15021       lt_prog_compiler_static_F77='-Bstatic'
15022       case $cc_basename in
15023       f77* | f90* | f95*)
15024         lt_prog_compiler_wl_F77='-Qoption ld ';;
15025       *)
15026         lt_prog_compiler_wl_F77='-Wl,';;
15027       esac
15028       ;;
15029
15030     sunos4*)
15031       lt_prog_compiler_wl_F77='-Qoption ld '
15032       lt_prog_compiler_pic_F77='-PIC'
15033       lt_prog_compiler_static_F77='-Bstatic'
15034       ;;
15035
15036     sysv4 | sysv4.2uw2* | sysv4.3*)
15037       lt_prog_compiler_wl_F77='-Wl,'
15038       lt_prog_compiler_pic_F77='-KPIC'
15039       lt_prog_compiler_static_F77='-Bstatic'
15040       ;;
15041
15042     sysv4*MP*)
15043       if test -d /usr/nec ;then
15044         lt_prog_compiler_pic_F77='-Kconform_pic'
15045         lt_prog_compiler_static_F77='-Bstatic'
15046       fi
15047       ;;
15048
15049     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15050       lt_prog_compiler_wl_F77='-Wl,'
15051       lt_prog_compiler_pic_F77='-KPIC'
15052       lt_prog_compiler_static_F77='-Bstatic'
15053       ;;
15054
15055     unicos*)
15056       lt_prog_compiler_wl_F77='-Wl,'
15057       lt_prog_compiler_can_build_shared_F77=no
15058       ;;
15059
15060     uts4*)
15061       lt_prog_compiler_pic_F77='-pic'
15062       lt_prog_compiler_static_F77='-Bstatic'
15063       ;;
15064
15065     *)
15066       lt_prog_compiler_can_build_shared_F77=no
15067       ;;
15068     esac
15069   fi
15070
15071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15072 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15073
15074 #
15075 # Check to make sure the PIC flag actually works.
15076 #
15077 if test -n "$lt_prog_compiler_pic_F77"; then
15078
15079 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15080 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15081 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   lt_prog_compiler_pic_works_F77=no
15085   ac_outfile=conftest.$ac_objext
15086    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15087    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15088    # Insert the option either (1) after the last *FLAGS variable, or
15089    # (2) before a word containing "conftest.", or (3) at the end.
15090    # Note that $ac_compile itself does not contain backslashes and begins
15091    # with a dollar sign (not a hyphen), so the echo should work correctly.
15092    # The option is referenced via a variable to avoid confusing sed.
15093    lt_compile=`echo "$ac_compile" | $SED \
15094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096    -e 's:$: $lt_compiler_flag:'`
15097    (eval echo "\"\$as_me:15097: $lt_compile\"" >&5)
15098    (eval "$lt_compile" 2>conftest.err)
15099    ac_status=$?
15100    cat conftest.err >&5
15101    echo "$as_me:15101: \$? = $ac_status" >&5
15102    if (exit $ac_status) && test -s "$ac_outfile"; then
15103      # The compiler can only warn and ignore the option if not recognized
15104      # So say no if there are warnings other than the usual output.
15105      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15106      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15107      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15108        lt_prog_compiler_pic_works_F77=yes
15109      fi
15110    fi
15111    $rm conftest*
15112
15113 fi
15114 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15115 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15116
15117 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15118     case $lt_prog_compiler_pic_F77 in
15119      "" | " "*) ;;
15120      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15121      esac
15122 else
15123     lt_prog_compiler_pic_F77=
15124      lt_prog_compiler_can_build_shared_F77=no
15125 fi
15126
15127 fi
15128 case $host_os in
15129   # For platforms which do not support PIC, -DPIC is meaningless:
15130   *djgpp*)
15131     lt_prog_compiler_pic_F77=
15132     ;;
15133   *)
15134     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15135     ;;
15136 esac
15137
15138 #
15139 # Check to make sure the static flag actually works.
15140 #
15141 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15142 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15143 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15144 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   lt_prog_compiler_static_works_F77=no
15148    save_LDFLAGS="$LDFLAGS"
15149    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15150    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15151    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15152      # The linker can only warn and ignore the option if not recognized
15153      # So say no if there are warnings
15154      if test -s conftest.err; then
15155        # Append any errors to the config.log.
15156        cat conftest.err 1>&5
15157        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15158        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15159        if diff conftest.exp conftest.er2 >/dev/null; then
15160          lt_prog_compiler_static_works_F77=yes
15161        fi
15162      else
15163        lt_prog_compiler_static_works_F77=yes
15164      fi
15165    fi
15166    $rm conftest*
15167    LDFLAGS="$save_LDFLAGS"
15168
15169 fi
15170 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15171 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15172
15173 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15174     :
15175 else
15176     lt_prog_compiler_static_F77=
15177 fi
15178
15179
15180 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15182 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   lt_cv_prog_compiler_c_o_F77=no
15186    $rm -r conftest 2>/dev/null
15187    mkdir conftest
15188    cd conftest
15189    mkdir out
15190    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15191
15192    lt_compiler_flag="-o out/conftest2.$ac_objext"
15193    # Insert the option either (1) after the last *FLAGS variable, or
15194    # (2) before a word containing "conftest.", or (3) at the end.
15195    # Note that $ac_compile itself does not contain backslashes and begins
15196    # with a dollar sign (not a hyphen), so the echo should work correctly.
15197    lt_compile=`echo "$ac_compile" | $SED \
15198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200    -e 's:$: $lt_compiler_flag:'`
15201    (eval echo "\"\$as_me:15201: $lt_compile\"" >&5)
15202    (eval "$lt_compile" 2>out/conftest.err)
15203    ac_status=$?
15204    cat out/conftest.err >&5
15205    echo "$as_me:15205: \$? = $ac_status" >&5
15206    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15207    then
15208      # The compiler can only warn and ignore the option if not recognized
15209      # So say no if there are warnings
15210      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15211      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15212      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15213        lt_cv_prog_compiler_c_o_F77=yes
15214      fi
15215    fi
15216    chmod u+w . 2>&5
15217    $rm conftest*
15218    # SGI C++ compiler will create directory out/ii_files/ for
15219    # template instantiation
15220    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15221    $rm out/* && rmdir out
15222    cd ..
15223    rmdir conftest
15224    $rm conftest*
15225
15226 fi
15227 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15229
15230
15231 hard_links="nottested"
15232 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15233   # do not overwrite the value of need_locks provided by the user
15234   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15235 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15236   hard_links=yes
15237   $rm conftest*
15238   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15239   touch conftest.a
15240   ln conftest.a conftest.b 2>&5 || hard_links=no
15241   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15242   { echo "$as_me:$LINENO: result: $hard_links" >&5
15243 echo "${ECHO_T}$hard_links" >&6; }
15244   if test "$hard_links" = no; then
15245     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15246 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15247     need_locks=warn
15248   fi
15249 else
15250   need_locks=no
15251 fi
15252
15253 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15255
15256   runpath_var=
15257   allow_undefined_flag_F77=
15258   enable_shared_with_static_runtimes_F77=no
15259   archive_cmds_F77=
15260   archive_expsym_cmds_F77=
15261   old_archive_From_new_cmds_F77=
15262   old_archive_from_expsyms_cmds_F77=
15263   export_dynamic_flag_spec_F77=
15264   whole_archive_flag_spec_F77=
15265   thread_safe_flag_spec_F77=
15266   hardcode_libdir_flag_spec_F77=
15267   hardcode_libdir_flag_spec_ld_F77=
15268   hardcode_libdir_separator_F77=
15269   hardcode_direct_F77=no
15270   hardcode_minus_L_F77=no
15271   hardcode_shlibpath_var_F77=unsupported
15272   link_all_deplibs_F77=unknown
15273   hardcode_automatic_F77=no
15274   module_cmds_F77=
15275   module_expsym_cmds_F77=
15276   always_export_symbols_F77=no
15277   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15278   # include_expsyms should be a list of space-separated symbols to be *always*
15279   # included in the symbol list
15280   include_expsyms_F77=
15281   # exclude_expsyms can be an extended regexp of symbols to exclude
15282   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15283   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15284   # as well as any symbol that contains `d'.
15285   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15286   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15287   # platforms (ab)use it in PIC code, but their linkers get confused if
15288   # the symbol is explicitly referenced.  Since portable code cannot
15289   # rely on this symbol name, it's probably fine to never include it in
15290   # preloaded symbol tables.
15291   extract_expsyms_cmds=
15292   # Just being paranoid about ensuring that cc_basename is set.
15293   for cc_temp in $compiler""; do
15294   case $cc_temp in
15295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15297     \-*) ;;
15298     *) break;;
15299   esac
15300 done
15301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15302
15303   case $host_os in
15304   cygwin* | mingw* | pw32*)
15305     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15306     # When not using gcc, we currently assume that we are using
15307     # Microsoft Visual C++.
15308     if test "$GCC" != yes; then
15309       with_gnu_ld=no
15310     fi
15311     ;;
15312   interix*)
15313     # we just hope/assume this is gcc and not c89 (= MSVC++)
15314     with_gnu_ld=yes
15315     ;;
15316   openbsd*)
15317     with_gnu_ld=no
15318     ;;
15319   esac
15320
15321   ld_shlibs_F77=yes
15322   if test "$with_gnu_ld" = yes; then
15323     # If archive_cmds runs LD, not CC, wlarc should be empty
15324     wlarc='${wl}'
15325
15326     # Set some defaults for GNU ld with shared library support. These
15327     # are reset later if shared libraries are not supported. Putting them
15328     # here allows them to be overridden if necessary.
15329     runpath_var=LD_RUN_PATH
15330     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15331     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15332     # ancient GNU ld didn't support --whole-archive et. al.
15333     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15334         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15335       else
15336         whole_archive_flag_spec_F77=
15337     fi
15338     supports_anon_versioning=no
15339     case `$LD -v 2>/dev/null` in
15340       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15341       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15342       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15343       *\ 2.11.*) ;; # other 2.11 versions
15344       *) supports_anon_versioning=yes ;;
15345     esac
15346
15347     # See if GNU ld supports shared libraries.
15348     case $host_os in
15349     aix3* | aix4* | aix5*)
15350       # On AIX/PPC, the GNU linker is very broken
15351       if test "$host_cpu" != ia64; then
15352         ld_shlibs_F77=no
15353         cat <<EOF 1>&2
15354
15355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15356 *** to be unable to reliably create shared libraries on AIX.
15357 *** Therefore, libtool is disabling shared libraries support.  If you
15358 *** really care for shared libraries, you may want to modify your PATH
15359 *** so that a non-GNU linker is found, and then restart.
15360
15361 EOF
15362       fi
15363       ;;
15364
15365     amigaos*)
15366       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)'
15367       hardcode_libdir_flag_spec_F77='-L$libdir'
15368       hardcode_minus_L_F77=yes
15369
15370       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15371       # that the semantics of dynamic libraries on AmigaOS, at least up
15372       # to version 4, is to share data among multiple programs linked
15373       # with the same dynamic library.  Since this doesn't match the
15374       # behavior of shared libraries on other platforms, we can't use
15375       # them.
15376       ld_shlibs_F77=no
15377       ;;
15378
15379     beos*)
15380       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15381         allow_undefined_flag_F77=unsupported
15382         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15383         # support --undefined.  This deserves some investigation.  FIXME
15384         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15385       else
15386         ld_shlibs_F77=no
15387       fi
15388       ;;
15389
15390     cygwin* | mingw* | pw32*)
15391       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15392       # as there is no search path for DLLs.
15393       hardcode_libdir_flag_spec_F77='-L$libdir'
15394       allow_undefined_flag_F77=unsupported
15395       always_export_symbols_F77=no
15396       enable_shared_with_static_runtimes_F77=yes
15397       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15398
15399       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15400         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15401         # If the export-symbols file already is a .def file (1st line
15402         # is EXPORTS), use it as is; otherwise, prepend...
15403         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15404           cp $export_symbols $output_objdir/$soname.def;
15405         else
15406           echo EXPORTS > $output_objdir/$soname.def;
15407           cat $export_symbols >> $output_objdir/$soname.def;
15408         fi~
15409         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15410       else
15411         ld_shlibs_F77=no
15412       fi
15413       ;;
15414
15415     interix3*)
15416       hardcode_direct_F77=no
15417       hardcode_shlibpath_var_F77=no
15418       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15419       export_dynamic_flag_spec_F77='${wl}-E'
15420       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15421       # Instead, shared libraries are loaded at an image base (0x10000000 by
15422       # default) and relocated if they conflict, which is a slow very memory
15423       # consuming and fragmenting process.  To avoid this, we pick a random,
15424       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15425       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15426       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'
15427       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'
15428       ;;
15429
15430     linux* | k*bsd*-gnu)
15431       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15432         tmp_addflag=
15433         case $cc_basename,$host_cpu in
15434         pgcc*)                          # Portland Group C compiler
15435           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'
15436           tmp_addflag=' $pic_flag'
15437           ;;
15438         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15439           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'
15440           tmp_addflag=' $pic_flag -Mnomain' ;;
15441         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15442           tmp_addflag=' -i_dynamic' ;;
15443         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15444           tmp_addflag=' -i_dynamic -nofor_main' ;;
15445         ifc* | ifort*)                  # Intel Fortran compiler
15446           tmp_addflag=' -nofor_main' ;;
15447         esac
15448         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15449
15450         if test $supports_anon_versioning = yes; then
15451           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15452   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15453   $echo "local: *; };" >> $output_objdir/$libname.ver~
15454           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15455         fi
15456         link_all_deplibs_F77=no
15457       else
15458         ld_shlibs_F77=no
15459       fi
15460       ;;
15461
15462     netbsd* | netbsdelf*-gnu)
15463       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15464         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15465         wlarc=
15466       else
15467         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15468         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15469       fi
15470       ;;
15471
15472     solaris*)
15473       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15474         ld_shlibs_F77=no
15475         cat <<EOF 1>&2
15476
15477 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15478 *** create shared libraries on Solaris systems.  Therefore, libtool
15479 *** is disabling shared libraries support.  We urge you to upgrade GNU
15480 *** binutils to release 2.9.1 or newer.  Another option is to modify
15481 *** your PATH or compiler configuration so that the native linker is
15482 *** used, and then restart.
15483
15484 EOF
15485       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15486         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15487         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15488       else
15489         ld_shlibs_F77=no
15490       fi
15491       ;;
15492
15493     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15494       case `$LD -v 2>&1` in
15495         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15496         ld_shlibs_F77=no
15497         cat <<_LT_EOF 1>&2
15498
15499 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15500 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15501 *** is disabling shared libraries support.  We urge you to upgrade GNU
15502 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15503 *** your PATH or compiler configuration so that the native linker is
15504 *** used, and then restart.
15505
15506 _LT_EOF
15507         ;;
15508         *)
15509           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15510             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15511             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15512             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15513           else
15514             ld_shlibs_F77=no
15515           fi
15516         ;;
15517       esac
15518       ;;
15519
15520     sunos4*)
15521       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522       wlarc=
15523       hardcode_direct_F77=yes
15524       hardcode_shlibpath_var_F77=no
15525       ;;
15526
15527     *)
15528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531       else
15532         ld_shlibs_F77=no
15533       fi
15534       ;;
15535     esac
15536
15537     if test "$ld_shlibs_F77" = no; then
15538       runpath_var=
15539       hardcode_libdir_flag_spec_F77=
15540       export_dynamic_flag_spec_F77=
15541       whole_archive_flag_spec_F77=
15542     fi
15543   else
15544     # PORTME fill in a description of your system's linker (not GNU ld)
15545     case $host_os in
15546     aix3*)
15547       allow_undefined_flag_F77=unsupported
15548       always_export_symbols_F77=yes
15549       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'
15550       # Note: this linker hardcodes the directories in LIBPATH if there
15551       # are no directories specified by -L.
15552       hardcode_minus_L_F77=yes
15553       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15554         # Neither direct hardcoding nor static linking is supported with a
15555         # broken collect2.
15556         hardcode_direct_F77=unsupported
15557       fi
15558       ;;
15559
15560     aix4* | aix5*)
15561       if test "$host_cpu" = ia64; then
15562         # On IA64, the linker does run time linking by default, so we don't
15563         # have to do anything special.
15564         aix_use_runtimelinking=no
15565         exp_sym_flag='-Bexport'
15566         no_entry_flag=""
15567       else
15568         # If we're using GNU nm, then we don't want the "-C" option.
15569         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15570         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15571           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'
15572         else
15573           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'
15574         fi
15575         aix_use_runtimelinking=no
15576
15577         # Test if we are trying to use run time linking or normal
15578         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15579         # need to do runtime linking.
15580         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15581           for ld_flag in $LDFLAGS; do
15582           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15583             aix_use_runtimelinking=yes
15584             break
15585           fi
15586           done
15587           ;;
15588         esac
15589
15590         exp_sym_flag='-bexport'
15591         no_entry_flag='-bnoentry'
15592       fi
15593
15594       # When large executables or shared objects are built, AIX ld can
15595       # have problems creating the table of contents.  If linking a library
15596       # or program results in "error TOC overflow" add -mminimal-toc to
15597       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15598       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15599
15600       archive_cmds_F77=''
15601       hardcode_direct_F77=yes
15602       hardcode_libdir_separator_F77=':'
15603       link_all_deplibs_F77=yes
15604
15605       if test "$GCC" = yes; then
15606         case $host_os in aix4.[012]|aix4.[012].*)
15607         # We only want to do this on AIX 4.2 and lower, the check
15608         # below for broken collect2 doesn't work under 4.3+
15609           collect2name=`${CC} -print-prog-name=collect2`
15610           if test -f "$collect2name" && \
15611            strings "$collect2name" | grep resolve_lib_name >/dev/null
15612           then
15613           # We have reworked collect2
15614           hardcode_direct_F77=yes
15615           else
15616           # We have old collect2
15617           hardcode_direct_F77=unsupported
15618           # It fails to find uninstalled libraries when the uninstalled
15619           # path is not listed in the libpath.  Setting hardcode_minus_L
15620           # to unsupported forces relinking
15621           hardcode_minus_L_F77=yes
15622           hardcode_libdir_flag_spec_F77='-L$libdir'
15623           hardcode_libdir_separator_F77=
15624           fi
15625           ;;
15626         esac
15627         shared_flag='-shared'
15628         if test "$aix_use_runtimelinking" = yes; then
15629           shared_flag="$shared_flag "'${wl}-G'
15630         fi
15631       else
15632         # not using gcc
15633         if test "$host_cpu" = ia64; then
15634         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15635         # chokes on -Wl,-G. The following line is correct:
15636           shared_flag='-G'
15637         else
15638           if test "$aix_use_runtimelinking" = yes; then
15639             shared_flag='${wl}-G'
15640           else
15641             shared_flag='${wl}-bM:SRE'
15642           fi
15643         fi
15644       fi
15645
15646       # It seems that -bexpall does not export symbols beginning with
15647       # underscore (_), so it is better to generate a list of symbols to export.
15648       always_export_symbols_F77=yes
15649       if test "$aix_use_runtimelinking" = yes; then
15650         # Warning - without using the other runtime loading flags (-brtl),
15651         # -berok will link without error, but may produce a broken library.
15652         allow_undefined_flag_F77='-berok'
15653        # Determine the default libpath from the value encoded in an empty executable.
15654        cat >conftest.$ac_ext <<_ACEOF
15655       program main
15656
15657       end
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_link") 2>conftest.er1
15667   ac_status=$?
15668   grep -v '^ *+' conftest.er1 >conftest.err
15669   rm -f conftest.er1
15670   cat conftest.err >&5
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } && {
15673          test -z "$ac_f77_werror_flag" ||
15674          test ! -s conftest.err
15675        } && test -s conftest$ac_exeext &&
15676        $as_test_x conftest$ac_exeext; then
15677
15678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15679 }'`
15680 # Check for a 64-bit object if we didn't find anything.
15681 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15682 }'`; fi
15683 else
15684   echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687
15688 fi
15689
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691       conftest$ac_exeext conftest.$ac_ext
15692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15693
15694        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15695         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"
15696        else
15697         if test "$host_cpu" = ia64; then
15698           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15699           allow_undefined_flag_F77="-z nodefs"
15700           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"
15701         else
15702          # Determine the default libpath from the value encoded in an empty executable.
15703          cat >conftest.$ac_ext <<_ACEOF
15704       program main
15705
15706       end
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_link") 2>conftest.er1
15716   ac_status=$?
15717   grep -v '^ *+' conftest.er1 >conftest.err
15718   rm -f conftest.er1
15719   cat conftest.err >&5
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } && {
15722          test -z "$ac_f77_werror_flag" ||
15723          test ! -s conftest.err
15724        } && test -s conftest$ac_exeext &&
15725        $as_test_x conftest$ac_exeext; then
15726
15727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15728 }'`
15729 # Check for a 64-bit object if we didn't find anything.
15730 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15731 }'`; fi
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736
15737 fi
15738
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740       conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15742
15743          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15744           # Warning - without using the other run time loading flags,
15745           # -berok will link without error, but may produce a broken library.
15746           no_undefined_flag_F77=' ${wl}-bernotok'
15747           allow_undefined_flag_F77=' ${wl}-berok'
15748           # Exported symbols can be pulled into shared objects from archives
15749           whole_archive_flag_spec_F77='$convenience'
15750           archive_cmds_need_lc_F77=yes
15751           # This is similar to how AIX traditionally builds its shared libraries.
15752           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'
15753         fi
15754       fi
15755       ;;
15756
15757     amigaos*)
15758       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)'
15759       hardcode_libdir_flag_spec_F77='-L$libdir'
15760       hardcode_minus_L_F77=yes
15761       # see comment about different semantics on the GNU ld section
15762       ld_shlibs_F77=no
15763       ;;
15764
15765     bsdi[45]*)
15766       export_dynamic_flag_spec_F77=-rdynamic
15767       ;;
15768
15769     cygwin* | mingw* | pw32*)
15770       # When not using gcc, we currently assume that we are using
15771       # Microsoft Visual C++.
15772       # hardcode_libdir_flag_spec is actually meaningless, as there is
15773       # no search path for DLLs.
15774       hardcode_libdir_flag_spec_F77=' '
15775       allow_undefined_flag_F77=unsupported
15776       # Tell ltmain to make .lib files, not .a files.
15777       libext=lib
15778       # Tell ltmain to make .dll files, not .so files.
15779       shrext_cmds=".dll"
15780       # FIXME: Setting linknames here is a bad hack.
15781       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15782       # The linker will automatically build a .lib file if we build a DLL.
15783       old_archive_From_new_cmds_F77='true'
15784       # FIXME: Should let the user specify the lib program.
15785       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15786       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15787       enable_shared_with_static_runtimes_F77=yes
15788       ;;
15789
15790     darwin* | rhapsody*)
15791       case $host_os in
15792         rhapsody* | darwin1.[012])
15793          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15794          ;;
15795        *) # Darwin 1.3 on
15796          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15797            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15798          else
15799            case ${MACOSX_DEPLOYMENT_TARGET} in
15800              10.[012])
15801                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15802                ;;
15803              10.*)
15804                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15805                ;;
15806            esac
15807          fi
15808          ;;
15809       esac
15810       archive_cmds_need_lc_F77=no
15811       hardcode_direct_F77=no
15812       hardcode_automatic_F77=yes
15813       hardcode_shlibpath_var_F77=unsupported
15814       whole_archive_flag_spec_F77=''
15815       link_all_deplibs_F77=yes
15816     if test "$GCC" = yes ; then
15817         output_verbose_link_cmd='echo'
15818         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15819       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15820       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15821       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}'
15822       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}'
15823     else
15824       case $cc_basename in
15825         xlc*)
15826          output_verbose_link_cmd='echo'
15827          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15828          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15829           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15830          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15831           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}'
15832           ;;
15833        *)
15834          ld_shlibs_F77=no
15835           ;;
15836       esac
15837     fi
15838       ;;
15839
15840     dgux*)
15841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842       hardcode_libdir_flag_spec_F77='-L$libdir'
15843       hardcode_shlibpath_var_F77=no
15844       ;;
15845
15846     freebsd1*)
15847       ld_shlibs_F77=no
15848       ;;
15849
15850     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15851     # support.  Future versions do this automatically, but an explicit c++rt0.o
15852     # does not break anything, and helps significantly (at the cost of a little
15853     # extra space).
15854     freebsd2.2*)
15855       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15856       hardcode_libdir_flag_spec_F77='-R$libdir'
15857       hardcode_direct_F77=yes
15858       hardcode_shlibpath_var_F77=no
15859       ;;
15860
15861     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15862     freebsd2*)
15863       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864       hardcode_direct_F77=yes
15865       hardcode_minus_L_F77=yes
15866       hardcode_shlibpath_var_F77=no
15867       ;;
15868
15869     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15870     freebsd* | dragonfly*)
15871       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15872       hardcode_libdir_flag_spec_F77='-R$libdir'
15873       hardcode_direct_F77=yes
15874       hardcode_shlibpath_var_F77=no
15875       ;;
15876
15877     hpux9*)
15878       if test "$GCC" = yes; then
15879         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'
15880       else
15881         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'
15882       fi
15883       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15884       hardcode_libdir_separator_F77=:
15885       hardcode_direct_F77=yes
15886
15887       # hardcode_minus_L: Not really in the search PATH,
15888       # but as the default location of the library.
15889       hardcode_minus_L_F77=yes
15890       export_dynamic_flag_spec_F77='${wl}-E'
15891       ;;
15892
15893     hpux10*)
15894       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15895         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15896       else
15897         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15898       fi
15899       if test "$with_gnu_ld" = no; then
15900         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15901         hardcode_libdir_separator_F77=:
15902
15903         hardcode_direct_F77=yes
15904         export_dynamic_flag_spec_F77='${wl}-E'
15905
15906         # hardcode_minus_L: Not really in the search PATH,
15907         # but as the default location of the library.
15908         hardcode_minus_L_F77=yes
15909       fi
15910       ;;
15911
15912     hpux11*)
15913       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15914         case $host_cpu in
15915         hppa*64*)
15916           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917           ;;
15918         ia64*)
15919           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15920           ;;
15921         *)
15922           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15923           ;;
15924         esac
15925       else
15926         case $host_cpu in
15927         hppa*64*)
15928           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929           ;;
15930         ia64*)
15931           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15932           ;;
15933         *)
15934           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15935           ;;
15936         esac
15937       fi
15938       if test "$with_gnu_ld" = no; then
15939         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15940         hardcode_libdir_separator_F77=:
15941
15942         case $host_cpu in
15943         hppa*64*|ia64*)
15944           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15945           hardcode_direct_F77=no
15946           hardcode_shlibpath_var_F77=no
15947           ;;
15948         *)
15949           hardcode_direct_F77=yes
15950           export_dynamic_flag_spec_F77='${wl}-E'
15951
15952           # hardcode_minus_L: Not really in the search PATH,
15953           # but as the default location of the library.
15954           hardcode_minus_L_F77=yes
15955           ;;
15956         esac
15957       fi
15958       ;;
15959
15960     irix5* | irix6* | nonstopux*)
15961       if test "$GCC" = yes; then
15962         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'
15963       else
15964         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'
15965         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15966       fi
15967       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15968       hardcode_libdir_separator_F77=:
15969       link_all_deplibs_F77=yes
15970       ;;
15971
15972     netbsd* | netbsdelf*-gnu)
15973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15975       else
15976         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15977       fi
15978       hardcode_libdir_flag_spec_F77='-R$libdir'
15979       hardcode_direct_F77=yes
15980       hardcode_shlibpath_var_F77=no
15981       ;;
15982
15983     newsos6)
15984       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985       hardcode_direct_F77=yes
15986       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15987       hardcode_libdir_separator_F77=:
15988       hardcode_shlibpath_var_F77=no
15989       ;;
15990
15991     openbsd*)
15992       hardcode_direct_F77=yes
15993       hardcode_shlibpath_var_F77=no
15994       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15995         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15997         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15998         export_dynamic_flag_spec_F77='${wl}-E'
15999       else
16000        case $host_os in
16001          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16002            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003            hardcode_libdir_flag_spec_F77='-R$libdir'
16004            ;;
16005          *)
16006            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16007            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16008            ;;
16009        esac
16010       fi
16011       ;;
16012
16013     os2*)
16014       hardcode_libdir_flag_spec_F77='-L$libdir'
16015       hardcode_minus_L_F77=yes
16016       allow_undefined_flag_F77=unsupported
16017       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'
16018       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16019       ;;
16020
16021     osf3*)
16022       if test "$GCC" = yes; then
16023         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16024         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'
16025       else
16026         allow_undefined_flag_F77=' -expect_unresolved \*'
16027         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'
16028       fi
16029       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16030       hardcode_libdir_separator_F77=:
16031       ;;
16032
16033     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16034       if test "$GCC" = yes; then
16035         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16036         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'
16037         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16038       else
16039         allow_undefined_flag_F77=' -expect_unresolved \*'
16040         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'
16041         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~
16042         $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'
16043
16044         # Both c and cxx compiler support -rpath directly
16045         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16046       fi
16047       hardcode_libdir_separator_F77=:
16048       ;;
16049
16050     solaris*)
16051       no_undefined_flag_F77=' -z text'
16052       if test "$GCC" = yes; then
16053         wlarc='${wl}'
16054         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16057       else
16058         wlarc=''
16059         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16062       fi
16063       hardcode_libdir_flag_spec_F77='-R$libdir'
16064       hardcode_shlibpath_var_F77=no
16065       case $host_os in
16066       solaris2.[0-5] | solaris2.[0-5].*) ;;
16067       *)
16068         # The compiler driver will combine linker options so we
16069         # cannot just pass the convience library names through
16070         # without $wl, iff we do not link with $LD.
16071         # Luckily, gcc supports the same syntax we need for Sun Studio.
16072         # Supported since Solaris 2.6 (maybe 2.5.1?)
16073         case $wlarc in
16074         '')
16075           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16076         *)
16077           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16078         esac ;;
16079       esac
16080       link_all_deplibs_F77=yes
16081       ;;
16082
16083     sunos4*)
16084       if test "x$host_vendor" = xsequent; then
16085         # Use $CC to link under sequent, because it throws in some extra .o
16086         # files that make .init and .fini sections work.
16087         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16088       else
16089         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16090       fi
16091       hardcode_libdir_flag_spec_F77='-L$libdir'
16092       hardcode_direct_F77=yes
16093       hardcode_minus_L_F77=yes
16094       hardcode_shlibpath_var_F77=no
16095       ;;
16096
16097     sysv4)
16098       case $host_vendor in
16099         sni)
16100           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101           hardcode_direct_F77=yes # is this really true???
16102         ;;
16103         siemens)
16104           ## LD is ld it makes a PLAMLIB
16105           ## CC just makes a GrossModule.
16106           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16107           reload_cmds_F77='$CC -r -o $output$reload_objs'
16108           hardcode_direct_F77=no
16109         ;;
16110         motorola)
16111           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16113         ;;
16114       esac
16115       runpath_var='LD_RUN_PATH'
16116       hardcode_shlibpath_var_F77=no
16117       ;;
16118
16119     sysv4.3*)
16120       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121       hardcode_shlibpath_var_F77=no
16122       export_dynamic_flag_spec_F77='-Bexport'
16123       ;;
16124
16125     sysv4*MP*)
16126       if test -d /usr/nec; then
16127         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128         hardcode_shlibpath_var_F77=no
16129         runpath_var=LD_RUN_PATH
16130         hardcode_runpath_var=yes
16131         ld_shlibs_F77=yes
16132       fi
16133       ;;
16134
16135     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16136       no_undefined_flag_F77='${wl}-z,text'
16137       archive_cmds_need_lc_F77=no
16138       hardcode_shlibpath_var_F77=no
16139       runpath_var='LD_RUN_PATH'
16140
16141       if test "$GCC" = yes; then
16142         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144       else
16145         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16147       fi
16148       ;;
16149
16150     sysv5* | sco3.2v5* | sco5v6*)
16151       # Note: We can NOT use -z defs as we might desire, because we do not
16152       # link with -lc, and that would cause any symbols used from libc to
16153       # always be unresolved, which means just about no library would
16154       # ever link correctly.  If we're not using GNU ld we use -z text
16155       # though, which does catch some bad symbols but isn't as heavy-handed
16156       # as -z defs.
16157       no_undefined_flag_F77='${wl}-z,text'
16158       allow_undefined_flag_F77='${wl}-z,nodefs'
16159       archive_cmds_need_lc_F77=no
16160       hardcode_shlibpath_var_F77=no
16161       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16162       hardcode_libdir_separator_F77=':'
16163       link_all_deplibs_F77=yes
16164       export_dynamic_flag_spec_F77='${wl}-Bexport'
16165       runpath_var='LD_RUN_PATH'
16166
16167       if test "$GCC" = yes; then
16168         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16169         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170       else
16171         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16173       fi
16174       ;;
16175
16176     uts4*)
16177       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178       hardcode_libdir_flag_spec_F77='-L$libdir'
16179       hardcode_shlibpath_var_F77=no
16180       ;;
16181
16182     *)
16183       ld_shlibs_F77=no
16184       ;;
16185     esac
16186   fi
16187
16188 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16189 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16190 test "$ld_shlibs_F77" = no && can_build_shared=no
16191
16192 #
16193 # Do we need to explicitly link libc?
16194 #
16195 case "x$archive_cmds_need_lc_F77" in
16196 x|xyes)
16197   # Assume -lc should be added
16198   archive_cmds_need_lc_F77=yes
16199
16200   if test "$enable_shared" = yes && test "$GCC" = yes; then
16201     case $archive_cmds_F77 in
16202     *'~'*)
16203       # FIXME: we may have to deal with multi-command sequences.
16204       ;;
16205     '$CC '*)
16206       # Test whether the compiler implicitly links with -lc since on some
16207       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208       # to ld, don't add -lc before -lgcc.
16209       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16211       $rm conftest*
16212       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213
16214       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } 2>conftest.err; then
16219         soname=conftest
16220         lib=conftest
16221         libobjs=conftest.$ac_objext
16222         deplibs=
16223         wl=$lt_prog_compiler_wl_F77
16224         pic_flag=$lt_prog_compiler_pic_F77
16225         compiler_flags=-v
16226         linker_flags=-v
16227         verstring=
16228         output_objdir=.
16229         libname=conftest
16230         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16231         allow_undefined_flag_F77=
16232         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16233   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }
16237         then
16238           archive_cmds_need_lc_F77=no
16239         else
16240           archive_cmds_need_lc_F77=yes
16241         fi
16242         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16243       else
16244         cat conftest.err 1>&5
16245       fi
16246       $rm conftest*
16247       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16248 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16249       ;;
16250     esac
16251   fi
16252   ;;
16253 esac
16254
16255 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16257 library_names_spec=
16258 libname_spec='lib$name'
16259 soname_spec=
16260 shrext_cmds=".so"
16261 postinstall_cmds=
16262 postuninstall_cmds=
16263 finish_cmds=
16264 finish_eval=
16265 shlibpath_var=
16266 shlibpath_overrides_runpath=unknown
16267 version_type=none
16268 dynamic_linker="$host_os ld.so"
16269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16270 if test "$GCC" = yes; then
16271   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16272   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16273     # if the path contains ";" then we assume it to be the separator
16274     # otherwise default to the standard path separator (i.e. ":") - it is
16275     # assumed that no part of a normal pathname contains ";" but that should
16276     # okay in the real world where ";" in dirpaths is itself problematic.
16277     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16278   else
16279     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16280   fi
16281 else
16282   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16283 fi
16284 need_lib_prefix=unknown
16285 hardcode_into_libs=no
16286
16287 # when you set need_version to no, make sure it does not cause -set_version
16288 # flags to be left without arguments
16289 need_version=unknown
16290
16291 case $host_os in
16292 aix3*)
16293   version_type=linux
16294   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16295   shlibpath_var=LIBPATH
16296
16297   # AIX 3 has no versioning support, so we append a major version to the name.
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   ;;
16300
16301 aix4* | aix5*)
16302   version_type=linux
16303   need_lib_prefix=no
16304   need_version=no
16305   hardcode_into_libs=yes
16306   if test "$host_cpu" = ia64; then
16307     # AIX 5 supports IA64
16308     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16309     shlibpath_var=LD_LIBRARY_PATH
16310   else
16311     # With GCC up to 2.95.x, collect2 would create an import file
16312     # for dependence libraries.  The import file would start with
16313     # the line `#! .'.  This would cause the generated library to
16314     # depend on `.', always an invalid library.  This was fixed in
16315     # development snapshots of GCC prior to 3.0.
16316     case $host_os in
16317       aix4 | aix4.[01] | aix4.[01].*)
16318       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16319            echo ' yes '
16320            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16321         :
16322       else
16323         can_build_shared=no
16324       fi
16325       ;;
16326     esac
16327     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16328     # soname into executable. Probably we can add versioning support to
16329     # collect2, so additional links can be useful in future.
16330     if test "$aix_use_runtimelinking" = yes; then
16331       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16332       # instead of lib<name>.a to let people know that these are not
16333       # typical AIX shared libraries.
16334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335     else
16336       # We preserve .a as extension for shared libraries through AIX4.2
16337       # and later when we are not doing run time linking.
16338       library_names_spec='${libname}${release}.a $libname.a'
16339       soname_spec='${libname}${release}${shared_ext}$major'
16340     fi
16341     shlibpath_var=LIBPATH
16342   fi
16343   ;;
16344
16345 amigaos*)
16346   library_names_spec='$libname.ixlibrary $libname.a'
16347   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16348   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'
16349   ;;
16350
16351 beos*)
16352   library_names_spec='${libname}${shared_ext}'
16353   dynamic_linker="$host_os ld.so"
16354   shlibpath_var=LIBRARY_PATH
16355   ;;
16356
16357 bsdi[45]*)
16358   version_type=linux
16359   need_version=no
16360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361   soname_spec='${libname}${release}${shared_ext}$major'
16362   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16363   shlibpath_var=LD_LIBRARY_PATH
16364   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16365   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16366   # the default ld.so.conf also contains /usr/contrib/lib and
16367   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16368   # libtool to hard-code these into programs
16369   ;;
16370
16371 cygwin* | mingw* | pw32*)
16372   version_type=windows
16373   shrext_cmds=".dll"
16374   need_version=no
16375   need_lib_prefix=no
16376
16377   case $GCC,$host_os in
16378   yes,cygwin* | yes,mingw* | yes,pw32*)
16379     library_names_spec='$libname.dll.a'
16380     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16381     postinstall_cmds='base_file=`basename \${file}`~
16382       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16383       dldir=$destdir/`dirname \$dlpath`~
16384       test -d \$dldir || mkdir -p \$dldir~
16385       $install_prog $dir/$dlname \$dldir/$dlname~
16386       chmod a+x \$dldir/$dlname'
16387     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16388       dlpath=$dir/\$dldll~
16389        $rm \$dlpath'
16390     shlibpath_overrides_runpath=yes
16391
16392     case $host_os in
16393     cygwin*)
16394       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16395       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16397       ;;
16398     mingw*)
16399       # MinGW DLLs use traditional 'lib' prefix
16400       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16401       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16403         # It is most probably a Windows format PATH printed by
16404         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16405         # path with ; separators, and with drive letters. We can handle the
16406         # drive letters (cygwin fileutils understands them), so leave them,
16407         # especially as we might pass files found there to a mingw objdump,
16408         # which wouldn't understand a cygwinified path. Ahh.
16409         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16410       else
16411         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16412       fi
16413       ;;
16414     pw32*)
16415       # pw32 DLLs use 'pw' prefix rather than 'lib'
16416       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417       ;;
16418     esac
16419     ;;
16420
16421   *)
16422     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16423     ;;
16424   esac
16425   dynamic_linker='Win32 ld.exe'
16426   # FIXME: first we should search . and the directory the executable is in
16427   shlibpath_var=PATH
16428   ;;
16429
16430 darwin* | rhapsody*)
16431   dynamic_linker="$host_os dyld"
16432   version_type=darwin
16433   need_lib_prefix=no
16434   need_version=no
16435   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16436   soname_spec='${libname}${release}${major}$shared_ext'
16437   shlibpath_overrides_runpath=yes
16438   shlibpath_var=DYLD_LIBRARY_PATH
16439   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16440   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16441   if test "$GCC" = yes; then
16442     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16443   else
16444     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16445   fi
16446   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16447   ;;
16448
16449 dgux*)
16450   version_type=linux
16451   need_lib_prefix=no
16452   need_version=no
16453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16454   soname_spec='${libname}${release}${shared_ext}$major'
16455   shlibpath_var=LD_LIBRARY_PATH
16456   ;;
16457
16458 freebsd1*)
16459   dynamic_linker=no
16460   ;;
16461
16462 freebsd* | dragonfly*)
16463   # DragonFly does not have aout.  When/if they implement a new
16464   # versioning mechanism, adjust this.
16465   if test -x /usr/bin/objformat; then
16466     objformat=`/usr/bin/objformat`
16467   else
16468     case $host_os in
16469     freebsd[123]*) objformat=aout ;;
16470     *) objformat=elf ;;
16471     esac
16472   fi
16473   version_type=freebsd-$objformat
16474   case $version_type in
16475     freebsd-elf*)
16476       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16477       need_version=no
16478       need_lib_prefix=no
16479       ;;
16480     freebsd-*)
16481       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16482       need_version=yes
16483       ;;
16484   esac
16485   shlibpath_var=LD_LIBRARY_PATH
16486   case $host_os in
16487   freebsd2*)
16488     shlibpath_overrides_runpath=yes
16489     ;;
16490   freebsd3.[01]* | freebsdelf3.[01]*)
16491     shlibpath_overrides_runpath=yes
16492     hardcode_into_libs=yes
16493     ;;
16494   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16495   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16496     shlibpath_overrides_runpath=no
16497     hardcode_into_libs=yes
16498     ;;
16499   freebsd*) # from 4.6 on
16500     shlibpath_overrides_runpath=yes
16501     hardcode_into_libs=yes
16502     ;;
16503   esac
16504   ;;
16505
16506 gnu*)
16507   version_type=linux
16508   need_lib_prefix=no
16509   need_version=no
16510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16511   soname_spec='${libname}${release}${shared_ext}$major'
16512   shlibpath_var=LD_LIBRARY_PATH
16513   hardcode_into_libs=yes
16514   ;;
16515
16516 hpux9* | hpux10* | hpux11*)
16517   # Give a soname corresponding to the major version so that dld.sl refuses to
16518   # link against other versions.
16519   version_type=sunos
16520   need_lib_prefix=no
16521   need_version=no
16522   case $host_cpu in
16523   ia64*)
16524     shrext_cmds='.so'
16525     hardcode_into_libs=yes
16526     dynamic_linker="$host_os dld.so"
16527     shlibpath_var=LD_LIBRARY_PATH
16528     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530     soname_spec='${libname}${release}${shared_ext}$major'
16531     if test "X$HPUX_IA64_MODE" = X32; then
16532       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16533     else
16534       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16535     fi
16536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16537     ;;
16538    hppa*64*)
16539      shrext_cmds='.sl'
16540      hardcode_into_libs=yes
16541      dynamic_linker="$host_os dld.sl"
16542      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16543      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545      soname_spec='${libname}${release}${shared_ext}$major'
16546      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16547      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16548      ;;
16549    *)
16550     shrext_cmds='.sl'
16551     dynamic_linker="$host_os dld.sl"
16552     shlibpath_var=SHLIB_PATH
16553     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555     soname_spec='${libname}${release}${shared_ext}$major'
16556     ;;
16557   esac
16558   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16559   postinstall_cmds='chmod 555 $lib'
16560   ;;
16561
16562 interix3*)
16563   version_type=linux
16564   need_lib_prefix=no
16565   need_version=no
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16567   soname_spec='${libname}${release}${shared_ext}$major'
16568   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16569   shlibpath_var=LD_LIBRARY_PATH
16570   shlibpath_overrides_runpath=no
16571   hardcode_into_libs=yes
16572   ;;
16573
16574 irix5* | irix6* | nonstopux*)
16575   case $host_os in
16576     nonstopux*) version_type=nonstopux ;;
16577     *)
16578         if test "$lt_cv_prog_gnu_ld" = yes; then
16579                 version_type=linux
16580         else
16581                 version_type=irix
16582         fi ;;
16583   esac
16584   need_lib_prefix=no
16585   need_version=no
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16588   case $host_os in
16589   irix5* | nonstopux*)
16590     libsuff= shlibsuff=
16591     ;;
16592   *)
16593     case $LD in # libtool.m4 will add one of these switches to LD
16594     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16595       libsuff= shlibsuff= libmagic=32-bit;;
16596     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16597       libsuff=32 shlibsuff=N32 libmagic=N32;;
16598     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16599       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16600     *) libsuff= shlibsuff= libmagic=never-match;;
16601     esac
16602     ;;
16603   esac
16604   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16605   shlibpath_overrides_runpath=no
16606   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16607   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16608   hardcode_into_libs=yes
16609   ;;
16610
16611 # No shared lib support for Linux oldld, aout, or coff.
16612 linux*oldld* | linux*aout* | linux*coff*)
16613   dynamic_linker=no
16614   ;;
16615
16616 # This must be Linux ELF.
16617 linux* | k*bsd*-gnu)
16618   version_type=linux
16619   need_lib_prefix=no
16620   need_version=no
16621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622   soname_spec='${libname}${release}${shared_ext}$major'
16623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   shlibpath_overrides_runpath=no
16626   # This implies no fast_install, which is unacceptable.
16627   # Some rework will be needed to allow for fast_install
16628   # before this can be enabled.
16629   hardcode_into_libs=yes
16630
16631   # Append ld.so.conf contents to the search path
16632   if test -f /etc/ld.so.conf; then
16633     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16634     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16635   fi
16636
16637   # We used to test for /lib/ld.so.1 and disable shared libraries on
16638   # powerpc, because MkLinux only supported shared libraries with the
16639   # GNU dynamic linker.  Since this was broken with cross compilers,
16640   # most powerpc-linux boxes support dynamic linking these days and
16641   # people can always --disable-shared, the test was removed, and we
16642   # assume the GNU/Linux dynamic linker is in use.
16643   dynamic_linker='GNU/Linux ld.so'
16644   ;;
16645
16646 netbsdelf*-gnu)
16647   version_type=linux
16648   need_lib_prefix=no
16649   need_version=no
16650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16651   soname_spec='${libname}${release}${shared_ext}$major'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=no
16654   hardcode_into_libs=yes
16655   dynamic_linker='NetBSD ld.elf_so'
16656   ;;
16657
16658 netbsd*)
16659   version_type=sunos
16660   need_lib_prefix=no
16661   need_version=no
16662   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665     dynamic_linker='NetBSD (a.out) ld.so'
16666   else
16667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16668     soname_spec='${libname}${release}${shared_ext}$major'
16669     dynamic_linker='NetBSD ld.elf_so'
16670   fi
16671   shlibpath_var=LD_LIBRARY_PATH
16672   shlibpath_overrides_runpath=yes
16673   hardcode_into_libs=yes
16674   ;;
16675
16676 newsos6)
16677   version_type=linux
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679   shlibpath_var=LD_LIBRARY_PATH
16680   shlibpath_overrides_runpath=yes
16681   ;;
16682
16683 nto-qnx*)
16684   version_type=linux
16685   need_lib_prefix=no
16686   need_version=no
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=yes
16691   ;;
16692
16693 openbsd*)
16694   version_type=sunos
16695   sys_lib_dlsearch_path_spec="/usr/lib"
16696   need_lib_prefix=no
16697   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16698   case $host_os in
16699     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16700     *)                         need_version=no  ;;
16701   esac
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16706     case $host_os in
16707       openbsd2.[89] | openbsd2.[89].*)
16708         shlibpath_overrides_runpath=no
16709         ;;
16710       *)
16711         shlibpath_overrides_runpath=yes
16712         ;;
16713       esac
16714   else
16715     shlibpath_overrides_runpath=yes
16716   fi
16717   ;;
16718
16719 os2*)
16720   libname_spec='$name'
16721   shrext_cmds=".dll"
16722   need_lib_prefix=no
16723   library_names_spec='$libname${shared_ext} $libname.a'
16724   dynamic_linker='OS/2 ld.exe'
16725   shlibpath_var=LIBPATH
16726   ;;
16727
16728 osf3* | osf4* | osf5*)
16729   version_type=osf
16730   need_lib_prefix=no
16731   need_version=no
16732   soname_spec='${libname}${release}${shared_ext}$major'
16733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734   shlibpath_var=LD_LIBRARY_PATH
16735   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16736   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16737   ;;
16738
16739 solaris*)
16740   version_type=linux
16741   need_lib_prefix=no
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   shlibpath_overrides_runpath=yes
16747   hardcode_into_libs=yes
16748   # ldd complains unless libraries are executable
16749   postinstall_cmds='chmod +x $lib'
16750   ;;
16751
16752 sunos4*)
16753   version_type=sunos
16754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16755   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16756   shlibpath_var=LD_LIBRARY_PATH
16757   shlibpath_overrides_runpath=yes
16758   if test "$with_gnu_ld" = yes; then
16759     need_lib_prefix=no
16760   fi
16761   need_version=yes
16762   ;;
16763
16764 sysv4 | sysv4.3*)
16765   version_type=linux
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   case $host_vendor in
16770     sni)
16771       shlibpath_overrides_runpath=no
16772       need_lib_prefix=no
16773       export_dynamic_flag_spec='${wl}-Blargedynsym'
16774       runpath_var=LD_RUN_PATH
16775       ;;
16776     siemens)
16777       need_lib_prefix=no
16778       ;;
16779     motorola)
16780       need_lib_prefix=no
16781       need_version=no
16782       shlibpath_overrides_runpath=no
16783       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16784       ;;
16785   esac
16786   ;;
16787
16788 sysv4*MP*)
16789   if test -d /usr/nec ;then
16790     version_type=linux
16791     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16792     soname_spec='$libname${shared_ext}.$major'
16793     shlibpath_var=LD_LIBRARY_PATH
16794   fi
16795   ;;
16796
16797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16798   version_type=freebsd-elf
16799   need_lib_prefix=no
16800   need_version=no
16801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   shlibpath_var=LD_LIBRARY_PATH
16804   hardcode_into_libs=yes
16805   if test "$with_gnu_ld" = yes; then
16806     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16807     shlibpath_overrides_runpath=no
16808   else
16809     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16810     shlibpath_overrides_runpath=yes
16811     case $host_os in
16812       sco3.2v5*)
16813         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16814         ;;
16815     esac
16816   fi
16817   sys_lib_dlsearch_path_spec='/usr/lib'
16818   ;;
16819
16820 uts4*)
16821   version_type=linux
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823   soname_spec='${libname}${release}${shared_ext}$major'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   ;;
16826
16827 *)
16828   dynamic_linker=no
16829   ;;
16830 esac
16831 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16832 echo "${ECHO_T}$dynamic_linker" >&6; }
16833 test "$dynamic_linker" = no && can_build_shared=no
16834
16835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16836 if test "$GCC" = yes; then
16837   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16838 fi
16839
16840 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16842 hardcode_action_F77=
16843 if test -n "$hardcode_libdir_flag_spec_F77" || \
16844    test -n "$runpath_var_F77" || \
16845    test "X$hardcode_automatic_F77" = "Xyes" ; then
16846
16847   # We can hardcode non-existant directories.
16848   if test "$hardcode_direct_F77" != no &&
16849      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16850      # have to relink, otherwise we might link with an installed library
16851      # when we should be linking with a yet-to-be-installed one
16852      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16853      test "$hardcode_minus_L_F77" != no; then
16854     # Linking always hardcodes the temporary library directory.
16855     hardcode_action_F77=relink
16856   else
16857     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16858     hardcode_action_F77=immediate
16859   fi
16860 else
16861   # We cannot hardcode anything, or else we can only hardcode existing
16862   # directories.
16863   hardcode_action_F77=unsupported
16864 fi
16865 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16866 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16867
16868 if test "$hardcode_action_F77" = relink; then
16869   # Fast installation is not supported
16870   enable_fast_install=no
16871 elif test "$shlibpath_overrides_runpath" = yes ||
16872      test "$enable_shared" = no; then
16873   # Fast installation is not necessary
16874   enable_fast_install=needless
16875 fi
16876
16877
16878 # The else clause should only fire when bootstrapping the
16879 # libtool distribution, otherwise you forgot to ship ltmain.sh
16880 # with your package, and you will get complaints that there are
16881 # no rules to generate ltmain.sh.
16882 if test -f "$ltmain"; then
16883   # See if we are running on zsh, and set the options which allow our commands through
16884   # without removal of \ escapes.
16885   if test -n "${ZSH_VERSION+set}" ; then
16886     setopt NO_GLOB_SUBST
16887   fi
16888   # Now quote all the things that may contain metacharacters while being
16889   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16890   # variables and quote the copies for generation of the libtool script.
16891   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16892     SED SHELL STRIP \
16893     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16894     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16895     deplibs_check_method reload_flag reload_cmds need_locks \
16896     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16897     lt_cv_sys_global_symbol_to_c_name_address \
16898     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16899     old_postinstall_cmds old_postuninstall_cmds \
16900     compiler_F77 \
16901     CC_F77 \
16902     LD_F77 \
16903     lt_prog_compiler_wl_F77 \
16904     lt_prog_compiler_pic_F77 \
16905     lt_prog_compiler_static_F77 \
16906     lt_prog_compiler_no_builtin_flag_F77 \
16907     export_dynamic_flag_spec_F77 \
16908     thread_safe_flag_spec_F77 \
16909     whole_archive_flag_spec_F77 \
16910     enable_shared_with_static_runtimes_F77 \
16911     old_archive_cmds_F77 \
16912     old_archive_from_new_cmds_F77 \
16913     predep_objects_F77 \
16914     postdep_objects_F77 \
16915     predeps_F77 \
16916     postdeps_F77 \
16917     compiler_lib_search_path_F77 \
16918     archive_cmds_F77 \
16919     archive_expsym_cmds_F77 \
16920     postinstall_cmds_F77 \
16921     postuninstall_cmds_F77 \
16922     old_archive_from_expsyms_cmds_F77 \
16923     allow_undefined_flag_F77 \
16924     no_undefined_flag_F77 \
16925     export_symbols_cmds_F77 \
16926     hardcode_libdir_flag_spec_F77 \
16927     hardcode_libdir_flag_spec_ld_F77 \
16928     hardcode_libdir_separator_F77 \
16929     hardcode_automatic_F77 \
16930     module_cmds_F77 \
16931     module_expsym_cmds_F77 \
16932     lt_cv_prog_compiler_c_o_F77 \
16933     exclude_expsyms_F77 \
16934     include_expsyms_F77; do
16935
16936     case $var in
16937     old_archive_cmds_F77 | \
16938     old_archive_from_new_cmds_F77 | \
16939     archive_cmds_F77 | \
16940     archive_expsym_cmds_F77 | \
16941     module_cmds_F77 | \
16942     module_expsym_cmds_F77 | \
16943     old_archive_from_expsyms_cmds_F77 | \
16944     export_symbols_cmds_F77 | \
16945     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16946     postinstall_cmds | postuninstall_cmds | \
16947     old_postinstall_cmds | old_postuninstall_cmds | \
16948     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16949       # Double-quote double-evaled strings.
16950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16951       ;;
16952     *)
16953       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16954       ;;
16955     esac
16956   done
16957
16958   case $lt_echo in
16959   *'\$0 --fallback-echo"')
16960     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16961     ;;
16962   esac
16963
16964 cfgfile="$ofile"
16965
16966   cat <<__EOF__ >> "$cfgfile"
16967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16968
16969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16970
16971 # Shell to use when invoking shell scripts.
16972 SHELL=$lt_SHELL
16973
16974 # Whether or not to build shared libraries.
16975 build_libtool_libs=$enable_shared
16976
16977 # Whether or not to build static libraries.
16978 build_old_libs=$enable_static
16979
16980 # Whether or not to add -lc for building shared libraries.
16981 build_libtool_need_lc=$archive_cmds_need_lc_F77
16982
16983 # Whether or not to disallow shared libs when runtime libs are static
16984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16985
16986 # Whether or not to optimize for fast installation.
16987 fast_install=$enable_fast_install
16988
16989 # The host system.
16990 host_alias=$host_alias
16991 host=$host
16992 host_os=$host_os
16993
16994 # The build system.
16995 build_alias=$build_alias
16996 build=$build
16997 build_os=$build_os
16998
16999 # An echo program that does not interpret backslashes.
17000 echo=$lt_echo
17001
17002 # The archiver.
17003 AR=$lt_AR
17004 AR_FLAGS=$lt_AR_FLAGS
17005
17006 # A C compiler.
17007 LTCC=$lt_LTCC
17008
17009 # LTCC compiler flags.
17010 LTCFLAGS=$lt_LTCFLAGS
17011
17012 # A language-specific compiler.
17013 CC=$lt_compiler_F77
17014
17015 # Is the compiler the GNU C compiler?
17016 with_gcc=$GCC_F77
17017
17018 # An ERE matcher.
17019 EGREP=$lt_EGREP
17020
17021 # The linker used to build libraries.
17022 LD=$lt_LD_F77
17023
17024 # Whether we need hard or soft links.
17025 LN_S=$lt_LN_S
17026
17027 # A BSD-compatible nm program.
17028 NM=$lt_NM
17029
17030 # A symbol stripping program
17031 STRIP=$lt_STRIP
17032
17033 # Used to examine libraries when file_magic_cmd begins "file"
17034 MAGIC_CMD=$MAGIC_CMD
17035
17036 # Used on cygwin: DLL creation program.
17037 DLLTOOL="$DLLTOOL"
17038
17039 # Used on cygwin: object dumper.
17040 OBJDUMP="$OBJDUMP"
17041
17042 # Used on cygwin: assembler.
17043 AS="$AS"
17044
17045 # The name of the directory that contains temporary libtool files.
17046 objdir=$objdir
17047
17048 # How to create reloadable object files.
17049 reload_flag=$lt_reload_flag
17050 reload_cmds=$lt_reload_cmds
17051
17052 # How to pass a linker flag through the compiler.
17053 wl=$lt_lt_prog_compiler_wl_F77
17054
17055 # Object file suffix (normally "o").
17056 objext="$ac_objext"
17057
17058 # Old archive suffix (normally "a").
17059 libext="$libext"
17060
17061 # Shared library suffix (normally ".so").
17062 shrext_cmds='$shrext_cmds'
17063
17064 # Executable file suffix (normally "").
17065 exeext="$exeext"
17066
17067 # Additional compiler flags for building library objects.
17068 pic_flag=$lt_lt_prog_compiler_pic_F77
17069 pic_mode=$pic_mode
17070
17071 # What is the maximum length of a command?
17072 max_cmd_len=$lt_cv_sys_max_cmd_len
17073
17074 # Does compiler simultaneously support -c and -o options?
17075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17076
17077 # Must we lock files when doing compilation?
17078 need_locks=$lt_need_locks
17079
17080 # Do we need the lib prefix for modules?
17081 need_lib_prefix=$need_lib_prefix
17082
17083 # Do we need a version for libraries?
17084 need_version=$need_version
17085
17086 # Whether dlopen is supported.
17087 dlopen_support=$enable_dlopen
17088
17089 # Whether dlopen of programs is supported.
17090 dlopen_self=$enable_dlopen_self
17091
17092 # Whether dlopen of statically linked programs is supported.
17093 dlopen_self_static=$enable_dlopen_self_static
17094
17095 # Compiler flag to prevent dynamic linking.
17096 link_static_flag=$lt_lt_prog_compiler_static_F77
17097
17098 # Compiler flag to turn off builtin functions.
17099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17100
17101 # Compiler flag to allow reflexive dlopens.
17102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17103
17104 # Compiler flag to generate shared objects directly from archives.
17105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17106
17107 # Compiler flag to generate thread-safe objects.
17108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17109
17110 # Library versioning type.
17111 version_type=$version_type
17112
17113 # Format of library name prefix.
17114 libname_spec=$lt_libname_spec
17115
17116 # List of archive names.  First name is the real one, the rest are links.
17117 # The last name is the one that the linker finds with -lNAME.
17118 library_names_spec=$lt_library_names_spec
17119
17120 # The coded name of the library, if different from the real name.
17121 soname_spec=$lt_soname_spec
17122
17123 # Commands used to build and install an old-style archive.
17124 RANLIB=$lt_RANLIB
17125 old_archive_cmds=$lt_old_archive_cmds_F77
17126 old_postinstall_cmds=$lt_old_postinstall_cmds
17127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17128
17129 # Create an old-style archive from a shared archive.
17130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17131
17132 # Create a temporary old-style archive to link instead of a shared archive.
17133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17134
17135 # Commands used to build and install a shared archive.
17136 archive_cmds=$lt_archive_cmds_F77
17137 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17138 postinstall_cmds=$lt_postinstall_cmds
17139 postuninstall_cmds=$lt_postuninstall_cmds
17140
17141 # Commands used to build a loadable module (assumed same as above if empty)
17142 module_cmds=$lt_module_cmds_F77
17143 module_expsym_cmds=$lt_module_expsym_cmds_F77
17144
17145 # Commands to strip libraries.
17146 old_striplib=$lt_old_striplib
17147 striplib=$lt_striplib
17148
17149 # Dependencies to place before the objects being linked to create a
17150 # shared library.
17151 predep_objects=$lt_predep_objects_F77
17152
17153 # Dependencies to place after the objects being linked to create a
17154 # shared library.
17155 postdep_objects=$lt_postdep_objects_F77
17156
17157 # Dependencies to place before the objects being linked to create a
17158 # shared library.
17159 predeps=$lt_predeps_F77
17160
17161 # Dependencies to place after the objects being linked to create a
17162 # shared library.
17163 postdeps=$lt_postdeps_F77
17164
17165 # The library search path used internally by the compiler when linking
17166 # a shared library.
17167 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17168
17169 # Method to check whether dependent libraries are shared objects.
17170 deplibs_check_method=$lt_deplibs_check_method
17171
17172 # Command to use when deplibs_check_method == file_magic.
17173 file_magic_cmd=$lt_file_magic_cmd
17174
17175 # Flag that allows shared libraries with undefined symbols to be built.
17176 allow_undefined_flag=$lt_allow_undefined_flag_F77
17177
17178 # Flag that forces no undefined symbols.
17179 no_undefined_flag=$lt_no_undefined_flag_F77
17180
17181 # Commands used to finish a libtool library installation in a directory.
17182 finish_cmds=$lt_finish_cmds
17183
17184 # Same as above, but a single script fragment to be evaled but not shown.
17185 finish_eval=$lt_finish_eval
17186
17187 # Take the output of nm and produce a listing of raw symbols and C names.
17188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17189
17190 # Transform the output of nm in a proper C declaration
17191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17192
17193 # Transform the output of nm in a C name address pair
17194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17195
17196 # This is the shared library runtime path variable.
17197 runpath_var=$runpath_var
17198
17199 # This is the shared library path variable.
17200 shlibpath_var=$shlibpath_var
17201
17202 # Is shlibpath searched before the hard-coded library search path?
17203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17204
17205 # How to hardcode a shared library path into an executable.
17206 hardcode_action=$hardcode_action_F77
17207
17208 # Whether we should hardcode library paths into libraries.
17209 hardcode_into_libs=$hardcode_into_libs
17210
17211 # Flag to hardcode \$libdir into a binary during linking.
17212 # This must work even if \$libdir does not exist.
17213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17214
17215 # If ld is used when linking, flag to hardcode \$libdir into
17216 # a binary during linking. This must work even if \$libdir does
17217 # not exist.
17218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17219
17220 # Whether we need a single -rpath flag with a separated argument.
17221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17222
17223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17224 # resulting binary.
17225 hardcode_direct=$hardcode_direct_F77
17226
17227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17228 # resulting binary.
17229 hardcode_minus_L=$hardcode_minus_L_F77
17230
17231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17232 # the resulting binary.
17233 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17234
17235 # Set to yes if building a shared library automatically hardcodes DIR into the library
17236 # and all subsequent libraries and executables linked against it.
17237 hardcode_automatic=$hardcode_automatic_F77
17238
17239 # Variables whose values should be saved in libtool wrapper scripts and
17240 # restored at relink time.
17241 variables_saved_for_relink="$variables_saved_for_relink"
17242
17243 # Whether libtool must link a program against all its dependency libraries.
17244 link_all_deplibs=$link_all_deplibs_F77
17245
17246 # Compile-time system search path for libraries
17247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17248
17249 # Run-time system search path for libraries
17250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17251
17252 # Fix the shell variable \$srcfile for the compiler.
17253 fix_srcfile_path="$fix_srcfile_path_F77"
17254
17255 # Set to yes if exported symbols are required.
17256 always_export_symbols=$always_export_symbols_F77
17257
17258 # The commands to list exported symbols.
17259 export_symbols_cmds=$lt_export_symbols_cmds_F77
17260
17261 # The commands to extract the exported symbol list from a shared archive.
17262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17263
17264 # Symbols that should not be listed in the preloaded symbols.
17265 exclude_expsyms=$lt_exclude_expsyms_F77
17266
17267 # Symbols that must always be exported.
17268 include_expsyms=$lt_include_expsyms_F77
17269
17270 # ### END LIBTOOL TAG CONFIG: $tagname
17271
17272 __EOF__
17273
17274
17275 else
17276   # If there is no Makefile yet, we rely on a make rule to execute
17277   # `config.status --recheck' to rerun these tests and create the
17278   # libtool script then.
17279   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17280   if test -f "$ltmain_in"; then
17281     test -f Makefile && make "$ltmain"
17282   fi
17283 fi
17284
17285
17286 ac_ext=c
17287 ac_cpp='$CPP $CPPFLAGS'
17288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17291
17292 CC="$lt_save_CC"
17293
17294         else
17295           tagname=""
17296         fi
17297         ;;
17298
17299       GCJ)
17300         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17301
17302
17303 # Source file extension for Java test sources.
17304 ac_ext=java
17305
17306 # Object file extension for compiled Java test sources.
17307 objext=o
17308 objext_GCJ=$objext
17309
17310 # Code to be used in simple compile tests
17311 lt_simple_compile_test_code="class foo {}\n"
17312
17313 # Code to be used in simple link tests
17314 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17315
17316 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17317
17318 # If no C compiler was specified, use CC.
17319 LTCC=${LTCC-"$CC"}
17320
17321 # If no C compiler flags were specified, use CFLAGS.
17322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17323
17324 # Allow CC to be a program name with arguments.
17325 compiler=$CC
17326
17327
17328 # save warnings/boilerplate of simple test code
17329 ac_outfile=conftest.$ac_objext
17330 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17332 _lt_compiler_boilerplate=`cat conftest.err`
17333 $rm conftest*
17334
17335 ac_outfile=conftest.$ac_objext
17336 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17338 _lt_linker_boilerplate=`cat conftest.err`
17339 $rm conftest*
17340
17341
17342 # Allow CC to be a program name with arguments.
17343 lt_save_CC="$CC"
17344 CC=${GCJ-"gcj"}
17345 compiler=$CC
17346 compiler_GCJ=$CC
17347 for cc_temp in $compiler""; do
17348   case $cc_temp in
17349     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17350     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17351     \-*) ;;
17352     *) break;;
17353   esac
17354 done
17355 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17356
17357
17358 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17359 archive_cmds_need_lc_GCJ=no
17360
17361 old_archive_cmds_GCJ=$old_archive_cmds
17362
17363
17364 lt_prog_compiler_no_builtin_flag_GCJ=
17365
17366 if test "$GCC" = yes; then
17367   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17368
17369
17370 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17371 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17372 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   lt_cv_prog_compiler_rtti_exceptions=no
17376   ac_outfile=conftest.$ac_objext
17377    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17378    lt_compiler_flag="-fno-rtti -fno-exceptions"
17379    # Insert the option either (1) after the last *FLAGS variable, or
17380    # (2) before a word containing "conftest.", or (3) at the end.
17381    # Note that $ac_compile itself does not contain backslashes and begins
17382    # with a dollar sign (not a hyphen), so the echo should work correctly.
17383    # The option is referenced via a variable to avoid confusing sed.
17384    lt_compile=`echo "$ac_compile" | $SED \
17385    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17387    -e 's:$: $lt_compiler_flag:'`
17388    (eval echo "\"\$as_me:17388: $lt_compile\"" >&5)
17389    (eval "$lt_compile" 2>conftest.err)
17390    ac_status=$?
17391    cat conftest.err >&5
17392    echo "$as_me:17392: \$? = $ac_status" >&5
17393    if (exit $ac_status) && test -s "$ac_outfile"; then
17394      # The compiler can only warn and ignore the option if not recognized
17395      # So say no if there are warnings other than the usual output.
17396      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17397      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17398      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17399        lt_cv_prog_compiler_rtti_exceptions=yes
17400      fi
17401    fi
17402    $rm conftest*
17403
17404 fi
17405 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17407
17408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17409     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17410 else
17411     :
17412 fi
17413
17414 fi
17415
17416 lt_prog_compiler_wl_GCJ=
17417 lt_prog_compiler_pic_GCJ=
17418 lt_prog_compiler_static_GCJ=
17419
17420 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17422
17423   if test "$GCC" = yes; then
17424     lt_prog_compiler_wl_GCJ='-Wl,'
17425     lt_prog_compiler_static_GCJ='-static'
17426
17427     case $host_os in
17428       aix*)
17429       # All AIX code is PIC.
17430       if test "$host_cpu" = ia64; then
17431         # AIX 5 now supports IA64 processor
17432         lt_prog_compiler_static_GCJ='-Bstatic'
17433       fi
17434       ;;
17435
17436     amigaos*)
17437       # FIXME: we need at least 68020 code to build shared libraries, but
17438       # adding the `-m68020' flag to GCC prevents building anything better,
17439       # like `-m68040'.
17440       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17441       ;;
17442
17443     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17444       # PIC is the default for these OSes.
17445       ;;
17446
17447     mingw* | pw32* | os2*)
17448       # This hack is so that the source file can tell whether it is being
17449       # built for inclusion in a dll (and should export symbols for example).
17450       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17451       ;;
17452
17453     darwin* | rhapsody*)
17454       # PIC is the default on this platform
17455       # Common symbols not allowed in MH_DYLIB files
17456       lt_prog_compiler_pic_GCJ='-fno-common'
17457       ;;
17458
17459     interix3*)
17460       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17461       # Instead, we relocate shared libraries at runtime.
17462       ;;
17463
17464     msdosdjgpp*)
17465       # Just because we use GCC doesn't mean we suddenly get shared libraries
17466       # on systems that don't support them.
17467       lt_prog_compiler_can_build_shared_GCJ=no
17468       enable_shared=no
17469       ;;
17470
17471     sysv4*MP*)
17472       if test -d /usr/nec; then
17473         lt_prog_compiler_pic_GCJ=-Kconform_pic
17474       fi
17475       ;;
17476
17477     hpux*)
17478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17479       # not for PA HP-UX.
17480       case $host_cpu in
17481       hppa*64*|ia64*)
17482         # +Z the default
17483         ;;
17484       *)
17485         lt_prog_compiler_pic_GCJ='-fPIC'
17486         ;;
17487       esac
17488       ;;
17489
17490     *)
17491       lt_prog_compiler_pic_GCJ='-fPIC'
17492       ;;
17493     esac
17494   else
17495     # PORTME Check for flag to pass linker flags through the system compiler.
17496     case $host_os in
17497     aix*)
17498       lt_prog_compiler_wl_GCJ='-Wl,'
17499       if test "$host_cpu" = ia64; then
17500         # AIX 5 now supports IA64 processor
17501         lt_prog_compiler_static_GCJ='-Bstatic'
17502       else
17503         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17504       fi
17505       ;;
17506       darwin*)
17507         # PIC is the default on this platform
17508         # Common symbols not allowed in MH_DYLIB files
17509        case $cc_basename in
17510          xlc*)
17511          lt_prog_compiler_pic_GCJ='-qnocommon'
17512          lt_prog_compiler_wl_GCJ='-Wl,'
17513          ;;
17514        esac
17515        ;;
17516
17517     mingw* | pw32* | os2*)
17518       # This hack is so that the source file can tell whether it is being
17519       # built for inclusion in a dll (and should export symbols for example).
17520       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17521       ;;
17522
17523     hpux9* | hpux10* | hpux11*)
17524       lt_prog_compiler_wl_GCJ='-Wl,'
17525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17526       # not for PA HP-UX.
17527       case $host_cpu in
17528       hppa*64*|ia64*)
17529         # +Z the default
17530         ;;
17531       *)
17532         lt_prog_compiler_pic_GCJ='+Z'
17533         ;;
17534       esac
17535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17536       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17537       ;;
17538
17539     irix5* | irix6* | nonstopux*)
17540       lt_prog_compiler_wl_GCJ='-Wl,'
17541       # PIC (with -KPIC) is the default.
17542       lt_prog_compiler_static_GCJ='-non_shared'
17543       ;;
17544
17545     newsos6)
17546       lt_prog_compiler_pic_GCJ='-KPIC'
17547       lt_prog_compiler_static_GCJ='-Bstatic'
17548       ;;
17549
17550     linux* | k*bsd*-gnu)
17551       case $cc_basename in
17552       icc* | ecc*)
17553         lt_prog_compiler_wl_GCJ='-Wl,'
17554         lt_prog_compiler_pic_GCJ='-KPIC'
17555         lt_prog_compiler_static_GCJ='-static'
17556         ;;
17557       pgcc* | pgf77* | pgf90* | pgf95*)
17558         # Portland Group compilers (*not* the Pentium gcc compiler,
17559         # which looks to be a dead project)
17560         lt_prog_compiler_wl_GCJ='-Wl,'
17561         lt_prog_compiler_pic_GCJ='-fpic'
17562         lt_prog_compiler_static_GCJ='-Bstatic'
17563         ;;
17564       ccc*)
17565         lt_prog_compiler_wl_GCJ='-Wl,'
17566         # All Alpha code is PIC.
17567         lt_prog_compiler_static_GCJ='-non_shared'
17568         ;;
17569       esac
17570       ;;
17571
17572     osf3* | osf4* | osf5*)
17573       lt_prog_compiler_wl_GCJ='-Wl,'
17574       # All OSF/1 code is PIC.
17575       lt_prog_compiler_static_GCJ='-non_shared'
17576       ;;
17577
17578     solaris*)
17579       lt_prog_compiler_pic_GCJ='-KPIC'
17580       lt_prog_compiler_static_GCJ='-Bstatic'
17581       case $cc_basename in
17582       f77* | f90* | f95*)
17583         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17584       *)
17585         lt_prog_compiler_wl_GCJ='-Wl,';;
17586       esac
17587       ;;
17588
17589     sunos4*)
17590       lt_prog_compiler_wl_GCJ='-Qoption ld '
17591       lt_prog_compiler_pic_GCJ='-PIC'
17592       lt_prog_compiler_static_GCJ='-Bstatic'
17593       ;;
17594
17595     sysv4 | sysv4.2uw2* | sysv4.3*)
17596       lt_prog_compiler_wl_GCJ='-Wl,'
17597       lt_prog_compiler_pic_GCJ='-KPIC'
17598       lt_prog_compiler_static_GCJ='-Bstatic'
17599       ;;
17600
17601     sysv4*MP*)
17602       if test -d /usr/nec ;then
17603         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17604         lt_prog_compiler_static_GCJ='-Bstatic'
17605       fi
17606       ;;
17607
17608     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17609       lt_prog_compiler_wl_GCJ='-Wl,'
17610       lt_prog_compiler_pic_GCJ='-KPIC'
17611       lt_prog_compiler_static_GCJ='-Bstatic'
17612       ;;
17613
17614     unicos*)
17615       lt_prog_compiler_wl_GCJ='-Wl,'
17616       lt_prog_compiler_can_build_shared_GCJ=no
17617       ;;
17618
17619     uts4*)
17620       lt_prog_compiler_pic_GCJ='-pic'
17621       lt_prog_compiler_static_GCJ='-Bstatic'
17622       ;;
17623
17624     *)
17625       lt_prog_compiler_can_build_shared_GCJ=no
17626       ;;
17627     esac
17628   fi
17629
17630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17631 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17632
17633 #
17634 # Check to make sure the PIC flag actually works.
17635 #
17636 if test -n "$lt_prog_compiler_pic_GCJ"; then
17637
17638 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17640 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   lt_prog_compiler_pic_works_GCJ=no
17644   ac_outfile=conftest.$ac_objext
17645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17646    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17647    # Insert the option either (1) after the last *FLAGS variable, or
17648    # (2) before a word containing "conftest.", or (3) at the end.
17649    # Note that $ac_compile itself does not contain backslashes and begins
17650    # with a dollar sign (not a hyphen), so the echo should work correctly.
17651    # The option is referenced via a variable to avoid confusing sed.
17652    lt_compile=`echo "$ac_compile" | $SED \
17653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17655    -e 's:$: $lt_compiler_flag:'`
17656    (eval echo "\"\$as_me:17656: $lt_compile\"" >&5)
17657    (eval "$lt_compile" 2>conftest.err)
17658    ac_status=$?
17659    cat conftest.err >&5
17660    echo "$as_me:17660: \$? = $ac_status" >&5
17661    if (exit $ac_status) && test -s "$ac_outfile"; then
17662      # The compiler can only warn and ignore the option if not recognized
17663      # So say no if there are warnings other than the usual output.
17664      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17667        lt_prog_compiler_pic_works_GCJ=yes
17668      fi
17669    fi
17670    $rm conftest*
17671
17672 fi
17673 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17674 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17675
17676 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17677     case $lt_prog_compiler_pic_GCJ in
17678      "" | " "*) ;;
17679      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17680      esac
17681 else
17682     lt_prog_compiler_pic_GCJ=
17683      lt_prog_compiler_can_build_shared_GCJ=no
17684 fi
17685
17686 fi
17687 case $host_os in
17688   # For platforms which do not support PIC, -DPIC is meaningless:
17689   *djgpp*)
17690     lt_prog_compiler_pic_GCJ=
17691     ;;
17692   *)
17693     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17694     ;;
17695 esac
17696
17697 #
17698 # Check to make sure the static flag actually works.
17699 #
17700 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17701 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17703 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   lt_prog_compiler_static_works_GCJ=no
17707    save_LDFLAGS="$LDFLAGS"
17708    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17709    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17710    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17711      # The linker can only warn and ignore the option if not recognized
17712      # So say no if there are warnings
17713      if test -s conftest.err; then
17714        # Append any errors to the config.log.
17715        cat conftest.err 1>&5
17716        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17717        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17718        if diff conftest.exp conftest.er2 >/dev/null; then
17719          lt_prog_compiler_static_works_GCJ=yes
17720        fi
17721      else
17722        lt_prog_compiler_static_works_GCJ=yes
17723      fi
17724    fi
17725    $rm conftest*
17726    LDFLAGS="$save_LDFLAGS"
17727
17728 fi
17729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17730 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17731
17732 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17733     :
17734 else
17735     lt_prog_compiler_static_GCJ=
17736 fi
17737
17738
17739 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17741 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17742   echo $ECHO_N "(cached) $ECHO_C" >&6
17743 else
17744   lt_cv_prog_compiler_c_o_GCJ=no
17745    $rm -r conftest 2>/dev/null
17746    mkdir conftest
17747    cd conftest
17748    mkdir out
17749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17750
17751    lt_compiler_flag="-o out/conftest2.$ac_objext"
17752    # Insert the option either (1) after the last *FLAGS variable, or
17753    # (2) before a word containing "conftest.", or (3) at the end.
17754    # Note that $ac_compile itself does not contain backslashes and begins
17755    # with a dollar sign (not a hyphen), so the echo should work correctly.
17756    lt_compile=`echo "$ac_compile" | $SED \
17757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17759    -e 's:$: $lt_compiler_flag:'`
17760    (eval echo "\"\$as_me:17760: $lt_compile\"" >&5)
17761    (eval "$lt_compile" 2>out/conftest.err)
17762    ac_status=$?
17763    cat out/conftest.err >&5
17764    echo "$as_me:17764: \$? = $ac_status" >&5
17765    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17766    then
17767      # The compiler can only warn and ignore the option if not recognized
17768      # So say no if there are warnings
17769      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17770      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17771      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17772        lt_cv_prog_compiler_c_o_GCJ=yes
17773      fi
17774    fi
17775    chmod u+w . 2>&5
17776    $rm conftest*
17777    # SGI C++ compiler will create directory out/ii_files/ for
17778    # template instantiation
17779    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17780    $rm out/* && rmdir out
17781    cd ..
17782    rmdir conftest
17783    $rm conftest*
17784
17785 fi
17786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17788
17789
17790 hard_links="nottested"
17791 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17792   # do not overwrite the value of need_locks provided by the user
17793   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17795   hard_links=yes
17796   $rm conftest*
17797   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17798   touch conftest.a
17799   ln conftest.a conftest.b 2>&5 || hard_links=no
17800   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17801   { echo "$as_me:$LINENO: result: $hard_links" >&5
17802 echo "${ECHO_T}$hard_links" >&6; }
17803   if test "$hard_links" = no; then
17804     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17806     need_locks=warn
17807   fi
17808 else
17809   need_locks=no
17810 fi
17811
17812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17814
17815   runpath_var=
17816   allow_undefined_flag_GCJ=
17817   enable_shared_with_static_runtimes_GCJ=no
17818   archive_cmds_GCJ=
17819   archive_expsym_cmds_GCJ=
17820   old_archive_From_new_cmds_GCJ=
17821   old_archive_from_expsyms_cmds_GCJ=
17822   export_dynamic_flag_spec_GCJ=
17823   whole_archive_flag_spec_GCJ=
17824   thread_safe_flag_spec_GCJ=
17825   hardcode_libdir_flag_spec_GCJ=
17826   hardcode_libdir_flag_spec_ld_GCJ=
17827   hardcode_libdir_separator_GCJ=
17828   hardcode_direct_GCJ=no
17829   hardcode_minus_L_GCJ=no
17830   hardcode_shlibpath_var_GCJ=unsupported
17831   link_all_deplibs_GCJ=unknown
17832   hardcode_automatic_GCJ=no
17833   module_cmds_GCJ=
17834   module_expsym_cmds_GCJ=
17835   always_export_symbols_GCJ=no
17836   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17837   # include_expsyms should be a list of space-separated symbols to be *always*
17838   # included in the symbol list
17839   include_expsyms_GCJ=
17840   # exclude_expsyms can be an extended regexp of symbols to exclude
17841   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17842   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17843   # as well as any symbol that contains `d'.
17844   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17845   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17846   # platforms (ab)use it in PIC code, but their linkers get confused if
17847   # the symbol is explicitly referenced.  Since portable code cannot
17848   # rely on this symbol name, it's probably fine to never include it in
17849   # preloaded symbol tables.
17850   extract_expsyms_cmds=
17851   # Just being paranoid about ensuring that cc_basename is set.
17852   for cc_temp in $compiler""; do
17853   case $cc_temp in
17854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17856     \-*) ;;
17857     *) break;;
17858   esac
17859 done
17860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17861
17862   case $host_os in
17863   cygwin* | mingw* | pw32*)
17864     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17865     # When not using gcc, we currently assume that we are using
17866     # Microsoft Visual C++.
17867     if test "$GCC" != yes; then
17868       with_gnu_ld=no
17869     fi
17870     ;;
17871   interix*)
17872     # we just hope/assume this is gcc and not c89 (= MSVC++)
17873     with_gnu_ld=yes
17874     ;;
17875   openbsd*)
17876     with_gnu_ld=no
17877     ;;
17878   esac
17879
17880   ld_shlibs_GCJ=yes
17881   if test "$with_gnu_ld" = yes; then
17882     # If archive_cmds runs LD, not CC, wlarc should be empty
17883     wlarc='${wl}'
17884
17885     # Set some defaults for GNU ld with shared library support. These
17886     # are reset later if shared libraries are not supported. Putting them
17887     # here allows them to be overridden if necessary.
17888     runpath_var=LD_RUN_PATH
17889     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17890     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17891     # ancient GNU ld didn't support --whole-archive et. al.
17892     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17893         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17894       else
17895         whole_archive_flag_spec_GCJ=
17896     fi
17897     supports_anon_versioning=no
17898     case `$LD -v 2>/dev/null` in
17899       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17900       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17901       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17902       *\ 2.11.*) ;; # other 2.11 versions
17903       *) supports_anon_versioning=yes ;;
17904     esac
17905
17906     # See if GNU ld supports shared libraries.
17907     case $host_os in
17908     aix3* | aix4* | aix5*)
17909       # On AIX/PPC, the GNU linker is very broken
17910       if test "$host_cpu" != ia64; then
17911         ld_shlibs_GCJ=no
17912         cat <<EOF 1>&2
17913
17914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17915 *** to be unable to reliably create shared libraries on AIX.
17916 *** Therefore, libtool is disabling shared libraries support.  If you
17917 *** really care for shared libraries, you may want to modify your PATH
17918 *** so that a non-GNU linker is found, and then restart.
17919
17920 EOF
17921       fi
17922       ;;
17923
17924     amigaos*)
17925       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)'
17926       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17927       hardcode_minus_L_GCJ=yes
17928
17929       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17930       # that the semantics of dynamic libraries on AmigaOS, at least up
17931       # to version 4, is to share data among multiple programs linked
17932       # with the same dynamic library.  Since this doesn't match the
17933       # behavior of shared libraries on other platforms, we can't use
17934       # them.
17935       ld_shlibs_GCJ=no
17936       ;;
17937
17938     beos*)
17939       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17940         allow_undefined_flag_GCJ=unsupported
17941         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17942         # support --undefined.  This deserves some investigation.  FIXME
17943         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17944       else
17945         ld_shlibs_GCJ=no
17946       fi
17947       ;;
17948
17949     cygwin* | mingw* | pw32*)
17950       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17951       # as there is no search path for DLLs.
17952       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17953       allow_undefined_flag_GCJ=unsupported
17954       always_export_symbols_GCJ=no
17955       enable_shared_with_static_runtimes_GCJ=yes
17956       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17957
17958       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17959         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17960         # If the export-symbols file already is a .def file (1st line
17961         # is EXPORTS), use it as is; otherwise, prepend...
17962         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17963           cp $export_symbols $output_objdir/$soname.def;
17964         else
17965           echo EXPORTS > $output_objdir/$soname.def;
17966           cat $export_symbols >> $output_objdir/$soname.def;
17967         fi~
17968         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17969       else
17970         ld_shlibs_GCJ=no
17971       fi
17972       ;;
17973
17974     interix3*)
17975       hardcode_direct_GCJ=no
17976       hardcode_shlibpath_var_GCJ=no
17977       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17978       export_dynamic_flag_spec_GCJ='${wl}-E'
17979       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17980       # Instead, shared libraries are loaded at an image base (0x10000000 by
17981       # default) and relocated if they conflict, which is a slow very memory
17982       # consuming and fragmenting process.  To avoid this, we pick a random,
17983       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17984       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17985       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'
17986       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'
17987       ;;
17988
17989     linux* | k*bsd*-gnu)
17990       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17991         tmp_addflag=
17992         case $cc_basename,$host_cpu in
17993         pgcc*)                          # Portland Group C compiler
17994           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'
17995           tmp_addflag=' $pic_flag'
17996           ;;
17997         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17998           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'
17999           tmp_addflag=' $pic_flag -Mnomain' ;;
18000         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18001           tmp_addflag=' -i_dynamic' ;;
18002         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18003           tmp_addflag=' -i_dynamic -nofor_main' ;;
18004         ifc* | ifort*)                  # Intel Fortran compiler
18005           tmp_addflag=' -nofor_main' ;;
18006         esac
18007         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008
18009         if test $supports_anon_versioning = yes; then
18010           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18011   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18012   $echo "local: *; };" >> $output_objdir/$libname.ver~
18013           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18014         fi
18015         link_all_deplibs_GCJ=no
18016       else
18017         ld_shlibs_GCJ=no
18018       fi
18019       ;;
18020
18021     netbsd* | netbsdelf*-gnu)
18022       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18023         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18024         wlarc=
18025       else
18026         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18027         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18028       fi
18029       ;;
18030
18031     solaris*)
18032       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18033         ld_shlibs_GCJ=no
18034         cat <<EOF 1>&2
18035
18036 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18037 *** create shared libraries on Solaris systems.  Therefore, libtool
18038 *** is disabling shared libraries support.  We urge you to upgrade GNU
18039 *** binutils to release 2.9.1 or newer.  Another option is to modify
18040 *** your PATH or compiler configuration so that the native linker is
18041 *** used, and then restart.
18042
18043 EOF
18044       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18045         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18046         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18047       else
18048         ld_shlibs_GCJ=no
18049       fi
18050       ;;
18051
18052     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18053       case `$LD -v 2>&1` in
18054         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18055         ld_shlibs_GCJ=no
18056         cat <<_LT_EOF 1>&2
18057
18058 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18059 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18060 *** is disabling shared libraries support.  We urge you to upgrade GNU
18061 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18062 *** your PATH or compiler configuration so that the native linker is
18063 *** used, and then restart.
18064
18065 _LT_EOF
18066         ;;
18067         *)
18068           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18069             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18070             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18071             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18072           else
18073             ld_shlibs_GCJ=no
18074           fi
18075         ;;
18076       esac
18077       ;;
18078
18079     sunos4*)
18080       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18081       wlarc=
18082       hardcode_direct_GCJ=yes
18083       hardcode_shlibpath_var_GCJ=no
18084       ;;
18085
18086     *)
18087       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18088         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18089         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18090       else
18091         ld_shlibs_GCJ=no
18092       fi
18093       ;;
18094     esac
18095
18096     if test "$ld_shlibs_GCJ" = no; then
18097       runpath_var=
18098       hardcode_libdir_flag_spec_GCJ=
18099       export_dynamic_flag_spec_GCJ=
18100       whole_archive_flag_spec_GCJ=
18101     fi
18102   else
18103     # PORTME fill in a description of your system's linker (not GNU ld)
18104     case $host_os in
18105     aix3*)
18106       allow_undefined_flag_GCJ=unsupported
18107       always_export_symbols_GCJ=yes
18108       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'
18109       # Note: this linker hardcodes the directories in LIBPATH if there
18110       # are no directories specified by -L.
18111       hardcode_minus_L_GCJ=yes
18112       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18113         # Neither direct hardcoding nor static linking is supported with a
18114         # broken collect2.
18115         hardcode_direct_GCJ=unsupported
18116       fi
18117       ;;
18118
18119     aix4* | aix5*)
18120       if test "$host_cpu" = ia64; then
18121         # On IA64, the linker does run time linking by default, so we don't
18122         # have to do anything special.
18123         aix_use_runtimelinking=no
18124         exp_sym_flag='-Bexport'
18125         no_entry_flag=""
18126       else
18127         # If we're using GNU nm, then we don't want the "-C" option.
18128         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18129         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18130           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'
18131         else
18132           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'
18133         fi
18134         aix_use_runtimelinking=no
18135
18136         # Test if we are trying to use run time linking or normal
18137         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18138         # need to do runtime linking.
18139         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18140           for ld_flag in $LDFLAGS; do
18141           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18142             aix_use_runtimelinking=yes
18143             break
18144           fi
18145           done
18146           ;;
18147         esac
18148
18149         exp_sym_flag='-bexport'
18150         no_entry_flag='-bnoentry'
18151       fi
18152
18153       # When large executables or shared objects are built, AIX ld can
18154       # have problems creating the table of contents.  If linking a library
18155       # or program results in "error TOC overflow" add -mminimal-toc to
18156       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18157       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18158
18159       archive_cmds_GCJ=''
18160       hardcode_direct_GCJ=yes
18161       hardcode_libdir_separator_GCJ=':'
18162       link_all_deplibs_GCJ=yes
18163
18164       if test "$GCC" = yes; then
18165         case $host_os in aix4.[012]|aix4.[012].*)
18166         # We only want to do this on AIX 4.2 and lower, the check
18167         # below for broken collect2 doesn't work under 4.3+
18168           collect2name=`${CC} -print-prog-name=collect2`
18169           if test -f "$collect2name" && \
18170            strings "$collect2name" | grep resolve_lib_name >/dev/null
18171           then
18172           # We have reworked collect2
18173           hardcode_direct_GCJ=yes
18174           else
18175           # We have old collect2
18176           hardcode_direct_GCJ=unsupported
18177           # It fails to find uninstalled libraries when the uninstalled
18178           # path is not listed in the libpath.  Setting hardcode_minus_L
18179           # to unsupported forces relinking
18180           hardcode_minus_L_GCJ=yes
18181           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18182           hardcode_libdir_separator_GCJ=
18183           fi
18184           ;;
18185         esac
18186         shared_flag='-shared'
18187         if test "$aix_use_runtimelinking" = yes; then
18188           shared_flag="$shared_flag "'${wl}-G'
18189         fi
18190       else
18191         # not using gcc
18192         if test "$host_cpu" = ia64; then
18193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18194         # chokes on -Wl,-G. The following line is correct:
18195           shared_flag='-G'
18196         else
18197           if test "$aix_use_runtimelinking" = yes; then
18198             shared_flag='${wl}-G'
18199           else
18200             shared_flag='${wl}-bM:SRE'
18201           fi
18202         fi
18203       fi
18204
18205       # It seems that -bexpall does not export symbols beginning with
18206       # underscore (_), so it is better to generate a list of symbols to export.
18207       always_export_symbols_GCJ=yes
18208       if test "$aix_use_runtimelinking" = yes; then
18209         # Warning - without using the other runtime loading flags (-brtl),
18210         # -berok will link without error, but may produce a broken library.
18211         allow_undefined_flag_GCJ='-berok'
18212        # Determine the default libpath from the value encoded in an empty executable.
18213        cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h.  */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h.  */
18219
18220 int
18221 main ()
18222 {
18223
18224   ;
18225   return 0;
18226 }
18227 _ACEOF
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_link") 2>conftest.er1
18236   ac_status=$?
18237   grep -v '^ *+' conftest.er1 >conftest.err
18238   rm -f conftest.er1
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); } && {
18242          test -z "$ac_c_werror_flag" ||
18243          test ! -s conftest.err
18244        } && test -s conftest$ac_exeext &&
18245        $as_test_x conftest$ac_exeext; then
18246
18247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18248 }'`
18249 # Check for a 64-bit object if we didn't find anything.
18250 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18251 }'`; fi
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256
18257 fi
18258
18259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18260       conftest$ac_exeext conftest.$ac_ext
18261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18262
18263        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18264         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"
18265        else
18266         if test "$host_cpu" = ia64; then
18267           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18268           allow_undefined_flag_GCJ="-z nodefs"
18269           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"
18270         else
18271          # Determine the default libpath from the value encoded in an empty executable.
18272          cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 int
18280 main ()
18281 {
18282
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_link") 2>conftest.er1
18295   ac_status=$?
18296   grep -v '^ *+' conftest.er1 >conftest.err
18297   rm -f conftest.er1
18298   cat conftest.err >&5
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } && {
18301          test -z "$ac_c_werror_flag" ||
18302          test ! -s conftest.err
18303        } && test -s conftest$ac_exeext &&
18304        $as_test_x conftest$ac_exeext; then
18305
18306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18307 }'`
18308 # Check for a 64-bit object if we didn't find anything.
18309 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18310 }'`; fi
18311 else
18312   echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18314
18315
18316 fi
18317
18318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18319       conftest$ac_exeext conftest.$ac_ext
18320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18321
18322          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18323           # Warning - without using the other run time loading flags,
18324           # -berok will link without error, but may produce a broken library.
18325           no_undefined_flag_GCJ=' ${wl}-bernotok'
18326           allow_undefined_flag_GCJ=' ${wl}-berok'
18327           # Exported symbols can be pulled into shared objects from archives
18328           whole_archive_flag_spec_GCJ='$convenience'
18329           archive_cmds_need_lc_GCJ=yes
18330           # This is similar to how AIX traditionally builds its shared libraries.
18331           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'
18332         fi
18333       fi
18334       ;;
18335
18336     amigaos*)
18337       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)'
18338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18339       hardcode_minus_L_GCJ=yes
18340       # see comment about different semantics on the GNU ld section
18341       ld_shlibs_GCJ=no
18342       ;;
18343
18344     bsdi[45]*)
18345       export_dynamic_flag_spec_GCJ=-rdynamic
18346       ;;
18347
18348     cygwin* | mingw* | pw32*)
18349       # When not using gcc, we currently assume that we are using
18350       # Microsoft Visual C++.
18351       # hardcode_libdir_flag_spec is actually meaningless, as there is
18352       # no search path for DLLs.
18353       hardcode_libdir_flag_spec_GCJ=' '
18354       allow_undefined_flag_GCJ=unsupported
18355       # Tell ltmain to make .lib files, not .a files.
18356       libext=lib
18357       # Tell ltmain to make .dll files, not .so files.
18358       shrext_cmds=".dll"
18359       # FIXME: Setting linknames here is a bad hack.
18360       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18361       # The linker will automatically build a .lib file if we build a DLL.
18362       old_archive_From_new_cmds_GCJ='true'
18363       # FIXME: Should let the user specify the lib program.
18364       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18365       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18366       enable_shared_with_static_runtimes_GCJ=yes
18367       ;;
18368
18369     darwin* | rhapsody*)
18370       case $host_os in
18371         rhapsody* | darwin1.[012])
18372          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18373          ;;
18374        *) # Darwin 1.3 on
18375          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18376            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18377          else
18378            case ${MACOSX_DEPLOYMENT_TARGET} in
18379              10.[012])
18380                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18381                ;;
18382              10.*)
18383                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18384                ;;
18385            esac
18386          fi
18387          ;;
18388       esac
18389       archive_cmds_need_lc_GCJ=no
18390       hardcode_direct_GCJ=no
18391       hardcode_automatic_GCJ=yes
18392       hardcode_shlibpath_var_GCJ=unsupported
18393       whole_archive_flag_spec_GCJ=''
18394       link_all_deplibs_GCJ=yes
18395     if test "$GCC" = yes ; then
18396         output_verbose_link_cmd='echo'
18397         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18398       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18399       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18400       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}'
18401       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}'
18402     else
18403       case $cc_basename in
18404         xlc*)
18405          output_verbose_link_cmd='echo'
18406          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18407          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18408           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18409          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18410           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}'
18411           ;;
18412        *)
18413          ld_shlibs_GCJ=no
18414           ;;
18415       esac
18416     fi
18417       ;;
18418
18419     dgux*)
18420       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18421       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18422       hardcode_shlibpath_var_GCJ=no
18423       ;;
18424
18425     freebsd1*)
18426       ld_shlibs_GCJ=no
18427       ;;
18428
18429     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18430     # support.  Future versions do this automatically, but an explicit c++rt0.o
18431     # does not break anything, and helps significantly (at the cost of a little
18432     # extra space).
18433     freebsd2.2*)
18434       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18435       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18436       hardcode_direct_GCJ=yes
18437       hardcode_shlibpath_var_GCJ=no
18438       ;;
18439
18440     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18441     freebsd2*)
18442       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18443       hardcode_direct_GCJ=yes
18444       hardcode_minus_L_GCJ=yes
18445       hardcode_shlibpath_var_GCJ=no
18446       ;;
18447
18448     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18449     freebsd* | dragonfly*)
18450       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18451       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18452       hardcode_direct_GCJ=yes
18453       hardcode_shlibpath_var_GCJ=no
18454       ;;
18455
18456     hpux9*)
18457       if test "$GCC" = yes; then
18458         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'
18459       else
18460         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'
18461       fi
18462       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463       hardcode_libdir_separator_GCJ=:
18464       hardcode_direct_GCJ=yes
18465
18466       # hardcode_minus_L: Not really in the search PATH,
18467       # but as the default location of the library.
18468       hardcode_minus_L_GCJ=yes
18469       export_dynamic_flag_spec_GCJ='${wl}-E'
18470       ;;
18471
18472     hpux10*)
18473       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18474         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18475       else
18476         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18477       fi
18478       if test "$with_gnu_ld" = no; then
18479         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18480         hardcode_libdir_separator_GCJ=:
18481
18482         hardcode_direct_GCJ=yes
18483         export_dynamic_flag_spec_GCJ='${wl}-E'
18484
18485         # hardcode_minus_L: Not really in the search PATH,
18486         # but as the default location of the library.
18487         hardcode_minus_L_GCJ=yes
18488       fi
18489       ;;
18490
18491     hpux11*)
18492       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18493         case $host_cpu in
18494         hppa*64*)
18495           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18496           ;;
18497         ia64*)
18498           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18499           ;;
18500         *)
18501           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18502           ;;
18503         esac
18504       else
18505         case $host_cpu in
18506         hppa*64*)
18507           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18508           ;;
18509         ia64*)
18510           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18511           ;;
18512         *)
18513           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18514           ;;
18515         esac
18516       fi
18517       if test "$with_gnu_ld" = no; then
18518         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18519         hardcode_libdir_separator_GCJ=:
18520
18521         case $host_cpu in
18522         hppa*64*|ia64*)
18523           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18524           hardcode_direct_GCJ=no
18525           hardcode_shlibpath_var_GCJ=no
18526           ;;
18527         *)
18528           hardcode_direct_GCJ=yes
18529           export_dynamic_flag_spec_GCJ='${wl}-E'
18530
18531           # hardcode_minus_L: Not really in the search PATH,
18532           # but as the default location of the library.
18533           hardcode_minus_L_GCJ=yes
18534           ;;
18535         esac
18536       fi
18537       ;;
18538
18539     irix5* | irix6* | nonstopux*)
18540       if test "$GCC" = yes; then
18541         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'
18542       else
18543         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'
18544         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18545       fi
18546       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18547       hardcode_libdir_separator_GCJ=:
18548       link_all_deplibs_GCJ=yes
18549       ;;
18550
18551     netbsd* | netbsdelf*-gnu)
18552       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18553         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18554       else
18555         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18556       fi
18557       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18558       hardcode_direct_GCJ=yes
18559       hardcode_shlibpath_var_GCJ=no
18560       ;;
18561
18562     newsos6)
18563       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18564       hardcode_direct_GCJ=yes
18565       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18566       hardcode_libdir_separator_GCJ=:
18567       hardcode_shlibpath_var_GCJ=no
18568       ;;
18569
18570     openbsd*)
18571       hardcode_direct_GCJ=yes
18572       hardcode_shlibpath_var_GCJ=no
18573       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18574         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18575         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18576         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18577         export_dynamic_flag_spec_GCJ='${wl}-E'
18578       else
18579        case $host_os in
18580          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18581            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18582            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18583            ;;
18584          *)
18585            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18586            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18587            ;;
18588        esac
18589       fi
18590       ;;
18591
18592     os2*)
18593       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18594       hardcode_minus_L_GCJ=yes
18595       allow_undefined_flag_GCJ=unsupported
18596       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'
18597       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18598       ;;
18599
18600     osf3*)
18601       if test "$GCC" = yes; then
18602         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18603         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'
18604       else
18605         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18606         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'
18607       fi
18608       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18609       hardcode_libdir_separator_GCJ=:
18610       ;;
18611
18612     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18613       if test "$GCC" = yes; then
18614         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18615         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'
18616         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18617       else
18618         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18619         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'
18620         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~
18621         $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'
18622
18623         # Both c and cxx compiler support -rpath directly
18624         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18625       fi
18626       hardcode_libdir_separator_GCJ=:
18627       ;;
18628
18629     solaris*)
18630       no_undefined_flag_GCJ=' -z text'
18631       if test "$GCC" = yes; then
18632         wlarc='${wl}'
18633         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18634         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18635           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18636       else
18637         wlarc=''
18638         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18639         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18640         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18641       fi
18642       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18643       hardcode_shlibpath_var_GCJ=no
18644       case $host_os in
18645       solaris2.[0-5] | solaris2.[0-5].*) ;;
18646       *)
18647         # The compiler driver will combine linker options so we
18648         # cannot just pass the convience library names through
18649         # without $wl, iff we do not link with $LD.
18650         # Luckily, gcc supports the same syntax we need for Sun Studio.
18651         # Supported since Solaris 2.6 (maybe 2.5.1?)
18652         case $wlarc in
18653         '')
18654           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18655         *)
18656           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18657         esac ;;
18658       esac
18659       link_all_deplibs_GCJ=yes
18660       ;;
18661
18662     sunos4*)
18663       if test "x$host_vendor" = xsequent; then
18664         # Use $CC to link under sequent, because it throws in some extra .o
18665         # files that make .init and .fini sections work.
18666         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18667       else
18668         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18669       fi
18670       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18671       hardcode_direct_GCJ=yes
18672       hardcode_minus_L_GCJ=yes
18673       hardcode_shlibpath_var_GCJ=no
18674       ;;
18675
18676     sysv4)
18677       case $host_vendor in
18678         sni)
18679           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18680           hardcode_direct_GCJ=yes # is this really true???
18681         ;;
18682         siemens)
18683           ## LD is ld it makes a PLAMLIB
18684           ## CC just makes a GrossModule.
18685           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18686           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18687           hardcode_direct_GCJ=no
18688         ;;
18689         motorola)
18690           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18691           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18692         ;;
18693       esac
18694       runpath_var='LD_RUN_PATH'
18695       hardcode_shlibpath_var_GCJ=no
18696       ;;
18697
18698     sysv4.3*)
18699       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18700       hardcode_shlibpath_var_GCJ=no
18701       export_dynamic_flag_spec_GCJ='-Bexport'
18702       ;;
18703
18704     sysv4*MP*)
18705       if test -d /usr/nec; then
18706         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707         hardcode_shlibpath_var_GCJ=no
18708         runpath_var=LD_RUN_PATH
18709         hardcode_runpath_var=yes
18710         ld_shlibs_GCJ=yes
18711       fi
18712       ;;
18713
18714     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18715       no_undefined_flag_GCJ='${wl}-z,text'
18716       archive_cmds_need_lc_GCJ=no
18717       hardcode_shlibpath_var_GCJ=no
18718       runpath_var='LD_RUN_PATH'
18719
18720       if test "$GCC" = yes; then
18721         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18723       else
18724         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18725         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18726       fi
18727       ;;
18728
18729     sysv5* | sco3.2v5* | sco5v6*)
18730       # Note: We can NOT use -z defs as we might desire, because we do not
18731       # link with -lc, and that would cause any symbols used from libc to
18732       # always be unresolved, which means just about no library would
18733       # ever link correctly.  If we're not using GNU ld we use -z text
18734       # though, which does catch some bad symbols but isn't as heavy-handed
18735       # as -z defs.
18736       no_undefined_flag_GCJ='${wl}-z,text'
18737       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18738       archive_cmds_need_lc_GCJ=no
18739       hardcode_shlibpath_var_GCJ=no
18740       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18741       hardcode_libdir_separator_GCJ=':'
18742       link_all_deplibs_GCJ=yes
18743       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18744       runpath_var='LD_RUN_PATH'
18745
18746       if test "$GCC" = yes; then
18747         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18748         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18749       else
18750         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18751         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18752       fi
18753       ;;
18754
18755     uts4*)
18756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18758       hardcode_shlibpath_var_GCJ=no
18759       ;;
18760
18761     *)
18762       ld_shlibs_GCJ=no
18763       ;;
18764     esac
18765   fi
18766
18767 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18768 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18770
18771 #
18772 # Do we need to explicitly link libc?
18773 #
18774 case "x$archive_cmds_need_lc_GCJ" in
18775 x|xyes)
18776   # Assume -lc should be added
18777   archive_cmds_need_lc_GCJ=yes
18778
18779   if test "$enable_shared" = yes && test "$GCC" = yes; then
18780     case $archive_cmds_GCJ in
18781     *'~'*)
18782       # FIXME: we may have to deal with multi-command sequences.
18783       ;;
18784     '$CC '*)
18785       # Test whether the compiler implicitly links with -lc since on some
18786       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18787       # to ld, don't add -lc before -lgcc.
18788       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18789 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18790       $rm conftest*
18791       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18792
18793       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794   (eval $ac_compile) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); } 2>conftest.err; then
18798         soname=conftest
18799         lib=conftest
18800         libobjs=conftest.$ac_objext
18801         deplibs=
18802         wl=$lt_prog_compiler_wl_GCJ
18803         pic_flag=$lt_prog_compiler_pic_GCJ
18804         compiler_flags=-v
18805         linker_flags=-v
18806         verstring=
18807         output_objdir=.
18808         libname=conftest
18809         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18810         allow_undefined_flag_GCJ=
18811         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18812   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }
18816         then
18817           archive_cmds_need_lc_GCJ=no
18818         else
18819           archive_cmds_need_lc_GCJ=yes
18820         fi
18821         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18822       else
18823         cat conftest.err 1>&5
18824       fi
18825       $rm conftest*
18826       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18827 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18828       ;;
18829     esac
18830   fi
18831   ;;
18832 esac
18833
18834 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18836 library_names_spec=
18837 libname_spec='lib$name'
18838 soname_spec=
18839 shrext_cmds=".so"
18840 postinstall_cmds=
18841 postuninstall_cmds=
18842 finish_cmds=
18843 finish_eval=
18844 shlibpath_var=
18845 shlibpath_overrides_runpath=unknown
18846 version_type=none
18847 dynamic_linker="$host_os ld.so"
18848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18849 if test "$GCC" = yes; then
18850   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18851   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18852     # if the path contains ";" then we assume it to be the separator
18853     # otherwise default to the standard path separator (i.e. ":") - it is
18854     # assumed that no part of a normal pathname contains ";" but that should
18855     # okay in the real world where ";" in dirpaths is itself problematic.
18856     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18857   else
18858     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18859   fi
18860 else
18861   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18862 fi
18863 need_lib_prefix=unknown
18864 hardcode_into_libs=no
18865
18866 # when you set need_version to no, make sure it does not cause -set_version
18867 # flags to be left without arguments
18868 need_version=unknown
18869
18870 case $host_os in
18871 aix3*)
18872   version_type=linux
18873   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18874   shlibpath_var=LIBPATH
18875
18876   # AIX 3 has no versioning support, so we append a major version to the name.
18877   soname_spec='${libname}${release}${shared_ext}$major'
18878   ;;
18879
18880 aix4* | aix5*)
18881   version_type=linux
18882   need_lib_prefix=no
18883   need_version=no
18884   hardcode_into_libs=yes
18885   if test "$host_cpu" = ia64; then
18886     # AIX 5 supports IA64
18887     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18888     shlibpath_var=LD_LIBRARY_PATH
18889   else
18890     # With GCC up to 2.95.x, collect2 would create an import file
18891     # for dependence libraries.  The import file would start with
18892     # the line `#! .'.  This would cause the generated library to
18893     # depend on `.', always an invalid library.  This was fixed in
18894     # development snapshots of GCC prior to 3.0.
18895     case $host_os in
18896       aix4 | aix4.[01] | aix4.[01].*)
18897       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18898            echo ' yes '
18899            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18900         :
18901       else
18902         can_build_shared=no
18903       fi
18904       ;;
18905     esac
18906     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18907     # soname into executable. Probably we can add versioning support to
18908     # collect2, so additional links can be useful in future.
18909     if test "$aix_use_runtimelinking" = yes; then
18910       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18911       # instead of lib<name>.a to let people know that these are not
18912       # typical AIX shared libraries.
18913       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18914     else
18915       # We preserve .a as extension for shared libraries through AIX4.2
18916       # and later when we are not doing run time linking.
18917       library_names_spec='${libname}${release}.a $libname.a'
18918       soname_spec='${libname}${release}${shared_ext}$major'
18919     fi
18920     shlibpath_var=LIBPATH
18921   fi
18922   ;;
18923
18924 amigaos*)
18925   library_names_spec='$libname.ixlibrary $libname.a'
18926   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18927   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'
18928   ;;
18929
18930 beos*)
18931   library_names_spec='${libname}${shared_ext}'
18932   dynamic_linker="$host_os ld.so"
18933   shlibpath_var=LIBRARY_PATH
18934   ;;
18935
18936 bsdi[45]*)
18937   version_type=linux
18938   need_version=no
18939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18940   soname_spec='${libname}${release}${shared_ext}$major'
18941   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18942   shlibpath_var=LD_LIBRARY_PATH
18943   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18944   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18945   # the default ld.so.conf also contains /usr/contrib/lib and
18946   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18947   # libtool to hard-code these into programs
18948   ;;
18949
18950 cygwin* | mingw* | pw32*)
18951   version_type=windows
18952   shrext_cmds=".dll"
18953   need_version=no
18954   need_lib_prefix=no
18955
18956   case $GCC,$host_os in
18957   yes,cygwin* | yes,mingw* | yes,pw32*)
18958     library_names_spec='$libname.dll.a'
18959     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18960     postinstall_cmds='base_file=`basename \${file}`~
18961       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18962       dldir=$destdir/`dirname \$dlpath`~
18963       test -d \$dldir || mkdir -p \$dldir~
18964       $install_prog $dir/$dlname \$dldir/$dlname~
18965       chmod a+x \$dldir/$dlname'
18966     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18967       dlpath=$dir/\$dldll~
18968        $rm \$dlpath'
18969     shlibpath_overrides_runpath=yes
18970
18971     case $host_os in
18972     cygwin*)
18973       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18974       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18975       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18976       ;;
18977     mingw*)
18978       # MinGW DLLs use traditional 'lib' prefix
18979       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18980       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18981       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18982         # It is most probably a Windows format PATH printed by
18983         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18984         # path with ; separators, and with drive letters. We can handle the
18985         # drive letters (cygwin fileutils understands them), so leave them,
18986         # especially as we might pass files found there to a mingw objdump,
18987         # which wouldn't understand a cygwinified path. Ahh.
18988         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18989       else
18990         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18991       fi
18992       ;;
18993     pw32*)
18994       # pw32 DLLs use 'pw' prefix rather than 'lib'
18995       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18996       ;;
18997     esac
18998     ;;
18999
19000   *)
19001     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19002     ;;
19003   esac
19004   dynamic_linker='Win32 ld.exe'
19005   # FIXME: first we should search . and the directory the executable is in
19006   shlibpath_var=PATH
19007   ;;
19008
19009 darwin* | rhapsody*)
19010   dynamic_linker="$host_os dyld"
19011   version_type=darwin
19012   need_lib_prefix=no
19013   need_version=no
19014   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19015   soname_spec='${libname}${release}${major}$shared_ext'
19016   shlibpath_overrides_runpath=yes
19017   shlibpath_var=DYLD_LIBRARY_PATH
19018   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19019   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19020   if test "$GCC" = yes; then
19021     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19022   else
19023     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19024   fi
19025   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19026   ;;
19027
19028 dgux*)
19029   version_type=linux
19030   need_lib_prefix=no
19031   need_version=no
19032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19033   soname_spec='${libname}${release}${shared_ext}$major'
19034   shlibpath_var=LD_LIBRARY_PATH
19035   ;;
19036
19037 freebsd1*)
19038   dynamic_linker=no
19039   ;;
19040
19041 freebsd* | dragonfly*)
19042   # DragonFly does not have aout.  When/if they implement a new
19043   # versioning mechanism, adjust this.
19044   if test -x /usr/bin/objformat; then
19045     objformat=`/usr/bin/objformat`
19046   else
19047     case $host_os in
19048     freebsd[123]*) objformat=aout ;;
19049     *) objformat=elf ;;
19050     esac
19051   fi
19052   version_type=freebsd-$objformat
19053   case $version_type in
19054     freebsd-elf*)
19055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19056       need_version=no
19057       need_lib_prefix=no
19058       ;;
19059     freebsd-*)
19060       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19061       need_version=yes
19062       ;;
19063   esac
19064   shlibpath_var=LD_LIBRARY_PATH
19065   case $host_os in
19066   freebsd2*)
19067     shlibpath_overrides_runpath=yes
19068     ;;
19069   freebsd3.[01]* | freebsdelf3.[01]*)
19070     shlibpath_overrides_runpath=yes
19071     hardcode_into_libs=yes
19072     ;;
19073   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19074   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19075     shlibpath_overrides_runpath=no
19076     hardcode_into_libs=yes
19077     ;;
19078   freebsd*) # from 4.6 on
19079     shlibpath_overrides_runpath=yes
19080     hardcode_into_libs=yes
19081     ;;
19082   esac
19083   ;;
19084
19085 gnu*)
19086   version_type=linux
19087   need_lib_prefix=no
19088   need_version=no
19089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19090   soname_spec='${libname}${release}${shared_ext}$major'
19091   shlibpath_var=LD_LIBRARY_PATH
19092   hardcode_into_libs=yes
19093   ;;
19094
19095 hpux9* | hpux10* | hpux11*)
19096   # Give a soname corresponding to the major version so that dld.sl refuses to
19097   # link against other versions.
19098   version_type=sunos
19099   need_lib_prefix=no
19100   need_version=no
19101   case $host_cpu in
19102   ia64*)
19103     shrext_cmds='.so'
19104     hardcode_into_libs=yes
19105     dynamic_linker="$host_os dld.so"
19106     shlibpath_var=LD_LIBRARY_PATH
19107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109     soname_spec='${libname}${release}${shared_ext}$major'
19110     if test "X$HPUX_IA64_MODE" = X32; then
19111       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19112     else
19113       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19114     fi
19115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19116     ;;
19117    hppa*64*)
19118      shrext_cmds='.sl'
19119      hardcode_into_libs=yes
19120      dynamic_linker="$host_os dld.sl"
19121      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19122      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19123      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19124      soname_spec='${libname}${release}${shared_ext}$major'
19125      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19126      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19127      ;;
19128    *)
19129     shrext_cmds='.sl'
19130     dynamic_linker="$host_os dld.sl"
19131     shlibpath_var=SHLIB_PATH
19132     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134     soname_spec='${libname}${release}${shared_ext}$major'
19135     ;;
19136   esac
19137   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19138   postinstall_cmds='chmod 555 $lib'
19139   ;;
19140
19141 interix3*)
19142   version_type=linux
19143   need_lib_prefix=no
19144   need_version=no
19145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19146   soname_spec='${libname}${release}${shared_ext}$major'
19147   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19148   shlibpath_var=LD_LIBRARY_PATH
19149   shlibpath_overrides_runpath=no
19150   hardcode_into_libs=yes
19151   ;;
19152
19153 irix5* | irix6* | nonstopux*)
19154   case $host_os in
19155     nonstopux*) version_type=nonstopux ;;
19156     *)
19157         if test "$lt_cv_prog_gnu_ld" = yes; then
19158                 version_type=linux
19159         else
19160                 version_type=irix
19161         fi ;;
19162   esac
19163   need_lib_prefix=no
19164   need_version=no
19165   soname_spec='${libname}${release}${shared_ext}$major'
19166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19167   case $host_os in
19168   irix5* | nonstopux*)
19169     libsuff= shlibsuff=
19170     ;;
19171   *)
19172     case $LD in # libtool.m4 will add one of these switches to LD
19173     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19174       libsuff= shlibsuff= libmagic=32-bit;;
19175     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19176       libsuff=32 shlibsuff=N32 libmagic=N32;;
19177     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19178       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19179     *) libsuff= shlibsuff= libmagic=never-match;;
19180     esac
19181     ;;
19182   esac
19183   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19184   shlibpath_overrides_runpath=no
19185   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19186   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19187   hardcode_into_libs=yes
19188   ;;
19189
19190 # No shared lib support for Linux oldld, aout, or coff.
19191 linux*oldld* | linux*aout* | linux*coff*)
19192   dynamic_linker=no
19193   ;;
19194
19195 # This must be Linux ELF.
19196 linux* | k*bsd*-gnu)
19197   version_type=linux
19198   need_lib_prefix=no
19199   need_version=no
19200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19201   soname_spec='${libname}${release}${shared_ext}$major'
19202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19203   shlibpath_var=LD_LIBRARY_PATH
19204   shlibpath_overrides_runpath=no
19205   # This implies no fast_install, which is unacceptable.
19206   # Some rework will be needed to allow for fast_install
19207   # before this can be enabled.
19208   hardcode_into_libs=yes
19209
19210   # Append ld.so.conf contents to the search path
19211   if test -f /etc/ld.so.conf; then
19212     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19214   fi
19215
19216   # We used to test for /lib/ld.so.1 and disable shared libraries on
19217   # powerpc, because MkLinux only supported shared libraries with the
19218   # GNU dynamic linker.  Since this was broken with cross compilers,
19219   # most powerpc-linux boxes support dynamic linking these days and
19220   # people can always --disable-shared, the test was removed, and we
19221   # assume the GNU/Linux dynamic linker is in use.
19222   dynamic_linker='GNU/Linux ld.so'
19223   ;;
19224
19225 netbsdelf*-gnu)
19226   version_type=linux
19227   need_lib_prefix=no
19228   need_version=no
19229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19230   soname_spec='${libname}${release}${shared_ext}$major'
19231   shlibpath_var=LD_LIBRARY_PATH
19232   shlibpath_overrides_runpath=no
19233   hardcode_into_libs=yes
19234   dynamic_linker='NetBSD ld.elf_so'
19235   ;;
19236
19237 netbsd*)
19238   version_type=sunos
19239   need_lib_prefix=no
19240   need_version=no
19241   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19243     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19244     dynamic_linker='NetBSD (a.out) ld.so'
19245   else
19246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19247     soname_spec='${libname}${release}${shared_ext}$major'
19248     dynamic_linker='NetBSD ld.elf_so'
19249   fi
19250   shlibpath_var=LD_LIBRARY_PATH
19251   shlibpath_overrides_runpath=yes
19252   hardcode_into_libs=yes
19253   ;;
19254
19255 newsos6)
19256   version_type=linux
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258   shlibpath_var=LD_LIBRARY_PATH
19259   shlibpath_overrides_runpath=yes
19260   ;;
19261
19262 nto-qnx*)
19263   version_type=linux
19264   need_lib_prefix=no
19265   need_version=no
19266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267   soname_spec='${libname}${release}${shared_ext}$major'
19268   shlibpath_var=LD_LIBRARY_PATH
19269   shlibpath_overrides_runpath=yes
19270   ;;
19271
19272 openbsd*)
19273   version_type=sunos
19274   sys_lib_dlsearch_path_spec="/usr/lib"
19275   need_lib_prefix=no
19276   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19277   case $host_os in
19278     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19279     *)                         need_version=no  ;;
19280   esac
19281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19283   shlibpath_var=LD_LIBRARY_PATH
19284   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19285     case $host_os in
19286       openbsd2.[89] | openbsd2.[89].*)
19287         shlibpath_overrides_runpath=no
19288         ;;
19289       *)
19290         shlibpath_overrides_runpath=yes
19291         ;;
19292       esac
19293   else
19294     shlibpath_overrides_runpath=yes
19295   fi
19296   ;;
19297
19298 os2*)
19299   libname_spec='$name'
19300   shrext_cmds=".dll"
19301   need_lib_prefix=no
19302   library_names_spec='$libname${shared_ext} $libname.a'
19303   dynamic_linker='OS/2 ld.exe'
19304   shlibpath_var=LIBPATH
19305   ;;
19306
19307 osf3* | osf4* | osf5*)
19308   version_type=osf
19309   need_lib_prefix=no
19310   need_version=no
19311   soname_spec='${libname}${release}${shared_ext}$major'
19312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313   shlibpath_var=LD_LIBRARY_PATH
19314   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19315   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19316   ;;
19317
19318 solaris*)
19319   version_type=linux
19320   need_lib_prefix=no
19321   need_version=no
19322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323   soname_spec='${libname}${release}${shared_ext}$major'
19324   shlibpath_var=LD_LIBRARY_PATH
19325   shlibpath_overrides_runpath=yes
19326   hardcode_into_libs=yes
19327   # ldd complains unless libraries are executable
19328   postinstall_cmds='chmod +x $lib'
19329   ;;
19330
19331 sunos4*)
19332   version_type=sunos
19333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19334   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19335   shlibpath_var=LD_LIBRARY_PATH
19336   shlibpath_overrides_runpath=yes
19337   if test "$with_gnu_ld" = yes; then
19338     need_lib_prefix=no
19339   fi
19340   need_version=yes
19341   ;;
19342
19343 sysv4 | sysv4.3*)
19344   version_type=linux
19345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19346   soname_spec='${libname}${release}${shared_ext}$major'
19347   shlibpath_var=LD_LIBRARY_PATH
19348   case $host_vendor in
19349     sni)
19350       shlibpath_overrides_runpath=no
19351       need_lib_prefix=no
19352       export_dynamic_flag_spec='${wl}-Blargedynsym'
19353       runpath_var=LD_RUN_PATH
19354       ;;
19355     siemens)
19356       need_lib_prefix=no
19357       ;;
19358     motorola)
19359       need_lib_prefix=no
19360       need_version=no
19361       shlibpath_overrides_runpath=no
19362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19363       ;;
19364   esac
19365   ;;
19366
19367 sysv4*MP*)
19368   if test -d /usr/nec ;then
19369     version_type=linux
19370     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19371     soname_spec='$libname${shared_ext}.$major'
19372     shlibpath_var=LD_LIBRARY_PATH
19373   fi
19374   ;;
19375
19376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19377   version_type=freebsd-elf
19378   need_lib_prefix=no
19379   need_version=no
19380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19381   soname_spec='${libname}${release}${shared_ext}$major'
19382   shlibpath_var=LD_LIBRARY_PATH
19383   hardcode_into_libs=yes
19384   if test "$with_gnu_ld" = yes; then
19385     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19386     shlibpath_overrides_runpath=no
19387   else
19388     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19389     shlibpath_overrides_runpath=yes
19390     case $host_os in
19391       sco3.2v5*)
19392         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19393         ;;
19394     esac
19395   fi
19396   sys_lib_dlsearch_path_spec='/usr/lib'
19397   ;;
19398
19399 uts4*)
19400   version_type=linux
19401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19402   soname_spec='${libname}${release}${shared_ext}$major'
19403   shlibpath_var=LD_LIBRARY_PATH
19404   ;;
19405
19406 *)
19407   dynamic_linker=no
19408   ;;
19409 esac
19410 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19411 echo "${ECHO_T}$dynamic_linker" >&6; }
19412 test "$dynamic_linker" = no && can_build_shared=no
19413
19414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19415 if test "$GCC" = yes; then
19416   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19417 fi
19418
19419 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19420 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19421 hardcode_action_GCJ=
19422 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19423    test -n "$runpath_var_GCJ" || \
19424    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19425
19426   # We can hardcode non-existant directories.
19427   if test "$hardcode_direct_GCJ" != no &&
19428      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19429      # have to relink, otherwise we might link with an installed library
19430      # when we should be linking with a yet-to-be-installed one
19431      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19432      test "$hardcode_minus_L_GCJ" != no; then
19433     # Linking always hardcodes the temporary library directory.
19434     hardcode_action_GCJ=relink
19435   else
19436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19437     hardcode_action_GCJ=immediate
19438   fi
19439 else
19440   # We cannot hardcode anything, or else we can only hardcode existing
19441   # directories.
19442   hardcode_action_GCJ=unsupported
19443 fi
19444 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19445 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19446
19447 if test "$hardcode_action_GCJ" = relink; then
19448   # Fast installation is not supported
19449   enable_fast_install=no
19450 elif test "$shlibpath_overrides_runpath" = yes ||
19451      test "$enable_shared" = no; then
19452   # Fast installation is not necessary
19453   enable_fast_install=needless
19454 fi
19455
19456
19457 # The else clause should only fire when bootstrapping the
19458 # libtool distribution, otherwise you forgot to ship ltmain.sh
19459 # with your package, and you will get complaints that there are
19460 # no rules to generate ltmain.sh.
19461 if test -f "$ltmain"; then
19462   # See if we are running on zsh, and set the options which allow our commands through
19463   # without removal of \ escapes.
19464   if test -n "${ZSH_VERSION+set}" ; then
19465     setopt NO_GLOB_SUBST
19466   fi
19467   # Now quote all the things that may contain metacharacters while being
19468   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19469   # variables and quote the copies for generation of the libtool script.
19470   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19471     SED SHELL STRIP \
19472     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19473     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19474     deplibs_check_method reload_flag reload_cmds need_locks \
19475     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19476     lt_cv_sys_global_symbol_to_c_name_address \
19477     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19478     old_postinstall_cmds old_postuninstall_cmds \
19479     compiler_GCJ \
19480     CC_GCJ \
19481     LD_GCJ \
19482     lt_prog_compiler_wl_GCJ \
19483     lt_prog_compiler_pic_GCJ \
19484     lt_prog_compiler_static_GCJ \
19485     lt_prog_compiler_no_builtin_flag_GCJ \
19486     export_dynamic_flag_spec_GCJ \
19487     thread_safe_flag_spec_GCJ \
19488     whole_archive_flag_spec_GCJ \
19489     enable_shared_with_static_runtimes_GCJ \
19490     old_archive_cmds_GCJ \
19491     old_archive_from_new_cmds_GCJ \
19492     predep_objects_GCJ \
19493     postdep_objects_GCJ \
19494     predeps_GCJ \
19495     postdeps_GCJ \
19496     compiler_lib_search_path_GCJ \
19497     archive_cmds_GCJ \
19498     archive_expsym_cmds_GCJ \
19499     postinstall_cmds_GCJ \
19500     postuninstall_cmds_GCJ \
19501     old_archive_from_expsyms_cmds_GCJ \
19502     allow_undefined_flag_GCJ \
19503     no_undefined_flag_GCJ \
19504     export_symbols_cmds_GCJ \
19505     hardcode_libdir_flag_spec_GCJ \
19506     hardcode_libdir_flag_spec_ld_GCJ \
19507     hardcode_libdir_separator_GCJ \
19508     hardcode_automatic_GCJ \
19509     module_cmds_GCJ \
19510     module_expsym_cmds_GCJ \
19511     lt_cv_prog_compiler_c_o_GCJ \
19512     exclude_expsyms_GCJ \
19513     include_expsyms_GCJ; do
19514
19515     case $var in
19516     old_archive_cmds_GCJ | \
19517     old_archive_from_new_cmds_GCJ | \
19518     archive_cmds_GCJ | \
19519     archive_expsym_cmds_GCJ | \
19520     module_cmds_GCJ | \
19521     module_expsym_cmds_GCJ | \
19522     old_archive_from_expsyms_cmds_GCJ | \
19523     export_symbols_cmds_GCJ | \
19524     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19525     postinstall_cmds | postuninstall_cmds | \
19526     old_postinstall_cmds | old_postuninstall_cmds | \
19527     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19528       # Double-quote double-evaled strings.
19529       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19530       ;;
19531     *)
19532       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19533       ;;
19534     esac
19535   done
19536
19537   case $lt_echo in
19538   *'\$0 --fallback-echo"')
19539     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19540     ;;
19541   esac
19542
19543 cfgfile="$ofile"
19544
19545   cat <<__EOF__ >> "$cfgfile"
19546 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19547
19548 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19549
19550 # Shell to use when invoking shell scripts.
19551 SHELL=$lt_SHELL
19552
19553 # Whether or not to build shared libraries.
19554 build_libtool_libs=$enable_shared
19555
19556 # Whether or not to build static libraries.
19557 build_old_libs=$enable_static
19558
19559 # Whether or not to add -lc for building shared libraries.
19560 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19561
19562 # Whether or not to disallow shared libs when runtime libs are static
19563 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19564
19565 # Whether or not to optimize for fast installation.
19566 fast_install=$enable_fast_install
19567
19568 # The host system.
19569 host_alias=$host_alias
19570 host=$host
19571 host_os=$host_os
19572
19573 # The build system.
19574 build_alias=$build_alias
19575 build=$build
19576 build_os=$build_os
19577
19578 # An echo program that does not interpret backslashes.
19579 echo=$lt_echo
19580
19581 # The archiver.
19582 AR=$lt_AR
19583 AR_FLAGS=$lt_AR_FLAGS
19584
19585 # A C compiler.
19586 LTCC=$lt_LTCC
19587
19588 # LTCC compiler flags.
19589 LTCFLAGS=$lt_LTCFLAGS
19590
19591 # A language-specific compiler.
19592 CC=$lt_compiler_GCJ
19593
19594 # Is the compiler the GNU C compiler?
19595 with_gcc=$GCC_GCJ
19596
19597 # An ERE matcher.
19598 EGREP=$lt_EGREP
19599
19600 # The linker used to build libraries.
19601 LD=$lt_LD_GCJ
19602
19603 # Whether we need hard or soft links.
19604 LN_S=$lt_LN_S
19605
19606 # A BSD-compatible nm program.
19607 NM=$lt_NM
19608
19609 # A symbol stripping program
19610 STRIP=$lt_STRIP
19611
19612 # Used to examine libraries when file_magic_cmd begins "file"
19613 MAGIC_CMD=$MAGIC_CMD
19614
19615 # Used on cygwin: DLL creation program.
19616 DLLTOOL="$DLLTOOL"
19617
19618 # Used on cygwin: object dumper.
19619 OBJDUMP="$OBJDUMP"
19620
19621 # Used on cygwin: assembler.
19622 AS="$AS"
19623
19624 # The name of the directory that contains temporary libtool files.
19625 objdir=$objdir
19626
19627 # How to create reloadable object files.
19628 reload_flag=$lt_reload_flag
19629 reload_cmds=$lt_reload_cmds
19630
19631 # How to pass a linker flag through the compiler.
19632 wl=$lt_lt_prog_compiler_wl_GCJ
19633
19634 # Object file suffix (normally "o").
19635 objext="$ac_objext"
19636
19637 # Old archive suffix (normally "a").
19638 libext="$libext"
19639
19640 # Shared library suffix (normally ".so").
19641 shrext_cmds='$shrext_cmds'
19642
19643 # Executable file suffix (normally "").
19644 exeext="$exeext"
19645
19646 # Additional compiler flags for building library objects.
19647 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19648 pic_mode=$pic_mode
19649
19650 # What is the maximum length of a command?
19651 max_cmd_len=$lt_cv_sys_max_cmd_len
19652
19653 # Does compiler simultaneously support -c and -o options?
19654 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19655
19656 # Must we lock files when doing compilation?
19657 need_locks=$lt_need_locks
19658
19659 # Do we need the lib prefix for modules?
19660 need_lib_prefix=$need_lib_prefix
19661
19662 # Do we need a version for libraries?
19663 need_version=$need_version
19664
19665 # Whether dlopen is supported.
19666 dlopen_support=$enable_dlopen
19667
19668 # Whether dlopen of programs is supported.
19669 dlopen_self=$enable_dlopen_self
19670
19671 # Whether dlopen of statically linked programs is supported.
19672 dlopen_self_static=$enable_dlopen_self_static
19673
19674 # Compiler flag to prevent dynamic linking.
19675 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19676
19677 # Compiler flag to turn off builtin functions.
19678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19679
19680 # Compiler flag to allow reflexive dlopens.
19681 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19682
19683 # Compiler flag to generate shared objects directly from archives.
19684 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19685
19686 # Compiler flag to generate thread-safe objects.
19687 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19688
19689 # Library versioning type.
19690 version_type=$version_type
19691
19692 # Format of library name prefix.
19693 libname_spec=$lt_libname_spec
19694
19695 # List of archive names.  First name is the real one, the rest are links.
19696 # The last name is the one that the linker finds with -lNAME.
19697 library_names_spec=$lt_library_names_spec
19698
19699 # The coded name of the library, if different from the real name.
19700 soname_spec=$lt_soname_spec
19701
19702 # Commands used to build and install an old-style archive.
19703 RANLIB=$lt_RANLIB
19704 old_archive_cmds=$lt_old_archive_cmds_GCJ
19705 old_postinstall_cmds=$lt_old_postinstall_cmds
19706 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19707
19708 # Create an old-style archive from a shared archive.
19709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19710
19711 # Create a temporary old-style archive to link instead of a shared archive.
19712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19713
19714 # Commands used to build and install a shared archive.
19715 archive_cmds=$lt_archive_cmds_GCJ
19716 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19717 postinstall_cmds=$lt_postinstall_cmds
19718 postuninstall_cmds=$lt_postuninstall_cmds
19719
19720 # Commands used to build a loadable module (assumed same as above if empty)
19721 module_cmds=$lt_module_cmds_GCJ
19722 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19723
19724 # Commands to strip libraries.
19725 old_striplib=$lt_old_striplib
19726 striplib=$lt_striplib
19727
19728 # Dependencies to place before the objects being linked to create a
19729 # shared library.
19730 predep_objects=$lt_predep_objects_GCJ
19731
19732 # Dependencies to place after the objects being linked to create a
19733 # shared library.
19734 postdep_objects=$lt_postdep_objects_GCJ
19735
19736 # Dependencies to place before the objects being linked to create a
19737 # shared library.
19738 predeps=$lt_predeps_GCJ
19739
19740 # Dependencies to place after the objects being linked to create a
19741 # shared library.
19742 postdeps=$lt_postdeps_GCJ
19743
19744 # The library search path used internally by the compiler when linking
19745 # a shared library.
19746 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19747
19748 # Method to check whether dependent libraries are shared objects.
19749 deplibs_check_method=$lt_deplibs_check_method
19750
19751 # Command to use when deplibs_check_method == file_magic.
19752 file_magic_cmd=$lt_file_magic_cmd
19753
19754 # Flag that allows shared libraries with undefined symbols to be built.
19755 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19756
19757 # Flag that forces no undefined symbols.
19758 no_undefined_flag=$lt_no_undefined_flag_GCJ
19759
19760 # Commands used to finish a libtool library installation in a directory.
19761 finish_cmds=$lt_finish_cmds
19762
19763 # Same as above, but a single script fragment to be evaled but not shown.
19764 finish_eval=$lt_finish_eval
19765
19766 # Take the output of nm and produce a listing of raw symbols and C names.
19767 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19768
19769 # Transform the output of nm in a proper C declaration
19770 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19771
19772 # Transform the output of nm in a C name address pair
19773 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19774
19775 # This is the shared library runtime path variable.
19776 runpath_var=$runpath_var
19777
19778 # This is the shared library path variable.
19779 shlibpath_var=$shlibpath_var
19780
19781 # Is shlibpath searched before the hard-coded library search path?
19782 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19783
19784 # How to hardcode a shared library path into an executable.
19785 hardcode_action=$hardcode_action_GCJ
19786
19787 # Whether we should hardcode library paths into libraries.
19788 hardcode_into_libs=$hardcode_into_libs
19789
19790 # Flag to hardcode \$libdir into a binary during linking.
19791 # This must work even if \$libdir does not exist.
19792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19793
19794 # If ld is used when linking, flag to hardcode \$libdir into
19795 # a binary during linking. This must work even if \$libdir does
19796 # not exist.
19797 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19798
19799 # Whether we need a single -rpath flag with a separated argument.
19800 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19801
19802 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19803 # resulting binary.
19804 hardcode_direct=$hardcode_direct_GCJ
19805
19806 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19807 # resulting binary.
19808 hardcode_minus_L=$hardcode_minus_L_GCJ
19809
19810 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19811 # the resulting binary.
19812 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19813
19814 # Set to yes if building a shared library automatically hardcodes DIR into the library
19815 # and all subsequent libraries and executables linked against it.
19816 hardcode_automatic=$hardcode_automatic_GCJ
19817
19818 # Variables whose values should be saved in libtool wrapper scripts and
19819 # restored at relink time.
19820 variables_saved_for_relink="$variables_saved_for_relink"
19821
19822 # Whether libtool must link a program against all its dependency libraries.
19823 link_all_deplibs=$link_all_deplibs_GCJ
19824
19825 # Compile-time system search path for libraries
19826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19827
19828 # Run-time system search path for libraries
19829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19830
19831 # Fix the shell variable \$srcfile for the compiler.
19832 fix_srcfile_path="$fix_srcfile_path_GCJ"
19833
19834 # Set to yes if exported symbols are required.
19835 always_export_symbols=$always_export_symbols_GCJ
19836
19837 # The commands to list exported symbols.
19838 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19839
19840 # The commands to extract the exported symbol list from a shared archive.
19841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19842
19843 # Symbols that should not be listed in the preloaded symbols.
19844 exclude_expsyms=$lt_exclude_expsyms_GCJ
19845
19846 # Symbols that must always be exported.
19847 include_expsyms=$lt_include_expsyms_GCJ
19848
19849 # ### END LIBTOOL TAG CONFIG: $tagname
19850
19851 __EOF__
19852
19853
19854 else
19855   # If there is no Makefile yet, we rely on a make rule to execute
19856   # `config.status --recheck' to rerun these tests and create the
19857   # libtool script then.
19858   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19859   if test -f "$ltmain_in"; then
19860     test -f Makefile && make "$ltmain"
19861   fi
19862 fi
19863
19864
19865 ac_ext=c
19866 ac_cpp='$CPP $CPPFLAGS'
19867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19870
19871 CC="$lt_save_CC"
19872
19873         else
19874           tagname=""
19875         fi
19876         ;;
19877
19878       RC)
19879
19880
19881 # Source file extension for RC test sources.
19882 ac_ext=rc
19883
19884 # Object file extension for compiled RC test sources.
19885 objext=o
19886 objext_RC=$objext
19887
19888 # Code to be used in simple compile tests
19889 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19890
19891 # Code to be used in simple link tests
19892 lt_simple_link_test_code="$lt_simple_compile_test_code"
19893
19894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19895
19896 # If no C compiler was specified, use CC.
19897 LTCC=${LTCC-"$CC"}
19898
19899 # If no C compiler flags were specified, use CFLAGS.
19900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19901
19902 # Allow CC to be a program name with arguments.
19903 compiler=$CC
19904
19905
19906 # save warnings/boilerplate of simple test code
19907 ac_outfile=conftest.$ac_objext
19908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19910 _lt_compiler_boilerplate=`cat conftest.err`
19911 $rm conftest*
19912
19913 ac_outfile=conftest.$ac_objext
19914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19916 _lt_linker_boilerplate=`cat conftest.err`
19917 $rm conftest*
19918
19919
19920 # Allow CC to be a program name with arguments.
19921 lt_save_CC="$CC"
19922 CC=${RC-"windres"}
19923 compiler=$CC
19924 compiler_RC=$CC
19925 for cc_temp in $compiler""; do
19926   case $cc_temp in
19927     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19928     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19929     \-*) ;;
19930     *) break;;
19931   esac
19932 done
19933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19934
19935 lt_cv_prog_compiler_c_o_RC=yes
19936
19937 # The else clause should only fire when bootstrapping the
19938 # libtool distribution, otherwise you forgot to ship ltmain.sh
19939 # with your package, and you will get complaints that there are
19940 # no rules to generate ltmain.sh.
19941 if test -f "$ltmain"; then
19942   # See if we are running on zsh, and set the options which allow our commands through
19943   # without removal of \ escapes.
19944   if test -n "${ZSH_VERSION+set}" ; then
19945     setopt NO_GLOB_SUBST
19946   fi
19947   # Now quote all the things that may contain metacharacters while being
19948   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19949   # variables and quote the copies for generation of the libtool script.
19950   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19951     SED SHELL STRIP \
19952     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19953     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19954     deplibs_check_method reload_flag reload_cmds need_locks \
19955     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19956     lt_cv_sys_global_symbol_to_c_name_address \
19957     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19958     old_postinstall_cmds old_postuninstall_cmds \
19959     compiler_RC \
19960     CC_RC \
19961     LD_RC \
19962     lt_prog_compiler_wl_RC \
19963     lt_prog_compiler_pic_RC \
19964     lt_prog_compiler_static_RC \
19965     lt_prog_compiler_no_builtin_flag_RC \
19966     export_dynamic_flag_spec_RC \
19967     thread_safe_flag_spec_RC \
19968     whole_archive_flag_spec_RC \
19969     enable_shared_with_static_runtimes_RC \
19970     old_archive_cmds_RC \
19971     old_archive_from_new_cmds_RC \
19972     predep_objects_RC \
19973     postdep_objects_RC \
19974     predeps_RC \
19975     postdeps_RC \
19976     compiler_lib_search_path_RC \
19977     archive_cmds_RC \
19978     archive_expsym_cmds_RC \
19979     postinstall_cmds_RC \
19980     postuninstall_cmds_RC \
19981     old_archive_from_expsyms_cmds_RC \
19982     allow_undefined_flag_RC \
19983     no_undefined_flag_RC \
19984     export_symbols_cmds_RC \
19985     hardcode_libdir_flag_spec_RC \
19986     hardcode_libdir_flag_spec_ld_RC \
19987     hardcode_libdir_separator_RC \
19988     hardcode_automatic_RC \
19989     module_cmds_RC \
19990     module_expsym_cmds_RC \
19991     lt_cv_prog_compiler_c_o_RC \
19992     exclude_expsyms_RC \
19993     include_expsyms_RC; do
19994
19995     case $var in
19996     old_archive_cmds_RC | \
19997     old_archive_from_new_cmds_RC | \
19998     archive_cmds_RC | \
19999     archive_expsym_cmds_RC | \
20000     module_cmds_RC | \
20001     module_expsym_cmds_RC | \
20002     old_archive_from_expsyms_cmds_RC | \
20003     export_symbols_cmds_RC | \
20004     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20005     postinstall_cmds | postuninstall_cmds | \
20006     old_postinstall_cmds | old_postuninstall_cmds | \
20007     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20008       # Double-quote double-evaled strings.
20009       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20010       ;;
20011     *)
20012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20013       ;;
20014     esac
20015   done
20016
20017   case $lt_echo in
20018   *'\$0 --fallback-echo"')
20019     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20020     ;;
20021   esac
20022
20023 cfgfile="$ofile"
20024
20025   cat <<__EOF__ >> "$cfgfile"
20026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20027
20028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20029
20030 # Shell to use when invoking shell scripts.
20031 SHELL=$lt_SHELL
20032
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20035
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20038
20039 # Whether or not to add -lc for building shared libraries.
20040 build_libtool_need_lc=$archive_cmds_need_lc_RC
20041
20042 # Whether or not to disallow shared libs when runtime libs are static
20043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20044
20045 # Whether or not to optimize for fast installation.
20046 fast_install=$enable_fast_install
20047
20048 # The host system.
20049 host_alias=$host_alias
20050 host=$host
20051 host_os=$host_os
20052
20053 # The build system.
20054 build_alias=$build_alias
20055 build=$build
20056 build_os=$build_os
20057
20058 # An echo program that does not interpret backslashes.
20059 echo=$lt_echo
20060
20061 # The archiver.
20062 AR=$lt_AR
20063 AR_FLAGS=$lt_AR_FLAGS
20064
20065 # A C compiler.
20066 LTCC=$lt_LTCC
20067
20068 # LTCC compiler flags.
20069 LTCFLAGS=$lt_LTCFLAGS
20070
20071 # A language-specific compiler.
20072 CC=$lt_compiler_RC
20073
20074 # Is the compiler the GNU C compiler?
20075 with_gcc=$GCC_RC
20076
20077 # An ERE matcher.
20078 EGREP=$lt_EGREP
20079
20080 # The linker used to build libraries.
20081 LD=$lt_LD_RC
20082
20083 # Whether we need hard or soft links.
20084 LN_S=$lt_LN_S
20085
20086 # A BSD-compatible nm program.
20087 NM=$lt_NM
20088
20089 # A symbol stripping program
20090 STRIP=$lt_STRIP
20091
20092 # Used to examine libraries when file_magic_cmd begins "file"
20093 MAGIC_CMD=$MAGIC_CMD
20094
20095 # Used on cygwin: DLL creation program.
20096 DLLTOOL="$DLLTOOL"
20097
20098 # Used on cygwin: object dumper.
20099 OBJDUMP="$OBJDUMP"
20100
20101 # Used on cygwin: assembler.
20102 AS="$AS"
20103
20104 # The name of the directory that contains temporary libtool files.
20105 objdir=$objdir
20106
20107 # How to create reloadable object files.
20108 reload_flag=$lt_reload_flag
20109 reload_cmds=$lt_reload_cmds
20110
20111 # How to pass a linker flag through the compiler.
20112 wl=$lt_lt_prog_compiler_wl_RC
20113
20114 # Object file suffix (normally "o").
20115 objext="$ac_objext"
20116
20117 # Old archive suffix (normally "a").
20118 libext="$libext"
20119
20120 # Shared library suffix (normally ".so").
20121 shrext_cmds='$shrext_cmds'
20122
20123 # Executable file suffix (normally "").
20124 exeext="$exeext"
20125
20126 # Additional compiler flags for building library objects.
20127 pic_flag=$lt_lt_prog_compiler_pic_RC
20128 pic_mode=$pic_mode
20129
20130 # What is the maximum length of a command?
20131 max_cmd_len=$lt_cv_sys_max_cmd_len
20132
20133 # Does compiler simultaneously support -c and -o options?
20134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20135
20136 # Must we lock files when doing compilation?
20137 need_locks=$lt_need_locks
20138
20139 # Do we need the lib prefix for modules?
20140 need_lib_prefix=$need_lib_prefix
20141
20142 # Do we need a version for libraries?
20143 need_version=$need_version
20144
20145 # Whether dlopen is supported.
20146 dlopen_support=$enable_dlopen
20147
20148 # Whether dlopen of programs is supported.
20149 dlopen_self=$enable_dlopen_self
20150
20151 # Whether dlopen of statically linked programs is supported.
20152 dlopen_self_static=$enable_dlopen_self_static
20153
20154 # Compiler flag to prevent dynamic linking.
20155 link_static_flag=$lt_lt_prog_compiler_static_RC
20156
20157 # Compiler flag to turn off builtin functions.
20158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20159
20160 # Compiler flag to allow reflexive dlopens.
20161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20162
20163 # Compiler flag to generate shared objects directly from archives.
20164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20165
20166 # Compiler flag to generate thread-safe objects.
20167 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20168
20169 # Library versioning type.
20170 version_type=$version_type
20171
20172 # Format of library name prefix.
20173 libname_spec=$lt_libname_spec
20174
20175 # List of archive names.  First name is the real one, the rest are links.
20176 # The last name is the one that the linker finds with -lNAME.
20177 library_names_spec=$lt_library_names_spec
20178
20179 # The coded name of the library, if different from the real name.
20180 soname_spec=$lt_soname_spec
20181
20182 # Commands used to build and install an old-style archive.
20183 RANLIB=$lt_RANLIB
20184 old_archive_cmds=$lt_old_archive_cmds_RC
20185 old_postinstall_cmds=$lt_old_postinstall_cmds
20186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20187
20188 # Create an old-style archive from a shared archive.
20189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20190
20191 # Create a temporary old-style archive to link instead of a shared archive.
20192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20193
20194 # Commands used to build and install a shared archive.
20195 archive_cmds=$lt_archive_cmds_RC
20196 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20197 postinstall_cmds=$lt_postinstall_cmds
20198 postuninstall_cmds=$lt_postuninstall_cmds
20199
20200 # Commands used to build a loadable module (assumed same as above if empty)
20201 module_cmds=$lt_module_cmds_RC
20202 module_expsym_cmds=$lt_module_expsym_cmds_RC
20203
20204 # Commands to strip libraries.
20205 old_striplib=$lt_old_striplib
20206 striplib=$lt_striplib
20207
20208 # Dependencies to place before the objects being linked to create a
20209 # shared library.
20210 predep_objects=$lt_predep_objects_RC
20211
20212 # Dependencies to place after the objects being linked to create a
20213 # shared library.
20214 postdep_objects=$lt_postdep_objects_RC
20215
20216 # Dependencies to place before the objects being linked to create a
20217 # shared library.
20218 predeps=$lt_predeps_RC
20219
20220 # Dependencies to place after the objects being linked to create a
20221 # shared library.
20222 postdeps=$lt_postdeps_RC
20223
20224 # The library search path used internally by the compiler when linking
20225 # a shared library.
20226 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20227
20228 # Method to check whether dependent libraries are shared objects.
20229 deplibs_check_method=$lt_deplibs_check_method
20230
20231 # Command to use when deplibs_check_method == file_magic.
20232 file_magic_cmd=$lt_file_magic_cmd
20233
20234 # Flag that allows shared libraries with undefined symbols to be built.
20235 allow_undefined_flag=$lt_allow_undefined_flag_RC
20236
20237 # Flag that forces no undefined symbols.
20238 no_undefined_flag=$lt_no_undefined_flag_RC
20239
20240 # Commands used to finish a libtool library installation in a directory.
20241 finish_cmds=$lt_finish_cmds
20242
20243 # Same as above, but a single script fragment to be evaled but not shown.
20244 finish_eval=$lt_finish_eval
20245
20246 # Take the output of nm and produce a listing of raw symbols and C names.
20247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20248
20249 # Transform the output of nm in a proper C declaration
20250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20251
20252 # Transform the output of nm in a C name address pair
20253 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20254
20255 # This is the shared library runtime path variable.
20256 runpath_var=$runpath_var
20257
20258 # This is the shared library path variable.
20259 shlibpath_var=$shlibpath_var
20260
20261 # Is shlibpath searched before the hard-coded library search path?
20262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20263
20264 # How to hardcode a shared library path into an executable.
20265 hardcode_action=$hardcode_action_RC
20266
20267 # Whether we should hardcode library paths into libraries.
20268 hardcode_into_libs=$hardcode_into_libs
20269
20270 # Flag to hardcode \$libdir into a binary during linking.
20271 # This must work even if \$libdir does not exist.
20272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20273
20274 # If ld is used when linking, flag to hardcode \$libdir into
20275 # a binary during linking. This must work even if \$libdir does
20276 # not exist.
20277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20278
20279 # Whether we need a single -rpath flag with a separated argument.
20280 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20281
20282 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20283 # resulting binary.
20284 hardcode_direct=$hardcode_direct_RC
20285
20286 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20287 # resulting binary.
20288 hardcode_minus_L=$hardcode_minus_L_RC
20289
20290 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20291 # the resulting binary.
20292 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20293
20294 # Set to yes if building a shared library automatically hardcodes DIR into the library
20295 # and all subsequent libraries and executables linked against it.
20296 hardcode_automatic=$hardcode_automatic_RC
20297
20298 # Variables whose values should be saved in libtool wrapper scripts and
20299 # restored at relink time.
20300 variables_saved_for_relink="$variables_saved_for_relink"
20301
20302 # Whether libtool must link a program against all its dependency libraries.
20303 link_all_deplibs=$link_all_deplibs_RC
20304
20305 # Compile-time system search path for libraries
20306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20307
20308 # Run-time system search path for libraries
20309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20310
20311 # Fix the shell variable \$srcfile for the compiler.
20312 fix_srcfile_path="$fix_srcfile_path_RC"
20313
20314 # Set to yes if exported symbols are required.
20315 always_export_symbols=$always_export_symbols_RC
20316
20317 # The commands to list exported symbols.
20318 export_symbols_cmds=$lt_export_symbols_cmds_RC
20319
20320 # The commands to extract the exported symbol list from a shared archive.
20321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20322
20323 # Symbols that should not be listed in the preloaded symbols.
20324 exclude_expsyms=$lt_exclude_expsyms_RC
20325
20326 # Symbols that must always be exported.
20327 include_expsyms=$lt_include_expsyms_RC
20328
20329 # ### END LIBTOOL TAG CONFIG: $tagname
20330
20331 __EOF__
20332
20333
20334 else
20335   # If there is no Makefile yet, we rely on a make rule to execute
20336   # `config.status --recheck' to rerun these tests and create the
20337   # libtool script then.
20338   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20339   if test -f "$ltmain_in"; then
20340     test -f Makefile && make "$ltmain"
20341   fi
20342 fi
20343
20344
20345 ac_ext=c
20346 ac_cpp='$CPP $CPPFLAGS'
20347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20350
20351 CC="$lt_save_CC"
20352
20353         ;;
20354
20355       *)
20356         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20357 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20358    { (exit 1); exit 1; }; }
20359         ;;
20360       esac
20361
20362       # Append the new tag name to the list of available tags.
20363       if test -n "$tagname" ; then
20364       available_tags="$available_tags $tagname"
20365     fi
20366     fi
20367   done
20368   IFS="$lt_save_ifs"
20369
20370   # Now substitute the updated list of available tags.
20371   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20372     mv "${ofile}T" "$ofile"
20373     chmod +x "$ofile"
20374   else
20375     rm -f "${ofile}T"
20376     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20377 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20378    { (exit 1); exit 1; }; }
20379   fi
20380 fi
20381
20382
20383
20384 # This can be used to rebuild libtool when needed
20385 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20386
20387 # Always use our own libtool.
20388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20389
20390 # Prevent multiple expansion
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412 if test "x$cross_compiling" = "xno"; then
20413         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20414 else
20415         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20416 fi
20417
20418
20419
20420 if test -n "$ac_tool_prefix"; then
20421   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20422 set dummy ${ac_tool_prefix}ar; ac_word=$2
20423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20425 if test "${ac_cv_prog_AR+set}" = set; then
20426   echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428   if test -n "$AR"; then
20429   ac_cv_prog_AR="$AR" # Let the user override the test.
20430 else
20431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432 for as_dir in $PATH
20433 do
20434   IFS=$as_save_IFS
20435   test -z "$as_dir" && as_dir=.
20436   for ac_exec_ext in '' $ac_executable_extensions; do
20437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20438     ac_cv_prog_AR="${ac_tool_prefix}ar"
20439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20440     break 2
20441   fi
20442 done
20443 done
20444 IFS=$as_save_IFS
20445
20446 fi
20447 fi
20448 AR=$ac_cv_prog_AR
20449 if test -n "$AR"; then
20450   { echo "$as_me:$LINENO: result: $AR" >&5
20451 echo "${ECHO_T}$AR" >&6; }
20452 else
20453   { echo "$as_me:$LINENO: result: no" >&5
20454 echo "${ECHO_T}no" >&6; }
20455 fi
20456
20457
20458 fi
20459 if test -z "$ac_cv_prog_AR"; then
20460   ac_ct_AR=$AR
20461   # Extract the first word of "ar", so it can be a program name with args.
20462 set dummy ar; ac_word=$2
20463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20465 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   if test -n "$ac_ct_AR"; then
20469   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20470 else
20471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20472 for as_dir in $PATH
20473 do
20474   IFS=$as_save_IFS
20475   test -z "$as_dir" && as_dir=.
20476   for ac_exec_ext in '' $ac_executable_extensions; do
20477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20478     ac_cv_prog_ac_ct_AR="ar"
20479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20480     break 2
20481   fi
20482 done
20483 done
20484 IFS=$as_save_IFS
20485
20486 fi
20487 fi
20488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20489 if test -n "$ac_ct_AR"; then
20490   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20491 echo "${ECHO_T}$ac_ct_AR" >&6; }
20492 else
20493   { echo "$as_me:$LINENO: result: no" >&5
20494 echo "${ECHO_T}no" >&6; }
20495 fi
20496
20497   if test "x$ac_ct_AR" = x; then
20498     AR=""
20499   else
20500     case $cross_compiling:$ac_tool_warned in
20501 yes:)
20502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20503 whose name does not start with the host triplet.  If you think this
20504 configuration is useful to you, please write to autoconf@gnu.org." >&5
20505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20506 whose name does not start with the host triplet.  If you think this
20507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20508 ac_tool_warned=yes ;;
20509 esac
20510     AR=$ac_ct_AR
20511   fi
20512 else
20513   AR="$ac_cv_prog_AR"
20514 fi
20515
20516 if test -n "$ac_tool_prefix"; then
20517   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20518 set dummy ${ac_tool_prefix}ld; ac_word=$2
20519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20521 if test "${ac_cv_prog_LD+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   if test -n "$LD"; then
20525   ac_cv_prog_LD="$LD" # Let the user override the test.
20526 else
20527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20528 for as_dir in $PATH
20529 do
20530   IFS=$as_save_IFS
20531   test -z "$as_dir" && as_dir=.
20532   for ac_exec_ext in '' $ac_executable_extensions; do
20533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534     ac_cv_prog_LD="${ac_tool_prefix}ld"
20535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20536     break 2
20537   fi
20538 done
20539 done
20540 IFS=$as_save_IFS
20541
20542 fi
20543 fi
20544 LD=$ac_cv_prog_LD
20545 if test -n "$LD"; then
20546   { echo "$as_me:$LINENO: result: $LD" >&5
20547 echo "${ECHO_T}$LD" >&6; }
20548 else
20549   { echo "$as_me:$LINENO: result: no" >&5
20550 echo "${ECHO_T}no" >&6; }
20551 fi
20552
20553
20554 fi
20555 if test -z "$ac_cv_prog_LD"; then
20556   ac_ct_LD=$LD
20557   # Extract the first word of "ld", so it can be a program name with args.
20558 set dummy ld; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   if test -n "$ac_ct_LD"; then
20565   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20566 else
20567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568 for as_dir in $PATH
20569 do
20570   IFS=$as_save_IFS
20571   test -z "$as_dir" && as_dir=.
20572   for ac_exec_ext in '' $ac_executable_extensions; do
20573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20574     ac_cv_prog_ac_ct_LD="ld"
20575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20576     break 2
20577   fi
20578 done
20579 done
20580 IFS=$as_save_IFS
20581
20582 fi
20583 fi
20584 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20585 if test -n "$ac_ct_LD"; then
20586   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20587 echo "${ECHO_T}$ac_ct_LD" >&6; }
20588 else
20589   { echo "$as_me:$LINENO: result: no" >&5
20590 echo "${ECHO_T}no" >&6; }
20591 fi
20592
20593   if test "x$ac_ct_LD" = x; then
20594     LD=""
20595   else
20596     case $cross_compiling:$ac_tool_warned in
20597 yes:)
20598 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20599 whose name does not start with the host triplet.  If you think this
20600 configuration is useful to you, please write to autoconf@gnu.org." >&5
20601 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20602 whose name does not start with the host triplet.  If you think this
20603 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20604 ac_tool_warned=yes ;;
20605 esac
20606     LD=$ac_ct_LD
20607   fi
20608 else
20609   LD="$ac_cv_prog_LD"
20610 fi
20611
20612
20613 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20614 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20615 if test "${ac_cv_header_stdc+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624 #include <stdlib.h>
20625 #include <stdarg.h>
20626 #include <string.h>
20627 #include <float.h>
20628
20629 int
20630 main ()
20631 {
20632
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_compile") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } && {
20651          test -z "$ac_c_werror_flag" ||
20652          test ! -s conftest.err
20653        } && test -s conftest.$ac_objext; then
20654   ac_cv_header_stdc=yes
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659         ac_cv_header_stdc=no
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663
20664 if test $ac_cv_header_stdc = yes; then
20665   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20666   cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 #include <string.h>
20673
20674 _ACEOF
20675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20676   $EGREP "memchr" >/dev/null 2>&1; then
20677   :
20678 else
20679   ac_cv_header_stdc=no
20680 fi
20681 rm -f conftest*
20682
20683 fi
20684
20685 if test $ac_cv_header_stdc = yes; then
20686   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20687   cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693 #include <stdlib.h>
20694
20695 _ACEOF
20696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20697   $EGREP "free" >/dev/null 2>&1; then
20698   :
20699 else
20700   ac_cv_header_stdc=no
20701 fi
20702 rm -f conftest*
20703
20704 fi
20705
20706 if test $ac_cv_header_stdc = yes; then
20707   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20708   if test "$cross_compiling" = yes; then
20709   :
20710 else
20711   cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h.  */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h.  */
20717 #include <ctype.h>
20718 #include <stdlib.h>
20719 #if ((' ' & 0x0FF) == 0x020)
20720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20722 #else
20723 # define ISLOWER(c) \
20724                    (('a' <= (c) && (c) <= 'i') \
20725                      || ('j' <= (c) && (c) <= 'r') \
20726                      || ('s' <= (c) && (c) <= 'z'))
20727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20728 #endif
20729
20730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20731 int
20732 main ()
20733 {
20734   int i;
20735   for (i = 0; i < 256; i++)
20736     if (XOR (islower (i), ISLOWER (i))
20737         || toupper (i) != TOUPPER (i))
20738       return 2;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_link") 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753   { (case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_try") 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; }; then
20762   :
20763 else
20764   echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 ( exit $ac_status )
20769 ac_cv_header_stdc=no
20770 fi
20771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20772 fi
20773
20774
20775 fi
20776 fi
20777 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20778 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20779 if test $ac_cv_header_stdc = yes; then
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define STDC_HEADERS 1
20783 _ACEOF
20784
20785 fi
20786
20787
20788   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20789 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20790   if test "${knfsd_cv_glibc2+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799
20800       #include <features.h>
20801       #if !defined(__GLIBC__)
20802       # error Nope
20803       #endif
20804
20805 _ACEOF
20806 if { (ac_try="$ac_cpp conftest.$ac_ext"
20807 case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20813   ac_status=$?
20814   grep -v '^ *+' conftest.er1 >conftest.err
20815   rm -f conftest.er1
20816   cat conftest.err >&5
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); } >/dev/null && {
20819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20820          test ! -s conftest.err
20821        }; then
20822   knfsd_cv_glibc2=yes
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827   knfsd_cv_glibc2=no
20828 fi
20829
20830 rm -f conftest.err conftest.$ac_ext
20831 fi
20832
20833   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20834 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20835   if test $knfsd_cv_glibc2 = yes; then
20836     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20837     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20838   fi
20839
20840
20841   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20842 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20843   if test "${knfsd_cv_bsd_signals+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846   if test "$cross_compiling" = yes; then
20847
20848       case "$host_os" in
20849         *linux*) knfsd_cv_bsd_signals=no;;
20850         *bsd*)   knfsd_cv_bsd_signals=yes;;
20851         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
20852 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
20853    { (exit 1); exit 1; }; };;
20854       esac
20855
20856 else
20857   cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863
20864         #include <signal.h>
20865         #include <unistd.h>
20866         #include <sys/wait.h>
20867
20868         static int counter = 0;
20869         static RETSIGTYPE handler(int num) { counter++; }
20870
20871         int main()
20872         {
20873                 int     s;
20874                 if ((s = fork()) < 0) return 1;
20875                 if (s != 0) {
20876                         if (wait(&s) < 0) return 1;
20877                         return WIFSIGNALED(s)? 1 : 0;
20878                 }
20879
20880                 signal(SIGHUP, handler);
20881                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20882                 return (counter == 2)? 0 : 1;
20883         }
20884
20885 _ACEOF
20886 rm -f conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_link") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   knfsd_cv_bsd_signals=yes
20907 else
20908   echo "$as_me: program exited with status $ac_status" >&5
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 ( exit $ac_status )
20913 knfsd_cv_bsd_signals=no
20914 fi
20915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20916 fi
20917
20918
20919 fi
20920      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20921 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20922     test $knfsd_cv_bsd_signals = yes &&
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_BSD_SIGNALS 1
20925 _ACEOF
20926
20927
20928
20929 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20930 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20931 if test "${ac_cv_func_gethostbyname+set}" = set; then
20932   echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934   cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20942 #define gethostbyname innocuous_gethostbyname
20943
20944 /* System header to define __stub macros and hopefully few prototypes,
20945     which can conflict with char gethostbyname (); below.
20946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947     <limits.h> exists even on freestanding compilers.  */
20948
20949 #ifdef __STDC__
20950 # include <limits.h>
20951 #else
20952 # include <assert.h>
20953 #endif
20954
20955 #undef gethostbyname
20956
20957 /* Override any GCC internal prototype to avoid an error.
20958    Use char because int might match the return type of a GCC
20959    builtin and then its argument prototype would still apply.  */
20960 #ifdef __cplusplus
20961 extern "C"
20962 #endif
20963 char gethostbyname ();
20964 /* The GNU C library defines this for functions which it implements
20965     to always fail with ENOSYS.  Some functions are actually named
20966     something starting with __ and the normal name is an alias.  */
20967 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20968 choke me
20969 #endif
20970
20971 int
20972 main ()
20973 {
20974 return gethostbyname ();
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext conftest$ac_exeext
20980 if { (ac_try="$ac_link"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_link") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } && {
20993          test -z "$ac_c_werror_flag" ||
20994          test ! -s conftest.err
20995        } && test -s conftest$ac_exeext &&
20996        $as_test_x conftest$ac_exeext; then
20997   ac_cv_func_gethostbyname=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_cv_func_gethostbyname=no
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21006       conftest$ac_exeext conftest.$ac_ext
21007 fi
21008 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21009 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21010 if test $ac_cv_func_gethostbyname = yes; then
21011   :
21012 else
21013   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21014 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21015 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   ac_check_lib_save_LIBS=$LIBS
21019 LIBS="-lnsl  $LIBS"
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026
21027 /* Override any GCC internal prototype to avoid an error.
21028    Use char because int might match the return type of a GCC
21029    builtin and then its argument prototype would still apply.  */
21030 #ifdef __cplusplus
21031 extern "C"
21032 #endif
21033 char gethostbyname ();
21034 int
21035 main ()
21036 {
21037 return gethostbyname ();
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_link") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest$ac_exeext &&
21059        $as_test_x conftest$ac_exeext; then
21060   ac_cv_lib_nsl_gethostbyname=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         ac_cv_lib_nsl_gethostbyname=no
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069       conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21071 fi
21072 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21075   LIBNSL="-lnsl"
21076 fi
21077
21078 fi
21079
21080
21081
21082 { echo "$as_me:$LINENO: checking for connect" >&5
21083 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21084 if test "${ac_cv_func_connect+set}" = set; then
21085   echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21095 #define connect innocuous_connect
21096
21097 /* System header to define __stub macros and hopefully few prototypes,
21098     which can conflict with char connect (); below.
21099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100     <limits.h> exists even on freestanding compilers.  */
21101
21102 #ifdef __STDC__
21103 # include <limits.h>
21104 #else
21105 # include <assert.h>
21106 #endif
21107
21108 #undef connect
21109
21110 /* Override any GCC internal prototype to avoid an error.
21111    Use char because int might match the return type of a GCC
21112    builtin and then its argument prototype would still apply.  */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char connect ();
21117 /* The GNU C library defines this for functions which it implements
21118     to always fail with ENOSYS.  Some functions are actually named
21119     something starting with __ and the normal name is an alias.  */
21120 #if defined __stub_connect || defined __stub___connect
21121 choke me
21122 #endif
21123
21124 int
21125 main ()
21126 {
21127 return connect ();
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_link") 2>conftest.er1
21140   ac_status=$?
21141   grep -v '^ *+' conftest.er1 >conftest.err
21142   rm -f conftest.er1
21143   cat conftest.err >&5
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } && {
21146          test -z "$ac_c_werror_flag" ||
21147          test ! -s conftest.err
21148        } && test -s conftest$ac_exeext &&
21149        $as_test_x conftest$ac_exeext; then
21150   ac_cv_func_connect=yes
21151 else
21152   echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155         ac_cv_func_connect=no
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159       conftest$ac_exeext conftest.$ac_ext
21160 fi
21161 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21162 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21163 if test $ac_cv_func_connect = yes; then
21164   :
21165 else
21166   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21167 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21168 if test "${ac_cv_lib_socket_connect+set}" = set; then
21169   echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171   ac_check_lib_save_LIBS=$LIBS
21172 LIBS="-lsocket $LIBNSL $LIBS"
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179
21180 /* Override any GCC internal prototype to avoid an error.
21181    Use char because int might match the return type of a GCC
21182    builtin and then its argument prototype would still apply.  */
21183 #ifdef __cplusplus
21184 extern "C"
21185 #endif
21186 char connect ();
21187 int
21188 main ()
21189 {
21190 return connect ();
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_link") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest$ac_exeext &&
21212        $as_test_x conftest$ac_exeext; then
21213   ac_cv_lib_socket_connect=yes
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218         ac_cv_lib_socket_connect=no
21219 fi
21220
21221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21222       conftest$ac_exeext conftest.$ac_ext
21223 LIBS=$ac_check_lib_save_LIBS
21224 fi
21225 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21226 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21227 if test $ac_cv_lib_socket_connect = yes; then
21228   LIBSOCKET="-lsocket"
21229 else
21230   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21231 echo "$as_me: error: Function 'socket' not found." >&2;}
21232    { (exit 1); exit 1; }; }
21233 fi
21234
21235 fi
21236
21237
21238 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21239 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21240 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   ac_check_lib_save_LIBS=$LIBS
21244 LIBS="-lcrypt  $LIBS"
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251
21252 /* Override any GCC internal prototype to avoid an error.
21253    Use char because int might match the return type of a GCC
21254    builtin and then its argument prototype would still apply.  */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char crypt ();
21259 int
21260 main ()
21261 {
21262 return crypt ();
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (ac_try="$ac_link"
21269 case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274   (eval "$ac_link") 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } && {
21281          test -z "$ac_c_werror_flag" ||
21282          test ! -s conftest.err
21283        } && test -s conftest$ac_exeext &&
21284        $as_test_x conftest$ac_exeext; then
21285   ac_cv_lib_crypt_crypt=yes
21286 else
21287   echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290         ac_cv_lib_crypt_crypt=no
21291 fi
21292
21293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21294       conftest$ac_exeext conftest.$ac_ext
21295 LIBS=$ac_check_lib_save_LIBS
21296 fi
21297 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21298 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21299 if test $ac_cv_lib_crypt_crypt = yes; then
21300   LIBCRYPT="-lcrypt"
21301 fi
21302
21303 if test "$enable_nfsv4" = yes; then
21304     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21305 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21306 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21307   echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309   ac_check_lib_save_LIBS=$LIBS
21310 LIBS="-levent  $LIBS"
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h.  */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h.  */
21317
21318 /* Override any GCC internal prototype to avoid an error.
21319    Use char because int might match the return type of a GCC
21320    builtin and then its argument prototype would still apply.  */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char event_dispatch ();
21325 int
21326 main ()
21327 {
21328 return event_dispatch ();
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext conftest$ac_exeext
21334 if { (ac_try="$ac_link"
21335 case "(($ac_try" in
21336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337   *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340   (eval "$ac_link") 2>conftest.er1
21341   ac_status=$?
21342   grep -v '^ *+' conftest.er1 >conftest.err
21343   rm -f conftest.er1
21344   cat conftest.err >&5
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } && {
21347          test -z "$ac_c_werror_flag" ||
21348          test ! -s conftest.err
21349        } && test -s conftest$ac_exeext &&
21350        $as_test_x conftest$ac_exeext; then
21351   ac_cv_lib_event_event_dispatch=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         ac_cv_lib_event_event_dispatch=no
21357 fi
21358
21359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21360       conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21362 fi
21363 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21364 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21365 if test $ac_cv_lib_event_event_dispatch = yes; then
21366   libevent=1
21367 else
21368   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21369 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21370    { (exit 1); exit 1; }; }
21371 fi
21372
21373     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21374 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21375 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   ac_check_lib_save_LIBS=$LIBS
21379 LIBS="-lnfsidmap  $LIBS"
21380 cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386
21387 /* Override any GCC internal prototype to avoid an error.
21388    Use char because int might match the return type of a GCC
21389    builtin and then its argument prototype would still apply.  */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 char nfs4_init_name_mapping ();
21394 int
21395 main ()
21396 {
21397 return nfs4_init_name_mapping ();
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_link") 2>conftest.er1
21410   ac_status=$?
21411   grep -v '^ *+' conftest.er1 >conftest.err
21412   rm -f conftest.er1
21413   cat conftest.err >&5
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); } && {
21416          test -z "$ac_c_werror_flag" ||
21417          test ! -s conftest.err
21418        } && test -s conftest$ac_exeext &&
21419        $as_test_x conftest$ac_exeext; then
21420   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21426 fi
21427
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429       conftest$ac_exeext conftest.$ac_ext
21430 LIBS=$ac_check_lib_save_LIBS
21431 fi
21432 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21433 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21434 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21435   libnfsidmap=1
21436 else
21437   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21438 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21439    { (exit 1); exit 1; }; }
21440 fi
21441
21442
21443 for ac_header in event.h
21444 do
21445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21447   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21450   echo $ECHO_N "(cached) $ECHO_C" >&6
21451 fi
21452 ac_res=`eval echo '${'$as_ac_Header'}'`
21453                { echo "$as_me:$LINENO: result: $ac_res" >&5
21454 echo "${ECHO_T}$ac_res" >&6; }
21455 else
21456   # Is the header compilable?
21457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 $ac_includes_default
21466 #include <$ac_header>
21467 _ACEOF
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_compile") 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } && {
21482          test -z "$ac_c_werror_flag" ||
21483          test ! -s conftest.err
21484        } && test -s conftest.$ac_objext; then
21485   ac_header_compiler=yes
21486 else
21487   echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490         ac_header_compiler=no
21491 fi
21492
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21495 echo "${ECHO_T}$ac_header_compiler" >&6; }
21496
21497 # Is the header present?
21498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 #include <$ac_header>
21507 _ACEOF
21508 if { (ac_try="$ac_cpp conftest.$ac_ext"
21509 case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21515   ac_status=$?
21516   grep -v '^ *+' conftest.er1 >conftest.err
21517   rm -f conftest.er1
21518   cat conftest.err >&5
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } >/dev/null && {
21521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21522          test ! -s conftest.err
21523        }; then
21524   ac_header_preproc=yes
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529   ac_header_preproc=no
21530 fi
21531
21532 rm -f conftest.err conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21534 echo "${ECHO_T}$ac_header_preproc" >&6; }
21535
21536 # So?  What about this header?
21537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21538   yes:no: )
21539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21543     ac_header_preproc=yes
21544     ;;
21545   no:yes:* )
21546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21558     ( cat <<\_ASBOX
21559 ## ------------------------------- ##
21560 ## Report this to nfs@lists.sf.net ##
21561 ## ------------------------------- ##
21562 _ASBOX
21563      ) | sed "s/^/$as_me: WARNING:     /" >&2
21564     ;;
21565 esac
21566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   eval "$as_ac_Header=\$ac_header_preproc"
21572 fi
21573 ac_res=`eval echo '${'$as_ac_Header'}'`
21574                { echo "$as_me:$LINENO: result: $ac_res" >&5
21575 echo "${ECHO_T}$ac_res" >&6; }
21576
21577 fi
21578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21579   cat >>confdefs.h <<_ACEOF
21580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21581 _ACEOF
21582
21583 else
21584   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21585 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21586    { (exit 1); exit 1; }; }
21587 fi
21588
21589 done
21590
21591
21592 for ac_header in nfsidmap.h
21593 do
21594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21596   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21599   echo $ECHO_N "(cached) $ECHO_C" >&6
21600 fi
21601 ac_res=`eval echo '${'$as_ac_Header'}'`
21602                { echo "$as_me:$LINENO: result: $ac_res" >&5
21603 echo "${ECHO_T}$ac_res" >&6; }
21604 else
21605   # Is the header compilable?
21606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 $ac_includes_default
21615 #include <$ac_header>
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_compile") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest.$ac_objext; then
21634   ac_header_compiler=yes
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         ac_header_compiler=no
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21644 echo "${ECHO_T}$ac_header_compiler" >&6; }
21645
21646 # Is the header present?
21647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h.  */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h.  */
21655 #include <$ac_header>
21656 _ACEOF
21657 if { (ac_try="$ac_cpp conftest.$ac_ext"
21658 case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21664   ac_status=$?
21665   grep -v '^ *+' conftest.er1 >conftest.err
21666   rm -f conftest.er1
21667   cat conftest.err >&5
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } >/dev/null && {
21670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21671          test ! -s conftest.err
21672        }; then
21673   ac_header_preproc=yes
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678   ac_header_preproc=no
21679 fi
21680
21681 rm -f conftest.err conftest.$ac_ext
21682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21683 echo "${ECHO_T}$ac_header_preproc" >&6; }
21684
21685 # So?  What about this header?
21686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21687   yes:no: )
21688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21692     ac_header_preproc=yes
21693     ;;
21694   no:yes:* )
21695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21707     ( cat <<\_ASBOX
21708 ## ------------------------------- ##
21709 ## Report this to nfs@lists.sf.net ##
21710 ## ------------------------------- ##
21711 _ASBOX
21712      ) | sed "s/^/$as_me: WARNING:     /" >&2
21713     ;;
21714 esac
21715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718   echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720   eval "$as_ac_Header=\$ac_header_preproc"
21721 fi
21722 ac_res=`eval echo '${'$as_ac_Header'}'`
21723                { echo "$as_me:$LINENO: result: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21725
21726 fi
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728   cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730 _ACEOF
21731
21732 else
21733   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21734 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21735    { (exit 1); exit 1; }; }
21736 fi
21737
21738 done
21739
21740             if test "$enable_gss" = yes; then
21741
21742
21743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21744         if test -n "$ac_tool_prefix"; then
21745   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752   case $PKG_CONFIG in
21753   [\\/]* | ?:[\\/]*)
21754   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21755   ;;
21756   *)
21757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21759 do
21760   IFS=$as_save_IFS
21761   test -z "$as_dir" && as_dir=.
21762   for ac_exec_ext in '' $ac_executable_extensions; do
21763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21764     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21766     break 2
21767   fi
21768 done
21769 done
21770 IFS=$as_save_IFS
21771
21772   ;;
21773 esac
21774 fi
21775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21776 if test -n "$PKG_CONFIG"; then
21777   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21778 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21779 else
21780   { echo "$as_me:$LINENO: result: no" >&5
21781 echo "${ECHO_T}no" >&6; }
21782 fi
21783
21784
21785 fi
21786 if test -z "$ac_cv_path_PKG_CONFIG"; then
21787   ac_pt_PKG_CONFIG=$PKG_CONFIG
21788   # Extract the first word of "pkg-config", so it can be a program name with args.
21789 set dummy pkg-config; ac_word=$2
21790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21792 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21793   echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795   case $ac_pt_PKG_CONFIG in
21796   [\\/]* | ?:[\\/]*)
21797   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21798   ;;
21799   *)
21800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21802 do
21803   IFS=$as_save_IFS
21804   test -z "$as_dir" && as_dir=.
21805   for ac_exec_ext in '' $ac_executable_extensions; do
21806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21809     break 2
21810   fi
21811 done
21812 done
21813 IFS=$as_save_IFS
21814
21815   ;;
21816 esac
21817 fi
21818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21819 if test -n "$ac_pt_PKG_CONFIG"; then
21820   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21821 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21822 else
21823   { echo "$as_me:$LINENO: result: no" >&5
21824 echo "${ECHO_T}no" >&6; }
21825 fi
21826
21827   if test "x$ac_pt_PKG_CONFIG" = x; then
21828     PKG_CONFIG=""
21829   else
21830     case $cross_compiling:$ac_tool_warned in
21831 yes:)
21832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21833 whose name does not start with the host triplet.  If you think this
21834 configuration is useful to you, please write to autoconf@gnu.org." >&5
21835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21836 whose name does not start with the host triplet.  If you think this
21837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21838 ac_tool_warned=yes ;;
21839 esac
21840     PKG_CONFIG=$ac_pt_PKG_CONFIG
21841   fi
21842 else
21843   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21844 fi
21845
21846 fi
21847 if test -n "$PKG_CONFIG"; then
21848         _pkg_min_version=0.9.0
21849         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21850 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21851         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21852                 { echo "$as_me:$LINENO: result: yes" >&5
21853 echo "${ECHO_T}yes" >&6; }
21854         else
21855                 { echo "$as_me:$LINENO: result: no" >&5
21856 echo "${ECHO_T}no" >&6; }
21857                 PKG_CONFIG=""
21858         fi
21859
21860 fi
21861
21862 pkg_failed=no
21863 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21864 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21865
21866 if test -n "$PKG_CONFIG"; then
21867     if test -n "$RPCSECGSS_CFLAGS"; then
21868         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21869     else
21870         if test -n "$PKG_CONFIG" && \
21871     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21872   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; then
21876   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21877 else
21878   pkg_failed=yes
21879 fi
21880     fi
21881 else
21882         pkg_failed=untried
21883 fi
21884 if test -n "$PKG_CONFIG"; then
21885     if test -n "$RPCSECGSS_LIBS"; then
21886         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21887     else
21888         if test -n "$PKG_CONFIG" && \
21889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21890   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; then
21894   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21895 else
21896   pkg_failed=yes
21897 fi
21898     fi
21899 else
21900         pkg_failed=untried
21901 fi
21902
21903
21904
21905 if test $pkg_failed = yes; then
21906
21907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21908         _pkg_short_errors_supported=yes
21909 else
21910         _pkg_short_errors_supported=no
21911 fi
21912         if test $_pkg_short_errors_supported = yes; then
21913                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21914         else
21915                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21916         fi
21917         # Put the nasty error message in config.log where it belongs
21918         echo "$RPCSECGSS_PKG_ERRORS" >&5
21919
21920         { echo "$as_me:$LINENO: result: no" >&5
21921 echo "${ECHO_T}no" >&6; }
21922                 { { 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
21923 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;}
21924    { (exit 1); exit 1; }; }
21925
21926
21927 elif test $pkg_failed = untried; then
21928         { { 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
21929 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;}
21930    { (exit 1); exit 1; }; }
21931
21932
21933 else
21934         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21935         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21936         { echo "$as_me:$LINENO: result: yes" >&5
21937 echo "${ECHO_T}yes" >&6; }
21938         :
21939 fi
21940
21941 pkg_failed=no
21942 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21943 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21944
21945 if test -n "$PKG_CONFIG"; then
21946     if test -n "$GSSAPI_CFLAGS"; then
21947         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21948     else
21949         if test -n "$PKG_CONFIG" && \
21950     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21951   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; then
21955   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21956 else
21957   pkg_failed=yes
21958 fi
21959     fi
21960 else
21961         pkg_failed=untried
21962 fi
21963 if test -n "$PKG_CONFIG"; then
21964     if test -n "$GSSAPI_LIBS"; then
21965         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21966     else
21967         if test -n "$PKG_CONFIG" && \
21968     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21969   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; then
21973   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21974 else
21975   pkg_failed=yes
21976 fi
21977     fi
21978 else
21979         pkg_failed=untried
21980 fi
21981
21982
21983
21984 if test $pkg_failed = yes; then
21985
21986 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21987         _pkg_short_errors_supported=yes
21988 else
21989         _pkg_short_errors_supported=no
21990 fi
21991         if test $_pkg_short_errors_supported = yes; then
21992                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21993         else
21994                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21995         fi
21996         # Put the nasty error message in config.log where it belongs
21997         echo "$GSSAPI_PKG_ERRORS" >&5
21998
21999         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22000
22001 $GSSAPI_PKG_ERRORS
22002
22003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22004 installed software in a non-standard prefix.
22005
22006 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22007 and GSSAPI_LIBS to avoid the need to call pkg-config.
22008 See the pkg-config man page for more details.
22009 " >&5
22010 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22011
22012 $GSSAPI_PKG_ERRORS
22013
22014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22015 installed software in a non-standard prefix.
22016
22017 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22018 and GSSAPI_LIBS to avoid the need to call pkg-config.
22019 See the pkg-config man page for more details.
22020 " >&2;}
22021    { (exit 1); exit 1; }; }
22022 elif test $pkg_failed = untried; then
22023         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22024 is in your PATH or set the PKG_CONFIG environment variable to the full
22025 path to pkg-config.
22026
22027 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22028 and GSSAPI_LIBS to avoid the need to call pkg-config.
22029 See the pkg-config man page for more details.
22030
22031 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22032 See \`config.log' for more details." >&5
22033 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22034 is in your PATH or set the PKG_CONFIG environment variable to the full
22035 path to pkg-config.
22036
22037 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22038 and GSSAPI_LIBS to avoid the need to call pkg-config.
22039 See the pkg-config man page for more details.
22040
22041 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22042 See \`config.log' for more details." >&2;}
22043    { (exit 1); exit 1; }; }
22044 else
22045         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22046         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22047         { echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6; }
22049         :
22050 fi
22051     fi
22052
22053 fi
22054 if test "$knfsd_cv_glibc2" = no; then
22055     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22056 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22057 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060   ac_check_lib_save_LIBS=$LIBS
22061 LIBS="-lbsd  $LIBS"
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068
22069 /* Override any GCC internal prototype to avoid an error.
22070    Use char because int might match the return type of a GCC
22071    builtin and then its argument prototype would still apply.  */
22072 #ifdef __cplusplus
22073 extern "C"
22074 #endif
22075 char daemon ();
22076 int
22077 main ()
22078 {
22079 return daemon ();
22080   ;
22081   return 0;
22082 }
22083 _ACEOF
22084 rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_link") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && {
22098          test -z "$ac_c_werror_flag" ||
22099          test ! -s conftest.err
22100        } && test -s conftest$ac_exeext &&
22101        $as_test_x conftest$ac_exeext; then
22102   ac_cv_lib_bsd_daemon=yes
22103 else
22104   echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22106
22107         ac_cv_lib_bsd_daemon=no
22108 fi
22109
22110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22111       conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22113 fi
22114 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22115 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22116 if test $ac_cv_lib_bsd_daemon = yes; then
22117   LIBBSD="-lbsd"
22118 fi
22119
22120 fi
22121 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22122 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22123 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126   ac_check_lib_save_LIBS=$LIBS
22127 LIBS="-lblkid  $LIBS"
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134
22135 /* Override any GCC internal prototype to avoid an error.
22136    Use char because int might match the return type of a GCC
22137    builtin and then its argument prototype would still apply.  */
22138 #ifdef __cplusplus
22139 extern "C"
22140 #endif
22141 char blkid_get_cache ();
22142 int
22143 main ()
22144 {
22145 return blkid_get_cache ();
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (ac_try="$ac_link"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_link") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } && {
22164          test -z "$ac_c_werror_flag" ||
22165          test ! -s conftest.err
22166        } && test -s conftest$ac_exeext &&
22167        $as_test_x conftest$ac_exeext; then
22168   ac_cv_lib_blkid_blkid_get_cache=yes
22169 else
22170   echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173         ac_cv_lib_blkid_blkid_get_cache=no
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22177       conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22179 fi
22180 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22181 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22182 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22183   LIBBLKID="-lblkid"
22184 else
22185   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22186 echo "$as_me: error: libblkid needed" >&2;}
22187    { (exit 1); exit 1; }; }
22188 fi
22189
22190 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22191   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22192 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22193 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22194   echo $ECHO_N "(cached) $ECHO_C" >&6
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22197 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22198 else
22199   # Is the header compilable?
22200 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22201 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 $ac_includes_default
22209 #include <blkid/blkid.h>
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_compile") 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } && {
22225          test -z "$ac_c_werror_flag" ||
22226          test ! -s conftest.err
22227        } && test -s conftest.$ac_objext; then
22228   ac_header_compiler=yes
22229 else
22230   echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22232
22233         ac_header_compiler=no
22234 fi
22235
22236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22238 echo "${ECHO_T}$ac_header_compiler" >&6; }
22239
22240 # Is the header present?
22241 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22242 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 #include <blkid/blkid.h>
22250 _ACEOF
22251 if { (ac_try="$ac_cpp conftest.$ac_ext"
22252 case "(($ac_try" in
22253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254   *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22258   ac_status=$?
22259   grep -v '^ *+' conftest.er1 >conftest.err
22260   rm -f conftest.er1
22261   cat conftest.err >&5
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); } >/dev/null && {
22264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22265          test ! -s conftest.err
22266        }; then
22267   ac_header_preproc=yes
22268 else
22269   echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272   ac_header_preproc=no
22273 fi
22274
22275 rm -f conftest.err conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22277 echo "${ECHO_T}$ac_header_preproc" >&6; }
22278
22279 # So?  What about this header?
22280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22281   yes:no: )
22282     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22283 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22284     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22285 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22286     ac_header_preproc=yes
22287     ;;
22288   no:yes:* )
22289     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22290 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22291     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
22292 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
22293     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22294 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22295     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
22296 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22297     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22298 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22299     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22300 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22301     ( cat <<\_ASBOX
22302 ## ------------------------------- ##
22303 ## Report this to nfs@lists.sf.net ##
22304 ## ------------------------------- ##
22305 _ASBOX
22306      ) | sed "s/^/$as_me: WARNING:     /" >&2
22307     ;;
22308 esac
22309 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22310 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   ac_cv_header_blkid_blkid_h=$ac_header_preproc
22315 fi
22316 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22317 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22318
22319 fi
22320 if test $ac_cv_header_blkid_blkid_h = yes; then
22321   :
22322 else
22323   { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22324 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22325    { (exit 1); exit 1; }; }
22326 fi
22327
22328
22329
22330
22331
22332
22333
22334 if test "$enable_gss" = yes; then
22335
22336 for ac_header in nfsidmap.h
22337 do
22338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22340   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22343   echo $ECHO_N "(cached) $ECHO_C" >&6
22344 fi
22345 ac_res=`eval echo '${'$as_ac_Header'}'`
22346                { echo "$as_me:$LINENO: result: $ac_res" >&5
22347 echo "${ECHO_T}$ac_res" >&6; }
22348 else
22349   # Is the header compilable?
22350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22352 cat >conftest.$ac_ext <<_ACEOF
22353 /* confdefs.h.  */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h.  */
22358 $ac_includes_default
22359 #include <$ac_header>
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (ac_try="$ac_compile"
22363 case "(($ac_try" in
22364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365   *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368   (eval "$ac_compile") 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && {
22375          test -z "$ac_c_werror_flag" ||
22376          test ! -s conftest.err
22377        } && test -s conftest.$ac_objext; then
22378   ac_header_compiler=yes
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383         ac_header_compiler=no
22384 fi
22385
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 echo "${ECHO_T}$ac_header_compiler" >&6; }
22389
22390 # Is the header present?
22391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399 #include <$ac_header>
22400 _ACEOF
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22408   ac_status=$?
22409   grep -v '^ *+' conftest.er1 >conftest.err
22410   rm -f conftest.er1
22411   cat conftest.err >&5
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } >/dev/null && {
22414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22415          test ! -s conftest.err
22416        }; then
22417   ac_header_preproc=yes
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422   ac_header_preproc=no
22423 fi
22424
22425 rm -f conftest.err conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22427 echo "${ECHO_T}$ac_header_preproc" >&6; }
22428
22429 # So?  What about this header?
22430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22431   yes:no: )
22432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22436     ac_header_preproc=yes
22437     ;;
22438   no:yes:* )
22439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22451     ( cat <<\_ASBOX
22452 ## ------------------------------- ##
22453 ## Report this to nfs@lists.sf.net ##
22454 ## ------------------------------- ##
22455 _ASBOX
22456      ) | sed "s/^/$as_me: WARNING:     /" >&2
22457     ;;
22458 esac
22459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22462   echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464   eval "$as_ac_Header=\$ac_header_preproc"
22465 fi
22466 ac_res=`eval echo '${'$as_ac_Header'}'`
22467                { echo "$as_me:$LINENO: result: $ac_res" >&5
22468 echo "${ECHO_T}$ac_res" >&6; }
22469
22470 fi
22471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22472   cat >>confdefs.h <<_ACEOF
22473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22474 _ACEOF
22475
22476 else
22477   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22478 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22479    { (exit 1); exit 1; }; }
22480 fi
22481
22482 done
22483
22484
22485 for ac_header in spkm3.h
22486 do
22487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22492   echo $ECHO_N "(cached) $ECHO_C" >&6
22493 fi
22494 ac_res=`eval echo '${'$as_ac_Header'}'`
22495                { echo "$as_me:$LINENO: result: $ac_res" >&5
22496 echo "${ECHO_T}$ac_res" >&6; }
22497 else
22498   # Is the header compilable?
22499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 $ac_includes_default
22508 #include <$ac_header>
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514   *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517   (eval "$ac_compile") 2>conftest.er1
22518   ac_status=$?
22519   grep -v '^ *+' conftest.er1 >conftest.err
22520   rm -f conftest.er1
22521   cat conftest.err >&5
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); } && {
22524          test -z "$ac_c_werror_flag" ||
22525          test ! -s conftest.err
22526        } && test -s conftest.$ac_objext; then
22527   ac_header_compiler=yes
22528 else
22529   echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22531
22532         ac_header_compiler=no
22533 fi
22534
22535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22537 echo "${ECHO_T}$ac_header_compiler" >&6; }
22538
22539 # Is the header present?
22540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 #include <$ac_header>
22549 _ACEOF
22550 if { (ac_try="$ac_cpp conftest.$ac_ext"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } >/dev/null && {
22563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22564          test ! -s conftest.err
22565        }; then
22566   ac_header_preproc=yes
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571   ac_header_preproc=no
22572 fi
22573
22574 rm -f conftest.err conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22576 echo "${ECHO_T}$ac_header_preproc" >&6; }
22577
22578 # So?  What about this header?
22579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22580   yes:no: )
22581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22585     ac_header_preproc=yes
22586     ;;
22587   no:yes:* )
22588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22600     ( cat <<\_ASBOX
22601 ## ------------------------------- ##
22602 ## Report this to nfs@lists.sf.net ##
22603 ## ------------------------------- ##
22604 _ASBOX
22605      ) | sed "s/^/$as_me: WARNING:     /" >&2
22606     ;;
22607 esac
22608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22611   echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613   eval "$as_ac_Header=\$ac_header_preproc"
22614 fi
22615 ac_res=`eval echo '${'$as_ac_Header'}'`
22616                { echo "$as_me:$LINENO: result: $ac_res" >&5
22617 echo "${ECHO_T}$ac_res" >&6; }
22618
22619 fi
22620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22621   cat >>confdefs.h <<_ACEOF
22622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22623 _ACEOF
22624
22625 else
22626   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22627 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22628 fi
22629
22630 done
22631
22632     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22633 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   ac_check_lib_save_LIBS=$LIBS
22638 LIBS="-lnfsidmap  $LIBS"
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char nfs4_set_debug ();
22653 int
22654 main ()
22655 {
22656 return nfs4_set_debug ();
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_link") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest$ac_exeext &&
22678        $as_test_x conftest$ac_exeext; then
22679   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688       conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22690 fi
22691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22692 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22693 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22694
22695 cat >>confdefs.h <<\_ACEOF
22696 #define HAVE_NFS4_SET_DEBUG 1
22697 _ACEOF
22698
22699 fi
22700
22701
22702
22703   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22704 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22705
22706 # Check whether --with-krb5 was given.
22707 if test "${with_krb5+set}" = set; then
22708   withval=$with_krb5;  case "$withval" in
22709     yes|no)
22710        krb5_with=""
22711        ;;
22712     *)
22713        krb5_with="$withval"
22714        ;;
22715     esac
22716
22717 fi
22718
22719
22720   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22721              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22722             K5CONFIG=""
22723     if test -f $dir/bin/krb5-config; then
22724       K5CONFIG=$dir/bin/krb5-config
22725     elif test -f "/usr/kerberos/bin/krb5-config"; then
22726       K5CONFIG="/usr/kerberos/bin/krb5-config"
22727     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22728       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22729     fi
22730     if test "$K5CONFIG" != ""; then
22731       KRBCFLAGS=`$K5CONFIG --cflags`
22732       KRBLIBS=`$K5CONFIG --libs gssapi`
22733       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define KRB5_VERSION $K5VERS
22737 _ACEOF
22738
22739       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22740                 \( -f $dir/lib/libgssapi_krb5.a -o \
22741                    -f $dir/lib/libgssapi_krb5.so \) ; then
22742
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_KRB5 1
22745 _ACEOF
22746
22747          KRBDIR="$dir"
22748                      if test $K5VERS -le 131; then
22749
22750 cat >>confdefs.h <<\_ACEOF
22751 #define USE_GSS_KRB5_CCACHE_NAME 1
22752 _ACEOF
22753
22754          fi
22755          gssapi_lib=gssapi_krb5
22756          break
22757                   elif test \( -f $dir/include/heim_err.h -o\
22758                  -f $dir/include/heimdal/heim_err.h \) -a \
22759                 -f $dir/lib/libroken.a; then
22760
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_HEIMDAL 1
22763 _ACEOF
22764
22765          KRBDIR="$dir"
22766          gssapi_lib=gssapi
22767         break
22768       fi
22769     fi
22770   done
22771     if test "x$KRBDIR" = "x"; then
22772     if test "x$krb5_with" = "x"; then
22773       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22774 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22775    { (exit 1); exit 1; }; }
22776     else
22777       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22778 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22779    { (exit 1); exit 1; }; }
22780     fi
22781   fi
22782   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22783 echo "${ECHO_T}$KRBDIR" >&6; }
22784
22785     echo "The current KRBDIR is $KRBDIR"
22786   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22787        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22788     KRBLDFLAGS="";
22789   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22790     KRBLDFLAGS="";
22791   else
22792     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22793   fi
22794
22795     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22796 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22797 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801   ac_check_lib_save_LIBS=$LIBS
22802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809
22810 /* Override any GCC internal prototype to avoid an error.
22811    Use char because int might match the return type of a GCC
22812    builtin and then its argument prototype would still apply.  */
22813 #ifdef __cplusplus
22814 extern "C"
22815 #endif
22816 char gss_krb5_export_lucid_sec_context ();
22817 int
22818 main ()
22819 {
22820 return gss_krb5_export_lucid_sec_context ();
22821   ;
22822   return 0;
22823 }
22824 _ACEOF
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829   *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832   (eval "$ac_link") 2>conftest.er1
22833   ac_status=$?
22834   grep -v '^ *+' conftest.er1 >conftest.err
22835   rm -f conftest.er1
22836   cat conftest.err >&5
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } && {
22839          test -z "$ac_c_werror_flag" ||
22840          test ! -s conftest.err
22841        } && test -s conftest$ac_exeext &&
22842        $as_test_x conftest$ac_exeext; then
22843   eval "$as_ac_Lib=yes"
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848         eval "$as_ac_Lib=no"
22849 fi
22850
22851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852       conftest$ac_exeext conftest.$ac_ext
22853 LIBS=$ac_check_lib_save_LIBS
22854 fi
22855 ac_res=`eval echo '${'$as_ac_Lib'}'`
22856                { echo "$as_me:$LINENO: result: $ac_res" >&5
22857 echo "${ECHO_T}$ac_res" >&6; }
22858 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22859
22860 cat >>confdefs.h <<\_ACEOF
22861 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22862 _ACEOF
22863
22864 fi
22865
22866   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22867 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22868 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22869 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22870   echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872   ac_check_lib_save_LIBS=$LIBS
22873 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* Override any GCC internal prototype to avoid an error.
22882    Use char because int might match the return type of a GCC
22883    builtin and then its argument prototype would still apply.  */
22884 #ifdef __cplusplus
22885 extern "C"
22886 #endif
22887 char gss_krb5_set_allowable_enctypes ();
22888 int
22889 main ()
22890 {
22891 return gss_krb5_set_allowable_enctypes ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900   *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903   (eval "$ac_link") 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && {
22910          test -z "$ac_c_werror_flag" ||
22911          test ! -s conftest.err
22912        } && test -s conftest$ac_exeext &&
22913        $as_test_x conftest$ac_exeext; then
22914   eval "$as_ac_Lib=yes"
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919         eval "$as_ac_Lib=no"
22920 fi
22921
22922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22923       conftest$ac_exeext conftest.$ac_ext
22924 LIBS=$ac_check_lib_save_LIBS
22925 fi
22926 ac_res=`eval echo '${'$as_ac_Lib'}'`
22927                { echo "$as_me:$LINENO: result: $ac_res" >&5
22928 echo "${ECHO_T}$ac_res" >&6; }
22929 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22930
22931 cat >>confdefs.h <<\_ACEOF
22932 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22933 _ACEOF
22934
22935 fi
22936
22937   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22938 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22939 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22941   echo $ECHO_N "(cached) $ECHO_C" >&6
22942 else
22943   ac_check_lib_save_LIBS=$LIBS
22944 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951
22952 /* Override any GCC internal prototype to avoid an error.
22953    Use char because int might match the return type of a GCC
22954    builtin and then its argument prototype would still apply.  */
22955 #ifdef __cplusplus
22956 extern "C"
22957 #endif
22958 char gss_krb5_ccache_name ();
22959 int
22960 main ()
22961 {
22962 return gss_krb5_ccache_name ();
22963   ;
22964   return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (ac_try="$ac_link"
22969 case "(($ac_try" in
22970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971   *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974   (eval "$ac_link") 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } && {
22981          test -z "$ac_c_werror_flag" ||
22982          test ! -s conftest.err
22983        } && test -s conftest$ac_exeext &&
22984        $as_test_x conftest$ac_exeext; then
22985   eval "$as_ac_Lib=yes"
22986 else
22987   echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990         eval "$as_ac_Lib=no"
22991 fi
22992
22993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22994       conftest$ac_exeext conftest.$ac_ext
22995 LIBS=$ac_check_lib_save_LIBS
22996 fi
22997 ac_res=`eval echo '${'$as_ac_Lib'}'`
22998                { echo "$as_me:$LINENO: result: $ac_res" >&5
22999 echo "${ECHO_T}$ac_res" >&6; }
23000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23001
23002 cat >>confdefs.h <<\_ACEOF
23003 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23004 _ACEOF
23005
23006 fi
23007
23008
23009     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23010     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23011 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23012   fi
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23023 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23024 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23025   echo $ECHO_N "(cached) $ECHO_C" >&6
23026 else
23027   ac_check_lib_save_LIBS=$LIBS
23028 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23029 cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035
23036 /* Override any GCC internal prototype to avoid an error.
23037    Use char because int might match the return type of a GCC
23038    builtin and then its argument prototype would still apply.  */
23039 #ifdef __cplusplus
23040 extern "C"
23041 #endif
23042 char authgss_create_default ();
23043 int
23044 main ()
23045 {
23046 return authgss_create_default ();
23047   ;
23048   return 0;
23049 }
23050 _ACEOF
23051 rm -f conftest.$ac_objext conftest$ac_exeext
23052 if { (ac_try="$ac_link"
23053 case "(($ac_try" in
23054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055   *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058   (eval "$ac_link") 2>conftest.er1
23059   ac_status=$?
23060   grep -v '^ *+' conftest.er1 >conftest.err
23061   rm -f conftest.er1
23062   cat conftest.err >&5
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } && {
23065          test -z "$ac_c_werror_flag" ||
23066          test ! -s conftest.err
23067        } && test -s conftest$ac_exeext &&
23068        $as_test_x conftest$ac_exeext; then
23069   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23070 else
23071   echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073
23074         ac_cv_lib_rpcsecgss_authgss_create_default=no
23075 fi
23076
23077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23078       conftest$ac_exeext conftest.$ac_ext
23079 LIBS=$ac_check_lib_save_LIBS
23080 fi
23081 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23082 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23083 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23084   librpcsecgss=1
23085 else
23086   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23087 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23088    { (exit 1); exit 1; }; }
23089 fi
23090
23091   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23092 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23093 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   ac_check_lib_save_LIBS=$LIBS
23097 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h.  */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h.  */
23104
23105 /* Override any GCC internal prototype to avoid an error.
23106    Use char because int might match the return type of a GCC
23107    builtin and then its argument prototype would still apply.  */
23108 #ifdef __cplusplus
23109 extern "C"
23110 #endif
23111 char authgss_set_debug_level ();
23112 int
23113 main ()
23114 {
23115 return authgss_set_debug_level ();
23116   ;
23117   return 0;
23118 }
23119 _ACEOF
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (ac_try="$ac_link"
23122 case "(($ac_try" in
23123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124   *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127   (eval "$ac_link") 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } && {
23134          test -z "$ac_c_werror_flag" ||
23135          test ! -s conftest.err
23136        } && test -s conftest$ac_exeext &&
23137        $as_test_x conftest$ac_exeext; then
23138   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23144 fi
23145
23146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23147       conftest$ac_exeext conftest.$ac_ext
23148 LIBS=$ac_check_lib_save_LIBS
23149 fi
23150 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23151 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23152 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23153
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23156 _ACEOF
23157
23158 fi
23159
23160
23161 fi
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23187                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23188                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23189                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23190                  syslog.h unistd.h com_err.h et/com_err.h \
23191                  ifaddrs.h
23192 do
23193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198   echo $ECHO_N "(cached) $ECHO_C" >&6
23199 fi
23200 ac_res=`eval echo '${'$as_ac_Header'}'`
23201                { echo "$as_me:$LINENO: result: $ac_res" >&5
23202 echo "${ECHO_T}$ac_res" >&6; }
23203 else
23204   # Is the header compilable?
23205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 $ac_includes_default
23214 #include <$ac_header>
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_compile") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest.$ac_objext; then
23233   ac_header_compiler=yes
23234 else
23235   echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238         ac_header_compiler=no
23239 fi
23240
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23243 echo "${ECHO_T}$ac_header_compiler" >&6; }
23244
23245 # Is the header present?
23246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 #include <$ac_header>
23255 _ACEOF
23256 if { (ac_try="$ac_cpp conftest.$ac_ext"
23257 case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } >/dev/null && {
23269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23270          test ! -s conftest.err
23271        }; then
23272   ac_header_preproc=yes
23273 else
23274   echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23276
23277   ac_header_preproc=no
23278 fi
23279
23280 rm -f conftest.err conftest.$ac_ext
23281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23282 echo "${ECHO_T}$ac_header_preproc" >&6; }
23283
23284 # So?  What about this header?
23285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23286   yes:no: )
23287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23291     ac_header_preproc=yes
23292     ;;
23293   no:yes:* )
23294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23306     ( cat <<\_ASBOX
23307 ## ------------------------------- ##
23308 ## Report this to nfs@lists.sf.net ##
23309 ## ------------------------------- ##
23310 _ASBOX
23311      ) | sed "s/^/$as_me: WARNING:     /" >&2
23312     ;;
23313 esac
23314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317   echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319   eval "$as_ac_Header=\$ac_header_preproc"
23320 fi
23321 ac_res=`eval echo '${'$as_ac_Header'}'`
23322                { echo "$as_me:$LINENO: result: $ac_res" >&5
23323 echo "${ECHO_T}$ac_res" >&6; }
23324
23325 fi
23326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23327   cat >>confdefs.h <<_ACEOF
23328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23329 _ACEOF
23330
23331 fi
23332
23333 done
23334
23335
23336 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23338 if test "${ac_cv_c_const+set}" = set; then
23339   echo $ECHO_N "(cached) $ECHO_C" >&6
23340 else
23341   cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347
23348 int
23349 main ()
23350 {
23351 /* FIXME: Include the comments suggested by Paul. */
23352 #ifndef __cplusplus
23353   /* Ultrix mips cc rejects this.  */
23354   typedef int charset[2];
23355   const charset cs;
23356   /* SunOS 4.1.1 cc rejects this.  */
23357   char const *const *pcpcc;
23358   char **ppc;
23359   /* NEC SVR4.0.2 mips cc rejects this.  */
23360   struct point {int x, y;};
23361   static struct point const zero = {0,0};
23362   /* AIX XL C 1.02.0.0 rejects this.
23363      It does not let you subtract one const X* pointer from another in
23364      an arm of an if-expression whose if-part is not a constant
23365      expression */
23366   const char *g = "string";
23367   pcpcc = &g + (g ? g-g : 0);
23368   /* HPUX 7.0 cc rejects these. */
23369   ++pcpcc;
23370   ppc = (char**) pcpcc;
23371   pcpcc = (char const *const *) ppc;
23372   { /* SCO 3.2v4 cc rejects this.  */
23373     char *t;
23374     char const *s = 0 ? (char *) 0 : (char const *) 0;
23375
23376     *t++ = 0;
23377     if (s) return 0;
23378   }
23379   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23380     int x[] = {25, 17};
23381     const int *foo = &x[0];
23382     ++foo;
23383   }
23384   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23385     typedef const int *iptr;
23386     iptr p = 0;
23387     ++p;
23388   }
23389   { /* AIX XL C 1.02.0.0 rejects this saying
23390        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23391     struct s { int j; const int *ap[3]; };
23392     struct s *b; b->j = 5;
23393   }
23394   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23395     const int foo = 10;
23396     if (!foo) return 0;
23397   }
23398   return !cs[0] && !zero.x;
23399 #endif
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_compile") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } && {
23419          test -z "$ac_c_werror_flag" ||
23420          test ! -s conftest.err
23421        } && test -s conftest.$ac_objext; then
23422   ac_cv_c_const=yes
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427         ac_cv_c_const=no
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 fi
23432 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23433 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23434 if test $ac_cv_c_const = no; then
23435
23436 cat >>confdefs.h <<\_ACEOF
23437 #define const
23438 _ACEOF
23439
23440 fi
23441
23442 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23444 if test "${ac_cv_type_uid_t+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447   cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h.  */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h.  */
23453 #include <sys/types.h>
23454
23455 _ACEOF
23456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23457   $EGREP "uid_t" >/dev/null 2>&1; then
23458   ac_cv_type_uid_t=yes
23459 else
23460   ac_cv_type_uid_t=no
23461 fi
23462 rm -f conftest*
23463
23464 fi
23465 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23466 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23467 if test $ac_cv_type_uid_t = no; then
23468
23469 cat >>confdefs.h <<\_ACEOF
23470 #define uid_t int
23471 _ACEOF
23472
23473
23474 cat >>confdefs.h <<\_ACEOF
23475 #define gid_t int
23476 _ACEOF
23477
23478 fi
23479
23480 { echo "$as_me:$LINENO: checking for inline" >&5
23481 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23482 if test "${ac_cv_c_inline+set}" = set; then
23483   echo $ECHO_N "(cached) $ECHO_C" >&6
23484 else
23485   ac_cv_c_inline=no
23486 for ac_kw in inline __inline__ __inline; do
23487   cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493 #ifndef __cplusplus
23494 typedef int foo_t;
23495 static $ac_kw foo_t static_foo () {return 0; }
23496 $ac_kw foo_t foo () {return 0; }
23497 #endif
23498
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504   *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507   (eval "$ac_compile") 2>conftest.er1
23508   ac_status=$?
23509   grep -v '^ *+' conftest.er1 >conftest.err
23510   rm -f conftest.er1
23511   cat conftest.err >&5
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } && {
23514          test -z "$ac_c_werror_flag" ||
23515          test ! -s conftest.err
23516        } && test -s conftest.$ac_objext; then
23517   ac_cv_c_inline=$ac_kw
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522
23523 fi
23524
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526   test "$ac_cv_c_inline" != no && break
23527 done
23528
23529 fi
23530 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23531 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23532
23533
23534 case $ac_cv_c_inline in
23535   inline | yes) ;;
23536   *)
23537     case $ac_cv_c_inline in
23538       no) ac_val=;;
23539       *) ac_val=$ac_cv_c_inline;;
23540     esac
23541     cat >>confdefs.h <<_ACEOF
23542 #ifndef __cplusplus
23543 #define inline $ac_val
23544 #endif
23545 _ACEOF
23546     ;;
23547 esac
23548
23549 { echo "$as_me:$LINENO: checking for off_t" >&5
23550 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23551 if test "${ac_cv_type_off_t+set}" = set; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 $ac_includes_default
23561 typedef off_t ac__type_new_;
23562 int
23563 main ()
23564 {
23565 if ((ac__type_new_ *) 0)
23566   return 0;
23567 if (sizeof (ac__type_new_))
23568   return 0;
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577   *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580   (eval "$ac_compile") 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } && {
23587          test -z "$ac_c_werror_flag" ||
23588          test ! -s conftest.err
23589        } && test -s conftest.$ac_objext; then
23590   ac_cv_type_off_t=yes
23591 else
23592   echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595         ac_cv_type_off_t=no
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 fi
23600 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23601 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23602 if test $ac_cv_type_off_t = yes; then
23603   :
23604 else
23605
23606 cat >>confdefs.h <<_ACEOF
23607 #define off_t long int
23608 _ACEOF
23609
23610 fi
23611
23612 { echo "$as_me:$LINENO: checking for pid_t" >&5
23613 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23614 if test "${ac_cv_type_pid_t+set}" = set; then
23615   echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617   cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h.  */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h.  */
23623 $ac_includes_default
23624 typedef pid_t ac__type_new_;
23625 int
23626 main ()
23627 {
23628 if ((ac__type_new_ *) 0)
23629   return 0;
23630 if (sizeof (ac__type_new_))
23631   return 0;
23632   ;
23633   return 0;
23634 }
23635 _ACEOF
23636 rm -f conftest.$ac_objext
23637 if { (ac_try="$ac_compile"
23638 case "(($ac_try" in
23639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640   *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643   (eval "$ac_compile") 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } && {
23650          test -z "$ac_c_werror_flag" ||
23651          test ! -s conftest.err
23652        } && test -s conftest.$ac_objext; then
23653   ac_cv_type_pid_t=yes
23654 else
23655   echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23657
23658         ac_cv_type_pid_t=no
23659 fi
23660
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 fi
23663 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23665 if test $ac_cv_type_pid_t = yes; then
23666   :
23667 else
23668
23669 cat >>confdefs.h <<_ACEOF
23670 #define pid_t int
23671 _ACEOF
23672
23673 fi
23674
23675 { echo "$as_me:$LINENO: checking for size_t" >&5
23676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23677 if test "${ac_cv_type_size_t+set}" = set; then
23678   echo $ECHO_N "(cached) $ECHO_C" >&6
23679 else
23680   cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 $ac_includes_default
23687 typedef size_t ac__type_new_;
23688 int
23689 main ()
23690 {
23691 if ((ac__type_new_ *) 0)
23692   return 0;
23693 if (sizeof (ac__type_new_))
23694   return 0;
23695   ;
23696   return 0;
23697 }
23698 _ACEOF
23699 rm -f conftest.$ac_objext
23700 if { (ac_try="$ac_compile"
23701 case "(($ac_try" in
23702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703   *) ac_try_echo=$ac_try;;
23704 esac
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706   (eval "$ac_compile") 2>conftest.er1
23707   ac_status=$?
23708   grep -v '^ *+' conftest.er1 >conftest.err
23709   rm -f conftest.er1
23710   cat conftest.err >&5
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); } && {
23713          test -z "$ac_c_werror_flag" ||
23714          test ! -s conftest.err
23715        } && test -s conftest.$ac_objext; then
23716   ac_cv_type_size_t=yes
23717 else
23718   echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721         ac_cv_type_size_t=no
23722 fi
23723
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 fi
23726 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23727 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23728 if test $ac_cv_type_size_t = yes; then
23729   :
23730 else
23731
23732 cat >>confdefs.h <<_ACEOF
23733 #define size_t unsigned int
23734 _ACEOF
23735
23736 fi
23737
23738 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23739 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23740 if test "${ac_cv_header_time+set}" = set; then
23741   echo $ECHO_N "(cached) $ECHO_C" >&6
23742 else
23743   cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h.  */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h.  */
23749 #include <sys/types.h>
23750 #include <sys/time.h>
23751 #include <time.h>
23752
23753 int
23754 main ()
23755 {
23756 if ((struct tm *) 0)
23757 return 0;
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext
23763 if { (ac_try="$ac_compile"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_compile") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } && {
23776          test -z "$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        } && test -s conftest.$ac_objext; then
23779   ac_cv_header_time=yes
23780 else
23781   echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784         ac_cv_header_time=no
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 fi
23789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23791 if test $ac_cv_header_time = yes; then
23792
23793 cat >>confdefs.h <<\_ACEOF
23794 #define TIME_WITH_SYS_TIME 1
23795 _ACEOF
23796
23797 fi
23798
23799 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23800 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23801 if test "${ac_cv_struct_tm+set}" = set; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804   cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 #include <sys/types.h>
23811 #include <time.h>
23812
23813 int
23814 main ()
23815 {
23816 struct tm tm;
23817                                      int *p = &tm.tm_sec;
23818                                      return !p;
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830   (eval "$ac_compile") 2>conftest.er1
23831   ac_status=$?
23832   grep -v '^ *+' conftest.er1 >conftest.err
23833   rm -f conftest.er1
23834   cat conftest.err >&5
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); } && {
23837          test -z "$ac_c_werror_flag" ||
23838          test ! -s conftest.err
23839        } && test -s conftest.$ac_objext; then
23840   ac_cv_struct_tm=time.h
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_cv_struct_tm=sys/time.h
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 fi
23850 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23851 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23852 if test $ac_cv_struct_tm = sys/time.h; then
23853
23854 cat >>confdefs.h <<\_ACEOF
23855 #define TM_IN_SYS_TIME 1
23856 _ACEOF
23857
23858 fi
23859
23860
23861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23862 # for constant arguments.  Useless!
23863 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23864 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23865 if test "${ac_cv_working_alloca_h+set}" = set; then
23866   echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868   cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874 #include <alloca.h>
23875 int
23876 main ()
23877 {
23878 char *p = (char *) alloca (2 * sizeof (int));
23879                           if (p) return 0;
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888   *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891   (eval "$ac_link") 2>conftest.er1
23892   ac_status=$?
23893   grep -v '^ *+' conftest.er1 >conftest.err
23894   rm -f conftest.er1
23895   cat conftest.err >&5
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } && {
23898          test -z "$ac_c_werror_flag" ||
23899          test ! -s conftest.err
23900        } && test -s conftest$ac_exeext &&
23901        $as_test_x conftest$ac_exeext; then
23902   ac_cv_working_alloca_h=yes
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907         ac_cv_working_alloca_h=no
23908 fi
23909
23910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23911       conftest$ac_exeext conftest.$ac_ext
23912 fi
23913 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23915 if test $ac_cv_working_alloca_h = yes; then
23916
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_ALLOCA_H 1
23919 _ACEOF
23920
23921 fi
23922
23923 { echo "$as_me:$LINENO: checking for alloca" >&5
23924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23925 if test "${ac_cv_func_alloca_works+set}" = set; then
23926   echo $ECHO_N "(cached) $ECHO_C" >&6
23927 else
23928   cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934 #ifdef __GNUC__
23935 # define alloca __builtin_alloca
23936 #else
23937 # ifdef _MSC_VER
23938 #  include <malloc.h>
23939 #  define alloca _alloca
23940 # else
23941 #  ifdef HAVE_ALLOCA_H
23942 #   include <alloca.h>
23943 #  else
23944 #   ifdef _AIX
23945  #pragma alloca
23946 #   else
23947 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23948 char *alloca ();
23949 #    endif
23950 #   endif
23951 #  endif
23952 # endif
23953 #endif
23954
23955 int
23956 main ()
23957 {
23958 char *p = (char *) alloca (1);
23959                                     if (p) return 0;
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (ac_try="$ac_link"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971   (eval "$ac_link") 2>conftest.er1
23972   ac_status=$?
23973   grep -v '^ *+' conftest.er1 >conftest.err
23974   rm -f conftest.er1
23975   cat conftest.err >&5
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); } && {
23978          test -z "$ac_c_werror_flag" ||
23979          test ! -s conftest.err
23980        } && test -s conftest$ac_exeext &&
23981        $as_test_x conftest$ac_exeext; then
23982   ac_cv_func_alloca_works=yes
23983 else
23984   echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987         ac_cv_func_alloca_works=no
23988 fi
23989
23990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23991       conftest$ac_exeext conftest.$ac_ext
23992 fi
23993 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23994 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23995
23996 if test $ac_cv_func_alloca_works = yes; then
23997
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_ALLOCA 1
24000 _ACEOF
24001
24002 else
24003   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24004 # that cause trouble.  Some versions do not even contain alloca or
24005 # contain a buggy version.  If you still want to use their alloca,
24006 # use ar to extract alloca.o from them instead of compiling alloca.c.
24007
24008 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define C_ALLOCA 1
24012 _ACEOF
24013
24014
24015 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24016 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24017 if test "${ac_cv_os_cray+set}" = set; then
24018   echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020   cat >conftest.$ac_ext <<_ACEOF
24021 /* confdefs.h.  */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h.  */
24026 #if defined CRAY && ! defined CRAY2
24027 webecray
24028 #else
24029 wenotbecray
24030 #endif
24031
24032 _ACEOF
24033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24034   $EGREP "webecray" >/dev/null 2>&1; then
24035   ac_cv_os_cray=yes
24036 else
24037   ac_cv_os_cray=no
24038 fi
24039 rm -f conftest*
24040
24041 fi
24042 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24043 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24044 if test $ac_cv_os_cray = yes; then
24045   for ac_func in _getb67 GETB67 getb67; do
24046     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24050   echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24052   cat >conftest.$ac_ext <<_ACEOF
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24060 #define $ac_func innocuous_$ac_func
24061
24062 /* System header to define __stub macros and hopefully few prototypes,
24063     which can conflict with char $ac_func (); below.
24064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24065     <limits.h> exists even on freestanding compilers.  */
24066
24067 #ifdef __STDC__
24068 # include <limits.h>
24069 #else
24070 # include <assert.h>
24071 #endif
24072
24073 #undef $ac_func
24074
24075 /* Override any GCC internal prototype to avoid an error.
24076    Use char because int might match the return type of a GCC
24077    builtin and then its argument prototype would still apply.  */
24078 #ifdef __cplusplus
24079 extern "C"
24080 #endif
24081 char $ac_func ();
24082 /* The GNU C library defines this for functions which it implements
24083     to always fail with ENOSYS.  Some functions are actually named
24084     something starting with __ and the normal name is an alias.  */
24085 #if defined __stub_$ac_func || defined __stub___$ac_func
24086 choke me
24087 #endif
24088
24089 int
24090 main ()
24091 {
24092 return $ac_func ();
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 rm -f conftest.$ac_objext conftest$ac_exeext
24098 if { (ac_try="$ac_link"
24099 case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_link") 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && {
24111          test -z "$ac_c_werror_flag" ||
24112          test ! -s conftest.err
24113        } && test -s conftest$ac_exeext &&
24114        $as_test_x conftest$ac_exeext; then
24115   eval "$as_ac_var=yes"
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         eval "$as_ac_var=no"
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24124       conftest$ac_exeext conftest.$ac_ext
24125 fi
24126 ac_res=`eval echo '${'$as_ac_var'}'`
24127                { echo "$as_me:$LINENO: result: $ac_res" >&5
24128 echo "${ECHO_T}$ac_res" >&6; }
24129 if test `eval echo '${'$as_ac_var'}'` = yes; then
24130
24131 cat >>confdefs.h <<_ACEOF
24132 #define CRAY_STACKSEG_END $ac_func
24133 _ACEOF
24134
24135     break
24136 fi
24137
24138   done
24139 fi
24140
24141 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24142 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24143 if test "${ac_cv_c_stack_direction+set}" = set; then
24144   echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146   if test "$cross_compiling" = yes; then
24147   ac_cv_c_stack_direction=0
24148 else
24149   cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h.  */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h.  */
24155 $ac_includes_default
24156 int
24157 find_stack_direction ()
24158 {
24159   static char *addr = 0;
24160   auto char dummy;
24161   if (addr == 0)
24162     {
24163       addr = &dummy;
24164       return find_stack_direction ();
24165     }
24166   else
24167     return (&dummy > addr) ? 1 : -1;
24168 }
24169
24170 int
24171 main ()
24172 {
24173   return find_stack_direction () < 0;
24174 }
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_link") 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187   { (case "(($ac_try" in
24188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189   *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192   (eval "$ac_try") 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; }; then
24196   ac_cv_c_stack_direction=1
24197 else
24198   echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ( exit $ac_status )
24203 ac_cv_c_stack_direction=-1
24204 fi
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 fi
24207
24208
24209 fi
24210 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24211 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24212
24213 cat >>confdefs.h <<_ACEOF
24214 #define STACK_DIRECTION $ac_cv_c_stack_direction
24215 _ACEOF
24216
24217
24218 fi
24219
24220
24221
24222
24223
24224
24225 ac_header_dirent=no
24226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24227   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24231   echo $ECHO_N "(cached) $ECHO_C" >&6
24232 else
24233   cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 #include <sys/types.h>
24240 #include <$ac_hdr>
24241
24242 int
24243 main ()
24244 {
24245 if ((DIR *) 0)
24246 return 0;
24247   ;
24248   return 0;
24249 }
24250 _ACEOF
24251 rm -f conftest.$ac_objext
24252 if { (ac_try="$ac_compile"
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_compile") 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); } && {
24265          test -z "$ac_c_werror_flag" ||
24266          test ! -s conftest.err
24267        } && test -s conftest.$ac_objext; then
24268   eval "$as_ac_Header=yes"
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273         eval "$as_ac_Header=no"
24274 fi
24275
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 fi
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279                { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24282   cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24284 _ACEOF
24285
24286 ac_header_dirent=$ac_hdr; break
24287 fi
24288
24289 done
24290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24291 if test $ac_header_dirent = dirent.h; then
24292   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24293 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24294 if test "${ac_cv_search_opendir+set}" = set; then
24295   echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297   ac_func_search_save_LIBS=$LIBS
24298 cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304
24305 /* Override any GCC internal prototype to avoid an error.
24306    Use char because int might match the return type of a GCC
24307    builtin and then its argument prototype would still apply.  */
24308 #ifdef __cplusplus
24309 extern "C"
24310 #endif
24311 char opendir ();
24312 int
24313 main ()
24314 {
24315 return opendir ();
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 for ac_lib in '' dir; do
24321   if test -z "$ac_lib"; then
24322     ac_res="none required"
24323   else
24324     ac_res=-l$ac_lib
24325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24326   fi
24327   rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (ac_try="$ac_link"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_link") 2>conftest.er1
24335   ac_status=$?
24336   grep -v '^ *+' conftest.er1 >conftest.err
24337   rm -f conftest.er1
24338   cat conftest.err >&5
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } && {
24341          test -z "$ac_c_werror_flag" ||
24342          test ! -s conftest.err
24343        } && test -s conftest$ac_exeext &&
24344        $as_test_x conftest$ac_exeext; then
24345   ac_cv_search_opendir=$ac_res
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350
24351 fi
24352
24353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24354       conftest$ac_exeext
24355   if test "${ac_cv_search_opendir+set}" = set; then
24356   break
24357 fi
24358 done
24359 if test "${ac_cv_search_opendir+set}" = set; then
24360   :
24361 else
24362   ac_cv_search_opendir=no
24363 fi
24364 rm conftest.$ac_ext
24365 LIBS=$ac_func_search_save_LIBS
24366 fi
24367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24369 ac_res=$ac_cv_search_opendir
24370 if test "$ac_res" != no; then
24371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24372
24373 fi
24374
24375 else
24376   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24378 if test "${ac_cv_search_opendir+set}" = set; then
24379   echo $ECHO_N "(cached) $ECHO_C" >&6
24380 else
24381   ac_func_search_save_LIBS=$LIBS
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h.  */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h.  */
24388
24389 /* Override any GCC internal prototype to avoid an error.
24390    Use char because int might match the return type of a GCC
24391    builtin and then its argument prototype would still apply.  */
24392 #ifdef __cplusplus
24393 extern "C"
24394 #endif
24395 char opendir ();
24396 int
24397 main ()
24398 {
24399 return opendir ();
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 for ac_lib in '' x; do
24405   if test -z "$ac_lib"; then
24406     ac_res="none required"
24407   else
24408     ac_res=-l$ac_lib
24409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24410   fi
24411   rm -f conftest.$ac_objext conftest$ac_exeext
24412 if { (ac_try="$ac_link"
24413 case "(($ac_try" in
24414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415   *) ac_try_echo=$ac_try;;
24416 esac
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418   (eval "$ac_link") 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } && {
24425          test -z "$ac_c_werror_flag" ||
24426          test ! -s conftest.err
24427        } && test -s conftest$ac_exeext &&
24428        $as_test_x conftest$ac_exeext; then
24429   ac_cv_search_opendir=$ac_res
24430 else
24431   echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434
24435 fi
24436
24437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24438       conftest$ac_exeext
24439   if test "${ac_cv_search_opendir+set}" = set; then
24440   break
24441 fi
24442 done
24443 if test "${ac_cv_search_opendir+set}" = set; then
24444   :
24445 else
24446   ac_cv_search_opendir=no
24447 fi
24448 rm conftest.$ac_ext
24449 LIBS=$ac_func_search_save_LIBS
24450 fi
24451 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24452 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24453 ac_res=$ac_cv_search_opendir
24454 if test "$ac_res" != no; then
24455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24456
24457 fi
24458
24459 fi
24460
24461 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24462 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24463 if test "${ac_cv_func_closedir_void+set}" = set; then
24464   echo $ECHO_N "(cached) $ECHO_C" >&6
24465 else
24466   if test "$cross_compiling" = yes; then
24467   ac_cv_func_closedir_void=yes
24468 else
24469   cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h.  */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h.  */
24475 $ac_includes_default
24476 #include <$ac_header_dirent>
24477 #ifndef __cplusplus
24478 int closedir ();
24479 #endif
24480
24481 int
24482 main ()
24483 {
24484 return closedir (opendir (".")) != 0;
24485   ;
24486   return 0;
24487 }
24488 _ACEOF
24489 rm -f conftest$ac_exeext
24490 if { (ac_try="$ac_link"
24491 case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_link") 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24500   { (case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_try") 2>&5
24506   ac_status=$?
24507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508   (exit $ac_status); }; }; then
24509   ac_cv_func_closedir_void=no
24510 else
24511   echo "$as_me: program exited with status $ac_status" >&5
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515 ( exit $ac_status )
24516 ac_cv_func_closedir_void=yes
24517 fi
24518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24519 fi
24520
24521
24522 fi
24523 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24524 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24525 if test $ac_cv_func_closedir_void = yes; then
24526
24527 cat >>confdefs.h <<\_ACEOF
24528 #define CLOSEDIR_VOID 1
24529 _ACEOF
24530
24531 fi
24532
24533 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24534 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_error_at_line+set}" = set; then
24536   echo $ECHO_N "(cached) $ECHO_C" >&6
24537 else
24538   cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h.  */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h.  */
24544 #include <error.h>
24545 int
24546 main ()
24547 {
24548 error_at_line (0, 0, "", 0, "an error occurred");
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (ac_try="$ac_link"
24555 case "(($ac_try" in
24556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557   *) ac_try_echo=$ac_try;;
24558 esac
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560   (eval "$ac_link") 2>conftest.er1
24561   ac_status=$?
24562   grep -v '^ *+' conftest.er1 >conftest.err
24563   rm -f conftest.er1
24564   cat conftest.err >&5
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); } && {
24567          test -z "$ac_c_werror_flag" ||
24568          test ! -s conftest.err
24569        } && test -s conftest$ac_exeext &&
24570        $as_test_x conftest$ac_exeext; then
24571   ac_cv_lib_error_at_line=yes
24572 else
24573   echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24575
24576         ac_cv_lib_error_at_line=no
24577 fi
24578
24579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24580       conftest$ac_exeext conftest.$ac_ext
24581 fi
24582 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24583 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24584 if test $ac_cv_lib_error_at_line = no; then
24585   case " $LIBOBJS " in
24586   *" error.$ac_objext "* ) ;;
24587   *) LIBOBJS="$LIBOBJS error.$ac_objext"
24588  ;;
24589 esac
24590
24591 fi
24592
24593
24594 for ac_header in vfork.h
24595 do
24596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24598   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24601   echo $ECHO_N "(cached) $ECHO_C" >&6
24602 fi
24603 ac_res=`eval echo '${'$as_ac_Header'}'`
24604                { echo "$as_me:$LINENO: result: $ac_res" >&5
24605 echo "${ECHO_T}$ac_res" >&6; }
24606 else
24607   # Is the header compilable?
24608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616 $ac_includes_default
24617 #include <$ac_header>
24618 _ACEOF
24619 rm -f conftest.$ac_objext
24620 if { (ac_try="$ac_compile"
24621 case "(($ac_try" in
24622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623   *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626   (eval "$ac_compile") 2>conftest.er1
24627   ac_status=$?
24628   grep -v '^ *+' conftest.er1 >conftest.err
24629   rm -f conftest.er1
24630   cat conftest.err >&5
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); } && {
24633          test -z "$ac_c_werror_flag" ||
24634          test ! -s conftest.err
24635        } && test -s conftest.$ac_objext; then
24636   ac_header_compiler=yes
24637 else
24638   echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24640
24641         ac_header_compiler=no
24642 fi
24643
24644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24646 echo "${ECHO_T}$ac_header_compiler" >&6; }
24647
24648 # Is the header present?
24649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 #include <$ac_header>
24658 _ACEOF
24659 if { (ac_try="$ac_cpp conftest.$ac_ext"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } >/dev/null && {
24672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24673          test ! -s conftest.err
24674        }; then
24675   ac_header_preproc=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680   ac_header_preproc=no
24681 fi
24682
24683 rm -f conftest.err conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24685 echo "${ECHO_T}$ac_header_preproc" >&6; }
24686
24687 # So?  What about this header?
24688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24689   yes:no: )
24690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24694     ac_header_preproc=yes
24695     ;;
24696   no:yes:* )
24697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24709     ( cat <<\_ASBOX
24710 ## ------------------------------- ##
24711 ## Report this to nfs@lists.sf.net ##
24712 ## ------------------------------- ##
24713 _ASBOX
24714      ) | sed "s/^/$as_me: WARNING:     /" >&2
24715     ;;
24716 esac
24717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   eval "$as_ac_Header=\$ac_header_preproc"
24723 fi
24724 ac_res=`eval echo '${'$as_ac_Header'}'`
24725                { echo "$as_me:$LINENO: result: $ac_res" >&5
24726 echo "${ECHO_T}$ac_res" >&6; }
24727
24728 fi
24729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24730   cat >>confdefs.h <<_ACEOF
24731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24732 _ACEOF
24733
24734 fi
24735
24736 done
24737
24738
24739
24740 for ac_func in fork vfork
24741 do
24742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748   cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24756 #define $ac_func innocuous_$ac_func
24757
24758 /* System header to define __stub macros and hopefully few prototypes,
24759     which can conflict with char $ac_func (); below.
24760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24761     <limits.h> exists even on freestanding compilers.  */
24762
24763 #ifdef __STDC__
24764 # include <limits.h>
24765 #else
24766 # include <assert.h>
24767 #endif
24768
24769 #undef $ac_func
24770
24771 /* Override any GCC internal prototype to avoid an error.
24772    Use char because int might match the return type of a GCC
24773    builtin and then its argument prototype would still apply.  */
24774 #ifdef __cplusplus
24775 extern "C"
24776 #endif
24777 char $ac_func ();
24778 /* The GNU C library defines this for functions which it implements
24779     to always fail with ENOSYS.  Some functions are actually named
24780     something starting with __ and the normal name is an alias.  */
24781 #if defined __stub_$ac_func || defined __stub___$ac_func
24782 choke me
24783 #endif
24784
24785 int
24786 main ()
24787 {
24788 return $ac_func ();
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (ac_try="$ac_link"
24795 case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800   (eval "$ac_link") 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && {
24807          test -z "$ac_c_werror_flag" ||
24808          test ! -s conftest.err
24809        } && test -s conftest$ac_exeext &&
24810        $as_test_x conftest$ac_exeext; then
24811   eval "$as_ac_var=yes"
24812 else
24813   echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816         eval "$as_ac_var=no"
24817 fi
24818
24819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24820       conftest$ac_exeext conftest.$ac_ext
24821 fi
24822 ac_res=`eval echo '${'$as_ac_var'}'`
24823                { echo "$as_me:$LINENO: result: $ac_res" >&5
24824 echo "${ECHO_T}$ac_res" >&6; }
24825 if test `eval echo '${'$as_ac_var'}'` = yes; then
24826   cat >>confdefs.h <<_ACEOF
24827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24828 _ACEOF
24829
24830 fi
24831 done
24832
24833 if test "x$ac_cv_func_fork" = xyes; then
24834   { echo "$as_me:$LINENO: checking for working fork" >&5
24835 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24836 if test "${ac_cv_func_fork_works+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   if test "$cross_compiling" = yes; then
24840   ac_cv_func_fork_works=cross
24841 else
24842   cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848 $ac_includes_default
24849 int
24850 main ()
24851 {
24852
24853           /* By Ruediger Kuhlmann. */
24854           return fork () < 0;
24855
24856   ;
24857   return 0;
24858 }
24859 _ACEOF
24860 rm -f conftest$ac_exeext
24861 if { (ac_try="$ac_link"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_link") 2>&5
24868   ac_status=$?
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24871   { (case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876   (eval "$ac_try") 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; }; then
24880   ac_cv_func_fork_works=yes
24881 else
24882   echo "$as_me: program exited with status $ac_status" >&5
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886 ( exit $ac_status )
24887 ac_cv_func_fork_works=no
24888 fi
24889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24890 fi
24891
24892
24893 fi
24894 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24895 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24896
24897 else
24898   ac_cv_func_fork_works=$ac_cv_func_fork
24899 fi
24900 if test "x$ac_cv_func_fork_works" = xcross; then
24901   case $host in
24902     *-*-amigaos* | *-*-msdosdjgpp*)
24903       # Override, as these systems have only a dummy fork() stub
24904       ac_cv_func_fork_works=no
24905       ;;
24906     *)
24907       ac_cv_func_fork_works=yes
24908       ;;
24909   esac
24910   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24911 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24912 fi
24913 ac_cv_func_vfork_works=$ac_cv_func_vfork
24914 if test "x$ac_cv_func_vfork" = xyes; then
24915   { echo "$as_me:$LINENO: checking for working vfork" >&5
24916 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24917 if test "${ac_cv_func_vfork_works+set}" = set; then
24918   echo $ECHO_N "(cached) $ECHO_C" >&6
24919 else
24920   if test "$cross_compiling" = yes; then
24921   ac_cv_func_vfork_works=cross
24922 else
24923   cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929 /* Thanks to Paul Eggert for this test.  */
24930 $ac_includes_default
24931 #include <sys/wait.h>
24932 #ifdef HAVE_VFORK_H
24933 # include <vfork.h>
24934 #endif
24935 /* On some sparc systems, changes by the child to local and incoming
24936    argument registers are propagated back to the parent.  The compiler
24937    is told about this with #include <vfork.h>, but some compilers
24938    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24939    static variable whose address is put into a register that is
24940    clobbered by the vfork.  */
24941 static void
24942 #ifdef __cplusplus
24943 sparc_address_test (int arg)
24944 # else
24945 sparc_address_test (arg) int arg;
24946 #endif
24947 {
24948   static pid_t child;
24949   if (!child) {
24950     child = vfork ();
24951     if (child < 0) {
24952       perror ("vfork");
24953       _exit(2);
24954     }
24955     if (!child) {
24956       arg = getpid();
24957       write(-1, "", 0);
24958       _exit (arg);
24959     }
24960   }
24961 }
24962
24963 int
24964 main ()
24965 {
24966   pid_t parent = getpid ();
24967   pid_t child;
24968
24969   sparc_address_test (0);
24970
24971   child = vfork ();
24972
24973   if (child == 0) {
24974     /* Here is another test for sparc vfork register problems.  This
24975        test uses lots of local variables, at least as many local
24976        variables as main has allocated so far including compiler
24977        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24978        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24979        reuse the register of parent for one of the local variables,
24980        since it will think that parent can't possibly be used any more
24981        in this routine.  Assigning to the local variable will thus
24982        munge parent in the parent process.  */
24983     pid_t
24984       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24985       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24986     /* Convince the compiler that p..p7 are live; otherwise, it might
24987        use the same hardware register for all 8 local variables.  */
24988     if (p != p1 || p != p2 || p != p3 || p != p4
24989         || p != p5 || p != p6 || p != p7)
24990       _exit(1);
24991
24992     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24993        from child file descriptors.  If the child closes a descriptor
24994        before it execs or exits, this munges the parent's descriptor
24995        as well.  Test for this by closing stdout in the child.  */
24996     _exit(close(fileno(stdout)) != 0);
24997   } else {
24998     int status;
24999     struct stat st;
25000
25001     while (wait(&status) != child)
25002       ;
25003     return (
25004          /* Was there some problem with vforking?  */
25005          child < 0
25006
25007          /* Did the child fail?  (This shouldn't happen.)  */
25008          || status
25009
25010          /* Did the vfork/compiler bug occur?  */
25011          || parent != getpid()
25012
25013          /* Did the file descriptor bug occur?  */
25014          || fstat(fileno(stdout), &st) != 0
25015          );
25016   }
25017 }
25018 _ACEOF
25019 rm -f conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023   *) ac_try_echo=$ac_try;;
25024 esac
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026   (eval "$ac_link") 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25030   { (case "(($ac_try" in
25031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032   *) ac_try_echo=$ac_try;;
25033 esac
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035   (eval "$ac_try") 2>&5
25036   ac_status=$?
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); }; }; then
25039   ac_cv_func_vfork_works=yes
25040 else
25041   echo "$as_me: program exited with status $ac_status" >&5
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045 ( exit $ac_status )
25046 ac_cv_func_vfork_works=no
25047 fi
25048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25049 fi
25050
25051
25052 fi
25053 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25054 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25055
25056 fi;
25057 if test "x$ac_cv_func_fork_works" = xcross; then
25058   ac_cv_func_vfork_works=$ac_cv_func_vfork
25059   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25060 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25061 fi
25062
25063 if test "x$ac_cv_func_vfork_works" = xyes; then
25064
25065 cat >>confdefs.h <<\_ACEOF
25066 #define HAVE_WORKING_VFORK 1
25067 _ACEOF
25068
25069 else
25070
25071 cat >>confdefs.h <<\_ACEOF
25072 #define vfork fork
25073 _ACEOF
25074
25075 fi
25076 if test "x$ac_cv_func_fork_works" = xyes; then
25077
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_WORKING_FORK 1
25080 _ACEOF
25081
25082 fi
25083
25084 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25085 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25086 if test "${ac_cv_type_getgroups+set}" = set; then
25087   echo $ECHO_N "(cached) $ECHO_C" >&6
25088 else
25089   if test "$cross_compiling" = yes; then
25090   ac_cv_type_getgroups=cross
25091 else
25092   cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098 /* Thanks to Mike Rendell for this test.  */
25099 $ac_includes_default
25100 #define NGID 256
25101 #undef MAX
25102 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25103
25104 int
25105 main ()
25106 {
25107   gid_t gidset[NGID];
25108   int i, n;
25109   union { gid_t gval; long int lval; }  val;
25110
25111   val.lval = -1;
25112   for (i = 0; i < NGID; i++)
25113     gidset[i] = val.gval;
25114   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25115                  gidset);
25116   /* Exit non-zero if getgroups seems to require an array of ints.  This
25117      happens when gid_t is short int but getgroups modifies an array
25118      of ints.  */
25119   return n > 0 && gidset[n] != val.gval;
25120 }
25121 _ACEOF
25122 rm -f conftest$ac_exeext
25123 if { (ac_try="$ac_link"
25124 case "(($ac_try" in
25125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126   *) ac_try_echo=$ac_try;;
25127 esac
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129   (eval "$ac_link") 2>&5
25130   ac_status=$?
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25133   { (case "(($ac_try" in
25134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135   *) ac_try_echo=$ac_try;;
25136 esac
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138   (eval "$ac_try") 2>&5
25139   ac_status=$?
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); }; }; then
25142   ac_cv_type_getgroups=gid_t
25143 else
25144   echo "$as_me: program exited with status $ac_status" >&5
25145 echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25147
25148 ( exit $ac_status )
25149 ac_cv_type_getgroups=int
25150 fi
25151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25152 fi
25153
25154
25155 if test $ac_cv_type_getgroups = cross; then
25156         cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162 #include <unistd.h>
25163
25164 _ACEOF
25165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25166   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25167   ac_cv_type_getgroups=gid_t
25168 else
25169   ac_cv_type_getgroups=int
25170 fi
25171 rm -f conftest*
25172
25173 fi
25174 fi
25175 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25176 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25177
25178 cat >>confdefs.h <<_ACEOF
25179 #define GETGROUPS_T $ac_cv_type_getgroups
25180 _ACEOF
25181
25182
25183 { echo "$as_me:$LINENO: checking for getgroups" >&5
25184 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25185 if test "${ac_cv_func_getgroups+set}" = set; then
25186   echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25188   cat >conftest.$ac_ext <<_ACEOF
25189 /* confdefs.h.  */
25190 _ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h.  */
25194 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25196 #define getgroups innocuous_getgroups
25197
25198 /* System header to define __stub macros and hopefully few prototypes,
25199     which can conflict with char getgroups (); below.
25200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25201     <limits.h> exists even on freestanding compilers.  */
25202
25203 #ifdef __STDC__
25204 # include <limits.h>
25205 #else
25206 # include <assert.h>
25207 #endif
25208
25209 #undef getgroups
25210
25211 /* Override any GCC internal prototype to avoid an error.
25212    Use char because int might match the return type of a GCC
25213    builtin and then its argument prototype would still apply.  */
25214 #ifdef __cplusplus
25215 extern "C"
25216 #endif
25217 char getgroups ();
25218 /* The GNU C library defines this for functions which it implements
25219     to always fail with ENOSYS.  Some functions are actually named
25220     something starting with __ and the normal name is an alias.  */
25221 #if defined __stub_getgroups || defined __stub___getgroups
25222 choke me
25223 #endif
25224
25225 int
25226 main ()
25227 {
25228 return getgroups ();
25229   ;
25230   return 0;
25231 }
25232 _ACEOF
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (ac_try="$ac_link"
25235 case "(($ac_try" in
25236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237   *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240   (eval "$ac_link") 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } && {
25247          test -z "$ac_c_werror_flag" ||
25248          test ! -s conftest.err
25249        } && test -s conftest$ac_exeext &&
25250        $as_test_x conftest$ac_exeext; then
25251   ac_cv_func_getgroups=yes
25252 else
25253   echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25255
25256         ac_cv_func_getgroups=no
25257 fi
25258
25259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25260       conftest$ac_exeext conftest.$ac_ext
25261 fi
25262 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25263 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25264
25265
25266 # If we don't yet have getgroups, see if it's in -lbsd.
25267 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25268 ac_save_LIBS=$LIBS
25269 if test $ac_cv_func_getgroups = no; then
25270   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25271 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25272 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   ac_check_lib_save_LIBS=$LIBS
25276 LIBS="-lbsd  $LIBS"
25277 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h.  */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h.  */
25283
25284 /* Override any GCC internal prototype to avoid an error.
25285    Use char because int might match the return type of a GCC
25286    builtin and then its argument prototype would still apply.  */
25287 #ifdef __cplusplus
25288 extern "C"
25289 #endif
25290 char getgroups ();
25291 int
25292 main ()
25293 {
25294 return getgroups ();
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext conftest$ac_exeext
25300 if { (ac_try="$ac_link"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306   (eval "$ac_link") 2>conftest.er1
25307   ac_status=$?
25308   grep -v '^ *+' conftest.er1 >conftest.err
25309   rm -f conftest.er1
25310   cat conftest.err >&5
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } && {
25313          test -z "$ac_c_werror_flag" ||
25314          test ! -s conftest.err
25315        } && test -s conftest$ac_exeext &&
25316        $as_test_x conftest$ac_exeext; then
25317   ac_cv_lib_bsd_getgroups=yes
25318 else
25319   echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25321
25322         ac_cv_lib_bsd_getgroups=no
25323 fi
25324
25325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25326       conftest$ac_exeext conftest.$ac_ext
25327 LIBS=$ac_check_lib_save_LIBS
25328 fi
25329 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25330 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25331 if test $ac_cv_lib_bsd_getgroups = yes; then
25332   GETGROUPS_LIB=-lbsd
25333 fi
25334
25335 fi
25336
25337 # Run the program to test the functionality of the system-supplied
25338 # getgroups function only if there is such a function.
25339 if test $ac_cv_func_getgroups = yes; then
25340   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25341 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25342 if test "${ac_cv_func_getgroups_works+set}" = set; then
25343   echo $ECHO_N "(cached) $ECHO_C" >&6
25344 else
25345   if test "$cross_compiling" = yes; then
25346   ac_cv_func_getgroups_works=no
25347 else
25348   cat >conftest.$ac_ext <<_ACEOF
25349 /* confdefs.h.  */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h.  */
25354 $ac_includes_default
25355 int
25356 main ()
25357 {
25358 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25359        return getgroups (0, 0) == -1;
25360   ;
25361   return 0;
25362 }
25363 _ACEOF
25364 rm -f conftest$ac_exeext
25365 if { (ac_try="$ac_link"
25366 case "(($ac_try" in
25367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368   *) ac_try_echo=$ac_try;;
25369 esac
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371   (eval "$ac_link") 2>&5
25372   ac_status=$?
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25375   { (case "(($ac_try" in
25376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377   *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380   (eval "$ac_try") 2>&5
25381   ac_status=$?
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); }; }; then
25384   ac_cv_func_getgroups_works=yes
25385 else
25386   echo "$as_me: program exited with status $ac_status" >&5
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25389
25390 ( exit $ac_status )
25391 ac_cv_func_getgroups_works=no
25392 fi
25393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25394 fi
25395
25396
25397
25398 fi
25399 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25400 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25401   if test $ac_cv_func_getgroups_works = yes; then
25402
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_GETGROUPS 1
25405 _ACEOF
25406
25407   fi
25408 fi
25409 LIBS=$ac_save_LIBS
25410
25411 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25412 # -lseq on Dynix/PTX, -lgen on Unixware.
25413 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25414 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25415 if test "${ac_cv_search_getmntent+set}" = set; then
25416   echo $ECHO_N "(cached) $ECHO_C" >&6
25417 else
25418   ac_func_search_save_LIBS=$LIBS
25419 cat >conftest.$ac_ext <<_ACEOF
25420 /* confdefs.h.  */
25421 _ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h.  */
25425
25426 /* Override any GCC internal prototype to avoid an error.
25427    Use char because int might match the return type of a GCC
25428    builtin and then its argument prototype would still apply.  */
25429 #ifdef __cplusplus
25430 extern "C"
25431 #endif
25432 char getmntent ();
25433 int
25434 main ()
25435 {
25436 return getmntent ();
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 for ac_lib in '' sun seq gen; do
25442   if test -z "$ac_lib"; then
25443     ac_res="none required"
25444   else
25445     ac_res=-l$ac_lib
25446     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25447   fi
25448   rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452   *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455   (eval "$ac_link") 2>conftest.er1
25456   ac_status=$?
25457   grep -v '^ *+' conftest.er1 >conftest.err
25458   rm -f conftest.er1
25459   cat conftest.err >&5
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); } && {
25462          test -z "$ac_c_werror_flag" ||
25463          test ! -s conftest.err
25464        } && test -s conftest$ac_exeext &&
25465        $as_test_x conftest$ac_exeext; then
25466   ac_cv_search_getmntent=$ac_res
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471
25472 fi
25473
25474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25475       conftest$ac_exeext
25476   if test "${ac_cv_search_getmntent+set}" = set; then
25477   break
25478 fi
25479 done
25480 if test "${ac_cv_search_getmntent+set}" = set; then
25481   :
25482 else
25483   ac_cv_search_getmntent=no
25484 fi
25485 rm conftest.$ac_ext
25486 LIBS=$ac_func_search_save_LIBS
25487 fi
25488 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25489 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25490 ac_res=$ac_cv_search_getmntent
25491 if test "$ac_res" != no; then
25492   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25493   ac_cv_func_getmntent=yes
25494
25495 cat >>confdefs.h <<\_ACEOF
25496 #define HAVE_GETMNTENT 1
25497 _ACEOF
25498
25499 else
25500   ac_cv_func_getmntent=no
25501 fi
25502
25503
25504 if test $ac_cv_c_compiler_gnu = yes; then
25505     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25506 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25507 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510     ac_pattern="Autoconf.*'x'"
25511   cat >conftest.$ac_ext <<_ACEOF
25512 /* confdefs.h.  */
25513 _ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h.  */
25517 #include <sgtty.h>
25518 Autoconf TIOCGETP
25519 _ACEOF
25520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25521   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25522   ac_cv_prog_gcc_traditional=yes
25523 else
25524   ac_cv_prog_gcc_traditional=no
25525 fi
25526 rm -f conftest*
25527
25528
25529   if test $ac_cv_prog_gcc_traditional = no; then
25530     cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h.  */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h.  */
25536 #include <termio.h>
25537 Autoconf TCGETA
25538 _ACEOF
25539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25540   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25541   ac_cv_prog_gcc_traditional=yes
25542 fi
25543 rm -f conftest*
25544
25545   fi
25546 fi
25547 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25548 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25549   if test $ac_cv_prog_gcc_traditional = yes; then
25550     CC="$CC -traditional"
25551   fi
25552 fi
25553
25554 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25555 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25556 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25557   echo $ECHO_N "(cached) $ECHO_C" >&6
25558 else
25559   rm -f conftest.sym conftest.file
25560 echo >conftest.file
25561 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25562   if test "$cross_compiling" = yes; then
25563   ac_cv_func_lstat_dereferences_slashed_symlink=no
25564 else
25565   cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h.  */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h.  */
25571 $ac_includes_default
25572 int
25573 main ()
25574 {
25575 struct stat sbuf;
25576      /* Linux will dereference the symlink and fail.
25577         That is better in the sense that it means we will not
25578         have to compile and use the lstat wrapper.  */
25579      return lstat ("conftest.sym/", &sbuf) == 0;
25580   ;
25581   return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588   *) ac_try_echo=$ac_try;;
25589 esac
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591   (eval "$ac_link") 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25595   { (case "(($ac_try" in
25596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597   *) ac_try_echo=$ac_try;;
25598 esac
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600   (eval "$ac_try") 2>&5
25601   ac_status=$?
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); }; }; then
25604   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25605 else
25606   echo "$as_me: program exited with status $ac_status" >&5
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 ( exit $ac_status )
25611 ac_cv_func_lstat_dereferences_slashed_symlink=no
25612 fi
25613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25614 fi
25615
25616
25617 else
25618   # If the `ln -s' command failed, then we probably don't even
25619   # have an lstat function.
25620   ac_cv_func_lstat_dereferences_slashed_symlink=no
25621 fi
25622 rm -f conftest.sym conftest.file
25623
25624 fi
25625 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25626 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25627
25628 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25629
25630 cat >>confdefs.h <<_ACEOF
25631 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25632 _ACEOF
25633
25634
25635 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25636   case " $LIBOBJS " in
25637   *" lstat.$ac_objext "* ) ;;
25638   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25639  ;;
25640 esac
25641
25642 fi
25643
25644 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25645 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25646 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25647   echo $ECHO_N "(cached) $ECHO_C" >&6
25648 else
25649   if test "$cross_compiling" = yes; then
25650   ac_cv_func_lstat_empty_string_bug=yes
25651 else
25652   cat >conftest.$ac_ext <<_ACEOF
25653 /* confdefs.h.  */
25654 _ACEOF
25655 cat confdefs.h >>conftest.$ac_ext
25656 cat >>conftest.$ac_ext <<_ACEOF
25657 /* end confdefs.h.  */
25658 $ac_includes_default
25659 int
25660 main ()
25661 {
25662 struct stat sbuf;
25663   return lstat ("", &sbuf) == 0;
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest$ac_exeext
25669 if { (ac_try="$ac_link"
25670 case "(($ac_try" in
25671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672   *) ac_try_echo=$ac_try;;
25673 esac
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675   (eval "$ac_link") 2>&5
25676   ac_status=$?
25677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25679   { (case "(($ac_try" in
25680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25681   *) ac_try_echo=$ac_try;;
25682 esac
25683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25684   (eval "$ac_try") 2>&5
25685   ac_status=$?
25686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687   (exit $ac_status); }; }; then
25688   ac_cv_func_lstat_empty_string_bug=no
25689 else
25690   echo "$as_me: program exited with status $ac_status" >&5
25691 echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694 ( exit $ac_status )
25695 ac_cv_func_lstat_empty_string_bug=yes
25696 fi
25697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25698 fi
25699
25700
25701 fi
25702 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25703 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25704 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25705   case " $LIBOBJS " in
25706   *" lstat.$ac_objext "* ) ;;
25707   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25708  ;;
25709 esac
25710
25711
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25714 _ACEOF
25715
25716 fi
25717
25718 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25719 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25720 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   rm -f conftest.sym conftest.file
25724 echo >conftest.file
25725 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25726   if test "$cross_compiling" = yes; then
25727   ac_cv_func_lstat_dereferences_slashed_symlink=no
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 $ac_includes_default
25736 int
25737 main ()
25738 {
25739 struct stat sbuf;
25740      /* Linux will dereference the symlink and fail.
25741         That is better in the sense that it means we will not
25742         have to compile and use the lstat wrapper.  */
25743      return lstat ("conftest.sym/", &sbuf) == 0;
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 rm -f conftest$ac_exeext
25749 if { (ac_try="$ac_link"
25750 case "(($ac_try" in
25751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752   *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755   (eval "$ac_link") 2>&5
25756   ac_status=$?
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25759   { (case "(($ac_try" in
25760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761   *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764   (eval "$ac_try") 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; }; then
25768   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25769 else
25770   echo "$as_me: program exited with status $ac_status" >&5
25771 echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25773
25774 ( exit $ac_status )
25775 ac_cv_func_lstat_dereferences_slashed_symlink=no
25776 fi
25777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25778 fi
25779
25780
25781 else
25782   # If the `ln -s' command failed, then we probably don't even
25783   # have an lstat function.
25784   ac_cv_func_lstat_dereferences_slashed_symlink=no
25785 fi
25786 rm -f conftest.sym conftest.file
25787
25788 fi
25789 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25790 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25791
25792 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25793
25794 cat >>confdefs.h <<_ACEOF
25795 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25796 _ACEOF
25797
25798
25799 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25800   case " $LIBOBJS " in
25801   *" lstat.$ac_objext "* ) ;;
25802   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25803  ;;
25804 esac
25805
25806 fi
25807
25808 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25809 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25810 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813   cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819 #include <sys/types.h>
25820 int
25821 main ()
25822 {
25823 return makedev(0, 0);
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 rm -f conftest.$ac_objext conftest$ac_exeext
25829 if { (ac_try="$ac_link"
25830 case "(($ac_try" in
25831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832   *) ac_try_echo=$ac_try;;
25833 esac
25834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25835   (eval "$ac_link") 2>conftest.er1
25836   ac_status=$?
25837   grep -v '^ *+' conftest.er1 >conftest.err
25838   rm -f conftest.er1
25839   cat conftest.err >&5
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); } && {
25842          test -z "$ac_c_werror_flag" ||
25843          test ! -s conftest.err
25844        } && test -s conftest$ac_exeext &&
25845        $as_test_x conftest$ac_exeext; then
25846   ac_cv_header_sys_types_h_makedev=yes
25847 else
25848   echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25850
25851         ac_cv_header_sys_types_h_makedev=no
25852 fi
25853
25854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25855       conftest$ac_exeext conftest.$ac_ext
25856
25857 fi
25858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25859 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25860
25861 if test $ac_cv_header_sys_types_h_makedev = no; then
25862 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25863   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25864 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25865 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25866   echo $ECHO_N "(cached) $ECHO_C" >&6
25867 fi
25868 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25869 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25870 else
25871   # Is the header compilable?
25872 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25873 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25874 cat >conftest.$ac_ext <<_ACEOF
25875 /* confdefs.h.  */
25876 _ACEOF
25877 cat confdefs.h >>conftest.$ac_ext
25878 cat >>conftest.$ac_ext <<_ACEOF
25879 /* end confdefs.h.  */
25880 $ac_includes_default
25881 #include <sys/mkdev.h>
25882 _ACEOF
25883 rm -f conftest.$ac_objext
25884 if { (ac_try="$ac_compile"
25885 case "(($ac_try" in
25886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887   *) ac_try_echo=$ac_try;;
25888 esac
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890   (eval "$ac_compile") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest.$ac_objext; then
25900   ac_header_compiler=yes
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905         ac_header_compiler=no
25906 fi
25907
25908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25910 echo "${ECHO_T}$ac_header_compiler" >&6; }
25911
25912 # Is the header present?
25913 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25914 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25915 cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 #include <sys/mkdev.h>
25922 _ACEOF
25923 if { (ac_try="$ac_cpp conftest.$ac_ext"
25924 case "(($ac_try" in
25925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926   *) ac_try_echo=$ac_try;;
25927 esac
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25930   ac_status=$?
25931   grep -v '^ *+' conftest.er1 >conftest.err
25932   rm -f conftest.er1
25933   cat conftest.err >&5
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } >/dev/null && {
25936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25937          test ! -s conftest.err
25938        }; then
25939   ac_header_preproc=yes
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944   ac_header_preproc=no
25945 fi
25946
25947 rm -f conftest.err conftest.$ac_ext
25948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25949 echo "${ECHO_T}$ac_header_preproc" >&6; }
25950
25951 # So?  What about this header?
25952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25953   yes:no: )
25954     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25955 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25956     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25957 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25958     ac_header_preproc=yes
25959     ;;
25960   no:yes:* )
25961     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25962 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25964 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25966 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25967     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25968 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25971     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25972 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25973     ( cat <<\_ASBOX
25974 ## ------------------------------- ##
25975 ## Report this to nfs@lists.sf.net ##
25976 ## ------------------------------- ##
25977 _ASBOX
25978      ) | sed "s/^/$as_me: WARNING:     /" >&2
25979     ;;
25980 esac
25981 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25982 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25983 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25987 fi
25988 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25989 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25990
25991 fi
25992 if test $ac_cv_header_sys_mkdev_h = yes; then
25993
25994 cat >>confdefs.h <<\_ACEOF
25995 #define MAJOR_IN_MKDEV 1
25996 _ACEOF
25997
25998 fi
25999
26000
26001
26002   if test $ac_cv_header_sys_mkdev_h = no; then
26003     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26004   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26005 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26006 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26007   echo $ECHO_N "(cached) $ECHO_C" >&6
26008 fi
26009 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26010 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26011 else
26012   # Is the header compilable?
26013 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26014 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26015 cat >conftest.$ac_ext <<_ACEOF
26016 /* confdefs.h.  */
26017 _ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h.  */
26021 $ac_includes_default
26022 #include <sys/sysmacros.h>
26023 _ACEOF
26024 rm -f conftest.$ac_objext
26025 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26032   ac_status=$?
26033   grep -v '^ *+' conftest.er1 >conftest.err
26034   rm -f conftest.er1
26035   cat conftest.err >&5
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); } && {
26038          test -z "$ac_c_werror_flag" ||
26039          test ! -s conftest.err
26040        } && test -s conftest.$ac_objext; then
26041   ac_header_compiler=yes
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046         ac_header_compiler=no
26047 fi
26048
26049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26051 echo "${ECHO_T}$ac_header_compiler" >&6; }
26052
26053 # Is the header present?
26054 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26055 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h.  */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h.  */
26062 #include <sys/sysmacros.h>
26063 _ACEOF
26064 if { (ac_try="$ac_cpp conftest.$ac_ext"
26065 case "(($ac_try" in
26066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067   *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26071   ac_status=$?
26072   grep -v '^ *+' conftest.er1 >conftest.err
26073   rm -f conftest.er1
26074   cat conftest.err >&5
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); } >/dev/null && {
26077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26078          test ! -s conftest.err
26079        }; then
26080   ac_header_preproc=yes
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085   ac_header_preproc=no
26086 fi
26087
26088 rm -f conftest.err conftest.$ac_ext
26089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26090 echo "${ECHO_T}$ac_header_preproc" >&6; }
26091
26092 # So?  What about this header?
26093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26094   yes:no: )
26095     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26096 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26097     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26098 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26099     ac_header_preproc=yes
26100     ;;
26101   no:yes:* )
26102     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26103 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
26105 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
26106     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26107 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26108     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
26109 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26111 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26113 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26114     ( cat <<\_ASBOX
26115 ## ------------------------------- ##
26116 ## Report this to nfs@lists.sf.net ##
26117 ## ------------------------------- ##
26118 _ASBOX
26119      ) | sed "s/^/$as_me: WARNING:     /" >&2
26120     ;;
26121 esac
26122 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26123 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26124 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26125   echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26128 fi
26129 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26130 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26131
26132 fi
26133 if test $ac_cv_header_sys_sysmacros_h = yes; then
26134
26135 cat >>confdefs.h <<\_ACEOF
26136 #define MAJOR_IN_SYSMACROS 1
26137 _ACEOF
26138
26139 fi
26140
26141
26142   fi
26143 fi
26144
26145 #AC_FUNC_MALLOC
26146 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26147 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26148 if test "${ac_cv_func_memcmp_working+set}" = set; then
26149   echo $ECHO_N "(cached) $ECHO_C" >&6
26150 else
26151   if test "$cross_compiling" = yes; then
26152   ac_cv_func_memcmp_working=no
26153 else
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 $ac_includes_default
26161 int
26162 main ()
26163 {
26164
26165   /* Some versions of memcmp are not 8-bit clean.  */
26166   char c0 = '\100', c1 = '\200', c2 = '\201';
26167   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26168     return 1;
26169
26170   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26171      or more and with at least one buffer not starting on a 4-byte boundary.
26172      William Lewis provided this test program.   */
26173   {
26174     char foo[21];
26175     char bar[21];
26176     int i;
26177     for (i = 0; i < 4; i++)
26178       {
26179         char *a = foo + i;
26180         char *b = bar + i;
26181         strcpy (a, "--------01111111");
26182         strcpy (b, "--------10000000");
26183         if (memcmp (a, b, 16) >= 0)
26184           return 1;
26185       }
26186     return 0;
26187   }
26188
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 rm -f conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197   *) ac_try_echo=$ac_try;;
26198 esac
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200   (eval "$ac_link") 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26204   { (case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_try") 2>&5
26210   ac_status=$?
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); }; }; then
26213   ac_cv_func_memcmp_working=yes
26214 else
26215   echo "$as_me: program exited with status $ac_status" >&5
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 ( exit $ac_status )
26220 ac_cv_func_memcmp_working=no
26221 fi
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26223 fi
26224
26225
26226 fi
26227 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26228 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26229 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26230   *" memcmp.$ac_objext "* ) ;;
26231   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26232  ;;
26233 esac
26234
26235
26236 #AC_FUNC_REALLOC
26237
26238
26239 for ac_header in sys/select.h sys/socket.h
26240 do
26241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 fi
26248 ac_res=`eval echo '${'$as_ac_Header'}'`
26249                { echo "$as_me:$LINENO: result: $ac_res" >&5
26250 echo "${ECHO_T}$ac_res" >&6; }
26251 else
26252   # Is the header compilable?
26253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26255 cat >conftest.$ac_ext <<_ACEOF
26256 /* confdefs.h.  */
26257 _ACEOF
26258 cat confdefs.h >>conftest.$ac_ext
26259 cat >>conftest.$ac_ext <<_ACEOF
26260 /* end confdefs.h.  */
26261 $ac_includes_default
26262 #include <$ac_header>
26263 _ACEOF
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268   *) ac_try_echo=$ac_try;;
26269 esac
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271   (eval "$ac_compile") 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } && {
26278          test -z "$ac_c_werror_flag" ||
26279          test ! -s conftest.err
26280        } && test -s conftest.$ac_objext; then
26281   ac_header_compiler=yes
26282 else
26283   echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26285
26286         ac_header_compiler=no
26287 fi
26288
26289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26291 echo "${ECHO_T}$ac_header_compiler" >&6; }
26292
26293 # Is the header present?
26294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302 #include <$ac_header>
26303 _ACEOF
26304 if { (ac_try="$ac_cpp conftest.$ac_ext"
26305 case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } >/dev/null && {
26317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26318          test ! -s conftest.err
26319        }; then
26320   ac_header_preproc=yes
26321 else
26322   echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26324
26325   ac_header_preproc=no
26326 fi
26327
26328 rm -f conftest.err conftest.$ac_ext
26329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26330 echo "${ECHO_T}$ac_header_preproc" >&6; }
26331
26332 # So?  What about this header?
26333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26334   yes:no: )
26335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26339     ac_header_preproc=yes
26340     ;;
26341   no:yes:* )
26342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26354     ( cat <<\_ASBOX
26355 ## ------------------------------- ##
26356 ## Report this to nfs@lists.sf.net ##
26357 ## ------------------------------- ##
26358 _ASBOX
26359      ) | sed "s/^/$as_me: WARNING:     /" >&2
26360     ;;
26361 esac
26362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26365   echo $ECHO_N "(cached) $ECHO_C" >&6
26366 else
26367   eval "$as_ac_Header=\$ac_header_preproc"
26368 fi
26369 ac_res=`eval echo '${'$as_ac_Header'}'`
26370                { echo "$as_me:$LINENO: result: $ac_res" >&5
26371 echo "${ECHO_T}$ac_res" >&6; }
26372
26373 fi
26374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26375   cat >>confdefs.h <<_ACEOF
26376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26377 _ACEOF
26378
26379 fi
26380
26381 done
26382
26383 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26384 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26385 if test "${ac_cv_func_select_args+set}" = set; then
26386   echo $ECHO_N "(cached) $ECHO_C" >&6
26387 else
26388   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26389  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26390   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26391    cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h.  */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h.  */
26397 $ac_includes_default
26398 #ifdef HAVE_SYS_SELECT_H
26399 # include <sys/select.h>
26400 #endif
26401 #ifdef HAVE_SYS_SOCKET_H
26402 # include <sys/socket.h>
26403 #endif
26404
26405 int
26406 main ()
26407 {
26408 extern int select ($ac_arg1,
26409                                             $ac_arg234, $ac_arg234, $ac_arg234,
26410                                             $ac_arg5);
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext
26416 if { (ac_try="$ac_compile"
26417 case "(($ac_try" in
26418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419   *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422   (eval "$ac_compile") 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } && {
26429          test -z "$ac_c_werror_flag" ||
26430          test ! -s conftest.err
26431        } && test -s conftest.$ac_objext; then
26432   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437
26438 fi
26439
26440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26441   done
26442  done
26443 done
26444 # Provide a safe default value.
26445 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26446
26447 fi
26448 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26449 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26450 ac_save_IFS=$IFS; IFS=','
26451 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26452 IFS=$ac_save_IFS
26453 shift
26454
26455 cat >>confdefs.h <<_ACEOF
26456 #define SELECT_TYPE_ARG1 $1
26457 _ACEOF
26458
26459
26460 cat >>confdefs.h <<_ACEOF
26461 #define SELECT_TYPE_ARG234 ($2)
26462 _ACEOF
26463
26464
26465 cat >>confdefs.h <<_ACEOF
26466 #define SELECT_TYPE_ARG5 ($3)
26467 _ACEOF
26468
26469 rm -f conftest*
26470
26471 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26472 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26473 if test "${ac_cv_type_signal+set}" = set; then
26474   echo $ECHO_N "(cached) $ECHO_C" >&6
26475 else
26476   cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h.  */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h.  */
26482 #include <sys/types.h>
26483 #include <signal.h>
26484
26485 int
26486 main ()
26487 {
26488 return *(signal (0, 0)) (0) == 1;
26489   ;
26490   return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497   *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500   (eval "$ac_compile") 2>conftest.er1
26501   ac_status=$?
26502   grep -v '^ *+' conftest.er1 >conftest.err
26503   rm -f conftest.er1
26504   cat conftest.err >&5
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); } && {
26507          test -z "$ac_c_werror_flag" ||
26508          test ! -s conftest.err
26509        } && test -s conftest.$ac_objext; then
26510   ac_cv_type_signal=int
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515         ac_cv_type_signal=void
26516 fi
26517
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 fi
26520 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26521 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26522
26523 cat >>confdefs.h <<_ACEOF
26524 #define RETSIGTYPE $ac_cv_type_signal
26525 _ACEOF
26526
26527
26528 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26529 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26530 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26531   echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533   if test "$cross_compiling" = yes; then
26534   ac_cv_func_stat_empty_string_bug=yes
26535 else
26536   cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26542 $ac_includes_default
26543 int
26544 main ()
26545 {
26546 struct stat sbuf;
26547   return stat ("", &sbuf) == 0;
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 rm -f conftest$ac_exeext
26553 if { (ac_try="$ac_link"
26554 case "(($ac_try" in
26555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556   *) ac_try_echo=$ac_try;;
26557 esac
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559   (eval "$ac_link") 2>&5
26560   ac_status=$?
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26563   { (case "(($ac_try" in
26564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565   *) ac_try_echo=$ac_try;;
26566 esac
26567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26568   (eval "$ac_try") 2>&5
26569   ac_status=$?
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); }; }; then
26572   ac_cv_func_stat_empty_string_bug=no
26573 else
26574   echo "$as_me: program exited with status $ac_status" >&5
26575 echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26577
26578 ( exit $ac_status )
26579 ac_cv_func_stat_empty_string_bug=yes
26580 fi
26581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26582 fi
26583
26584
26585 fi
26586 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26587 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26588 if test $ac_cv_func_stat_empty_string_bug = yes; then
26589   case " $LIBOBJS " in
26590   *" stat.$ac_objext "* ) ;;
26591   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26592  ;;
26593 esac
26594
26595
26596 cat >>confdefs.h <<_ACEOF
26597 #define HAVE_STAT_EMPTY_STRING_BUG 1
26598 _ACEOF
26599
26600 fi
26601
26602
26603 for ac_func in vprintf
26604 do
26605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26609   echo $ECHO_N "(cached) $ECHO_C" >&6
26610 else
26611   cat >conftest.$ac_ext <<_ACEOF
26612 /* confdefs.h.  */
26613 _ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h.  */
26617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26619 #define $ac_func innocuous_$ac_func
26620
26621 /* System header to define __stub macros and hopefully few prototypes,
26622     which can conflict with char $ac_func (); below.
26623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26624     <limits.h> exists even on freestanding compilers.  */
26625
26626 #ifdef __STDC__
26627 # include <limits.h>
26628 #else
26629 # include <assert.h>
26630 #endif
26631
26632 #undef $ac_func
26633
26634 /* Override any GCC internal prototype to avoid an error.
26635    Use char because int might match the return type of a GCC
26636    builtin and then its argument prototype would still apply.  */
26637 #ifdef __cplusplus
26638 extern "C"
26639 #endif
26640 char $ac_func ();
26641 /* The GNU C library defines this for functions which it implements
26642     to always fail with ENOSYS.  Some functions are actually named
26643     something starting with __ and the normal name is an alias.  */
26644 #if defined __stub_$ac_func || defined __stub___$ac_func
26645 choke me
26646 #endif
26647
26648 int
26649 main ()
26650 {
26651 return $ac_func ();
26652   ;
26653   return 0;
26654 }
26655 _ACEOF
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (ac_try="$ac_link"
26658 case "(($ac_try" in
26659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660   *) ac_try_echo=$ac_try;;
26661 esac
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663   (eval "$ac_link") 2>conftest.er1
26664   ac_status=$?
26665   grep -v '^ *+' conftest.er1 >conftest.err
26666   rm -f conftest.er1
26667   cat conftest.err >&5
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); } && {
26670          test -z "$ac_c_werror_flag" ||
26671          test ! -s conftest.err
26672        } && test -s conftest$ac_exeext &&
26673        $as_test_x conftest$ac_exeext; then
26674   eval "$as_ac_var=yes"
26675 else
26676   echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679         eval "$as_ac_var=no"
26680 fi
26681
26682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26683       conftest$ac_exeext conftest.$ac_ext
26684 fi
26685 ac_res=`eval echo '${'$as_ac_var'}'`
26686                { echo "$as_me:$LINENO: result: $ac_res" >&5
26687 echo "${ECHO_T}$ac_res" >&6; }
26688 if test `eval echo '${'$as_ac_var'}'` = yes; then
26689   cat >>confdefs.h <<_ACEOF
26690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26691 _ACEOF
26692
26693 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26694 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26695 if test "${ac_cv_func__doprnt+set}" = set; then
26696   echo $ECHO_N "(cached) $ECHO_C" >&6
26697 else
26698   cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26706 #define _doprnt innocuous__doprnt
26707
26708 /* System header to define __stub macros and hopefully few prototypes,
26709     which can conflict with char _doprnt (); below.
26710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26711     <limits.h> exists even on freestanding compilers.  */
26712
26713 #ifdef __STDC__
26714 # include <limits.h>
26715 #else
26716 # include <assert.h>
26717 #endif
26718
26719 #undef _doprnt
26720
26721 /* Override any GCC internal prototype to avoid an error.
26722    Use char because int might match the return type of a GCC
26723    builtin and then its argument prototype would still apply.  */
26724 #ifdef __cplusplus
26725 extern "C"
26726 #endif
26727 char _doprnt ();
26728 /* The GNU C library defines this for functions which it implements
26729     to always fail with ENOSYS.  Some functions are actually named
26730     something starting with __ and the normal name is an alias.  */
26731 #if defined __stub__doprnt || defined __stub____doprnt
26732 choke me
26733 #endif
26734
26735 int
26736 main ()
26737 {
26738 return _doprnt ();
26739   ;
26740   return 0;
26741 }
26742 _ACEOF
26743 rm -f conftest.$ac_objext conftest$ac_exeext
26744 if { (ac_try="$ac_link"
26745 case "(($ac_try" in
26746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747   *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750   (eval "$ac_link") 2>conftest.er1
26751   ac_status=$?
26752   grep -v '^ *+' conftest.er1 >conftest.err
26753   rm -f conftest.er1
26754   cat conftest.err >&5
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); } && {
26757          test -z "$ac_c_werror_flag" ||
26758          test ! -s conftest.err
26759        } && test -s conftest$ac_exeext &&
26760        $as_test_x conftest$ac_exeext; then
26761   ac_cv_func__doprnt=yes
26762 else
26763   echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26765
26766         ac_cv_func__doprnt=no
26767 fi
26768
26769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26770       conftest$ac_exeext conftest.$ac_ext
26771 fi
26772 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26773 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26774 if test $ac_cv_func__doprnt = yes; then
26775
26776 cat >>confdefs.h <<\_ACEOF
26777 #define HAVE_DOPRNT 1
26778 _ACEOF
26779
26780 fi
26781
26782 fi
26783 done
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26816                gethostbyaddr gethostbyname gethostname getmntent \
26817                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26818                realpath rmdir select socket strcasecmp strchr strdup \
26819                strerror strrchr strtol strtoul sigprocmask
26820 do
26821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26825   echo $ECHO_N "(cached) $ECHO_C" >&6
26826 else
26827   cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h.  */
26829 _ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h.  */
26833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26835 #define $ac_func innocuous_$ac_func
26836
26837 /* System header to define __stub macros and hopefully few prototypes,
26838     which can conflict with char $ac_func (); below.
26839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26840     <limits.h> exists even on freestanding compilers.  */
26841
26842 #ifdef __STDC__
26843 # include <limits.h>
26844 #else
26845 # include <assert.h>
26846 #endif
26847
26848 #undef $ac_func
26849
26850 /* Override any GCC internal prototype to avoid an error.
26851    Use char because int might match the return type of a GCC
26852    builtin and then its argument prototype would still apply.  */
26853 #ifdef __cplusplus
26854 extern "C"
26855 #endif
26856 char $ac_func ();
26857 /* The GNU C library defines this for functions which it implements
26858     to always fail with ENOSYS.  Some functions are actually named
26859     something starting with __ and the normal name is an alias.  */
26860 #if defined __stub_$ac_func || defined __stub___$ac_func
26861 choke me
26862 #endif
26863
26864 int
26865 main ()
26866 {
26867 return $ac_func ();
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest.$ac_objext conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876   *) ac_try_echo=$ac_try;;
26877 esac
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879   (eval "$ac_link") 2>conftest.er1
26880   ac_status=$?
26881   grep -v '^ *+' conftest.er1 >conftest.err
26882   rm -f conftest.er1
26883   cat conftest.err >&5
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); } && {
26886          test -z "$ac_c_werror_flag" ||
26887          test ! -s conftest.err
26888        } && test -s conftest$ac_exeext &&
26889        $as_test_x conftest$ac_exeext; then
26890   eval "$as_ac_var=yes"
26891 else
26892   echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895         eval "$as_ac_var=no"
26896 fi
26897
26898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26899       conftest$ac_exeext conftest.$ac_ext
26900 fi
26901 ac_res=`eval echo '${'$as_ac_var'}'`
26902                { echo "$as_me:$LINENO: result: $ac_res" >&5
26903 echo "${ECHO_T}$ac_res" >&6; }
26904 if test `eval echo '${'$as_ac_var'}'` = yes; then
26905   cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26907 _ACEOF
26908
26909 fi
26910 done
26911
26912
26913
26914 { echo "$as_me:$LINENO: checking for short" >&5
26915 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26916 if test "${ac_cv_type_short+set}" = set; then
26917   echo $ECHO_N "(cached) $ECHO_C" >&6
26918 else
26919   cat >conftest.$ac_ext <<_ACEOF
26920 /* confdefs.h.  */
26921 _ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h.  */
26925 $ac_includes_default
26926 typedef short ac__type_new_;
26927 int
26928 main ()
26929 {
26930 if ((ac__type_new_ *) 0)
26931   return 0;
26932 if (sizeof (ac__type_new_))
26933   return 0;
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext
26939 if { (ac_try="$ac_compile"
26940 case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_compile") 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && {
26952          test -z "$ac_c_werror_flag" ||
26953          test ! -s conftest.err
26954        } && test -s conftest.$ac_objext; then
26955   ac_cv_type_short=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_cv_type_short=no
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 fi
26965 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26966 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26967
26968 # The cast to long int works around a bug in the HP C Compiler
26969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26971 # This bug is HP SR number 8606223364.
26972 { echo "$as_me:$LINENO: checking size of short" >&5
26973 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26974 if test "${ac_cv_sizeof_short+set}" = set; then
26975   echo $ECHO_N "(cached) $ECHO_C" >&6
26976 else
26977   if test "$cross_compiling" = yes; then
26978   # Depending upon the size, compute the lo and hi bounds.
26979 cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985 $ac_includes_default
26986    typedef short ac__type_sizeof_;
26987 int
26988 main ()
26989 {
26990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26991 test_array [0] = 0
26992
26993   ;
26994   return 0;
26995 }
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001   *) ac_try_echo=$ac_try;;
27002 esac
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004   (eval "$ac_compile") 2>conftest.er1
27005   ac_status=$?
27006   grep -v '^ *+' conftest.er1 >conftest.err
27007   rm -f conftest.er1
27008   cat conftest.err >&5
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); } && {
27011          test -z "$ac_c_werror_flag" ||
27012          test ! -s conftest.err
27013        } && test -s conftest.$ac_objext; then
27014   ac_lo=0 ac_mid=0
27015   while :; do
27016     cat >conftest.$ac_ext <<_ACEOF
27017 /* confdefs.h.  */
27018 _ACEOF
27019 cat confdefs.h >>conftest.$ac_ext
27020 cat >>conftest.$ac_ext <<_ACEOF
27021 /* end confdefs.h.  */
27022 $ac_includes_default
27023    typedef short ac__type_sizeof_;
27024 int
27025 main ()
27026 {
27027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27028 test_array [0] = 0
27029
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 rm -f conftest.$ac_objext
27035 if { (ac_try="$ac_compile"
27036 case "(($ac_try" in
27037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038   *) ac_try_echo=$ac_try;;
27039 esac
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041   (eval "$ac_compile") 2>conftest.er1
27042   ac_status=$?
27043   grep -v '^ *+' conftest.er1 >conftest.err
27044   rm -f conftest.er1
27045   cat conftest.err >&5
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); } && {
27048          test -z "$ac_c_werror_flag" ||
27049          test ! -s conftest.err
27050        } && test -s conftest.$ac_objext; then
27051   ac_hi=$ac_mid; break
27052 else
27053   echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27055
27056         ac_lo=`expr $ac_mid + 1`
27057                         if test $ac_lo -le $ac_mid; then
27058                           ac_lo= ac_hi=
27059                           break
27060                         fi
27061                         ac_mid=`expr 2 '*' $ac_mid + 1`
27062 fi
27063
27064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065   done
27066 else
27067   echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27069
27070         cat >conftest.$ac_ext <<_ACEOF
27071 /* confdefs.h.  */
27072 _ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h.  */
27076 $ac_includes_default
27077    typedef short ac__type_sizeof_;
27078 int
27079 main ()
27080 {
27081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27082 test_array [0] = 0
27083
27084   ;
27085   return 0;
27086 }
27087 _ACEOF
27088 rm -f conftest.$ac_objext
27089 if { (ac_try="$ac_compile"
27090 case "(($ac_try" in
27091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092   *) ac_try_echo=$ac_try;;
27093 esac
27094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27095   (eval "$ac_compile") 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } && {
27102          test -z "$ac_c_werror_flag" ||
27103          test ! -s conftest.err
27104        } && test -s conftest.$ac_objext; then
27105   ac_hi=-1 ac_mid=-1
27106   while :; do
27107     cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 $ac_includes_default
27114    typedef short ac__type_sizeof_;
27115 int
27116 main ()
27117 {
27118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27119 test_array [0] = 0
27120
27121   ;
27122   return 0;
27123 }
27124 _ACEOF
27125 rm -f conftest.$ac_objext
27126 if { (ac_try="$ac_compile"
27127 case "(($ac_try" in
27128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129   *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132   (eval "$ac_compile") 2>conftest.er1
27133   ac_status=$?
27134   grep -v '^ *+' conftest.er1 >conftest.err
27135   rm -f conftest.er1
27136   cat conftest.err >&5
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); } && {
27139          test -z "$ac_c_werror_flag" ||
27140          test ! -s conftest.err
27141        } && test -s conftest.$ac_objext; then
27142   ac_lo=$ac_mid; break
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147         ac_hi=`expr '(' $ac_mid ')' - 1`
27148                         if test $ac_mid -le $ac_hi; then
27149                           ac_lo= ac_hi=
27150                           break
27151                         fi
27152                         ac_mid=`expr 2 '*' $ac_mid`
27153 fi
27154
27155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27156   done
27157 else
27158   echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27160
27161         ac_lo= ac_hi=
27162 fi
27163
27164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168 # Binary search between lo and hi bounds.
27169 while test "x$ac_lo" != "x$ac_hi"; do
27170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27171   cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 $ac_includes_default
27178    typedef short ac__type_sizeof_;
27179 int
27180 main ()
27181 {
27182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27183 test_array [0] = 0
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } && {
27203          test -z "$ac_c_werror_flag" ||
27204          test ! -s conftest.err
27205        } && test -s conftest.$ac_objext; then
27206   ac_hi=$ac_mid
27207 else
27208   echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27210
27211         ac_lo=`expr '(' $ac_mid ')' + 1`
27212 fi
27213
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 done
27216 case $ac_lo in
27217 ?*) ac_cv_sizeof_short=$ac_lo;;
27218 '') if test "$ac_cv_type_short" = yes; then
27219      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27220 See \`config.log' for more details." >&5
27221 echo "$as_me: error: cannot compute sizeof (short)
27222 See \`config.log' for more details." >&2;}
27223    { (exit 77); exit 77; }; }
27224    else
27225      ac_cv_sizeof_short=0
27226    fi ;;
27227 esac
27228 else
27229   cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 $ac_includes_default
27236    typedef short ac__type_sizeof_;
27237 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27238 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27239 #include <stdio.h>
27240 #include <stdlib.h>
27241 int
27242 main ()
27243 {
27244
27245   FILE *f = fopen ("conftest.val", "w");
27246   if (! f)
27247     return 1;
27248   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27249     {
27250       long int i = longval ();
27251       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27252         return 1;
27253       fprintf (f, "%ld\n", i);
27254     }
27255   else
27256     {
27257       unsigned long int i = ulongval ();
27258       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27259         return 1;
27260       fprintf (f, "%lu\n", i);
27261     }
27262   return ferror (f) || fclose (f) != 0;
27263
27264   ;
27265   return 0;
27266 }
27267 _ACEOF
27268 rm -f conftest$ac_exeext
27269 if { (ac_try="$ac_link"
27270 case "(($ac_try" in
27271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27272   *) ac_try_echo=$ac_try;;
27273 esac
27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275   (eval "$ac_link") 2>&5
27276   ac_status=$?
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27279   { (case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_try") 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; }; then
27288   ac_cv_sizeof_short=`cat conftest.val`
27289 else
27290   echo "$as_me: program exited with status $ac_status" >&5
27291 echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294 ( exit $ac_status )
27295 if test "$ac_cv_type_short" = yes; then
27296      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27297 See \`config.log' for more details." >&5
27298 echo "$as_me: error: cannot compute sizeof (short)
27299 See \`config.log' for more details." >&2;}
27300    { (exit 77); exit 77; }; }
27301    else
27302      ac_cv_sizeof_short=0
27303    fi
27304 fi
27305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27306 fi
27307 rm -f conftest.val
27308 fi
27309 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27310 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27311
27312
27313
27314 cat >>confdefs.h <<_ACEOF
27315 #define SIZEOF_SHORT $ac_cv_sizeof_short
27316 _ACEOF
27317
27318
27319 { echo "$as_me:$LINENO: checking for int" >&5
27320 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27321 if test "${ac_cv_type_int+set}" = set; then
27322   echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324   cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h.  */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h.  */
27330 $ac_includes_default
27331 typedef int ac__type_new_;
27332 int
27333 main ()
27334 {
27335 if ((ac__type_new_ *) 0)
27336   return 0;
27337 if (sizeof (ac__type_new_))
27338   return 0;
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347   *) ac_try_echo=$ac_try;;
27348 esac
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350   (eval "$ac_compile") 2>conftest.er1
27351   ac_status=$?
27352   grep -v '^ *+' conftest.er1 >conftest.err
27353   rm -f conftest.er1
27354   cat conftest.err >&5
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); } && {
27357          test -z "$ac_c_werror_flag" ||
27358          test ! -s conftest.err
27359        } && test -s conftest.$ac_objext; then
27360   ac_cv_type_int=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365         ac_cv_type_int=no
27366 fi
27367
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 fi
27370 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27371 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27372
27373 # The cast to long int works around a bug in the HP C Compiler
27374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27376 # This bug is HP SR number 8606223364.
27377 { echo "$as_me:$LINENO: checking size of int" >&5
27378 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27379 if test "${ac_cv_sizeof_int+set}" = set; then
27380   echo $ECHO_N "(cached) $ECHO_C" >&6
27381 else
27382   if test "$cross_compiling" = yes; then
27383   # Depending upon the size, compute the lo and hi bounds.
27384 cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h.  */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h.  */
27390 $ac_includes_default
27391    typedef int ac__type_sizeof_;
27392 int
27393 main ()
27394 {
27395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27396 test_array [0] = 0
27397
27398   ;
27399   return 0;
27400 }
27401 _ACEOF
27402 rm -f conftest.$ac_objext
27403 if { (ac_try="$ac_compile"
27404 case "(($ac_try" in
27405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406   *) ac_try_echo=$ac_try;;
27407 esac
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409   (eval "$ac_compile") 2>conftest.er1
27410   ac_status=$?
27411   grep -v '^ *+' conftest.er1 >conftest.err
27412   rm -f conftest.er1
27413   cat conftest.err >&5
27414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415   (exit $ac_status); } && {
27416          test -z "$ac_c_werror_flag" ||
27417          test ! -s conftest.err
27418        } && test -s conftest.$ac_objext; then
27419   ac_lo=0 ac_mid=0
27420   while :; do
27421     cat >conftest.$ac_ext <<_ACEOF
27422 /* confdefs.h.  */
27423 _ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h.  */
27427 $ac_includes_default
27428    typedef int ac__type_sizeof_;
27429 int
27430 main ()
27431 {
27432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27433 test_array [0] = 0
27434
27435   ;
27436   return 0;
27437 }
27438 _ACEOF
27439 rm -f conftest.$ac_objext
27440 if { (ac_try="$ac_compile"
27441 case "(($ac_try" in
27442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27443   *) ac_try_echo=$ac_try;;
27444 esac
27445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27446   (eval "$ac_compile") 2>conftest.er1
27447   ac_status=$?
27448   grep -v '^ *+' conftest.er1 >conftest.err
27449   rm -f conftest.er1
27450   cat conftest.err >&5
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); } && {
27453          test -z "$ac_c_werror_flag" ||
27454          test ! -s conftest.err
27455        } && test -s conftest.$ac_objext; then
27456   ac_hi=$ac_mid; break
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461         ac_lo=`expr $ac_mid + 1`
27462                         if test $ac_lo -le $ac_mid; then
27463                           ac_lo= ac_hi=
27464                           break
27465                         fi
27466                         ac_mid=`expr 2 '*' $ac_mid + 1`
27467 fi
27468
27469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27470   done
27471 else
27472   echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27474
27475         cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h.  */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h.  */
27481 $ac_includes_default
27482    typedef int ac__type_sizeof_;
27483 int
27484 main ()
27485 {
27486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27487 test_array [0] = 0
27488
27489   ;
27490   return 0;
27491 }
27492 _ACEOF
27493 rm -f conftest.$ac_objext
27494 if { (ac_try="$ac_compile"
27495 case "(($ac_try" in
27496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497   *) ac_try_echo=$ac_try;;
27498 esac
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500   (eval "$ac_compile") 2>conftest.er1
27501   ac_status=$?
27502   grep -v '^ *+' conftest.er1 >conftest.err
27503   rm -f conftest.er1
27504   cat conftest.err >&5
27505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506   (exit $ac_status); } && {
27507          test -z "$ac_c_werror_flag" ||
27508          test ! -s conftest.err
27509        } && test -s conftest.$ac_objext; then
27510   ac_hi=-1 ac_mid=-1
27511   while :; do
27512     cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518 $ac_includes_default
27519    typedef int ac__type_sizeof_;
27520 int
27521 main ()
27522 {
27523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27524 test_array [0] = 0
27525
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext
27531 if { (ac_try="$ac_compile"
27532 case "(($ac_try" in
27533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534   *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537   (eval "$ac_compile") 2>conftest.er1
27538   ac_status=$?
27539   grep -v '^ *+' conftest.er1 >conftest.err
27540   rm -f conftest.er1
27541   cat conftest.err >&5
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); } && {
27544          test -z "$ac_c_werror_flag" ||
27545          test ! -s conftest.err
27546        } && test -s conftest.$ac_objext; then
27547   ac_lo=$ac_mid; break
27548 else
27549   echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27551
27552         ac_hi=`expr '(' $ac_mid ')' - 1`
27553                         if test $ac_mid -le $ac_hi; then
27554                           ac_lo= ac_hi=
27555                           break
27556                         fi
27557                         ac_mid=`expr 2 '*' $ac_mid`
27558 fi
27559
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561   done
27562 else
27563   echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         ac_lo= ac_hi=
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570 fi
27571
27572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27573 # Binary search between lo and hi bounds.
27574 while test "x$ac_lo" != "x$ac_hi"; do
27575   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27576   cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 $ac_includes_default
27583    typedef int ac__type_sizeof_;
27584 int
27585 main ()
27586 {
27587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27588 test_array [0] = 0
27589
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_compile") 2>conftest.er1
27602   ac_status=$?
27603   grep -v '^ *+' conftest.er1 >conftest.err
27604   rm -f conftest.er1
27605   cat conftest.err >&5
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } && {
27608          test -z "$ac_c_werror_flag" ||
27609          test ! -s conftest.err
27610        } && test -s conftest.$ac_objext; then
27611   ac_hi=$ac_mid
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616         ac_lo=`expr '(' $ac_mid ')' + 1`
27617 fi
27618
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 done
27621 case $ac_lo in
27622 ?*) ac_cv_sizeof_int=$ac_lo;;
27623 '') if test "$ac_cv_type_int" = yes; then
27624      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27625 See \`config.log' for more details." >&5
27626 echo "$as_me: error: cannot compute sizeof (int)
27627 See \`config.log' for more details." >&2;}
27628    { (exit 77); exit 77; }; }
27629    else
27630      ac_cv_sizeof_int=0
27631    fi ;;
27632 esac
27633 else
27634   cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h.  */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h.  */
27640 $ac_includes_default
27641    typedef int ac__type_sizeof_;
27642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27644 #include <stdio.h>
27645 #include <stdlib.h>
27646 int
27647 main ()
27648 {
27649
27650   FILE *f = fopen ("conftest.val", "w");
27651   if (! f)
27652     return 1;
27653   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27654     {
27655       long int i = longval ();
27656       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27657         return 1;
27658       fprintf (f, "%ld\n", i);
27659     }
27660   else
27661     {
27662       unsigned long int i = ulongval ();
27663       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27664         return 1;
27665       fprintf (f, "%lu\n", i);
27666     }
27667   return ferror (f) || fclose (f) != 0;
27668
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_link") 2>&5
27681   ac_status=$?
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27684   { (case "(($ac_try" in
27685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686   *) ac_try_echo=$ac_try;;
27687 esac
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689   (eval "$ac_try") 2>&5
27690   ac_status=$?
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); }; }; then
27693   ac_cv_sizeof_int=`cat conftest.val`
27694 else
27695   echo "$as_me: program exited with status $ac_status" >&5
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27698
27699 ( exit $ac_status )
27700 if test "$ac_cv_type_int" = yes; then
27701      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27702 See \`config.log' for more details." >&5
27703 echo "$as_me: error: cannot compute sizeof (int)
27704 See \`config.log' for more details." >&2;}
27705    { (exit 77); exit 77; }; }
27706    else
27707      ac_cv_sizeof_int=0
27708    fi
27709 fi
27710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27711 fi
27712 rm -f conftest.val
27713 fi
27714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27715 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27716
27717
27718
27719 cat >>confdefs.h <<_ACEOF
27720 #define SIZEOF_INT $ac_cv_sizeof_int
27721 _ACEOF
27722
27723
27724 { echo "$as_me:$LINENO: checking for long" >&5
27725 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27726 if test "${ac_cv_type_long+set}" = set; then
27727   echo $ECHO_N "(cached) $ECHO_C" >&6
27728 else
27729   cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h.  */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h.  */
27735 $ac_includes_default
27736 typedef long ac__type_new_;
27737 int
27738 main ()
27739 {
27740 if ((ac__type_new_ *) 0)
27741   return 0;
27742 if (sizeof (ac__type_new_))
27743   return 0;
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 rm -f conftest.$ac_objext
27749 if { (ac_try="$ac_compile"
27750 case "(($ac_try" in
27751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752   *) ac_try_echo=$ac_try;;
27753 esac
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755   (eval "$ac_compile") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } && {
27762          test -z "$ac_c_werror_flag" ||
27763          test ! -s conftest.err
27764        } && test -s conftest.$ac_objext; then
27765   ac_cv_type_long=yes
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770         ac_cv_type_long=no
27771 fi
27772
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27774 fi
27775 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27776 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27777
27778 # The cast to long int works around a bug in the HP C Compiler
27779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27781 # This bug is HP SR number 8606223364.
27782 { echo "$as_me:$LINENO: checking size of long" >&5
27783 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27784 if test "${ac_cv_sizeof_long+set}" = set; then
27785   echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27787   if test "$cross_compiling" = yes; then
27788   # Depending upon the size, compute the lo and hi bounds.
27789 cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795 $ac_includes_default
27796    typedef long ac__type_sizeof_;
27797 int
27798 main ()
27799 {
27800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27801 test_array [0] = 0
27802
27803   ;
27804   return 0;
27805 }
27806 _ACEOF
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811   *) ac_try_echo=$ac_try;;
27812 esac
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814   (eval "$ac_compile") 2>conftest.er1
27815   ac_status=$?
27816   grep -v '^ *+' conftest.er1 >conftest.err
27817   rm -f conftest.er1
27818   cat conftest.err >&5
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); } && {
27821          test -z "$ac_c_werror_flag" ||
27822          test ! -s conftest.err
27823        } && test -s conftest.$ac_objext; then
27824   ac_lo=0 ac_mid=0
27825   while :; do
27826     cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832 $ac_includes_default
27833    typedef long ac__type_sizeof_;
27834 int
27835 main ()
27836 {
27837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27838 test_array [0] = 0
27839
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 rm -f conftest.$ac_objext
27845 if { (ac_try="$ac_compile"
27846 case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_compile") 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } && {
27858          test -z "$ac_c_werror_flag" ||
27859          test ! -s conftest.err
27860        } && test -s conftest.$ac_objext; then
27861   ac_hi=$ac_mid; break
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866         ac_lo=`expr $ac_mid + 1`
27867                         if test $ac_lo -le $ac_mid; then
27868                           ac_lo= ac_hi=
27869                           break
27870                         fi
27871                         ac_mid=`expr 2 '*' $ac_mid + 1`
27872 fi
27873
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27875   done
27876 else
27877   echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27879
27880         cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886 $ac_includes_default
27887    typedef long ac__type_sizeof_;
27888 int
27889 main ()
27890 {
27891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27892 test_array [0] = 0
27893
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 rm -f conftest.$ac_objext
27899 if { (ac_try="$ac_compile"
27900 case "(($ac_try" in
27901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902   *) ac_try_echo=$ac_try;;
27903 esac
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905   (eval "$ac_compile") 2>conftest.er1
27906   ac_status=$?
27907   grep -v '^ *+' conftest.er1 >conftest.err
27908   rm -f conftest.er1
27909   cat conftest.err >&5
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } && {
27912          test -z "$ac_c_werror_flag" ||
27913          test ! -s conftest.err
27914        } && test -s conftest.$ac_objext; then
27915   ac_hi=-1 ac_mid=-1
27916   while :; do
27917     cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h.  */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h.  */
27923 $ac_includes_default
27924    typedef long ac__type_sizeof_;
27925 int
27926 main ()
27927 {
27928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27929 test_array [0] = 0
27930
27931   ;
27932   return 0;
27933 }
27934 _ACEOF
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939   *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942   (eval "$ac_compile") 2>conftest.er1
27943   ac_status=$?
27944   grep -v '^ *+' conftest.er1 >conftest.err
27945   rm -f conftest.er1
27946   cat conftest.err >&5
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); } && {
27949          test -z "$ac_c_werror_flag" ||
27950          test ! -s conftest.err
27951        } && test -s conftest.$ac_objext; then
27952   ac_lo=$ac_mid; break
27953 else
27954   echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27956
27957         ac_hi=`expr '(' $ac_mid ')' - 1`
27958                         if test $ac_mid -le $ac_hi; then
27959                           ac_lo= ac_hi=
27960                           break
27961                         fi
27962                         ac_mid=`expr 2 '*' $ac_mid`
27963 fi
27964
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966   done
27967 else
27968   echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27970
27971         ac_lo= ac_hi=
27972 fi
27973
27974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975 fi
27976
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978 # Binary search between lo and hi bounds.
27979 while test "x$ac_lo" != "x$ac_hi"; do
27980   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27981   cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 $ac_includes_default
27988    typedef long ac__type_sizeof_;
27989 int
27990 main ()
27991 {
27992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27993 test_array [0] = 0
27994
27995   ;
27996   return 0;
27997 }
27998 _ACEOF
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003   *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006   (eval "$ac_compile") 2>conftest.er1
28007   ac_status=$?
28008   grep -v '^ *+' conftest.er1 >conftest.err
28009   rm -f conftest.er1
28010   cat conftest.err >&5
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); } && {
28013          test -z "$ac_c_werror_flag" ||
28014          test ! -s conftest.err
28015        } && test -s conftest.$ac_objext; then
28016   ac_hi=$ac_mid
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021         ac_lo=`expr '(' $ac_mid ')' + 1`
28022 fi
28023
28024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025 done
28026 case $ac_lo in
28027 ?*) ac_cv_sizeof_long=$ac_lo;;
28028 '') if test "$ac_cv_type_long" = yes; then
28029      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28030 See \`config.log' for more details." >&5
28031 echo "$as_me: error: cannot compute sizeof (long)
28032 See \`config.log' for more details." >&2;}
28033    { (exit 77); exit 77; }; }
28034    else
28035      ac_cv_sizeof_long=0
28036    fi ;;
28037 esac
28038 else
28039   cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 $ac_includes_default
28046    typedef long ac__type_sizeof_;
28047 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28048 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28049 #include <stdio.h>
28050 #include <stdlib.h>
28051 int
28052 main ()
28053 {
28054
28055   FILE *f = fopen ("conftest.val", "w");
28056   if (! f)
28057     return 1;
28058   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28059     {
28060       long int i = longval ();
28061       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28062         return 1;
28063       fprintf (f, "%ld\n", i);
28064     }
28065   else
28066     {
28067       unsigned long int i = ulongval ();
28068       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28069         return 1;
28070       fprintf (f, "%lu\n", i);
28071     }
28072   return ferror (f) || fclose (f) != 0;
28073
28074   ;
28075   return 0;
28076 }
28077 _ACEOF
28078 rm -f conftest$ac_exeext
28079 if { (ac_try="$ac_link"
28080 case "(($ac_try" in
28081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082   *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085   (eval "$ac_link") 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28089   { (case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_try") 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); }; }; then
28098   ac_cv_sizeof_long=`cat conftest.val`
28099 else
28100   echo "$as_me: program exited with status $ac_status" >&5
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104 ( exit $ac_status )
28105 if test "$ac_cv_type_long" = yes; then
28106      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28107 See \`config.log' for more details." >&5
28108 echo "$as_me: error: cannot compute sizeof (long)
28109 See \`config.log' for more details." >&2;}
28110    { (exit 77); exit 77; }; }
28111    else
28112      ac_cv_sizeof_long=0
28113    fi
28114 fi
28115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28116 fi
28117 rm -f conftest.val
28118 fi
28119 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28120 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28121
28122
28123
28124 cat >>confdefs.h <<_ACEOF
28125 #define SIZEOF_LONG $ac_cv_sizeof_long
28126 _ACEOF
28127
28128
28129 { echo "$as_me:$LINENO: checking for size_t" >&5
28130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28131 if test "${ac_cv_type_size_t+set}" = set; then
28132   echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134   cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h.  */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h.  */
28140 $ac_includes_default
28141 typedef size_t ac__type_new_;
28142 int
28143 main ()
28144 {
28145 if ((ac__type_new_ *) 0)
28146   return 0;
28147 if (sizeof (ac__type_new_))
28148   return 0;
28149   ;
28150   return 0;
28151 }
28152 _ACEOF
28153 rm -f conftest.$ac_objext
28154 if { (ac_try="$ac_compile"
28155 case "(($ac_try" in
28156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157   *) ac_try_echo=$ac_try;;
28158 esac
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160   (eval "$ac_compile") 2>conftest.er1
28161   ac_status=$?
28162   grep -v '^ *+' conftest.er1 >conftest.err
28163   rm -f conftest.er1
28164   cat conftest.err >&5
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); } && {
28167          test -z "$ac_c_werror_flag" ||
28168          test ! -s conftest.err
28169        } && test -s conftest.$ac_objext; then
28170   ac_cv_type_size_t=yes
28171 else
28172   echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28174
28175         ac_cv_type_size_t=no
28176 fi
28177
28178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28179 fi
28180 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28181 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28182
28183 # The cast to long int works around a bug in the HP C Compiler
28184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28186 # This bug is HP SR number 8606223364.
28187 { echo "$as_me:$LINENO: checking size of size_t" >&5
28188 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28189 if test "${ac_cv_sizeof_size_t+set}" = set; then
28190   echo $ECHO_N "(cached) $ECHO_C" >&6
28191 else
28192   if test "$cross_compiling" = yes; then
28193   # Depending upon the size, compute the lo and hi bounds.
28194 cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h.  */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h.  */
28200 $ac_includes_default
28201    typedef size_t ac__type_sizeof_;
28202 int
28203 main ()
28204 {
28205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28206 test_array [0] = 0
28207
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 rm -f conftest.$ac_objext
28213 if { (ac_try="$ac_compile"
28214 case "(($ac_try" in
28215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216   *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219   (eval "$ac_compile") 2>conftest.er1
28220   ac_status=$?
28221   grep -v '^ *+' conftest.er1 >conftest.err
28222   rm -f conftest.er1
28223   cat conftest.err >&5
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); } && {
28226          test -z "$ac_c_werror_flag" ||
28227          test ! -s conftest.err
28228        } && test -s conftest.$ac_objext; then
28229   ac_lo=0 ac_mid=0
28230   while :; do
28231     cat >conftest.$ac_ext <<_ACEOF
28232 /* confdefs.h.  */
28233 _ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h.  */
28237 $ac_includes_default
28238    typedef size_t ac__type_sizeof_;
28239 int
28240 main ()
28241 {
28242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28243 test_array [0] = 0
28244
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext
28250 if { (ac_try="$ac_compile"
28251 case "(($ac_try" in
28252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253   *) ac_try_echo=$ac_try;;
28254 esac
28255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256   (eval "$ac_compile") 2>conftest.er1
28257   ac_status=$?
28258   grep -v '^ *+' conftest.er1 >conftest.err
28259   rm -f conftest.er1
28260   cat conftest.err >&5
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); } && {
28263          test -z "$ac_c_werror_flag" ||
28264          test ! -s conftest.err
28265        } && test -s conftest.$ac_objext; then
28266   ac_hi=$ac_mid; break
28267 else
28268   echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.$ac_ext >&5
28270
28271         ac_lo=`expr $ac_mid + 1`
28272                         if test $ac_lo -le $ac_mid; then
28273                           ac_lo= ac_hi=
28274                           break
28275                         fi
28276                         ac_mid=`expr 2 '*' $ac_mid + 1`
28277 fi
28278
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28280   done
28281 else
28282   echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285         cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h.  */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h.  */
28291 $ac_includes_default
28292    typedef size_t ac__type_sizeof_;
28293 int
28294 main ()
28295 {
28296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28297 test_array [0] = 0
28298
28299   ;
28300   return 0;
28301 }
28302 _ACEOF
28303 rm -f conftest.$ac_objext
28304 if { (ac_try="$ac_compile"
28305 case "(($ac_try" in
28306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307   *) ac_try_echo=$ac_try;;
28308 esac
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310   (eval "$ac_compile") 2>conftest.er1
28311   ac_status=$?
28312   grep -v '^ *+' conftest.er1 >conftest.err
28313   rm -f conftest.er1
28314   cat conftest.err >&5
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); } && {
28317          test -z "$ac_c_werror_flag" ||
28318          test ! -s conftest.err
28319        } && test -s conftest.$ac_objext; then
28320   ac_hi=-1 ac_mid=-1
28321   while :; do
28322     cat >conftest.$ac_ext <<_ACEOF
28323 /* confdefs.h.  */
28324 _ACEOF
28325 cat confdefs.h >>conftest.$ac_ext
28326 cat >>conftest.$ac_ext <<_ACEOF
28327 /* end confdefs.h.  */
28328 $ac_includes_default
28329    typedef size_t ac__type_sizeof_;
28330 int
28331 main ()
28332 {
28333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28334 test_array [0] = 0
28335
28336   ;
28337   return 0;
28338 }
28339 _ACEOF
28340 rm -f conftest.$ac_objext
28341 if { (ac_try="$ac_compile"
28342 case "(($ac_try" in
28343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344   *) ac_try_echo=$ac_try;;
28345 esac
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347   (eval "$ac_compile") 2>conftest.er1
28348   ac_status=$?
28349   grep -v '^ *+' conftest.er1 >conftest.err
28350   rm -f conftest.er1
28351   cat conftest.err >&5
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); } && {
28354          test -z "$ac_c_werror_flag" ||
28355          test ! -s conftest.err
28356        } && test -s conftest.$ac_objext; then
28357   ac_lo=$ac_mid; break
28358 else
28359   echo "$as_me: failed program was:" >&5
28360 sed 's/^/| /' conftest.$ac_ext >&5
28361
28362         ac_hi=`expr '(' $ac_mid ')' - 1`
28363                         if test $ac_mid -le $ac_hi; then
28364                           ac_lo= ac_hi=
28365                           break
28366                         fi
28367                         ac_mid=`expr 2 '*' $ac_mid`
28368 fi
28369
28370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28371   done
28372 else
28373   echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376         ac_lo= ac_hi=
28377 fi
28378
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380 fi
28381
28382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28383 # Binary search between lo and hi bounds.
28384 while test "x$ac_lo" != "x$ac_hi"; do
28385   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 $ac_includes_default
28393    typedef size_t ac__type_sizeof_;
28394 int
28395 main ()
28396 {
28397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28398 test_array [0] = 0
28399
28400   ;
28401   return 0;
28402 }
28403 _ACEOF
28404 rm -f conftest.$ac_objext
28405 if { (ac_try="$ac_compile"
28406 case "(($ac_try" in
28407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408   *) ac_try_echo=$ac_try;;
28409 esac
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411   (eval "$ac_compile") 2>conftest.er1
28412   ac_status=$?
28413   grep -v '^ *+' conftest.er1 >conftest.err
28414   rm -f conftest.er1
28415   cat conftest.err >&5
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); } && {
28418          test -z "$ac_c_werror_flag" ||
28419          test ! -s conftest.err
28420        } && test -s conftest.$ac_objext; then
28421   ac_hi=$ac_mid
28422 else
28423   echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426         ac_lo=`expr '(' $ac_mid ')' + 1`
28427 fi
28428
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28430 done
28431 case $ac_lo in
28432 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28433 '') if test "$ac_cv_type_size_t" = yes; then
28434      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28435 See \`config.log' for more details." >&5
28436 echo "$as_me: error: cannot compute sizeof (size_t)
28437 See \`config.log' for more details." >&2;}
28438    { (exit 77); exit 77; }; }
28439    else
28440      ac_cv_sizeof_size_t=0
28441    fi ;;
28442 esac
28443 else
28444   cat >conftest.$ac_ext <<_ACEOF
28445 /* confdefs.h.  */
28446 _ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h.  */
28450 $ac_includes_default
28451    typedef size_t ac__type_sizeof_;
28452 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28453 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28454 #include <stdio.h>
28455 #include <stdlib.h>
28456 int
28457 main ()
28458 {
28459
28460   FILE *f = fopen ("conftest.val", "w");
28461   if (! f)
28462     return 1;
28463   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28464     {
28465       long int i = longval ();
28466       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28467         return 1;
28468       fprintf (f, "%ld\n", i);
28469     }
28470   else
28471     {
28472       unsigned long int i = ulongval ();
28473       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28474         return 1;
28475       fprintf (f, "%lu\n", i);
28476     }
28477   return ferror (f) || fclose (f) != 0;
28478
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 rm -f conftest$ac_exeext
28484 if { (ac_try="$ac_link"
28485 case "(($ac_try" in
28486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487   *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490   (eval "$ac_link") 2>&5
28491   ac_status=$?
28492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28494   { (case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_try") 2>&5
28500   ac_status=$?
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); }; }; then
28503   ac_cv_sizeof_size_t=`cat conftest.val`
28504 else
28505   echo "$as_me: program exited with status $ac_status" >&5
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509 ( exit $ac_status )
28510 if test "$ac_cv_type_size_t" = yes; then
28511      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28512 See \`config.log' for more details." >&5
28513 echo "$as_me: error: cannot compute sizeof (size_t)
28514 See \`config.log' for more details." >&2;}
28515    { (exit 77); exit 77; }; }
28516    else
28517      ac_cv_sizeof_size_t=0
28518    fi
28519 fi
28520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28521 fi
28522 rm -f conftest.val
28523 fi
28524 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28525 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28526
28527
28528
28529 cat >>confdefs.h <<_ACEOF
28530 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28531 _ACEOF
28532
28533
28534 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28535 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28536 if test "${ac_cv_type_socklen_t+set}" = set; then
28537   echo $ECHO_N "(cached) $ECHO_C" >&6
28538 else
28539   cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h.  */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h.  */
28545 $ac_includes_default
28546 typedef socklen_t ac__type_new_;
28547 int
28548 main ()
28549 {
28550 if ((ac__type_new_ *) 0)
28551   return 0;
28552 if (sizeof (ac__type_new_))
28553   return 0;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_compile") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } && {
28572          test -z "$ac_c_werror_flag" ||
28573          test ! -s conftest.err
28574        } && test -s conftest.$ac_objext; then
28575   ac_cv_type_socklen_t=yes
28576 else
28577   echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580         ac_cv_type_socklen_t=no
28581 fi
28582
28583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28584 fi
28585 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28586 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28587
28588 # The cast to long int works around a bug in the HP C Compiler
28589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28591 # This bug is HP SR number 8606223364.
28592 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28593 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28594 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28595   echo $ECHO_N "(cached) $ECHO_C" >&6
28596 else
28597   if test "$cross_compiling" = yes; then
28598   # Depending upon the size, compute the lo and hi bounds.
28599 cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605 $ac_includes_default
28606    typedef socklen_t ac__type_sizeof_;
28607 int
28608 main ()
28609 {
28610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28611 test_array [0] = 0
28612
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_compile") 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } && {
28631          test -z "$ac_c_werror_flag" ||
28632          test ! -s conftest.err
28633        } && test -s conftest.$ac_objext; then
28634   ac_lo=0 ac_mid=0
28635   while :; do
28636     cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 $ac_includes_default
28643    typedef socklen_t ac__type_sizeof_;
28644 int
28645 main ()
28646 {
28647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28648 test_array [0] = 0
28649
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (ac_try="$ac_compile"
28656 case "(($ac_try" in
28657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28658   *) ac_try_echo=$ac_try;;
28659 esac
28660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28661   (eval "$ac_compile") 2>conftest.er1
28662   ac_status=$?
28663   grep -v '^ *+' conftest.er1 >conftest.err
28664   rm -f conftest.er1
28665   cat conftest.err >&5
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); } && {
28668          test -z "$ac_c_werror_flag" ||
28669          test ! -s conftest.err
28670        } && test -s conftest.$ac_objext; then
28671   ac_hi=$ac_mid; break
28672 else
28673   echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676         ac_lo=`expr $ac_mid + 1`
28677                         if test $ac_lo -le $ac_mid; then
28678                           ac_lo= ac_hi=
28679                           break
28680                         fi
28681                         ac_mid=`expr 2 '*' $ac_mid + 1`
28682 fi
28683
28684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28685   done
28686 else
28687   echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28689
28690         cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h.  */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h.  */
28696 $ac_includes_default
28697    typedef socklen_t ac__type_sizeof_;
28698 int
28699 main ()
28700 {
28701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28702 test_array [0] = 0
28703
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext
28709 if { (ac_try="$ac_compile"
28710 case "(($ac_try" in
28711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712   *) ac_try_echo=$ac_try;;
28713 esac
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715   (eval "$ac_compile") 2>conftest.er1
28716   ac_status=$?
28717   grep -v '^ *+' conftest.er1 >conftest.err
28718   rm -f conftest.er1
28719   cat conftest.err >&5
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); } && {
28722          test -z "$ac_c_werror_flag" ||
28723          test ! -s conftest.err
28724        } && test -s conftest.$ac_objext; then
28725   ac_hi=-1 ac_mid=-1
28726   while :; do
28727     cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h.  */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h.  */
28733 $ac_includes_default
28734    typedef socklen_t ac__type_sizeof_;
28735 int
28736 main ()
28737 {
28738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28739 test_array [0] = 0
28740
28741   ;
28742   return 0;
28743 }
28744 _ACEOF
28745 rm -f conftest.$ac_objext
28746 if { (ac_try="$ac_compile"
28747 case "(($ac_try" in
28748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749   *) ac_try_echo=$ac_try;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752   (eval "$ac_compile") 2>conftest.er1
28753   ac_status=$?
28754   grep -v '^ *+' conftest.er1 >conftest.err
28755   rm -f conftest.er1
28756   cat conftest.err >&5
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); } && {
28759          test -z "$ac_c_werror_flag" ||
28760          test ! -s conftest.err
28761        } && test -s conftest.$ac_objext; then
28762   ac_lo=$ac_mid; break
28763 else
28764   echo "$as_me: failed program was:" >&5
28765 sed 's/^/| /' conftest.$ac_ext >&5
28766
28767         ac_hi=`expr '(' $ac_mid ')' - 1`
28768                         if test $ac_mid -le $ac_hi; then
28769                           ac_lo= ac_hi=
28770                           break
28771                         fi
28772                         ac_mid=`expr 2 '*' $ac_mid`
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776   done
28777 else
28778   echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781         ac_lo= ac_hi=
28782 fi
28783
28784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28785 fi
28786
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28788 # Binary search between lo and hi bounds.
28789 while test "x$ac_lo" != "x$ac_hi"; do
28790   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28791   cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797 $ac_includes_default
28798    typedef socklen_t ac__type_sizeof_;
28799 int
28800 main ()
28801 {
28802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28803 test_array [0] = 0
28804
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext
28810 if { (ac_try="$ac_compile"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_compile") 2>conftest.er1
28817   ac_status=$?
28818   grep -v '^ *+' conftest.er1 >conftest.err
28819   rm -f conftest.er1
28820   cat conftest.err >&5
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); } && {
28823          test -z "$ac_c_werror_flag" ||
28824          test ! -s conftest.err
28825        } && test -s conftest.$ac_objext; then
28826   ac_hi=$ac_mid
28827 else
28828   echo "$as_me: failed program was:" >&5
28829 sed 's/^/| /' conftest.$ac_ext >&5
28830
28831         ac_lo=`expr '(' $ac_mid ')' + 1`
28832 fi
28833
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28835 done
28836 case $ac_lo in
28837 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28838 '') if test "$ac_cv_type_socklen_t" = yes; then
28839      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28840 See \`config.log' for more details." >&5
28841 echo "$as_me: error: cannot compute sizeof (socklen_t)
28842 See \`config.log' for more details." >&2;}
28843    { (exit 77); exit 77; }; }
28844    else
28845      ac_cv_sizeof_socklen_t=0
28846    fi ;;
28847 esac
28848 else
28849   cat >conftest.$ac_ext <<_ACEOF
28850 /* confdefs.h.  */
28851 _ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h.  */
28855 $ac_includes_default
28856    typedef socklen_t ac__type_sizeof_;
28857 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28858 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28859 #include <stdio.h>
28860 #include <stdlib.h>
28861 int
28862 main ()
28863 {
28864
28865   FILE *f = fopen ("conftest.val", "w");
28866   if (! f)
28867     return 1;
28868   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28869     {
28870       long int i = longval ();
28871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28872         return 1;
28873       fprintf (f, "%ld\n", i);
28874     }
28875   else
28876     {
28877       unsigned long int i = ulongval ();
28878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28879         return 1;
28880       fprintf (f, "%lu\n", i);
28881     }
28882   return ferror (f) || fclose (f) != 0;
28883
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest$ac_exeext
28889 if { (ac_try="$ac_link"
28890 case "(($ac_try" in
28891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892   *) ac_try_echo=$ac_try;;
28893 esac
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895   (eval "$ac_link") 2>&5
28896   ac_status=$?
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28899   { (case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_try") 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; }; then
28908   ac_cv_sizeof_socklen_t=`cat conftest.val`
28909 else
28910   echo "$as_me: program exited with status $ac_status" >&5
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ( exit $ac_status )
28915 if test "$ac_cv_type_socklen_t" = yes; then
28916      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28917 See \`config.log' for more details." >&5
28918 echo "$as_me: error: cannot compute sizeof (socklen_t)
28919 See \`config.log' for more details." >&2;}
28920    { (exit 77); exit 77; }; }
28921    else
28922      ac_cv_sizeof_socklen_t=0
28923    fi
28924 fi
28925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28926 fi
28927 rm -f conftest.val
28928 fi
28929 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28930 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28931
28932
28933
28934 cat >>confdefs.h <<_ACEOF
28935 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28936 _ACEOF
28937
28938
28939
28940
28941
28942 cat >>confdefs.h <<_ACEOF
28943 #define NFS_STATEDIR "$statedir"
28944 _ACEOF
28945
28946
28947 if test "x$cross_compiling" = "xno"; then
28948         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28949         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28950         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28951         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28952 else
28953         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28954         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28955         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28956         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28957 fi
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969 case $host in
28970   alpha*)
28971     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28972   *)
28973     ARCHFLAGS="" ;;
28974 esac
28975
28976 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28977
28978 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28979
28980 AM_CFLAGS="$my_am_cflags"
28981
28982
28983 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28984 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28985
28986
28987 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/getiversion/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/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28988
28989 cat >confcache <<\_ACEOF
28990 # This file is a shell script that caches the results of configure
28991 # tests run on this system so they can be shared between configure
28992 # scripts and configure runs, see configure's option --config-cache.
28993 # It is not useful on other systems.  If it contains results you don't
28994 # want to keep, you may remove or edit it.
28995 #
28996 # config.status only pays attention to the cache file if you give it
28997 # the --recheck option to rerun configure.
28998 #
28999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29001 # following values.
29002
29003 _ACEOF
29004
29005 # The following way of writing the cache mishandles newlines in values,
29006 # but we know of no workaround that is simple, portable, and efficient.
29007 # So, we kill variables containing newlines.
29008 # Ultrix sh set writes to stderr and can't be redirected directly,
29009 # and sets the high bit in the cache file unless we assign to the vars.
29010 (
29011   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29012     eval ac_val=\$$ac_var
29013     case $ac_val in #(
29014     *${as_nl}*)
29015       case $ac_var in #(
29016       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29018       esac
29019       case $ac_var in #(
29020       _ | IFS | as_nl) ;; #(
29021       *) $as_unset $ac_var ;;
29022       esac ;;
29023     esac
29024   done
29025
29026   (set) 2>&1 |
29027     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29028     *${as_nl}ac_space=\ *)
29029       # `set' does not quote correctly, so add quotes (double-quote
29030       # substitution turns \\\\ into \\, and sed turns \\ into \).
29031       sed -n \
29032         "s/'/'\\\\''/g;
29033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29034       ;; #(
29035     *)
29036       # `set' quotes correctly as required by POSIX, so do not add quotes.
29037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29038       ;;
29039     esac |
29040     sort
29041 ) |
29042   sed '
29043      /^ac_cv_env_/b end
29044      t clear
29045      :clear
29046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29047      t end
29048      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29049      :end' >>confcache
29050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29051   if test -w "$cache_file"; then
29052     test "x$cache_file" != "x/dev/null" &&
29053       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29054 echo "$as_me: updating cache $cache_file" >&6;}
29055     cat confcache >$cache_file
29056   else
29057     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29059   fi
29060 fi
29061 rm -f confcache
29062
29063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29064 # Let make expand exec_prefix.
29065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29066
29067 DEFS=-DHAVE_CONFIG_H
29068
29069 ac_libobjs=
29070 ac_ltlibobjs=
29071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29072   # 1. Remove the extension, and $U if already installed.
29073   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29074   ac_i=`echo "$ac_i" | sed "$ac_script"`
29075   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29076   #    will be set to the directory where LIBOBJS objects are built.
29077   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29078   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29079 done
29080 LIBOBJS=$ac_libobjs
29081
29082 LTLIBOBJS=$ac_ltlibobjs
29083
29084
29085 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29086   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29087 Usually this means the macro was only invoked conditionally." >&5
29088 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29089 Usually this means the macro was only invoked conditionally." >&2;}
29090    { (exit 1); exit 1; }; }
29091 fi
29092 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29093   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29094 Usually this means the macro was only invoked conditionally." >&5
29095 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29096 Usually this means the macro was only invoked conditionally." >&2;}
29097    { (exit 1); exit 1; }; }
29098 fi
29099 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29100   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29101 Usually this means the macro was only invoked conditionally." >&5
29102 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29103 Usually this means the macro was only invoked conditionally." >&2;}
29104    { (exit 1); exit 1; }; }
29105 fi
29106 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29107   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29108 Usually this means the macro was only invoked conditionally." >&5
29109 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29110 Usually this means the macro was only invoked conditionally." >&2;}
29111    { (exit 1); exit 1; }; }
29112 fi
29113 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29114   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29115 Usually this means the macro was only invoked conditionally." >&5
29116 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29117 Usually this means the macro was only invoked conditionally." >&2;}
29118    { (exit 1); exit 1; }; }
29119 fi
29120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29121   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29122 Usually this means the macro was only invoked conditionally." >&5
29123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29124 Usually this means the macro was only invoked conditionally." >&2;}
29125    { (exit 1); exit 1; }; }
29126 fi
29127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29128   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29129 Usually this means the macro was only invoked conditionally." >&5
29130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29131 Usually this means the macro was only invoked conditionally." >&2;}
29132    { (exit 1); exit 1; }; }
29133 fi
29134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29135   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29136 Usually this means the macro was only invoked conditionally." >&5
29137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29138 Usually this means the macro was only invoked conditionally." >&2;}
29139    { (exit 1); exit 1; }; }
29140 fi
29141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29142   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29143 Usually this means the macro was only invoked conditionally." >&5
29144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29145 Usually this means the macro was only invoked conditionally." >&2;}
29146    { (exit 1); exit 1; }; }
29147 fi
29148
29149 : ${CONFIG_STATUS=./config.status}
29150 ac_clean_files_save=$ac_clean_files
29151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29152 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29153 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29154 cat >$CONFIG_STATUS <<_ACEOF
29155 #! $SHELL
29156 # Generated by $as_me.
29157 # Run this file to recreate the current configuration.
29158 # Compiler output produced by configure, useful for debugging
29159 # configure, is in config.log if it exists.
29160
29161 debug=false
29162 ac_cs_recheck=false
29163 ac_cs_silent=false
29164 SHELL=\${CONFIG_SHELL-$SHELL}
29165 _ACEOF
29166
29167 cat >>$CONFIG_STATUS <<\_ACEOF
29168 ## --------------------- ##
29169 ## M4sh Initialization.  ##
29170 ## --------------------- ##
29171
29172 # Be more Bourne compatible
29173 DUALCASE=1; export DUALCASE # for MKS sh
29174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29175   emulate sh
29176   NULLCMD=:
29177   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29178   # is contrary to our usage.  Disable this feature.
29179   alias -g '${1+"$@"}'='"$@"'
29180   setopt NO_GLOB_SUBST
29181 else
29182   case `(set -o) 2>/dev/null` in
29183   *posix*) set -o posix ;;
29184 esac
29185
29186 fi
29187
29188
29189
29190
29191 # PATH needs CR
29192 # Avoid depending upon Character Ranges.
29193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29196 as_cr_digits='0123456789'
29197 as_cr_alnum=$as_cr_Letters$as_cr_digits
29198
29199 # The user is always right.
29200 if test "${PATH_SEPARATOR+set}" != set; then
29201   echo "#! /bin/sh" >conf$$.sh
29202   echo  "exit 0"   >>conf$$.sh
29203   chmod +x conf$$.sh
29204   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29205     PATH_SEPARATOR=';'
29206   else
29207     PATH_SEPARATOR=:
29208   fi
29209   rm -f conf$$.sh
29210 fi
29211
29212 # Support unset when possible.
29213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29214   as_unset=unset
29215 else
29216   as_unset=false
29217 fi
29218
29219
29220 # IFS
29221 # We need space, tab and new line, in precisely that order.  Quoting is
29222 # there to prevent editors from complaining about space-tab.
29223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29224 # splitting by setting IFS to empty value.)
29225 as_nl='
29226 '
29227 IFS=" ""        $as_nl"
29228
29229 # Find who we are.  Look in the path if we contain no directory separator.
29230 case $0 in
29231   *[\\/]* ) as_myself=$0 ;;
29232   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29233 for as_dir in $PATH
29234 do
29235   IFS=$as_save_IFS
29236   test -z "$as_dir" && as_dir=.
29237   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29238 done
29239 IFS=$as_save_IFS
29240
29241      ;;
29242 esac
29243 # We did not find ourselves, most probably we were run as `sh COMMAND'
29244 # in which case we are not to be found in the path.
29245 if test "x$as_myself" = x; then
29246   as_myself=$0
29247 fi
29248 if test ! -f "$as_myself"; then
29249   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29250   { (exit 1); exit 1; }
29251 fi
29252
29253 # Work around bugs in pre-3.0 UWIN ksh.
29254 for as_var in ENV MAIL MAILPATH
29255 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29256 done
29257 PS1='$ '
29258 PS2='> '
29259 PS4='+ '
29260
29261 # NLS nuisances.
29262 for as_var in \
29263   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29264   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29265   LC_TELEPHONE LC_TIME
29266 do
29267   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29268     eval $as_var=C; export $as_var
29269   else
29270     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29271   fi
29272 done
29273
29274 # Required to use basename.
29275 if expr a : '\(a\)' >/dev/null 2>&1 &&
29276    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29277   as_expr=expr
29278 else
29279   as_expr=false
29280 fi
29281
29282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29283   as_basename=basename
29284 else
29285   as_basename=false
29286 fi
29287
29288
29289 # Name of the executable.
29290 as_me=`$as_basename -- "$0" ||
29291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29292          X"$0" : 'X\(//\)$' \| \
29293          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29294 echo X/"$0" |
29295     sed '/^.*\/\([^/][^/]*\)\/*$/{
29296             s//\1/
29297             q
29298           }
29299           /^X\/\(\/\/\)$/{
29300             s//\1/
29301             q
29302           }
29303           /^X\/\(\/\).*/{
29304             s//\1/
29305             q
29306           }
29307           s/.*/./; q'`
29308
29309 # CDPATH.
29310 $as_unset CDPATH
29311
29312
29313
29314   as_lineno_1=$LINENO
29315   as_lineno_2=$LINENO
29316   test "x$as_lineno_1" != "x$as_lineno_2" &&
29317   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29318
29319   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29320   # uniformly replaced by the line number.  The first 'sed' inserts a
29321   # line-number line after each line using $LINENO; the second 'sed'
29322   # does the real work.  The second script uses 'N' to pair each
29323   # line-number line with the line containing $LINENO, and appends
29324   # trailing '-' during substitution so that $LINENO is not a special
29325   # case at line end.
29326   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29327   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29328   # E. McMahon (1931-1989) for sed's syntax.  :-)
29329   sed -n '
29330     p
29331     /[$]LINENO/=
29332   ' <$as_myself |
29333     sed '
29334       s/[$]LINENO.*/&-/
29335       t lineno
29336       b
29337       :lineno
29338       N
29339       :loop
29340       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29341       t loop
29342       s/-\n.*//
29343     ' >$as_me.lineno &&
29344   chmod +x "$as_me.lineno" ||
29345     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29346    { (exit 1); exit 1; }; }
29347
29348   # Don't try to exec as it changes $[0], causing all sort of problems
29349   # (the dirname of $[0] is not the place where we might find the
29350   # original and so on.  Autoconf is especially sensitive to this).
29351   . "./$as_me.lineno"
29352   # Exit status is that of the last command.
29353   exit
29354 }
29355
29356
29357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29358   as_dirname=dirname
29359 else
29360   as_dirname=false
29361 fi
29362
29363 ECHO_C= ECHO_N= ECHO_T=
29364 case `echo -n x` in
29365 -n*)
29366   case `echo 'x\c'` in
29367   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29368   *)   ECHO_C='\c';;
29369   esac;;
29370 *)
29371   ECHO_N='-n';;
29372 esac
29373
29374 if expr a : '\(a\)' >/dev/null 2>&1 &&
29375    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29376   as_expr=expr
29377 else
29378   as_expr=false
29379 fi
29380
29381 rm -f conf$$ conf$$.exe conf$$.file
29382 if test -d conf$$.dir; then
29383   rm -f conf$$.dir/conf$$.file
29384 else
29385   rm -f conf$$.dir
29386   mkdir conf$$.dir
29387 fi
29388 echo >conf$$.file
29389 if ln -s conf$$.file conf$$ 2>/dev/null; then
29390   as_ln_s='ln -s'
29391   # ... but there are two gotchas:
29392   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29393   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29394   # In both cases, we have to default to `cp -p'.
29395   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29396     as_ln_s='cp -p'
29397 elif ln conf$$.file conf$$ 2>/dev/null; then
29398   as_ln_s=ln
29399 else
29400   as_ln_s='cp -p'
29401 fi
29402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29403 rmdir conf$$.dir 2>/dev/null
29404
29405 if mkdir -p . 2>/dev/null; then
29406   as_mkdir_p=:
29407 else
29408   test -d ./-p && rmdir ./-p
29409   as_mkdir_p=false
29410 fi
29411
29412 if test -x / >/dev/null 2>&1; then
29413   as_test_x='test -x'
29414 else
29415   if ls -dL / >/dev/null 2>&1; then
29416     as_ls_L_option=L
29417   else
29418     as_ls_L_option=
29419   fi
29420   as_test_x='
29421     eval sh -c '\''
29422       if test -d "$1"; then
29423         test -d "$1/.";
29424       else
29425         case $1 in
29426         -*)set "./$1";;
29427         esac;
29428         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29429         ???[sx]*):;;*)false;;esac;fi
29430     '\'' sh
29431   '
29432 fi
29433 as_executable_p=$as_test_x
29434
29435 # Sed expression to map a string onto a valid CPP name.
29436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29437
29438 # Sed expression to map a string onto a valid variable name.
29439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29440
29441
29442 exec 6>&1
29443
29444 # Save the log message, to keep $[0] and so on meaningful, and to
29445 # report actual input values of CONFIG_FILES etc. instead of their
29446 # values after options handling.
29447 ac_log="
29448 This file was extended by linux nfs-utils $as_me 1.0.11, which was
29449 generated by GNU Autoconf 2.61.  Invocation command line was
29450
29451   CONFIG_FILES    = $CONFIG_FILES
29452   CONFIG_HEADERS  = $CONFIG_HEADERS
29453   CONFIG_LINKS    = $CONFIG_LINKS
29454   CONFIG_COMMANDS = $CONFIG_COMMANDS
29455   $ $0 $@
29456
29457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29458 "
29459
29460 _ACEOF
29461
29462 cat >>$CONFIG_STATUS <<_ACEOF
29463 # Files that config.status was made for.
29464 config_files="$ac_config_files"
29465 config_headers="$ac_config_headers"
29466 config_commands="$ac_config_commands"
29467
29468 _ACEOF
29469
29470 cat >>$CONFIG_STATUS <<\_ACEOF
29471 ac_cs_usage="\
29472 \`$as_me' instantiates files from templates according to the
29473 current configuration.
29474
29475 Usage: $0 [OPTIONS] [FILE]...
29476
29477   -h, --help       print this help, then exit
29478   -V, --version    print version number and configuration settings, then exit
29479   -q, --quiet      do not print progress messages
29480   -d, --debug      don't remove temporary files
29481       --recheck    update $as_me by reconfiguring in the same conditions
29482   --file=FILE[:TEMPLATE]
29483                    instantiate the configuration file FILE
29484   --header=FILE[:TEMPLATE]
29485                    instantiate the configuration header FILE
29486
29487 Configuration files:
29488 $config_files
29489
29490 Configuration headers:
29491 $config_headers
29492
29493 Configuration commands:
29494 $config_commands
29495
29496 Report bugs to <bug-autoconf@gnu.org>."
29497
29498 _ACEOF
29499 cat >>$CONFIG_STATUS <<_ACEOF
29500 ac_cs_version="\\
29501 linux nfs-utils config.status 1.0.11
29502 configured by $0, generated by GNU Autoconf 2.61,
29503   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29504
29505 Copyright (C) 2006 Free Software Foundation, Inc.
29506 This config.status script is free software; the Free Software Foundation
29507 gives unlimited permission to copy, distribute and modify it."
29508
29509 ac_pwd='$ac_pwd'
29510 srcdir='$srcdir'
29511 INSTALL='$INSTALL'
29512 MKDIR_P='$MKDIR_P'
29513 _ACEOF
29514
29515 cat >>$CONFIG_STATUS <<\_ACEOF
29516 # If no file are specified by the user, then we need to provide default
29517 # value.  By we need to know if files were specified by the user.
29518 ac_need_defaults=:
29519 while test $# != 0
29520 do
29521   case $1 in
29522   --*=*)
29523     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29524     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29525     ac_shift=:
29526     ;;
29527   *)
29528     ac_option=$1
29529     ac_optarg=$2
29530     ac_shift=shift
29531     ;;
29532   esac
29533
29534   case $ac_option in
29535   # Handling of the options.
29536   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29537     ac_cs_recheck=: ;;
29538   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29539     echo "$ac_cs_version"; exit ;;
29540   --debug | --debu | --deb | --de | --d | -d )
29541     debug=: ;;
29542   --file | --fil | --fi | --f )
29543     $ac_shift
29544     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29545     ac_need_defaults=false;;
29546   --header | --heade | --head | --hea )
29547     $ac_shift
29548     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29549     ac_need_defaults=false;;
29550   --he | --h)
29551     # Conflict between --help and --header
29552     { echo "$as_me: error: ambiguous option: $1
29553 Try \`$0 --help' for more information." >&2
29554    { (exit 1); exit 1; }; };;
29555   --help | --hel | -h )
29556     echo "$ac_cs_usage"; exit ;;
29557   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29558   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29559     ac_cs_silent=: ;;
29560
29561   # This is an error.
29562   -*) { echo "$as_me: error: unrecognized option: $1
29563 Try \`$0 --help' for more information." >&2
29564    { (exit 1); exit 1; }; } ;;
29565
29566   *) ac_config_targets="$ac_config_targets $1"
29567      ac_need_defaults=false ;;
29568
29569   esac
29570   shift
29571 done
29572
29573 ac_configure_extra_args=
29574
29575 if $ac_cs_silent; then
29576   exec 6>/dev/null
29577   ac_configure_extra_args="$ac_configure_extra_args --silent"
29578 fi
29579
29580 _ACEOF
29581 cat >>$CONFIG_STATUS <<_ACEOF
29582 if \$ac_cs_recheck; then
29583   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29584   CONFIG_SHELL=$SHELL
29585   export CONFIG_SHELL
29586   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29587 fi
29588
29589 _ACEOF
29590 cat >>$CONFIG_STATUS <<\_ACEOF
29591 exec 5>>config.log
29592 {
29593   echo
29594   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29595 ## Running $as_me. ##
29596 _ASBOX
29597   echo "$ac_log"
29598 } >&5
29599
29600 _ACEOF
29601 cat >>$CONFIG_STATUS <<_ACEOF
29602 #
29603 # INIT-COMMANDS
29604 #
29605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29606
29607 _ACEOF
29608
29609 cat >>$CONFIG_STATUS <<\_ACEOF
29610
29611 # Handling of arguments.
29612 for ac_config_target in $ac_config_targets
29613 do
29614   case $ac_config_target in
29615     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29616     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29617     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29618     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29619     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29620     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29621     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29622     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29623     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29624     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29625     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29626     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29627     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29628     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29629     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29630     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29631     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29632     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29633     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29634     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29635     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29636     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29637     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29638     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29639     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29640     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29641     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29642     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29643     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29644     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29645     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29646
29647   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29648 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29649    { (exit 1); exit 1; }; };;
29650   esac
29651 done
29652
29653
29654 # If the user did not use the arguments to specify the items to instantiate,
29655 # then the envvar interface is used.  Set only those that are not.
29656 # We use the long form for the default assignment because of an extremely
29657 # bizarre bug on SunOS 4.1.3.
29658 if $ac_need_defaults; then
29659   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29660   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29661   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29662 fi
29663
29664 # Have a temporary directory for convenience.  Make it in the build tree
29665 # simply because there is no reason against having it here, and in addition,
29666 # creating and moving files from /tmp can sometimes cause problems.
29667 # Hook for its removal unless debugging.
29668 # Note that there is a small window in which the directory will not be cleaned:
29669 # after its creation but before its name has been assigned to `$tmp'.
29670 $debug ||
29671 {
29672   tmp=
29673   trap 'exit_status=$?
29674   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29675 ' 0
29676   trap '{ (exit 1); exit 1; }' 1 2 13 15
29677 }
29678 # Create a (secure) tmp directory for tmp files.
29679
29680 {
29681   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29682   test -n "$tmp" && test -d "$tmp"
29683 }  ||
29684 {
29685   tmp=./conf$$-$RANDOM
29686   (umask 077 && mkdir "$tmp")
29687 } ||
29688 {
29689    echo "$me: cannot create a temporary directory in ." >&2
29690    { (exit 1); exit 1; }
29691 }
29692
29693 #
29694 # Set up the sed scripts for CONFIG_FILES section.
29695 #
29696
29697 # No need to generate the scripts if there are no CONFIG_FILES.
29698 # This happens for instance when ./config.status config.h
29699 if test -n "$CONFIG_FILES"; then
29700
29701 _ACEOF
29702
29703
29704
29705 ac_delim='%!_!# '
29706 for ac_last_try in false false false false false :; do
29707   cat >conf$$subs.sed <<_ACEOF
29708 SHELL!$SHELL$ac_delim
29709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29715 exec_prefix!$exec_prefix$ac_delim
29716 prefix!$prefix$ac_delim
29717 program_transform_name!$program_transform_name$ac_delim
29718 bindir!$bindir$ac_delim
29719 sbindir!$sbindir$ac_delim
29720 libexecdir!$libexecdir$ac_delim
29721 datarootdir!$datarootdir$ac_delim
29722 datadir!$datadir$ac_delim
29723 sysconfdir!$sysconfdir$ac_delim
29724 sharedstatedir!$sharedstatedir$ac_delim
29725 localstatedir!$localstatedir$ac_delim
29726 includedir!$includedir$ac_delim
29727 oldincludedir!$oldincludedir$ac_delim
29728 docdir!$docdir$ac_delim
29729 infodir!$infodir$ac_delim
29730 htmldir!$htmldir$ac_delim
29731 dvidir!$dvidir$ac_delim
29732 pdfdir!$pdfdir$ac_delim
29733 psdir!$psdir$ac_delim
29734 libdir!$libdir$ac_delim
29735 localedir!$localedir$ac_delim
29736 mandir!$mandir$ac_delim
29737 DEFS!$DEFS$ac_delim
29738 ECHO_C!$ECHO_C$ac_delim
29739 ECHO_N!$ECHO_N$ac_delim
29740 ECHO_T!$ECHO_T$ac_delim
29741 LIBS!$LIBS$ac_delim
29742 build_alias!$build_alias$ac_delim
29743 host_alias!$host_alias$ac_delim
29744 target_alias!$target_alias$ac_delim
29745 build!$build$ac_delim
29746 build_cpu!$build_cpu$ac_delim
29747 build_vendor!$build_vendor$ac_delim
29748 build_os!$build_os$ac_delim
29749 host!$host$ac_delim
29750 host_cpu!$host_cpu$ac_delim
29751 host_vendor!$host_vendor$ac_delim
29752 host_os!$host_os$ac_delim
29753 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29754 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29755 INSTALL_DATA!$INSTALL_DATA$ac_delim
29756 am__isrc!$am__isrc$ac_delim
29757 CYGPATH_W!$CYGPATH_W$ac_delim
29758 PACKAGE!$PACKAGE$ac_delim
29759 VERSION!$VERSION$ac_delim
29760 ACLOCAL!$ACLOCAL$ac_delim
29761 AUTOCONF!$AUTOCONF$ac_delim
29762 AUTOMAKE!$AUTOMAKE$ac_delim
29763 AUTOHEADER!$AUTOHEADER$ac_delim
29764 MAKEINFO!$MAKEINFO$ac_delim
29765 install_sh!$install_sh$ac_delim
29766 STRIP!$STRIP$ac_delim
29767 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29768 mkdir_p!$mkdir_p$ac_delim
29769 AWK!$AWK$ac_delim
29770 SET_MAKE!$SET_MAKE$ac_delim
29771 am__leading_dot!$am__leading_dot$ac_delim
29772 AMTAR!$AMTAR$ac_delim
29773 am__tar!$am__tar$ac_delim
29774 am__untar!$am__untar$ac_delim
29775 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29776 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29777 MAINT!$MAINT$ac_delim
29778 RELEASE!$RELEASE$ac_delim
29779 statedir!$statedir$ac_delim
29780 statduser!$statduser$ac_delim
29781 enable_nfsv3!$enable_nfsv3$ac_delim
29782 IDMAPD!$IDMAPD$ac_delim
29783 enable_nfsv4!$enable_nfsv4$ac_delim
29784 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29785 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29786 GSSD!$GSSD$ac_delim
29787 SVCGSSD!$SVCGSSD$ac_delim
29788 enable_gss!$enable_gss$ac_delim
29789 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29790 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29791 kprefix!$kprefix$ac_delim
29792 secure_statd!$secure_statd$ac_delim
29793 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29794 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29795 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29796 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29797 CC!$CC$ac_delim
29798 CFLAGS!$CFLAGS$ac_delim
29799 LDFLAGS!$LDFLAGS$ac_delim
29800 CPPFLAGS!$CPPFLAGS$ac_delim
29801 ac_ct_CC!$ac_ct_CC$ac_delim
29802 EXEEXT!$EXEEXT$ac_delim
29803 OBJEXT!$OBJEXT$ac_delim
29804 DEPDIR!$DEPDIR$ac_delim
29805 _ACEOF
29806
29807   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29808     break
29809   elif $ac_last_try; then
29810     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29812    { (exit 1); exit 1; }; }
29813   else
29814     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29815   fi
29816 done
29817
29818 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29819 if test -n "$ac_eof"; then
29820   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29821   ac_eof=`expr $ac_eof + 1`
29822 fi
29823
29824 cat >>$CONFIG_STATUS <<_ACEOF
29825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29827 _ACEOF
29828 sed '
29829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29830 s/^/s,@/; s/!/@,|#_!!_#|/
29831 :n
29832 t n
29833 s/'"$ac_delim"'$/,g/; t
29834 s/$/\\/; p
29835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29836 ' >>$CONFIG_STATUS <conf$$subs.sed
29837 rm -f conf$$subs.sed
29838 cat >>$CONFIG_STATUS <<_ACEOF
29839 CEOF$ac_eof
29840 _ACEOF
29841
29842
29843 ac_delim='%!_!# '
29844 for ac_last_try in false false false false false :; do
29845   cat >conf$$subs.sed <<_ACEOF
29846 am__include!$am__include$ac_delim
29847 am__quote!$am__quote$ac_delim
29848 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29849 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29850 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29851 CCDEPMODE!$CCDEPMODE$ac_delim
29852 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29853 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29854 LIBWRAP!$LIBWRAP$ac_delim
29855 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29856 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29857 CXX!$CXX$ac_delim
29858 CXXFLAGS!$CXXFLAGS$ac_delim
29859 ac_ct_CXX!$ac_ct_CXX$ac_delim
29860 CXXDEPMODE!$CXXDEPMODE$ac_delim
29861 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29862 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29863 CPP!$CPP$ac_delim
29864 LN_S!$LN_S$ac_delim
29865 GREP!$GREP$ac_delim
29866 EGREP!$EGREP$ac_delim
29867 ECHO!$ECHO$ac_delim
29868 AR!$AR$ac_delim
29869 RANLIB!$RANLIB$ac_delim
29870 CXXCPP!$CXXCPP$ac_delim
29871 F77!$F77$ac_delim
29872 FFLAGS!$FFLAGS$ac_delim
29873 ac_ct_F77!$ac_ct_F77$ac_delim
29874 LIBTOOL!$LIBTOOL$ac_delim
29875 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29876 LD!$LD$ac_delim
29877 LIBNSL!$LIBNSL$ac_delim
29878 PKG_CONFIG!$PKG_CONFIG$ac_delim
29879 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29880 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29881 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29882 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29883 LIBSOCKET!$LIBSOCKET$ac_delim
29884 LIBCRYPT!$LIBCRYPT$ac_delim
29885 LIBBSD!$LIBBSD$ac_delim
29886 LIBBLKID!$LIBBLKID$ac_delim
29887 KRBDIR!$KRBDIR$ac_delim
29888 KRBLIBS!$KRBLIBS$ac_delim
29889 KRBCFLAGS!$KRBCFLAGS$ac_delim
29890 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29891 K5VERS!$K5VERS$ac_delim
29892 ALLOCA!$ALLOCA$ac_delim
29893 LIBOBJS!$LIBOBJS$ac_delim
29894 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29895 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29896 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29897 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29898 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29899 AM_CFLAGS!$AM_CFLAGS$ac_delim
29900 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29901 LTLIBOBJS!$LTLIBOBJS$ac_delim
29902 _ACEOF
29903
29904   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
29905     break
29906   elif $ac_last_try; then
29907     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29909    { (exit 1); exit 1; }; }
29910   else
29911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29912   fi
29913 done
29914
29915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29916 if test -n "$ac_eof"; then
29917   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29918   ac_eof=`expr $ac_eof + 1`
29919 fi
29920
29921 cat >>$CONFIG_STATUS <<_ACEOF
29922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29924 _ACEOF
29925 sed '
29926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29927 s/^/s,@/; s/!/@,|#_!!_#|/
29928 :n
29929 t n
29930 s/'"$ac_delim"'$/,g/; t
29931 s/$/\\/; p
29932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29933 ' >>$CONFIG_STATUS <conf$$subs.sed
29934 rm -f conf$$subs.sed
29935 cat >>$CONFIG_STATUS <<_ACEOF
29936 :end
29937 s/|#_!!_#|//g
29938 CEOF$ac_eof
29939 _ACEOF
29940
29941
29942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29944 # trailing colons and then remove the whole line if VPATH becomes empty
29945 # (actually we leave an empty line to preserve line numbers).
29946 if test "x$srcdir" = x.; then
29947   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29948 s/:*\$(srcdir):*/:/
29949 s/:*\${srcdir}:*/:/
29950 s/:*@srcdir@:*/:/
29951 s/^\([^=]*=[     ]*\):*/\1/
29952 s/:*$//
29953 s/^[^=]*=[       ]*$//
29954 }'
29955 fi
29956
29957 cat >>$CONFIG_STATUS <<\_ACEOF
29958 fi # test -n "$CONFIG_FILES"
29959
29960
29961 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29962 do
29963   case $ac_tag in
29964   :[FHLC]) ac_mode=$ac_tag; continue;;
29965   esac
29966   case $ac_mode$ac_tag in
29967   :[FHL]*:*);;
29968   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29970    { (exit 1); exit 1; }; };;
29971   :[FH]-) ac_tag=-:-;;
29972   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29973   esac
29974   ac_save_IFS=$IFS
29975   IFS=:
29976   set x $ac_tag
29977   IFS=$ac_save_IFS
29978   shift
29979   ac_file=$1
29980   shift
29981
29982   case $ac_mode in
29983   :L) ac_source=$1;;
29984   :[FH])
29985     ac_file_inputs=
29986     for ac_f
29987     do
29988       case $ac_f in
29989       -) ac_f="$tmp/stdin";;
29990       *) # Look for the file first in the build tree, then in the source tree
29991          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29992          # because $ac_f cannot contain `:'.
29993          test -f "$ac_f" ||
29994            case $ac_f in
29995            [\\/$]*) false;;
29996            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29997            esac ||
29998            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30000    { (exit 1); exit 1; }; };;
30001       esac
30002       ac_file_inputs="$ac_file_inputs $ac_f"
30003     done
30004
30005     # Let's still pretend it is `configure' which instantiates (i.e., don't
30006     # use $as_me), people would be surprised to read:
30007     #    /* config.h.  Generated by config.status.  */
30008     configure_input="Generated from "`IFS=:
30009           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30010     if test x"$ac_file" != x-; then
30011       configure_input="$ac_file.  $configure_input"
30012       { echo "$as_me:$LINENO: creating $ac_file" >&5
30013 echo "$as_me: creating $ac_file" >&6;}
30014     fi
30015
30016     case $ac_tag in
30017     *:-:* | *:-) cat >"$tmp/stdin";;
30018     esac
30019     ;;
30020   esac
30021
30022   ac_dir=`$as_dirname -- "$ac_file" ||
30023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30024          X"$ac_file" : 'X\(//\)[^/]' \| \
30025          X"$ac_file" : 'X\(//\)$' \| \
30026          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30027 echo X"$ac_file" |
30028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30029             s//\1/
30030             q
30031           }
30032           /^X\(\/\/\)[^/].*/{
30033             s//\1/
30034             q
30035           }
30036           /^X\(\/\/\)$/{
30037             s//\1/
30038             q
30039           }
30040           /^X\(\/\).*/{
30041             s//\1/
30042             q
30043           }
30044           s/.*/./; q'`
30045   { as_dir="$ac_dir"
30046   case $as_dir in #(
30047   -*) as_dir=./$as_dir;;
30048   esac
30049   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30050     as_dirs=
30051     while :; do
30052       case $as_dir in #(
30053       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30054       *) as_qdir=$as_dir;;
30055       esac
30056       as_dirs="'$as_qdir' $as_dirs"
30057       as_dir=`$as_dirname -- "$as_dir" ||
30058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30059          X"$as_dir" : 'X\(//\)[^/]' \| \
30060          X"$as_dir" : 'X\(//\)$' \| \
30061          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30062 echo X"$as_dir" |
30063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30064             s//\1/
30065             q
30066           }
30067           /^X\(\/\/\)[^/].*/{
30068             s//\1/
30069             q
30070           }
30071           /^X\(\/\/\)$/{
30072             s//\1/
30073             q
30074           }
30075           /^X\(\/\).*/{
30076             s//\1/
30077             q
30078           }
30079           s/.*/./; q'`
30080       test -d "$as_dir" && break
30081     done
30082     test -z "$as_dirs" || eval "mkdir $as_dirs"
30083   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30085    { (exit 1); exit 1; }; }; }
30086   ac_builddir=.
30087
30088 case "$ac_dir" in
30089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30090 *)
30091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30092   # A ".." for each directory in $ac_dir_suffix.
30093   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30094   case $ac_top_builddir_sub in
30095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30097   esac ;;
30098 esac
30099 ac_abs_top_builddir=$ac_pwd
30100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30101 # for backward compatibility:
30102 ac_top_builddir=$ac_top_build_prefix
30103
30104 case $srcdir in
30105   .)  # We are building in place.
30106     ac_srcdir=.
30107     ac_top_srcdir=$ac_top_builddir_sub
30108     ac_abs_top_srcdir=$ac_pwd ;;
30109   [\\/]* | ?:[\\/]* )  # Absolute name.
30110     ac_srcdir=$srcdir$ac_dir_suffix;
30111     ac_top_srcdir=$srcdir
30112     ac_abs_top_srcdir=$srcdir ;;
30113   *) # Relative name.
30114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30115     ac_top_srcdir=$ac_top_build_prefix$srcdir
30116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30117 esac
30118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30119
30120
30121   case $ac_mode in
30122   :F)
30123   #
30124   # CONFIG_FILE
30125   #
30126
30127   case $INSTALL in
30128   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30129   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30130   esac
30131   ac_MKDIR_P=$MKDIR_P
30132   case $MKDIR_P in
30133   [\\/$]* | ?:[\\/]* ) ;;
30134   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30135   esac
30136 _ACEOF
30137
30138 cat >>$CONFIG_STATUS <<\_ACEOF
30139 # If the template does not know about datarootdir, expand it.
30140 # FIXME: This hack should be removed a few years after 2.60.
30141 ac_datarootdir_hack=; ac_datarootdir_seen=
30142
30143 case `sed -n '/datarootdir/ {
30144   p
30145   q
30146 }
30147 /@datadir@/p
30148 /@docdir@/p
30149 /@infodir@/p
30150 /@localedir@/p
30151 /@mandir@/p
30152 ' $ac_file_inputs` in
30153 *datarootdir*) ac_datarootdir_seen=yes;;
30154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30155   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30157 _ACEOF
30158 cat >>$CONFIG_STATUS <<_ACEOF
30159   ac_datarootdir_hack='
30160   s&@datadir@&$datadir&g
30161   s&@docdir@&$docdir&g
30162   s&@infodir@&$infodir&g
30163   s&@localedir@&$localedir&g
30164   s&@mandir@&$mandir&g
30165     s&\\\${datarootdir}&$datarootdir&g' ;;
30166 esac
30167 _ACEOF
30168
30169 # Neutralize VPATH when `$srcdir' = `.'.
30170 # Shell code in configure.ac might set extrasub.
30171 # FIXME: do we really want to maintain this feature?
30172 cat >>$CONFIG_STATUS <<_ACEOF
30173   sed "$ac_vpsub
30174 $extrasub
30175 _ACEOF
30176 cat >>$CONFIG_STATUS <<\_ACEOF
30177 :t
30178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30179 s&@configure_input@&$configure_input&;t t
30180 s&@top_builddir@&$ac_top_builddir_sub&;t t
30181 s&@srcdir@&$ac_srcdir&;t t
30182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30183 s&@top_srcdir@&$ac_top_srcdir&;t t
30184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30185 s&@builddir@&$ac_builddir&;t t
30186 s&@abs_builddir@&$ac_abs_builddir&;t t
30187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30188 s&@INSTALL@&$ac_INSTALL&;t t
30189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30190 $ac_datarootdir_hack
30191 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30192
30193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30194   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30195   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30196   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30197 which seems to be undefined.  Please make sure it is defined." >&5
30198 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30199 which seems to be undefined.  Please make sure it is defined." >&2;}
30200
30201   rm -f "$tmp/stdin"
30202   case $ac_file in
30203   -) cat "$tmp/out"; rm -f "$tmp/out";;
30204   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30205   esac
30206  ;;
30207   :H)
30208   #
30209   # CONFIG_HEADER
30210   #
30211 _ACEOF
30212
30213 # Transform confdefs.h into a sed script `conftest.defines', that
30214 # substitutes the proper values into config.h.in to produce config.h.
30215 rm -f conftest.defines conftest.tail
30216 # First, append a space to every undef/define line, to ease matching.
30217 echo 's/$/ /' >conftest.defines
30218 # Then, protect against being on the right side of a sed subst, or in
30219 # an unquoted here document, in config.status.  If some macros were
30220 # called several times there might be several #defines for the same
30221 # symbol, which is useless.  But do not sort them, since the last
30222 # AC_DEFINE must be honored.
30223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30224 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30225 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30226 # PARAMS is the parameter list in the macro definition--in most cases, it's
30227 # just an empty string.
30228 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30229 ac_dB='\\)[      (].*,\\1define\\2'
30230 ac_dC=' '
30231 ac_dD=' ,'
30232
30233 uniq confdefs.h |
30234   sed -n '
30235         t rset
30236         :rset
30237         s/^[     ]*#[    ]*define[       ][      ]*//
30238         t ok
30239         d
30240         :ok
30241         s/[\\&,]/\\&/g
30242         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30243         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30244   ' >>conftest.defines
30245
30246 # Remove the space that was appended to ease matching.
30247 # Then replace #undef with comments.  This is necessary, for
30248 # example, in the case of _POSIX_SOURCE, which is predefined and required
30249 # on some systems where configure will not decide to define it.
30250 # (The regexp can be short, since the line contains either #define or #undef.)
30251 echo 's/ $//
30252 s,^[     #]*u.*,/* & */,' >>conftest.defines
30253
30254 # Break up conftest.defines:
30255 ac_max_sed_lines=50
30256
30257 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30258 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30259 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30260 # et cetera.
30261 ac_in='$ac_file_inputs'
30262 ac_out='"$tmp/out1"'
30263 ac_nxt='"$tmp/out2"'
30264
30265 while :
30266 do
30267   # Write a here document:
30268     cat >>$CONFIG_STATUS <<_ACEOF
30269     # First, check the format of the line:
30270     cat >"\$tmp/defines.sed" <<\\CEOF
30271 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30272 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30273 b
30274 :def
30275 _ACEOF
30276   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30277   echo 'CEOF
30278     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30279   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30280   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30281   grep . conftest.tail >/dev/null || break
30282   rm -f conftest.defines
30283   mv conftest.tail conftest.defines
30284 done
30285 rm -f conftest.defines conftest.tail
30286
30287 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30288 cat >>$CONFIG_STATUS <<\_ACEOF
30289   if test x"$ac_file" != x-; then
30290     echo "/* $configure_input  */" >"$tmp/config.h"
30291     cat "$ac_result" >>"$tmp/config.h"
30292     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30293       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30294 echo "$as_me: $ac_file is unchanged" >&6;}
30295     else
30296       rm -f $ac_file
30297       mv "$tmp/config.h" $ac_file
30298     fi
30299   else
30300     echo "/* $configure_input  */"
30301     cat "$ac_result"
30302   fi
30303   rm -f "$tmp/out12"
30304 # Compute $ac_file's index in $config_headers.
30305 _am_stamp_count=1
30306 for _am_header in $config_headers :; do
30307   case $_am_header in
30308     $ac_file | $ac_file:* )
30309       break ;;
30310     * )
30311       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30312   esac
30313 done
30314 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30315 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30316          X$ac_file : 'X\(//\)[^/]' \| \
30317          X$ac_file : 'X\(//\)$' \| \
30318          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30319 echo X$ac_file |
30320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30321             s//\1/
30322             q
30323           }
30324           /^X\(\/\/\)[^/].*/{
30325             s//\1/
30326             q
30327           }
30328           /^X\(\/\/\)$/{
30329             s//\1/
30330             q
30331           }
30332           /^X\(\/\).*/{
30333             s//\1/
30334             q
30335           }
30336           s/.*/./; q'`/stamp-h$_am_stamp_count
30337  ;;
30338
30339   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30340 echo "$as_me: executing $ac_file commands" >&6;}
30341  ;;
30342   esac
30343
30344
30345   case $ac_file$ac_mode in
30346     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30347   # Strip MF so we end up with the name of the file.
30348   mf=`echo "$mf" | sed -e 's/:.*$//'`
30349   # Check whether this is an Automake generated Makefile or not.
30350   # We used to match only the files named `Makefile.in', but
30351   # some people rename them; so instead we look at the file content.
30352   # Grep'ing the first line is not enough: some people post-process
30353   # each Makefile.in and add a new line on top of each file to say so.
30354   # Grep'ing the whole file is not good either: AIX grep has a line
30355   # limit of 2048, but all sed's we know have understand at least 4000.
30356   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30357     dirpart=`$as_dirname -- "$mf" ||
30358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30359          X"$mf" : 'X\(//\)[^/]' \| \
30360          X"$mf" : 'X\(//\)$' \| \
30361          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30362 echo X"$mf" |
30363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30364             s//\1/
30365             q
30366           }
30367           /^X\(\/\/\)[^/].*/{
30368             s//\1/
30369             q
30370           }
30371           /^X\(\/\/\)$/{
30372             s//\1/
30373             q
30374           }
30375           /^X\(\/\).*/{
30376             s//\1/
30377             q
30378           }
30379           s/.*/./; q'`
30380   else
30381     continue
30382   fi
30383   # Extract the definition of DEPDIR, am__include, and am__quote
30384   # from the Makefile without running `make'.
30385   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30386   test -z "$DEPDIR" && continue
30387   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30388   test -z "am__include" && continue
30389   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30390   # When using ansi2knr, U may be empty or an underscore; expand it
30391   U=`sed -n 's/^U = //p' < "$mf"`
30392   # Find all dependency output files, they are included files with
30393   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30394   # simplest approach to changing $(DEPDIR) to its actual value in the
30395   # expansion.
30396   for file in `sed -n "
30397     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30398        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30399     # Make sure the directory exists.
30400     test -f "$dirpart/$file" && continue
30401     fdir=`$as_dirname -- "$file" ||
30402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30403          X"$file" : 'X\(//\)[^/]' \| \
30404          X"$file" : 'X\(//\)$' \| \
30405          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30406 echo X"$file" |
30407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30408             s//\1/
30409             q
30410           }
30411           /^X\(\/\/\)[^/].*/{
30412             s//\1/
30413             q
30414           }
30415           /^X\(\/\/\)$/{
30416             s//\1/
30417             q
30418           }
30419           /^X\(\/\).*/{
30420             s//\1/
30421             q
30422           }
30423           s/.*/./; q'`
30424     { as_dir=$dirpart/$fdir
30425   case $as_dir in #(
30426   -*) as_dir=./$as_dir;;
30427   esac
30428   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30429     as_dirs=
30430     while :; do
30431       case $as_dir in #(
30432       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30433       *) as_qdir=$as_dir;;
30434       esac
30435       as_dirs="'$as_qdir' $as_dirs"
30436       as_dir=`$as_dirname -- "$as_dir" ||
30437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30438          X"$as_dir" : 'X\(//\)[^/]' \| \
30439          X"$as_dir" : 'X\(//\)$' \| \
30440          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30441 echo X"$as_dir" |
30442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30443             s//\1/
30444             q
30445           }
30446           /^X\(\/\/\)[^/].*/{
30447             s//\1/
30448             q
30449           }
30450           /^X\(\/\/\)$/{
30451             s//\1/
30452             q
30453           }
30454           /^X\(\/\).*/{
30455             s//\1/
30456             q
30457           }
30458           s/.*/./; q'`
30459       test -d "$as_dir" && break
30460     done
30461     test -z "$as_dirs" || eval "mkdir $as_dirs"
30462   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30464    { (exit 1); exit 1; }; }; }
30465     # echo "creating $dirpart/$file"
30466     echo '# dummy' > "$dirpart/$file"
30467   done
30468 done
30469  ;;
30470
30471   esac
30472 done # for ac_tag
30473
30474
30475 { (exit 0); exit 0; }
30476 _ACEOF
30477 chmod +x $CONFIG_STATUS
30478 ac_clean_files=$ac_clean_files_save
30479
30480
30481 # configure is writing to config.log, and then calls config.status.
30482 # config.status does its own redirection, appending to config.log.
30483 # Unfortunately, on DOS this fails, as config.log is still kept open
30484 # by configure, so config.status won't be able to write to it; its
30485 # output is simply discarded.  So we exec the FD to /dev/null,
30486 # effectively closing config.log, so it can be properly (re)opened and
30487 # appended to by config.status.  When coming back to configure, we
30488 # need to make the FD available again.
30489 if test "$no_create" != yes; then
30490   ac_cs_success=:
30491   ac_config_status_args=
30492   test "$silent" = yes &&
30493     ac_config_status_args="$ac_config_status_args --quiet"
30494   exec 5>/dev/null
30495   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30496   exec 5>>config.log
30497   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30498   # would make configure fail if this is the last instruction.
30499   $ac_cs_success || { (exit 1); exit 1; }
30500 fi
30501
30502