Imported Upstream version 0.0~git20110724.48593f5
[deb_libnfs.git] / configure
CommitLineData
dabf4152
AM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libnfs 0.0.0.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='libnfs'
569PACKAGE_TARNAME='libnfs'
570PACKAGE_VERSION='0.0.0'
571PACKAGE_STRING='libnfs 0.0.0'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589# include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594# include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615RPCGENFLAGS
616MAYBE_EXAMPLES
617HAVE_RPCGEN
618CPP
619OTOOL64
620OTOOL
621LIPO
622NMEDIT
623DSYMUTIL
624MANIFEST_TOOL
625RANLIB
626ac_ct_AR
627AR
628DLLTOOL
629OBJDUMP
630LN_S
631NM
632ac_ct_DUMPBIN
633DUMPBIN
634LD
635FGREP
636EGREP
637GREP
638SED
639LIBTOOL
640am__fastdepCC_FALSE
641am__fastdepCC_TRUE
642CCDEPMODE
643AMDEPBACKSLASH
644AMDEP_FALSE
645AMDEP_TRUE
646am__quote
647am__include
648DEPDIR
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
664am__untar
665am__tar
666AMTAR
667am__leading_dot
668SET_MAKE
669AWK
670mkdir_p
671MKDIR_P
672INSTALL_STRIP_PROGRAM
673STRIP
674install_sh
675MAKEINFO
676AUTOHEADER
677AUTOMAKE
678AUTOCONF
679ACLOCAL
680VERSION
681PACKAGE
682CYGPATH_W
683am__isrc
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_alias
688host_alias
689build_alias
690LIBS
691ECHO_T
692ECHO_N
693ECHO_C
694DEFS
695mandir
696localedir
697libdir
698psdir
699pdfdir
700dvidir
701htmldir
702infodir
703docdir
704oldincludedir
705includedir
706localstatedir
707sharedstatedir
708sysconfdir
709datadir
710datarootdir
711libexecdir
712sbindir
713bindir
714program_transform_name
715prefix
716exec_prefix
717PACKAGE_URL
718PACKAGE_BUGREPORT
719PACKAGE_STRING
720PACKAGE_VERSION
721PACKAGE_TARNAME
722PACKAGE_NAME
723PATH_SEPARATOR
724SHELL'
725ac_subst_files=''
726ac_user_opts='
727enable_option_checking
728enable_dependency_tracking
729enable_shared
730enable_static
731with_pic
732enable_fast_install
733with_gnu_ld
734with_sysroot
735enable_libtool_lock
736enable_examples
3be27335 737enable_tirpc
dabf4152
AM
738'
739 ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP'
748
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
753ac_unrecognized_opts=
754ac_unrecognized_sep=
755# The variables have the same names as the options, with
756# dashes changed to underlines.
757cache_file=/dev/null
758exec_prefix=NONE
759no_create=
760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
765silent=
766site=
767srcdir=
768verbose=
769x_includes=NONE
770x_libraries=NONE
771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
777# (The list follows the same order as the GNU Coding Standards.)
778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
786includedir='${prefix}/include'
787oldincludedir='/usr/include'
788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
797
798ac_prev=
799ac_dashdash=
800for ac_option
801do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862"enable_$ac_useropt"
863"*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888"enable_$ac_useropt"
889"*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092"with_$ac_useropt"
1093"*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108"with_$ac_useropt"
1109"*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156done
1157
1158if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161fi
1162
1163if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169fi
1170
1171# Check all directory arguments for consistency.
1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190done
1191
1192# There might be people who depend on the old broken behavior: `$host'
1193# used to hold the argument of --host etc.
1194# FIXME: To remove some day.
1195build=$build_alias
1196host=$host_alias
1197target=$target_alias
1198
1199# FIXME: To remove some day.
1200if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
1215
1216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224# Find the source files, if location was not specified.
1225if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233$as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255else
1256 ac_srcdir_defaulted=no
1257fi
1258if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261fi
1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
1282
1283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290\`configure' configures libnfs 0.0.0 to adapt to many kinds of systems.
1291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfs]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343_ACEOF
1344
1345 cat <<\_ACEOF
1346
1347Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of libnfs 0.0.0:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
1370 --enable-shared[=PKGS] build shared libraries [default=yes]
1371 --enable-static[=PKGS] build static libraries [default=yes]
1372 --enable-fast-install[=PKGS]
1373 optimize for fast installation [default=yes]
1374 --disable-libtool-lock avoid locking (might break parallel builds)
1375 --enable-examples Build example programs
3be27335 1376 --enable-tirpc enable use of TI-RPC [default=no]
dabf4152
AM
1377
1378Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-pic try to use only PIC/non-PIC objects [default=use
1382 both]
1383 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1384 --with-sysroot=DIR Search for dependent libraries within DIR
1385 (or the compiler's sysroot if not specified).
1386
1387Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 CPP C preprocessor
1396
1397Use these variables to override the choices made by `configure' or to help
1398it to find libraries and programs with nonstandard names/locations.
1399
1400Report bugs to the package provider.
1401_ACEOF
1402ac_status=$?
1403fi
1404
1405if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410 continue
1411 ac_builddir=.
1412
1413case "$ac_dir" in
1414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415*)
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423esac
1424ac_abs_top_builddir=$ac_pwd
1425ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426# for backward compatibility:
1427ac_top_builddir=$ac_top_build_prefix
1428
1429case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442esac
1443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1458fi
1459
1460test -n "$ac_init_help" && exit $ac_status
1461if $ac_init_version; then
1462 cat <<\_ACEOF
1463libnfs configure 0.0.0
1464generated by GNU Autoconf 2.68
1465
1466Copyright (C) 2010 Free Software Foundation, Inc.
1467This configure script is free software; the Free Software Foundation
1468gives unlimited permission to copy, distribute and modify it.
1469_ACEOF
1470 exit
1471fi
1472
1473## ------------------------ ##
1474## Autoconf initialization. ##
1475## ------------------------ ##
1476
1477# ac_fn_c_try_compile LINENO
1478# --------------------------
1479# Try to compile conftest.$ac_ext, and return whether this succeeded.
1480ac_fn_c_try_compile ()
1481{
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1497 fi
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504else
1505 $as_echo "$as_me: failed program was:" >&5
1506sed 's/^/| /' conftest.$ac_ext >&5
1507
1508 ac_retval=1
1509fi
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1512
1513} # ac_fn_c_try_compile
1514
1515# ac_fn_c_try_link LINENO
1516# -----------------------
1517# Try to link conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_link ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest$ac_exeext
1522 if { { ac_try="$ac_link"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest$ac_exeext && {
1541 test "$cross_compiling" = yes ||
1542 $as_test_x conftest$ac_exeext
1543 }; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550fi
1551 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553 # interfere with the next link command; also delete a directory that is
1554 # left behind by Apple's compiler. We do this before executing the actions.
1555 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_link
1560
1561# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562# -------------------------------------------------------
1563# Tests whether HEADER exists and can be compiled using the include files in
1564# INCLUDES, setting the cache variable VAR accordingly.
1565ac_fn_c_check_header_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569$as_echo_n "checking for $2... " >&6; }
1570if eval \${$3+:} false; then :
1571 $as_echo_n "(cached) " >&6
1572else
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574/* end confdefs.h. */
1575$4
1576#include <$2>
1577_ACEOF
1578if ac_fn_c_try_compile "$LINENO"; then :
1579 eval "$3=yes"
1580else
1581 eval "$3=no"
1582fi
1583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584fi
1585eval ac_res=\$$3
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587$as_echo "$ac_res" >&6; }
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589
1590} # ac_fn_c_check_header_compile
1591
1592# ac_fn_c_try_cpp LINENO
1593# ----------------------
1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_cpp ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627} # ac_fn_c_try_cpp
1628
1629# ac_fn_c_try_run LINENO
1630# ----------------------
1631# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632# that executables *can* be run.
1633ac_fn_c_try_run ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1654 ac_status=$?
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=$ac_status
1664fi
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_run
1670
1671# ac_fn_c_check_func LINENO FUNC VAR
1672# ----------------------------------
1673# Tests whether FUNC exists, setting the cache variable VAR accordingly
1674ac_fn_c_check_func ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1686#define $2 innocuous_$2
1687
1688/* System header to define __stub macros and hopefully few prototypes,
1689 which can conflict with char $2 (); below.
1690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691 <limits.h> exists even on freestanding compilers. */
1692
1693#ifdef __STDC__
1694# include <limits.h>
1695#else
1696# include <assert.h>
1697#endif
1698
1699#undef $2
1700
1701/* Override any GCC internal prototype to avoid an error.
1702 Use char because int might match the return type of a GCC
1703 builtin and then its argument prototype would still apply. */
1704#ifdef __cplusplus
1705extern "C"
1706#endif
1707char $2 ();
1708/* The GNU C library defines this for functions which it implements
1709 to always fail with ENOSYS. Some functions are actually named
1710 something starting with __ and the normal name is an alias. */
1711#if defined __stub_$2 || defined __stub___$2
1712choke me
1713#endif
1714
1715int
1716main ()
1717{
1718return $2 ();
1719 ;
1720 return 0;
1721}
1722_ACEOF
1723if ac_fn_c_try_link "$LINENO"; then :
1724 eval "$3=yes"
1725else
1726 eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext \
1729 conftest$ac_exeext conftest.$ac_ext
1730fi
1731eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_func
1737
1738# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739# -------------------------------------------------------
1740# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741# the include files in INCLUDES and setting the cache variable VAR
1742# accordingly.
1743ac_fn_c_check_header_mongrel ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if eval \${$3+:} false; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751fi
1752eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755else
1756 # Is the header compilable?
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758$as_echo_n "checking $2 usability... " >&6; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1766else
1767 ac_header_compiler=no
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771$as_echo "$ac_header_compiler" >&6; }
1772
1773# Is the header present?
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775$as_echo_n "checking $2 presence... " >&6; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1782else
1783 ac_header_preproc=no
1784fi
1785rm -f conftest.err conftest.i conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787$as_echo "$ac_header_preproc" >&6; }
1788
1789# So? What about this header?
1790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791 yes:no: )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 ;;
1797 no:yes:* )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ;;
1809esac
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814else
1815 eval "$3=\$ac_header_compiler"
1816fi
1817eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820fi
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_header_mongrel
1824
1825# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1826# ----------------------------------------------------
1827# Tries to find if the field MEMBER exists in type AGGR, after including
1828# INCLUDES, setting cache variable VAR accordingly.
1829ac_fn_c_check_member ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1833$as_echo_n "checking for $2.$3... " >&6; }
1834if eval \${$4+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839$5
1840int
1841main ()
1842{
1843static $2 ac_aggr;
1844if (ac_aggr.$3)
1845return 0;
1846 ;
1847 return 0;
1848}
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851 eval "$4=yes"
1852else
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855$5
1856int
1857main ()
1858{
1859static $2 ac_aggr;
1860if (sizeof ac_aggr.$3)
1861return 0;
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$4=yes"
1868else
1869 eval "$4=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$4
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_member
1881cat >config.log <<_ACEOF
1882This file contains any messages produced by compilers while
1883running configure, to aid debugging if configure makes a mistake.
1884
1885It was created by libnfs $as_me 0.0.0, which was
1886generated by GNU Autoconf 2.68. Invocation command line was
1887
1888 $ $0 $@
1889
1890_ACEOF
1891exec 5>>config.log
1892{
1893cat <<_ASUNAME
1894## --------- ##
1895## Platform. ##
1896## --------- ##
1897
1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915_ASUNAME
1916
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924IFS=$as_save_IFS
1925
1926} >&5
1927
1928cat >&5 <<_ACEOF
1929
1930
1931## ----------- ##
1932## Core tests. ##
1933## ----------- ##
1934
1935_ACEOF
1936
1937
1938# Keep a trace of the command line.
1939# Strip out --no-create and --no-recursion so they do not pile up.
1940# Strip out --silent because we don't want to record it for future runs.
1941# Also quote any args containing shell meta-characters.
1942# Make two passes to allow for proper duplicate-argument suppression.
1943ac_configure_args=
1944ac_configure_args0=
1945ac_configure_args1=
1946ac_must_keep_next=false
1947for ac_pass in 1 2
1948do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982done
1983{ ac_configure_args0=; unset ac_configure_args0;}
1984{ ac_configure_args1=; unset ac_configure_args1;}
1985
1986# When interrupted or exit'd, cleanup temporary files, and complete
1987# config.log. We remove comments because anyway the quotes in there
1988# would cause problems or look ugly.
1989# WARNING: Use '\'' to represent an apostrophe within the trap.
1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 $as_echo "## ---------------- ##
1997## Cache variables. ##
1998## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001(
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029)
2030 echo
2031
2032 $as_echo "## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 $as_echo "## ------------------- ##
2048## File substitutions. ##
2049## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 $as_echo "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 $as_echo "## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077' 0
2078for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080done
2081ac_signal=0
2082
2083# confdefs.h avoids OS command line length limits that DEFS can exceed.
2084rm -f -r conftest* confdefs.h
2085
2086$as_echo "/* confdefs.h */" > confdefs.h
2087
2088# Predefined preprocessor variables.
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_NAME "$PACKAGE_NAME"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_VERSION "$PACKAGE_VERSION"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_STRING "$PACKAGE_STRING"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_URL "$PACKAGE_URL"
2112_ACEOF
2113
2114
2115# Let the site file select an alternate cache file if it wants to.
2116# Prefer an explicitly selected file to automatically selected ones.
2117ac_site_file1=NONE
2118ac_site_file2=NONE
2119if test -n "$CONFIG_SITE"; then
2120 # We do not want a PATH search for config.site.
2121 case $CONFIG_SITE in #((
2122 -*) ac_site_file1=./$CONFIG_SITE;;
2123 */*) ac_site_file1=$CONFIG_SITE;;
2124 *) ac_site_file1=./$CONFIG_SITE;;
2125 esac
2126elif test "x$prefix" != xNONE; then
2127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
2129else
2130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
2132fi
2133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134do
2135 test "x$ac_site_file" = xNONE && continue
2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139 sed 's/^/| /' "$ac_site_file" >&5
2140 . "$ac_site_file" \
2141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143as_fn_error $? "failed to load site script $ac_site_file
2144See \`config.log' for more details" "$LINENO" 5; }
2145 fi
2146done
2147
2148if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special files
2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153$as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2158 fi
2159else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161$as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2163fi
2164
2165# Check that the precious variables saved in the cache have kept the same
2166# value.
2167ac_cache_corrupted=false
2168for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2183 *)
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2196 fi
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2213 fi
2214done
2215if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221fi
2222## -------------------- ##
2223## Main body of script. ##
2224## -------------------- ##
2225
2226ac_ext=c
2227ac_cpp='$CPP $CPPFLAGS'
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233ac_config_headers="$ac_config_headers config.h"
2234
2235am__api_version='1.11'
2236
2237ac_aux_dir=
2238for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2239 if test -f "$ac_dir/install-sh"; then
2240 ac_aux_dir=$ac_dir
2241 ac_install_sh="$ac_aux_dir/install-sh -c"
2242 break
2243 elif test -f "$ac_dir/install.sh"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install.sh -c"
2246 break
2247 elif test -f "$ac_dir/shtool"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/shtool install -c"
2250 break
2251 fi
2252done
2253if test -z "$ac_aux_dir"; then
2254 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2255fi
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
2265
2266# Find a good install program. We prefer a C program (faster),
2267# so one script is as good as another. But avoid the broken or
2268# incompatible versions:
2269# SysV /etc/install, /usr/sbin/install
2270# SunOS /usr/etc/install
2271# IRIX /sbin/install
2272# AIX /bin/install
2273# AmigaOS /C/install, which installs bootblocks on floppy discs
2274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277# OS/2's system install, which has a completely different semantic
2278# ./install, which can be erroneously created by make from ./install.sh.
2279# Reject install programs that cannot install multiple files.
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2281$as_echo_n "checking for a BSD-compatible install... " >&6; }
2282if test -z "$INSTALL"; then
2283if ${ac_cv_path_install+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 # Account for people who put trailing slashes in PATH elements.
2292case $as_dir/ in #((
2293 ./ | .// | /[cC]/* | \
2294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2296 /usr/ucb/* ) ;;
2297 *)
2298 # OSF1 and SCO ODT 3.0 have their own names for install.
2299 # Don't use installbsd from OSF since it installs stuff as root
2300 # by default.
2301 for ac_prog in ginstall scoinst install; do
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2307 :
2308 elif test $ac_prog = install &&
2309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2311 :
2312 else
2313 rm -rf conftest.one conftest.two conftest.dir
2314 echo one > conftest.one
2315 echo two > conftest.two
2316 mkdir conftest.dir
2317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318 test -s conftest.one && test -s conftest.two &&
2319 test -s conftest.dir/conftest.one &&
2320 test -s conftest.dir/conftest.two
2321 then
2322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2323 break 3
2324 fi
2325 fi
2326 fi
2327 done
2328 done
2329 ;;
2330esac
2331
2332 done
2333IFS=$as_save_IFS
2334
2335rm -rf conftest.one conftest.two conftest.dir
2336
2337fi
2338 if test "${ac_cv_path_install+set}" = set; then
2339 INSTALL=$ac_cv_path_install
2340 else
2341 # As a last resort, use the slow shell script. Don't cache a
2342 # value for INSTALL within a source directory, because that will
2343 # break other packages using the cache if that directory is
2344 # removed, or if the value is a relative name.
2345 INSTALL=$ac_install_sh
2346 fi
2347fi
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2349$as_echo "$INSTALL" >&6; }
2350
2351# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352# It thinks the first close brace ends the variable substitution.
2353test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354
2355test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2356
2357test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2360$as_echo_n "checking whether build environment is sane... " >&6; }
2361# Just in case
2362sleep 1
2363echo timestamp > conftest.file
2364# Reject unsafe characters in $srcdir or the absolute working directory
2365# name. Accept space and tab only in the latter.
2366am_lf='
2367'
2368case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371esac
2372case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2375esac
2376
2377# Do `set' in a subshell so we don't clobber the current shell's
2378# arguments. Must try -L first in case configure is actually a
2379# symlink; some systems play weird games with the mod time of symlinks
2380# (eg FreeBSD returns the mod time of the symlink's containing
2381# directory).
2382if (
2383 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2384 if test "$*" = "X"; then
2385 # -L didn't work.
2386 set X `ls -t "$srcdir/configure" conftest.file`
2387 fi
2388 rm -f conftest.file
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397alias in your environment" "$LINENO" 5
2398 fi
2399
2400 test "$2" = conftest.file
2401 )
2402then
2403 # Ok.
2404 :
2405else
2406 as_fn_error $? "newly created file is older than distributed files!
2407Check your system clock" "$LINENO" 5
2408fi
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410$as_echo "yes" >&6; }
2411test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413# Use a double $ so make ignores it.
2414test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416# Double any \ or $.
2417# By default was `s,x,x', remove it if useless.
2418ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421# expand $ac_aux_dir to an absolute path
2422am_aux_dir=`cd $ac_aux_dir && pwd`
2423
2424if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2428 *)
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2431fi
2432# Use eval to expand $SHELL
2433if eval "$MISSING --run true"; then
2434 am_missing_run="$MISSING --run "
2435else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2438$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2439fi
2440
2441if test x"${install_sh}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2445 *)
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2448fi
2449
2450# Installed binaries are usually stripped using `strip' when the user
2451# run `make install-strip'. However `strip' might not be the right
2452# tool to use in cross-compilation environments, therefore Automake
2453# will honor the `STRIP' environment variable to overrule this program.
2454if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457set dummy ${ac_tool_prefix}strip; ac_word=$2
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
2460if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478 done
2479IFS=$as_save_IFS
2480
2481fi
2482fi
2483STRIP=$ac_cv_prog_STRIP
2484if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486$as_echo "$STRIP" >&6; }
2487else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493fi
2494if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497set dummy strip; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518 done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526$as_echo "$ac_ct_STRIP" >&6; }
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536yes:)
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539ac_tool_warned=yes ;;
2540esac
2541 STRIP=$ac_ct_STRIP
2542 fi
2543else
2544 STRIP="$ac_cv_prog_STRIP"
2545fi
2546
2547fi
2548INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574IFS=$as_save_IFS
2575
2576fi
2577
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2587 fi
2588fi
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590$as_echo "$MKDIR_P" >&6; }
2591
2592mkdir_p="$MKDIR_P"
2593case $mkdir_p in
2594 [\\/$]* | ?:[\\/]*) ;;
2595 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2596esac
2597
2598for ac_prog in gawk mawk nawk awk
2599do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622 done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627AWK=$ac_cv_prog_AWK
2628if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630$as_echo "$AWK" >&6; }
2631else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637 test -n "$AWK" && break
2638done
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642set x ${MAKE-make}
2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646else
2647 cat >conftest.make <<\_ACEOF
2648SHELL = /bin/sh
2649all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651_ACEOF
2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658esac
2659rm -f conftest.make
2660fi
2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
2664 SET_MAKE=
2665else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
2671rm -rf .tst 2>/dev/null
2672mkdir .tst 2>/dev/null
2673if test -d .tst; then
2674 am__leading_dot=.
2675else
2676 am__leading_dot=_
2677fi
2678rmdir .tst 2>/dev/null
2679
2680if test "`cd $srcdir && pwd`" != "`pwd`"; then
2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2682 # is not polluted with repeated "-I."
2683 am__isrc=' -I$(srcdir)'
2684 # test to see if srcdir already configured
2685 if test -f $srcdir/config.status; then
2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2687 fi
2688fi
2689
2690# test whether we have cygpath
2691if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2694 else
2695 CYGPATH_W=echo
2696 fi
2697fi
2698
2699
2700# Define the identity of the package.
2701 PACKAGE='libnfs'
2702 VERSION='0.0.0'
2703
2704
2705cat >>confdefs.h <<_ACEOF
2706#define PACKAGE "$PACKAGE"
2707_ACEOF
2708
2709
2710cat >>confdefs.h <<_ACEOF
2711#define VERSION "$VERSION"
2712_ACEOF
2713
2714# Some tools Automake needs.
2715
2716ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2717
2718
2719AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2720
2721
2722AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2723
2724
2725AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2726
2727
2728MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729
2730# We need awk for the "check" target. The system "awk" is bad on
2731# some platforms.
2732# Always define AMTAR for backward compatibility.
2733
2734AMTAR=${AMTAR-"${am_missing_run}tar"}
2735
2736am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2737
2738
2739
2740
2741
2742# Make sure we can run config.sub.
2743$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2745
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2747$as_echo_n "checking build system type... " >&6; }
2748if ${ac_cv_build+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750else
2751 ac_build_alias=$build_alias
2752test "x$ac_build_alias" = x &&
2753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2754test "x$ac_build_alias" = x &&
2755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2756ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2758
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2761$as_echo "$ac_cv_build" >&6; }
2762case $ac_cv_build in
2763*-*-*) ;;
2764*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2765esac
2766build=$ac_cv_build
2767ac_save_IFS=$IFS; IFS='-'
2768set x $ac_cv_build
2769shift
2770build_cpu=$1
2771build_vendor=$2
2772shift; shift
2773# Remember, the first character of IFS is used to create $*,
2774# except with old shells:
2775build_os=$*
2776IFS=$ac_save_IFS
2777case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2778
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2781$as_echo_n "checking host system type... " >&6; }
2782if ${ac_cv_host+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 if test "x$host_alias" = x; then
2786 ac_cv_host=$ac_cv_build
2787else
2788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790fi
2791
2792fi
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2794$as_echo "$ac_cv_host" >&6; }
2795case $ac_cv_host in
2796*-*-*) ;;
2797*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2798esac
2799host=$ac_cv_host
2800ac_save_IFS=$IFS; IFS='-'
2801set x $ac_cv_host
2802shift
2803host_cpu=$1
2804host_vendor=$2
2805shift; shift
2806# Remember, the first character of IFS is used to create $*,
2807# except with old shells:
2808host_os=$*
2809IFS=$ac_save_IFS
2810case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811
2812
2813
2814# Work around stupid autoconf default cflags. pt 1
2815SAVE_CFLAGS="x${CFLAGS}"
2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2824set dummy ${ac_tool_prefix}gcc; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844done
2845 done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850CC=$ac_cv_prog_CC
2851if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853$as_echo "$CC" >&6; }
2854else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860fi
2861if test -z "$ac_cv_prog_CC"; then
2862 ac_ct_CC=$CC
2863 # Extract the first word of "gcc", so it can be a program name with args.
2864set dummy gcc; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if ${ac_cv_prog_ac_ct_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869else
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CC="gcc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891if test -n "$ac_ct_CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2893$as_echo "$ac_ct_CC" >&6; }
2894else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906ac_tool_warned=yes ;;
2907esac
2908 CC=$ac_ct_CC
2909 fi
2910else
2911 CC="$ac_cv_prog_CC"
2912fi
2913
2914if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}cc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC="${ac_tool_prefix}cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938 done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953 fi
2954fi
2955if test -z "$CC"; then
2956 # Extract the first word of "cc", so it can be a program name with args.
2957set dummy cc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965else
2966 ac_prog_rejected=no
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2975 ac_prog_rejected=yes
2976 continue
2977 fi
2978 ac_cv_prog_CC="cc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982done
2983 done
2984IFS=$as_save_IFS
2985
2986if test $ac_prog_rejected = yes; then
2987 # We found a bogon in the path, so make sure we never use it.
2988 set dummy $ac_cv_prog_CC
2989 shift
2990 if test $# != 0; then
2991 # We chose a different compiler from the bogus one.
2992 # However, it has the same basename, so the bogon will be chosen
2993 # first if we set CC to just the basename; use the full file name.
2994 shift
2995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2996 fi
2997fi
2998fi
2999fi
3000CC=$ac_cv_prog_CC
3001if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003$as_echo "$CC" >&6; }
3004else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007fi
3008
3009
3010fi
3011if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 for ac_prog in cl.exe
3014 do
3015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037 done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042CC=$ac_cv_prog_CC
3043if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045$as_echo "$CC" >&6; }
3046else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051
3052 test -n "$CC" && break
3053 done
3054fi
3055if test -z "$CC"; then
3056 ac_ct_CC=$CC
3057 for ac_prog in cl.exe
3058do
3059 # Extract the first word of "$ac_prog", so it can be a program name with args.
3060set dummy $ac_prog; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_ac_ct_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081 done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089$as_echo "$ac_ct_CC" >&6; }
3090else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096 test -n "$ac_ct_CC" && break
3097done
3098
3099 if test "x$ac_ct_CC" = x; then
3100 CC=""
3101 else
3102 case $cross_compiling:$ac_tool_warned in
3103yes:)
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106ac_tool_warned=yes ;;
3107esac
3108 CC=$ac_ct_CC
3109 fi
3110fi
3111
3112fi
3113
3114
3115test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117as_fn_error $? "no acceptable C compiler found in \$PATH
3118See \`config.log' for more details" "$LINENO" 5; }
3119
3120# Provide some information about the compiler.
3121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3122set X $ac_compile
3123ac_compiler=$2
3124for ac_option in --version -v -V -qversion; do
3125 { { ac_try="$ac_compiler $ac_option >&5"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3133 ac_status=$?
3134 if test -s conftest.err; then
3135 sed '10a\
3136... rest of stderr output deleted ...
3137 10q' conftest.err >conftest.er1
3138 cat conftest.er1 >&5
3139 fi
3140 rm -f conftest.er1 conftest.err
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143done
3144
3145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156ac_clean_files_save=$ac_clean_files
3157ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3158# Try to create an executable without -o first, disregard a.out.
3159# It will help us diagnose broken compilers, and finding out an intuition
3160# of exeext.
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3162$as_echo_n "checking whether the C compiler works... " >&6; }
3163ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164
3165# The possible output files:
3166ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3167
3168ac_rmfiles=
3169for ac_file in $ac_files
3170do
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3174 esac
3175done
3176rm -f $ac_rmfiles
3177
3178if { { ac_try="$ac_link_default"
3179case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link_default") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3191# in a Makefile. We should not override ac_cv_exeext if it was cached,
3192# so that the user can short-circuit this test for compilers unknown to
3193# Autoconf.
3194for ac_file in $ac_files ''
3195do
3196 test -f "$ac_file" || continue
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3199 ;;
3200 [ab].out )
3201 # We found the default executable, but exeext='' is most
3202 # certainly right.
3203 break;;
3204 *.* )
3205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3206 then :; else
3207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 fi
3209 # We set ac_cv_exeext here because the later test for it is not
3210 # safe: cross compilers may not add the suffix if given an `-o'
3211 # argument, so we may need to know it at that point already.
3212 # Even if this section looks crufty: it has the advantage of
3213 # actually working.
3214 break;;
3215 * )
3216 break;;
3217 esac
3218done
3219test "$ac_cv_exeext" = no && ac_cv_exeext=
3220
3221else
3222 ac_file=''
3223fi
3224if test -z "$ac_file"; then :
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227$as_echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232as_fn_error 77 "C compiler cannot create executables
3233See \`config.log' for more details" "$LINENO" 5; }
3234else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236$as_echo "yes" >&6; }
3237fi
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3239$as_echo_n "checking for C compiler default output file name... " >&6; }
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3241$as_echo "$ac_file" >&6; }
3242ac_exeext=$ac_cv_exeext
3243
3244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3245ac_clean_files=$ac_clean_files_save
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3247$as_echo_n "checking for suffix of executables... " >&6; }
3248if { { ac_try="$ac_link"
3249case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3261# work properly (i.e., refer to `conftest.exe'), while it won't with
3262# `rm'.
3263for ac_file in conftest.exe conftest conftest.*; do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 break;;
3269 * ) break;;
3270 esac
3271done
3272else
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3276See \`config.log' for more details" "$LINENO" 5; }
3277fi
3278rm -f conftest conftest$ac_cv_exeext
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280$as_echo "$ac_cv_exeext" >&6; }
3281
3282rm -f conftest.$ac_ext
3283EXEEXT=$ac_cv_exeext
3284ac_exeext=$EXEEXT
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h. */
3287#include <stdio.h>
3288int
3289main ()
3290{
3291FILE *f = fopen ("conftest.out", "w");
3292 return ferror (f) || fclose (f) != 0;
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298ac_clean_files="$ac_clean_files conftest.out"
3299# Check that the compiler produces executables we can run. If not, either
3300# the compiler is broken, or we cross compile.
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3302$as_echo_n "checking whether we are cross compiling... " >&6; }
3303if test "$cross_compiling" != yes; then
3304 { { ac_try="$ac_link"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 if { ac_try='./conftest$ac_cv_exeext'
3316 { { case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_try") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; }; then
3326 cross_compiling=no
3327 else
3328 if test "$cross_compiling" = maybe; then
3329 cross_compiling=yes
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333as_fn_error $? "cannot run C compiled programs.
3334If you meant to cross compile, use \`--host'.
3335See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 fi
3338fi
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3340$as_echo "$cross_compiling" >&6; }
3341
3342rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3343ac_clean_files=$ac_clean_files_save
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345$as_echo_n "checking for suffix of object files... " >&6; }
3346if ${ac_cv_objext+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */
3351
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360rm -f conftest.o conftest.obj
3361if { { ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379done
3380else
3381 $as_echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error $? "cannot compute suffix of object files: cannot compile
3387See \`config.log' for more details" "$LINENO" 5; }
3388fi
3389rm -f conftest.$ac_cv_objext conftest.$ac_ext
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392$as_echo "$ac_cv_objext" >&6; }
3393OBJEXT=$ac_cv_objext
3394ac_objext=$OBJEXT
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397if ${ac_cv_c_compiler_gnu+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399else
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h. */
3402
3403int
3404main ()
3405{
3406#ifndef __GNUC__
3407 choke me
3408#endif
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_compiler_gnu=yes
3416else
3417 ac_compiler_gnu=no
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425if test $ac_compiler_gnu = yes; then
3426 GCC=yes
3427else
3428 GCC=
3429fi
3430ac_test_CFLAGS=${CFLAGS+set}
3431ac_save_CFLAGS=$CFLAGS
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433$as_echo_n "checking whether $CC accepts -g... " >&6; }
3434if ${ac_cv_prog_cc_g+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436else
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_g=yes
3454else
3455 CFLAGS=""
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h. */
3458
3459int
3460main ()
3461{
3462
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467if ac_fn_c_try_compile "$LINENO"; then :
3468
3469else
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485fi
3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494$as_echo "$ac_cv_prog_cc_g" >&6; }
3495if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512if ${ac_cv_prog_cc_c89+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 ac_cv_prog_cc_c89=no
3516ac_save_CC=$CC
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519#include <stdarg.h>
3520#include <stdio.h>
3521#include <sys/types.h>
3522#include <sys/stat.h>
3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524struct buf { int x; };
3525FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526static char *e (p, i)
3527 char **p;
3528 int i;
3529{
3530 return p[i];
3531}
3532static char *f (char * (*g) (char **, int), char **p, ...)
3533{
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540}
3541
3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553#define FOO(x) 'x'
3554int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
3556int test (int i, double x);
3557struct s1 {int (*f) (int a);};
3558struct s2 {int (*f) (double a);};
3559int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560int argc;
3561char **argv;
3562int
3563main ()
3564{
3565return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572do
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3576fi
3577rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3579done
3580rm -f conftest.$ac_ext
3581CC=$ac_save_CC
3582
3583fi
3584# AC_CACHE_VAL
3585case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588$as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591$as_echo "unsupported" >&6; } ;;
3592 *)
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3596esac
3597if test "x$ac_cv_prog_cc_c89" != xno; then :
3598
3599fi
3600
3601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606DEPDIR="${am__leading_dot}deps"
3607
3608ac_config_commands="$ac_config_commands depfiles"
3609
3610
3611am_make=${MAKE-make}
3612cat > confinc << 'END'
3613am__doit:
3614 @echo this is the am__doit target
3615.PHONY: am__doit
3616END
3617# If we don't find an include directive, just comment out the code.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3619$as_echo_n "checking for style of include used by $am_make... " >&6; }
3620am__include="#"
3621am__quote=
3622_am_result=none
3623# First try GNU make style include.
3624echo "include confinc" > confmf
3625# Ignore all kinds of additional output from `make'.
3626case `$am_make -s -f confmf 2> /dev/null` in #(
3627*the\ am__doit\ target*)
3628 am__include=include
3629 am__quote=
3630 _am_result=GNU
3631 ;;
3632esac
3633# Now try BSD make style include.
3634if test "$am__include" = "#"; then
3635 echo '.include "confinc"' > confmf
3636 case `$am_make -s -f confmf 2> /dev/null` in #(
3637 *the\ am__doit\ target*)
3638 am__include=.include
3639 am__quote="\""
3640 _am_result=BSD
3641 ;;
3642 esac
3643fi
3644
3645
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3647$as_echo "$_am_result" >&6; }
3648rm -f confinc confmf
3649
3650# Check whether --enable-dependency-tracking was given.
3651if test "${enable_dependency_tracking+set}" = set; then :
3652 enableval=$enable_dependency_tracking;
3653fi
3654
3655if test "x$enable_dependency_tracking" != xno; then
3656 am_depcomp="$ac_aux_dir/depcomp"
3657 AMDEPBACKSLASH='\'
3658fi
3659 if test "x$enable_dependency_tracking" != xno; then
3660 AMDEP_TRUE=
3661 AMDEP_FALSE='#'
3662else
3663 AMDEP_TRUE='#'
3664 AMDEP_FALSE=
3665fi
3666
3667
3668
3669depcc="$CC" am_compiler_list=
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3672$as_echo_n "checking dependency style of $depcc... " >&6; }
3673if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675else
3676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677 # We make a subdir and do the tests there. Otherwise we can end up
3678 # making bogus files that we don't know about and never remove. For
3679 # instance it was reported that on HP-UX the gcc test will end up
3680 # making a dummy file named `D' -- because `-MD' means `put the output
3681 # in D'.
3682 mkdir conftest.dir
3683 # Copy depcomp to subdir because otherwise we won't find it if we're
3684 # using a relative directory.
3685 cp "$am_depcomp" conftest.dir
3686 cd conftest.dir
3687 # We will build objects and dependencies in a subdirectory because
3688 # it helps to detect inapplicable dependency modes. For instance
3689 # both Tru64's cc and ICC support -MD to output dependencies as a
3690 # side effect of compilation, but ICC will put the dependencies in
3691 # the current directory while Tru64 will put them in the object
3692 # directory.
3693 mkdir sub
3694
3695 am_cv_CC_dependencies_compiler_type=none
3696 if test "$am_compiler_list" = ""; then
3697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698 fi
3699 am__universal=false
3700 case " $depcc " in #(
3701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3702 esac
3703
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3708 #
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3712 : > sub/conftest.c
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3718 done
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3722 # mode. It turns out that the SunPro C++ compiler does not properly
3723 # handle `-M -o', and we need to detect this. Also, some Intel
3724 # versions had trouble with output in subdirs
3725 am__obj=sub/conftest.${OBJEXT-o}
3726 am__minus_obj="-o $am__obj"
3727 case $depmode in
3728 gcc)
3729 # This depmode causes a compiler race in universal mode.
3730 test "$am__universal" = false || continue
3731 ;;
3732 nosideeffect)
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3736 continue
3737 else
3738 break
3739 fi
3740 ;;
3741 msvisualcpp | msvcmsys)
3742 # This compiler won't grok `-c -o', but also, the minuso test has
3743 # not run yet. These depmodes are late enough in the game, and
3744 # so weak that their functioning should not be impacted.
3745 am__obj=conftest.${OBJEXT-o}
3746 am__minus_obj=
3747 ;;
3748 none) break ;;
3749 esac
3750 if depmode=$depmode \
3751 source=sub/conftest.c object=$am__obj \
3752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3754 >/dev/null 2>conftest.err &&
3755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759 # icc doesn't choke on unknown options, it will just issue warnings
3760 # or remarks (even with -Werror). So we grep stderr for any message
3761 # that says an option was ignored or not supported.
3762 # When given -MP, icc 7.0 and 7.1 complain thusly:
3763 # icc: Command line warning: ignoring option '-M'; no argument required
3764 # The diagnosis changed in icc 8.0:
3765 # icc: Command line remark: option '-MP' not supported
3766 if (grep 'ignoring option' conftest.err ||
3767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3768 am_cv_CC_dependencies_compiler_type=$depmode
3769 break
3770 fi
3771 fi
3772 done
3773
3774 cd ..
3775 rm -rf conftest.dir
3776else
3777 am_cv_CC_dependencies_compiler_type=none
3778fi
3779
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3782$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3783CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3784
3785 if
3786 test "x$enable_dependency_tracking" != xno \
3787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3788 am__fastdepCC_TRUE=
3789 am__fastdepCC_FALSE='#'
3790else
3791 am__fastdepCC_TRUE='#'
3792 am__fastdepCC_FALSE=
3793fi
3794
3795
3796case `pwd` in
3797 *\ * | *\ *)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3799$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3800esac
3801
3802
3803
3804macro_version='2.4'
3805macro_revision='1.3293'
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819ltmain="$ac_aux_dir/ltmain.sh"
3820
3821# Backslashify metacharacters that are still active within
3822# double-quoted strings.
3823sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3824
3825# Same as above, but do not quote variable references.
3826double_quote_subst='s/\(["`\\]\)/\\\1/g'
3827
3828# Sed substitution to delay expansion of an escaped shell variable in a
3829# double_quote_subst'ed string.
3830delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3831
3832# Sed substitution to delay expansion of an escaped single quote.
3833delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3834
3835# Sed substitution to avoid accidental globbing in evaled expressions
3836no_glob_subst='s/\*/\\\*/g'
3837
3838ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3839ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3840ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3841
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3843$as_echo_n "checking how to print strings... " >&6; }
3844# Test print first, because it will be a builtin if present.
3845if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3846 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3847 ECHO='print -r --'
3848elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3849 ECHO='printf %s\n'
3850else
3851 # Use this function as a fallback that always works.
3852 func_fallback_echo ()
3853 {
3854 eval 'cat <<_LTECHO_EOF
3855$1
3856_LTECHO_EOF'
3857 }
3858 ECHO='func_fallback_echo'
3859fi
3860
3861# func_echo_all arg...
3862# Invoke $ECHO with all args, space-separated.
3863func_echo_all ()
3864{
3865 $ECHO ""
3866}
3867
3868case "$ECHO" in
3869 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3870$as_echo "printf" >&6; } ;;
3871 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3872$as_echo "print -r" >&6; } ;;
3873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3874$as_echo "cat" >&6; } ;;
3875esac
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3891$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892if ${ac_cv_path_SED+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894else
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3898 done
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 { ac_script=; unset ac_script;}
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in sed gsed; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913# Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915case `"$ac_path_SED" --version 2>&1` in
3916*GNU*)
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918*)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941 $ac_path_SED_found && break 3
3942 done
3943 done
3944 done
3945IFS=$as_save_IFS
3946 if test -z "$ac_cv_path_SED"; then
3947 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3948 fi
3949else
3950 ac_cv_path_SED=$SED
3951fi
3952
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3955$as_echo "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3957 rm -f conftest.sed
3958
3959test -z "$SED" && SED=sed
3960Xsed="$SED -e 1s/^X//"
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3973$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3974if ${ac_cv_path_GREP+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976else
3977 if test -z "$GREP"; then
3978 ac_path_GREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in grep ggrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3989# Check for GNU ac_path_GREP and select it if it is found.
3990 # Check for GNU $ac_path_GREP
3991case `"$ac_path_GREP" --version 2>&1` in
3992*GNU*)
3993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994*)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'GREP' >> "conftest.nl"
4003 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 as_fn_arith $ac_count + 1 && ac_count=$as_val
4006 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_GREP="$ac_path_GREP"
4009 ac_path_GREP_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015esac
4016
4017 $ac_path_GREP_found && break 3
4018 done
4019 done
4020 done
4021IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_GREP"; then
4023 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 fi
4025else
4026 ac_cv_path_GREP=$GREP
4027fi
4028
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4031$as_echo "$ac_cv_path_GREP" >&6; }
4032 GREP="$ac_cv_path_GREP"
4033
4034
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4036$as_echo_n "checking for egrep... " >&6; }
4037if ${ac_cv_path_EGREP+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039else
4040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4041 then ac_cv_path_EGREP="$GREP -E"
4042 else
4043 if test -z "$EGREP"; then
4044 ac_path_EGREP_found=false
4045 # Loop through the user's path and test for each of PROGNAME-LIST
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_prog in egrep; do
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4054 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4055# Check for GNU ac_path_EGREP and select it if it is found.
4056 # Check for GNU $ac_path_EGREP
4057case `"$ac_path_EGREP" --version 2>&1` in
4058*GNU*)
4059 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060*)
4061 ac_count=0
4062 $as_echo_n 0123456789 >"conftest.in"
4063 while :
4064 do
4065 cat "conftest.in" "conftest.in" >"conftest.tmp"
4066 mv "conftest.tmp" "conftest.in"
4067 cp "conftest.in" "conftest.nl"
4068 $as_echo 'EGREP' >> "conftest.nl"
4069 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4071 as_fn_arith $ac_count + 1 && ac_count=$as_val
4072 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4073 # Best one so far, save it but keep looking for a better one
4074 ac_cv_path_EGREP="$ac_path_EGREP"
4075 ac_path_EGREP_max=$ac_count
4076 fi
4077 # 10*(2^10) chars as input seems more than enough
4078 test $ac_count -gt 10 && break
4079 done
4080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081esac
4082
4083 $ac_path_EGREP_found && break 3
4084 done
4085 done
4086 done
4087IFS=$as_save_IFS
4088 if test -z "$ac_cv_path_EGREP"; then
4089 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4090 fi
4091else
4092 ac_cv_path_EGREP=$EGREP
4093fi
4094
4095 fi
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4098$as_echo "$ac_cv_path_EGREP" >&6; }
4099 EGREP="$ac_cv_path_EGREP"
4100
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4103$as_echo_n "checking for fgrep... " >&6; }
4104if ${ac_cv_path_FGREP+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106else
4107 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4108 then ac_cv_path_FGREP="$GREP -F"
4109 else
4110 if test -z "$FGREP"; then
4111 ac_path_FGREP_found=false
4112 # Loop through the user's path and test for each of PROGNAME-LIST
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_prog in fgrep; do
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4121 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4122# Check for GNU ac_path_FGREP and select it if it is found.
4123 # Check for GNU $ac_path_FGREP
4124case `"$ac_path_FGREP" --version 2>&1` in
4125*GNU*)
4126 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4127*)
4128 ac_count=0
4129 $as_echo_n 0123456789 >"conftest.in"
4130 while :
4131 do
4132 cat "conftest.in" "conftest.in" >"conftest.tmp"
4133 mv "conftest.tmp" "conftest.in"
4134 cp "conftest.in" "conftest.nl"
4135 $as_echo 'FGREP' >> "conftest.nl"
4136 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 as_fn_arith $ac_count + 1 && ac_count=$as_val
4139 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4140 # Best one so far, save it but keep looking for a better one
4141 ac_cv_path_FGREP="$ac_path_FGREP"
4142 ac_path_FGREP_max=$ac_count
4143 fi
4144 # 10*(2^10) chars as input seems more than enough
4145 test $ac_count -gt 10 && break
4146 done
4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148esac
4149
4150 $ac_path_FGREP_found && break 3
4151 done
4152 done
4153 done
4154IFS=$as_save_IFS
4155 if test -z "$ac_cv_path_FGREP"; then
4156 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4157 fi
4158else
4159 ac_cv_path_FGREP=$FGREP
4160fi
4161
4162 fi
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4165$as_echo "$ac_cv_path_FGREP" >&6; }
4166 FGREP="$ac_cv_path_FGREP"
4167
4168
4169test -z "$GREP" && GREP=grep
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189# Check whether --with-gnu-ld was given.
4190if test "${with_gnu_ld+set}" = set; then :
4191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4192else
4193 with_gnu_ld=no
4194fi
4195
4196ac_prog=ld
4197if test "$GCC" = yes; then
4198 # Check if gcc -print-prog-name=ld gives a path.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4200$as_echo_n "checking for ld used by $CC... " >&6; }
4201 case $host in
4202 *-*-mingw*)
4203 # gcc leaves a trailing carriage return which upsets mingw
4204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4205 *)
4206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4207 esac
4208 case $ac_prog in
4209 # Accept absolute paths.
4210 [\\/]* | ?:[\\/]*)
4211 re_direlt='/[^/][^/]*/\.\./'
4212 # Canonicalize the pathname of ld
4213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4216 done
4217 test -z "$LD" && LD="$ac_prog"
4218 ;;
4219 "")
4220 # If it fails, then pretend we aren't using GCC.
4221 ac_prog=ld
4222 ;;
4223 *)
4224 # If it is relative, then search for the first ld in PATH.
4225 with_gnu_ld=unknown
4226 ;;
4227 esac
4228elif test "$with_gnu_ld" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4230$as_echo_n "checking for GNU ld... " >&6; }
4231else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4233$as_echo_n "checking for non-GNU ld... " >&6; }
4234fi
4235if ${lt_cv_path_LD+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237else
4238 if test -z "$LD"; then
4239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4240 for ac_dir in $PATH; do
4241 IFS="$lt_save_ifs"
4242 test -z "$ac_dir" && ac_dir=.
4243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4244 lt_cv_path_LD="$ac_dir/$ac_prog"
4245 # Check to see if the program is GNU ld. I'd rather use --version,
4246 # but apparently some variants of GNU ld only accept -v.
4247 # Break only if it was the GNU/non-GNU ld that we prefer.
4248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4249 *GNU* | *'with BFD'*)
4250 test "$with_gnu_ld" != no && break
4251 ;;
4252 *)
4253 test "$with_gnu_ld" != yes && break
4254 ;;
4255 esac
4256 fi
4257 done
4258 IFS="$lt_save_ifs"
4259else
4260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4261fi
4262fi
4263
4264LD="$lt_cv_path_LD"
4265if test -n "$LD"; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4267$as_echo "$LD" >&6; }
4268else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270$as_echo "no" >&6; }
4271fi
4272test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4274$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4275if ${lt_cv_prog_gnu_ld+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277else
4278 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4279case `$LD -v 2>&1 </dev/null` in
4280*GNU* | *'with BFD'*)
4281 lt_cv_prog_gnu_ld=yes
4282 ;;
4283*)
4284 lt_cv_prog_gnu_ld=no
4285 ;;
4286esac
4287fi
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4289$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4290with_gnu_ld=$lt_cv_prog_gnu_ld
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4301$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4302if ${lt_cv_path_NM+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304else
4305 if test -n "$NM"; then
4306 # Let the user override the test.
4307 lt_cv_path_NM="$NM"
4308else
4309 lt_nm_to_check="${ac_tool_prefix}nm"
4310 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4311 lt_nm_to_check="$lt_nm_to_check nm"
4312 fi
4313 for lt_tmp_nm in $lt_nm_to_check; do
4314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4315 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4316 IFS="$lt_save_ifs"
4317 test -z "$ac_dir" && ac_dir=.
4318 tmp_nm="$ac_dir/$lt_tmp_nm"
4319 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4320 # Check to see if the nm accepts a BSD-compat flag.
4321 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4322 # nm: unknown option "B" ignored
4323 # Tru64's nm complains that /dev/null is an invalid object file
4324 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4325 */dev/null* | *'Invalid file or object type'*)
4326 lt_cv_path_NM="$tmp_nm -B"
4327 break
4328 ;;
4329 *)
4330 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4331 */dev/null*)
4332 lt_cv_path_NM="$tmp_nm -p"
4333 break
4334 ;;
4335 *)
4336 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4337 continue # so that we can try to find one that supports BSD flags
4338 ;;
4339 esac
4340 ;;
4341 esac
4342 fi
4343 done
4344 IFS="$lt_save_ifs"
4345 done
4346 : ${lt_cv_path_NM=no}
4347fi
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4350$as_echo "$lt_cv_path_NM" >&6; }
4351if test "$lt_cv_path_NM" != "no"; then
4352 NM="$lt_cv_path_NM"
4353else
4354 # Didn't find any BSD compatible name lister, look for dumpbin.
4355 if test -n "$DUMPBIN"; then :
4356 # Let the user override the test.
4357 else
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog in dumpbin "link -dump"
4360 do
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if ${ac_cv_prog_DUMPBIN+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$DUMPBIN"; then
4369 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383 done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388DUMPBIN=$ac_cv_prog_DUMPBIN
4389if test -n "$DUMPBIN"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4391$as_echo "$DUMPBIN" >&6; }
4392else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398 test -n "$DUMPBIN" && break
4399 done
4400fi
4401if test -z "$DUMPBIN"; then
4402 ac_ct_DUMPBIN=$DUMPBIN
4403 for ac_prog in dumpbin "link -dump"
4404do
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406set dummy $ac_prog; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 if test -n "$ac_ct_DUMPBIN"; then
4413 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427 done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4433if test -n "$ac_ct_DUMPBIN"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4435$as_echo "$ac_ct_DUMPBIN" >&6; }
4436else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439fi
4440
4441
4442 test -n "$ac_ct_DUMPBIN" && break
4443done
4444
4445 if test "x$ac_ct_DUMPBIN" = x; then
4446 DUMPBIN=":"
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449yes:)
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452ac_tool_warned=yes ;;
4453esac
4454 DUMPBIN=$ac_ct_DUMPBIN
4455 fi
4456fi
4457
4458 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4459 *COFF*)
4460 DUMPBIN="$DUMPBIN -symbols"
4461 ;;
4462 *)
4463 DUMPBIN=:
4464 ;;
4465 esac
4466 fi
4467
4468 if test "$DUMPBIN" != ":"; then
4469 NM="$DUMPBIN"
4470 fi
4471fi
4472test -z "$NM" && NM=nm
4473
4474
4475
4476
4477
4478
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4480$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4481if ${lt_cv_nm_interface+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483else
4484 lt_cv_nm_interface="BSD nm"
4485 echo "int some_variable = 0;" > conftest.$ac_ext
4486 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4487 (eval "$ac_compile" 2>conftest.err)
4488 cat conftest.err >&5
4489 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4490 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4491 cat conftest.err >&5
4492 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4493 cat conftest.out >&5
4494 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4495 lt_cv_nm_interface="MS dumpbin"
4496 fi
4497 rm -f conftest*
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4500$as_echo "$lt_cv_nm_interface" >&6; }
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4503$as_echo_n "checking whether ln -s works... " >&6; }
4504LN_S=$as_ln_s
4505if test "$LN_S" = "ln -s"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507$as_echo "yes" >&6; }
4508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4510$as_echo "no, using $LN_S" >&6; }
4511fi
4512
4513# find the maximum length of command line arguments
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4515$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4516if ${lt_cv_sys_max_cmd_len+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518else
4519 i=0
4520 teststring="ABCD"
4521
4522 case $build_os in
4523 msdosdjgpp*)
4524 # On DJGPP, this test can blow up pretty badly due to problems in libc
4525 # (any single argument exceeding 2000 bytes causes a buffer overrun
4526 # during glob expansion). Even if it were fixed, the result of this
4527 # check would be larger than it should be.
4528 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4529 ;;
4530
4531 gnu*)
4532 # Under GNU Hurd, this test is not required because there is
4533 # no limit to the length of command line arguments.
4534 # Libtool will interpret -1 as no limit whatsoever
4535 lt_cv_sys_max_cmd_len=-1;
4536 ;;
4537
4538 cygwin* | mingw* | cegcc*)
4539 # On Win9x/ME, this test blows up -- it succeeds, but takes
4540 # about 5 minutes as the teststring grows exponentially.
4541 # Worse, since 9x/ME are not pre-emptively multitasking,
4542 # you end up with a "frozen" computer, even though with patience
4543 # the test eventually succeeds (with a max line length of 256k).
4544 # Instead, let's just punt: use the minimum linelength reported by
4545 # all of the supported platforms: 8192 (on NT/2K/XP).
4546 lt_cv_sys_max_cmd_len=8192;
4547 ;;
4548
4549 mint*)
4550 # On MiNT this can take a long time and run out of memory.
4551 lt_cv_sys_max_cmd_len=8192;
4552 ;;
4553
4554 amigaos*)
4555 # On AmigaOS with pdksh, this test takes hours, literally.
4556 # So we just punt and use a minimum line length of 8192.
4557 lt_cv_sys_max_cmd_len=8192;
4558 ;;
4559
4560 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4561 # This has been around since 386BSD, at least. Likely further.
4562 if test -x /sbin/sysctl; then
4563 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4564 elif test -x /usr/sbin/sysctl; then
4565 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4566 else
4567 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4568 fi
4569 # And add a safety zone
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4572 ;;
4573
4574 interix*)
4575 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4576 lt_cv_sys_max_cmd_len=196608
4577 ;;
4578
4579 osf*)
4580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4582 # nice to cause kernel panics so lets avoid the loop below.
4583 # First set a reasonable default.
4584 lt_cv_sys_max_cmd_len=16384
4585 #
4586 if test -x /sbin/sysconfig; then
4587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4588 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4589 esac
4590 fi
4591 ;;
4592 sco3.2v5*)
4593 lt_cv_sys_max_cmd_len=102400
4594 ;;
4595 sysv5* | sco5v6* | sysv4.2uw2*)
4596 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4597 if test -n "$kargmax"; then
4598 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4599 else
4600 lt_cv_sys_max_cmd_len=32768
4601 fi
4602 ;;
4603 *)
4604 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4605 if test -n "$lt_cv_sys_max_cmd_len"; then
4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4608 else
4609 # Make teststring a little bigger before we do anything with it.
4610 # a 1K string should be a reasonable start.
4611 for i in 1 2 3 4 5 6 7 8 ; do
4612 teststring=$teststring$teststring
4613 done
4614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4615 # If test is not a shell built-in, we'll probably end up computing a
4616 # maximum length that is only half of the actual maximum length, but
4617 # we can't tell.
4618 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4619 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4620 test $i != 17 # 1/2 MB should be enough
4621 do
4622 i=`expr $i + 1`
4623 teststring=$teststring$teststring
4624 done
4625 # Only check the string length outside the loop.
4626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4627 teststring=
4628 # Add a significant safety factor because C++ compilers can tack on
4629 # massive amounts of additional arguments before passing them to the
4630 # linker. It appears as though 1/2 is a usable value.
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4632 fi
4633 ;;
4634 esac
4635
4636fi
4637
4638if test -n $lt_cv_sys_max_cmd_len ; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4640$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4641else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4643$as_echo "none" >&6; }
4644fi
4645max_cmd_len=$lt_cv_sys_max_cmd_len
4646
4647
4648
4649
4650
4651
4652: ${CP="cp -f"}
4653: ${MV="mv -f"}
4654: ${RM="rm -f"}
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4657$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4658# Try some XSI features
4659xsi_shell=no
4660( _lt_dummy="a/b/c"
4661 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4662 = c,a/b,b/c, \
4663 && eval 'test $(( 1 + 1 )) -eq 2 \
4664 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4665 && xsi_shell=yes
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4667$as_echo "$xsi_shell" >&6; }
4668
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4671$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4672lt_shell_append=no
4673( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4674 >/dev/null 2>&1 \
4675 && lt_shell_append=yes
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4677$as_echo "$lt_shell_append" >&6; }
4678
4679
4680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4681 lt_unset=unset
4682else
4683 lt_unset=false
4684fi
4685
4686
4687
4688
4689
4690# test EBCDIC or ASCII
4691case `echo X|tr X '\101'` in
4692 A) # ASCII based system
4693 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4694 lt_SP2NL='tr \040 \012'
4695 lt_NL2SP='tr \015\012 \040\040'
4696 ;;
4697 *) # EBCDIC based system
4698 lt_SP2NL='tr \100 \n'
4699 lt_NL2SP='tr \r\n \100\100'
4700 ;;
4701esac
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4712$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4713if ${lt_cv_to_host_file_cmd+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715else
4716 case $host in
4717 *-*-mingw* )
4718 case $build in
4719 *-*-mingw* ) # actually msys
4720 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4721 ;;
4722 *-*-cygwin* )
4723 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4724 ;;
4725 * ) # otherwise, assume *nix
4726 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4727 ;;
4728 esac
4729 ;;
4730 *-*-cygwin* )
4731 case $build in
4732 *-*-mingw* ) # actually msys
4733 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4734 ;;
4735 *-*-cygwin* )
4736 lt_cv_to_host_file_cmd=func_convert_file_noop
4737 ;;
4738 * ) # otherwise, assume *nix
4739 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4740 ;;
4741 esac
4742 ;;
4743 * ) # unhandled hosts (and "normal" native builds)
4744 lt_cv_to_host_file_cmd=func_convert_file_noop
4745 ;;
4746esac
4747
4748fi
4749
4750to_host_file_cmd=$lt_cv_to_host_file_cmd
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4752$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4753
4754
4755
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4759$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4760if ${lt_cv_to_tool_file_cmd+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 #assume ordinary cross tools, or native build.
4764lt_cv_to_tool_file_cmd=func_convert_file_noop
4765case $host in
4766 *-*-mingw* )
4767 case $build in
4768 *-*-mingw* ) # actually msys
4769 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4770 ;;
4771 esac
4772 ;;
4773esac
4774
4775fi
4776
4777to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4779$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4780
4781
4782
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4786$as_echo_n "checking for $LD option to reload object files... " >&6; }
4787if ${lt_cv_ld_reload_flag+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789else
4790 lt_cv_ld_reload_flag='-r'
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4793$as_echo "$lt_cv_ld_reload_flag" >&6; }
4794reload_flag=$lt_cv_ld_reload_flag
4795case $reload_flag in
4796"" | " "*) ;;
4797*) reload_flag=" $reload_flag" ;;
4798esac
4799reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800case $host_os in
4801 cygwin* | mingw* | pw32* | cegcc*)
4802 if test "$GCC" != yes; then
4803 reload_cmds=false
4804 fi
4805 ;;
4806 darwin*)
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809 else
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811 fi
4812 ;;
4813esac
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4825set dummy ${ac_tool_prefix}objdump; ac_word=$2
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827$as_echo_n "checking for $ac_word... " >&6; }
4828if ${ac_cv_prog_OBJDUMP+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -n "$OBJDUMP"; then
4832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845done
4846 done
4847IFS=$as_save_IFS
4848
4849fi
4850fi
4851OBJDUMP=$ac_cv_prog_OBJDUMP
4852if test -n "$OBJDUMP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4854$as_echo "$OBJDUMP" >&6; }
4855else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857$as_echo "no" >&6; }
4858fi
4859
4860
4861fi
4862if test -z "$ac_cv_prog_OBJDUMP"; then
4863 ac_ct_OBJDUMP=$OBJDUMP
4864 # Extract the first word of "objdump", so it can be a program name with args.
4865set dummy objdump; ac_word=$2
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
4868if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870else
4871 if test -n "$ac_ct_OBJDUMP"; then
4872 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886 done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
4891ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4892if test -n "$ac_ct_OBJDUMP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4894$as_echo "$ac_ct_OBJDUMP" >&6; }
4895else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900 if test "x$ac_ct_OBJDUMP" = x; then
4901 OBJDUMP="false"
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904yes:)
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907ac_tool_warned=yes ;;
4908esac
4909 OBJDUMP=$ac_ct_OBJDUMP
4910 fi
4911else
4912 OBJDUMP="$ac_cv_prog_OBJDUMP"
4913fi
4914
4915test -z "$OBJDUMP" && OBJDUMP=objdump
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4926$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4927if ${lt_cv_deplibs_check_method+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929else
4930 lt_cv_file_magic_cmd='$MAGIC_CMD'
4931lt_cv_file_magic_test_file=
4932lt_cv_deplibs_check_method='unknown'
4933# Need to set the preceding variable on all platforms that support
4934# interlibrary dependencies.
4935# 'none' -- dependencies not supported.
4936# `unknown' -- same as none, but documents that we really don't know.
4937# 'pass_all' -- all dependencies passed with no checks.
4938# 'test_compile' -- check by making test program.
4939# 'file_magic [[regex]]' -- check by looking for files in library path
4940# which responds to the $file_magic_cmd with a given extended regex.
4941# If you have `file' or equivalent on your system and you're not sure
4942# whether `pass_all' will *always* work, you probably want this one.
4943
4944case $host_os in
4945aix[4-9]*)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949beos*)
4950 lt_cv_deplibs_check_method=pass_all
4951 ;;
4952
4953bsdi[45]*)
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4955 lt_cv_file_magic_cmd='/usr/bin/file -L'
4956 lt_cv_file_magic_test_file=/shlib/libc.so
4957 ;;
4958
4959cygwin*)
4960 # func_win32_libid is a shell function defined in ltmain.sh
4961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4962 lt_cv_file_magic_cmd='func_win32_libid'
4963 ;;
4964
4965mingw* | pw32*)
4966 # Base MSYS/MinGW do not provide the 'file' command needed by
4967 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4968 # unless we find 'file', for example because we are cross-compiling.
4969 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4970 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4972 lt_cv_file_magic_cmd='func_win32_libid'
4973 else
4974 # Keep this pattern in sync with the one in func_win32_libid.
4975 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4976 lt_cv_file_magic_cmd='$OBJDUMP -f'
4977 fi
4978 ;;
4979
4980cegcc*)
4981 # use the weaker test based on 'objdump'. See mingw*.
4982 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4983 lt_cv_file_magic_cmd='$OBJDUMP -f'
4984 ;;
4985
4986darwin* | rhapsody*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990freebsd* | dragonfly*)
4991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4992 case $host_cpu in
4993 i*86 )
4994 # Not sure whether the presence of OpenBSD here was a mistake.
4995 # Let's accept both of them until this is cleared up.
4996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4997 lt_cv_file_magic_cmd=/usr/bin/file
4998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4999 ;;
5000 esac
5001 else
5002 lt_cv_deplibs_check_method=pass_all
5003 fi
5004 ;;
5005
5006gnu*)
5007 lt_cv_deplibs_check_method=pass_all
5008 ;;
5009
5010haiku*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
5014hpux10.20* | hpux11*)
5015 lt_cv_file_magic_cmd=/usr/bin/file
5016 case $host_cpu in
5017 ia64*)
5018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5020 ;;
5021 hppa*64*)
5022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5024 ;;
5025 *)
5026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5028 ;;
5029 esac
5030 ;;
5031
5032interix[3-9]*)
5033 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5035 ;;
5036
5037irix5* | irix6* | nonstopux*)
5038 case $LD in
5039 *-32|*"-32 ") libmagic=32-bit;;
5040 *-n32|*"-n32 ") libmagic=N32;;
5041 *-64|*"-64 ") libmagic=64-bit;;
5042 *) libmagic=never-match;;
5043 esac
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047# This must be Linux ELF.
5048linux* | k*bsd*-gnu | kopensolaris*-gnu)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051
5052netbsd* | netbsdelf*-gnu)
5053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 else
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5057 fi
5058 ;;
5059
5060newos6*)
5061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5064 ;;
5065
5066*nto* | *qnx*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070openbsd*)
5071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5073 else
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5075 fi
5076 ;;
5077
5078osf3* | osf4* | osf5*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082rdos*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086solaris*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094sysv4 | sysv4.3*)
5095 case $host_vendor in
5096 motorola)
5097 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]'
5098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5099 ;;
5100 ncr)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103 sequent)
5104 lt_cv_file_magic_cmd='/bin/file'
5105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5106 ;;
5107 sni)
5108 lt_cv_file_magic_cmd='/bin/file'
5109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5110 lt_cv_file_magic_test_file=/lib/libc.so
5111 ;;
5112 siemens)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115 pc)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118 esac
5119 ;;
5120
5121tpf*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124esac
5125
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5128$as_echo "$lt_cv_deplibs_check_method" >&6; }
5129
5130file_magic_glob=
5131want_nocaseglob=no
5132if test "$build" = "$host"; then
5133 case $host_os in
5134 mingw* | pw32*)
5135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5136 want_nocaseglob=yes
5137 else
5138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5139 fi
5140 ;;
5141 esac
5142fi
5143
5144file_magic_cmd=$lt_cv_file_magic_cmd
5145deplibs_check_method=$lt_cv_deplibs_check_method
5146test -z "$deplibs_check_method" && deplibs_check_method=unknown
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if ${ac_cv_prog_DLLTOOL+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176else
5177 if test -n "$DLLTOOL"; then
5178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192 done
5193IFS=$as_save_IFS
5194
5195fi
5196fi
5197DLLTOOL=$ac_cv_prog_DLLTOOL
5198if test -n "$DLLTOOL"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5200$as_echo "$DLLTOOL" >&6; }
5201else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206
5207fi
5208if test -z "$ac_cv_prog_DLLTOOL"; then
5209 ac_ct_DLLTOOL=$DLLTOOL
5210 # Extract the first word of "dlltool", so it can be a program name with args.
5211set dummy dlltool; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
5214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216else
5217 if test -n "$ac_ct_DLLTOOL"; then
5218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232 done
5233IFS=$as_save_IFS
5234
5235fi
5236fi
5237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5238if test -n "$ac_ct_DLLTOOL"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5240$as_echo "$ac_ct_DLLTOOL" >&6; }
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244fi
5245
5246 if test "x$ac_ct_DLLTOOL" = x; then
5247 DLLTOOL="false"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250yes:)
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253ac_tool_warned=yes ;;
5254esac
5255 DLLTOOL=$ac_ct_DLLTOOL
5256 fi
5257else
5258 DLLTOOL="$ac_cv_prog_DLLTOOL"
5259fi
5260
5261test -z "$DLLTOOL" && DLLTOOL=dlltool
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5273$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5274if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 lt_cv_sharedlib_from_linklib_cmd='unknown'
5278
5279case $host_os in
5280cygwin* | mingw* | pw32* | cegcc*)
5281 # two different shell functions defined in ltmain.sh
5282 # decide which to use based on capabilities of $DLLTOOL
5283 case `$DLLTOOL --help 2>&1` in
5284 *--identify-strict*)
5285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5286 ;;
5287 *)
5288 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5289 ;;
5290 esac
5291 ;;
5292*)
5293 # fallback: assume linklib IS sharedlib
5294 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5295 ;;
5296esac
5297
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5300$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5301sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5302test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5303
5304
5305
5306
5307
5308
5309
5310
5311if test -n "$ac_tool_prefix"; then
5312 for ac_prog in ar
5313 do
5314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317$as_echo_n "checking for $ac_word... " >&6; }
5318if ${ac_cv_prog_AR+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320else
5321 if test -n "$AR"; then
5322 ac_cv_prog_AR="$AR" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335done
5336 done
5337IFS=$as_save_IFS
5338
5339fi
5340fi
5341AR=$ac_cv_prog_AR
5342if test -n "$AR"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5344$as_echo "$AR" >&6; }
5345else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348fi
5349
5350
5351 test -n "$AR" && break
5352 done
5353fi
5354if test -z "$AR"; then
5355 ac_ct_AR=$AR
5356 for ac_prog in ar
5357do
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359set dummy $ac_prog; ac_word=$2
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361$as_echo_n "checking for $ac_word... " >&6; }
5362if ${ac_cv_prog_ac_ct_AR+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364else
5365 if test -n "$ac_ct_AR"; then
5366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5367else
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_ac_ct_AR="$ac_prog"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5378 fi
5379done
5380 done
5381IFS=$as_save_IFS
5382
5383fi
5384fi
5385ac_ct_AR=$ac_cv_prog_ac_ct_AR
5386if test -n "$ac_ct_AR"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5388$as_echo "$ac_ct_AR" >&6; }
5389else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391$as_echo "no" >&6; }
5392fi
5393
5394
5395 test -n "$ac_ct_AR" && break
5396done
5397
5398 if test "x$ac_ct_AR" = x; then
5399 AR="false"
5400 else
5401 case $cross_compiling:$ac_tool_warned in
5402yes:)
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405ac_tool_warned=yes ;;
5406esac
5407 AR=$ac_ct_AR
5408 fi
5409fi
5410
5411: ${AR=ar}
5412: ${AR_FLAGS=cru}
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5425$as_echo_n "checking for archiver @FILE support... " >&6; }
5426if ${lt_cv_ar_at_file+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 lt_cv_ar_at_file=no
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h. */
5432
5433int
5434main ()
5435{
5436
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_compile "$LINENO"; then :
5442 echo conftest.$ac_objext > conftest.lst
5443 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5445 (eval $lt_ar_try) 2>&5
5446 ac_status=$?
5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448 test $ac_status = 0; }
5449 if test "$ac_status" -eq 0; then
5450 # Ensure the archiver fails upon bogus file names.
5451 rm -f conftest.$ac_objext libconftest.a
5452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5453 (eval $lt_ar_try) 2>&5
5454 ac_status=$?
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }
5457 if test "$ac_status" -ne 0; then
5458 lt_cv_ar_at_file=@
5459 fi
5460 fi
5461 rm -f conftest.* libconftest.a
5462
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5468$as_echo "$lt_cv_ar_at_file" >&6; }
5469
5470if test "x$lt_cv_ar_at_file" = xno; then
5471 archiver_list_spec=
5472else
5473 archiver_list_spec=$lt_cv_ar_at_file
5474fi
5475
5476
5477
5478
5479
5480
5481
5482if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5484set dummy ${ac_tool_prefix}strip; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_prog_STRIP+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$STRIP"; then
5491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510STRIP=$ac_cv_prog_STRIP
5511if test -n "$STRIP"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5513$as_echo "$STRIP" >&6; }
5514else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520fi
5521if test -z "$ac_cv_prog_STRIP"; then
5522 ac_ct_STRIP=$STRIP
5523 # Extract the first word of "strip", so it can be a program name with args.
5524set dummy strip; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
5527if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529else
5530 if test -n "$ac_ct_STRIP"; then
5531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_prog_ac_ct_STRIP="strip"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545 done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5551if test -n "$ac_ct_STRIP"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5553$as_echo "$ac_ct_STRIP" >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559 if test "x$ac_ct_STRIP" = x; then
5560 STRIP=":"
5561 else
5562 case $cross_compiling:$ac_tool_warned in
5563yes:)
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566ac_tool_warned=yes ;;
5567esac
5568 STRIP=$ac_ct_STRIP
5569 fi
5570else
5571 STRIP="$ac_cv_prog_STRIP"
5572fi
5573
5574test -z "$STRIP" && STRIP=:
5575
5576
5577
5578
5579
5580
5581if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5583set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
5586if ${ac_cv_prog_RANLIB+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 if test -n "$RANLIB"; then
5590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603done
5604 done
5605IFS=$as_save_IFS
5606
5607fi
5608fi
5609RANLIB=$ac_cv_prog_RANLIB
5610if test -n "$RANLIB"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5612$as_echo "$RANLIB" >&6; }
5613else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615$as_echo "no" >&6; }
5616fi
5617
5618
5619fi
5620if test -z "$ac_cv_prog_RANLIB"; then
5621 ac_ct_RANLIB=$RANLIB
5622 # Extract the first word of "ranlib", so it can be a program name with args.
5623set dummy ranlib; ac_word=$2
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628else
5629 if test -n "$ac_ct_RANLIB"; then
5630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_ac_ct_RANLIB="ranlib"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643done
5644 done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5650if test -n "$ac_ct_RANLIB"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5652$as_echo "$ac_ct_RANLIB" >&6; }
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658 if test "x$ac_ct_RANLIB" = x; then
5659 RANLIB=":"
5660 else
5661 case $cross_compiling:$ac_tool_warned in
5662yes:)
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667 RANLIB=$ac_ct_RANLIB
5668 fi
5669else
5670 RANLIB="$ac_cv_prog_RANLIB"
5671fi
5672
5673test -z "$RANLIB" && RANLIB=:
5674
5675
5676
5677
5678
5679
5680# Determine commands to create old-style static archives.
5681old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5682old_postinstall_cmds='chmod 644 $oldlib'
5683old_postuninstall_cmds=
5684
5685if test -n "$RANLIB"; then
5686 case $host_os in
5687 openbsd*)
5688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5689 ;;
5690 *)
5691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5692 ;;
5693 esac
5694 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5695fi
5696
5697case $host_os in
5698 darwin*)
5699 lock_old_archive_extraction=yes ;;
5700 *)
5701 lock_old_archive_extraction=no ;;
5702esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742# If no C compiler was specified, use CC.
5743LTCC=${LTCC-"$CC"}
5744
5745# If no C compiler flags were specified, use CFLAGS.
5746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5747
5748# Allow CC to be a program name with arguments.
5749compiler=$CC
5750
5751
5752# Check for command to grab the raw symbol name followed by C symbol from nm.
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5754$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5755if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757else
5758
5759# These are sane defaults that work on at least a few old systems.
5760# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5761
5762# Character class describing NM global symbol codes.
5763symcode='[BCDEGRST]'
5764
5765# Regexp to match symbols that can be accessed directly from C.
5766sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5767
5768# Define system-specific variables.
5769case $host_os in
5770aix*)
5771 symcode='[BCDT]'
5772 ;;
5773cygwin* | mingw* | pw32* | cegcc*)
5774 symcode='[ABCDGISTW]'
5775 ;;
5776hpux*)
5777 if test "$host_cpu" = ia64; then
5778 symcode='[ABCDEGRST]'
5779 fi
5780 ;;
5781irix* | nonstopux*)
5782 symcode='[BCDEGRST]'
5783 ;;
5784osf*)
5785 symcode='[BCDEGQRST]'
5786 ;;
5787solaris*)
5788 symcode='[BDRT]'
5789 ;;
5790sco3.2v5*)
5791 symcode='[DT]'
5792 ;;
5793sysv4.2uw2*)
5794 symcode='[DT]'
5795 ;;
5796sysv5* | sco5v6* | unixware* | OpenUNIX*)
5797 symcode='[ABDT]'
5798 ;;
5799sysv4)
5800 symcode='[DFNSTU]'
5801 ;;
5802esac
5803
5804# If we're using GNU nm, then use its standard symbol codes.
5805case `$NM -V 2>&1` in
5806*GNU* | *'with BFD'*)
5807 symcode='[ABCDGIRSTW]' ;;
5808esac
5809
5810# Transform an extracted symbol line into a proper C declaration.
5811# Some systems (esp. on ia64) link data and code symbols differently,
5812# so use this general approach.
5813lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5814
5815# Transform an extracted symbol line into symbol name and symbol address
5816lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5817lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5818
5819# Handle CRLF in mingw tool chain
5820opt_cr=
5821case $build_os in
5822mingw*)
5823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5824 ;;
5825esac
5826
5827# Try without a prefix underscore, then with it.
5828for ac_symprfx in "" "_"; do
5829
5830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5831 symxfrm="\\1 $ac_symprfx\\2 \\2"
5832
5833 # Write the raw and C identifiers.
5834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5835 # Fake it for dumpbin and say T for any non-static function
5836 # and D for any global variable.
5837 # Also find C++ and __fastcall symbols from MSVC++,
5838 # which start with @ or ?.
5839 lt_cv_sys_global_symbol_pipe="$AWK '"\
5840" {last_section=section; section=\$ 3};"\
5841" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5842" \$ 0!~/External *\|/{next};"\
5843" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5844" {if(hide[section]) next};"\
5845" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5846" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5847" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5848" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5849" ' prfx=^$ac_symprfx"
5850 else
5851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5852 fi
5853 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5854
5855 # Check to see that the pipe works correctly.
5856 pipe_works=no
5857
5858 rm -f conftest*
5859 cat > conftest.$ac_ext <<_LT_EOF
5860#ifdef __cplusplus
5861extern "C" {
5862#endif
5863char nm_test_var;
5864void nm_test_func(void);
5865void nm_test_func(void){}
5866#ifdef __cplusplus
5867}
5868#endif
5869int main(){nm_test_var='a';nm_test_func();return(0);}
5870_LT_EOF
5871
5872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5873 (eval $ac_compile) 2>&5
5874 ac_status=$?
5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876 test $ac_status = 0; }; then
5877 # Now try to grab the symbols.
5878 nlist=conftest.nm
5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5881 ac_status=$?
5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883 test $ac_status = 0; } && test -s "$nlist"; then
5884 # Try sorting and uniquifying the output.
5885 if sort "$nlist" | uniq > "$nlist"T; then
5886 mv -f "$nlist"T "$nlist"
5887 else
5888 rm -f "$nlist"T
5889 fi
5890
5891 # Make sure that we snagged all the symbols we need.
5892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5894 cat <<_LT_EOF > conftest.$ac_ext
5895/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5896#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5897/* DATA imports from DLLs on WIN32 con't be const, because runtime
5898 relocations are performed -- see ld's documentation on pseudo-relocs. */
5899# define LT_DLSYM_CONST
5900#elif defined(__osf__)
5901/* This system does not cope well with relocations in const data. */
5902# define LT_DLSYM_CONST
5903#else
5904# define LT_DLSYM_CONST const
5905#endif
5906
5907#ifdef __cplusplus
5908extern "C" {
5909#endif
5910
5911_LT_EOF
5912 # Now generate the symbol file.
5913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5914
5915 cat <<_LT_EOF >> conftest.$ac_ext
5916
5917/* The mapping between symbol names and symbols. */
5918LT_DLSYM_CONST struct {
5919 const char *name;
5920 void *address;
5921}
5922lt__PROGRAM__LTX_preloaded_symbols[] =
5923{
5924 { "@PROGRAM@", (void *) 0 },
5925_LT_EOF
5926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5927 cat <<\_LT_EOF >> conftest.$ac_ext
5928 {0, (void *) 0}
5929};
5930
5931/* This works around a problem in FreeBSD linker */
5932#ifdef FREEBSD_WORKAROUND
5933static const void *lt_preloaded_setup() {
5934 return lt__PROGRAM__LTX_preloaded_symbols;
5935}
5936#endif
5937
5938#ifdef __cplusplus
5939}
5940#endif
5941_LT_EOF
5942 # Now try linking the two files.
5943 mv conftest.$ac_objext conftstm.$ac_objext
5944 lt_globsym_save_LIBS=$LIBS
5945 lt_globsym_save_CFLAGS=$CFLAGS
5946 LIBS="conftstm.$ac_objext"
5947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5949 (eval $ac_link) 2>&5
5950 ac_status=$?
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5953 pipe_works=yes
5954 fi
5955 LIBS=$lt_globsym_save_LIBS
5956 CFLAGS=$lt_globsym_save_CFLAGS
5957 else
5958 echo "cannot find nm_test_func in $nlist" >&5
5959 fi
5960 else
5961 echo "cannot find nm_test_var in $nlist" >&5
5962 fi
5963 else
5964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5965 fi
5966 else
5967 echo "$progname: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 fi
5970 rm -rf conftest* conftst*
5971
5972 # Do not use the global_symbol_pipe unless it works.
5973 if test "$pipe_works" = yes; then
5974 break
5975 else
5976 lt_cv_sys_global_symbol_pipe=
5977 fi
5978done
5979
5980fi
5981
5982if test -z "$lt_cv_sys_global_symbol_pipe"; then
5983 lt_cv_sys_global_symbol_to_cdecl=
5984fi
5985if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5987$as_echo "failed" >&6; }
5988else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5990$as_echo "ok" >&6; }
5991fi
5992
5993# Response file support.
5994if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5995 nm_file_list_spec='@'
5996elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5997 nm_file_list_spec='@'
5998fi
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6027$as_echo_n "checking for sysroot... " >&6; }
6028
6029# Check whether --with-sysroot was given.
6030if test "${with_sysroot+set}" = set; then :
6031 withval=$with_sysroot;
6032else
6033 with_sysroot=no
6034fi
6035
6036
6037lt_sysroot=
6038case ${with_sysroot} in #(
6039 yes)
6040 if test "$GCC" = yes; then
6041 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6042 fi
6043 ;; #(
6044 /*)
6045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6046 ;; #(
6047 no|'')
6048 ;; #(
6049 *)
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6051$as_echo "${with_sysroot}" >&6; }
6052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6053 ;;
6054esac
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6057$as_echo "${lt_sysroot:-no}" >&6; }
6058
6059
6060
6061
6062
6063# Check whether --enable-libtool-lock was given.
6064if test "${enable_libtool_lock+set}" = set; then :
6065 enableval=$enable_libtool_lock;
6066fi
6067
6068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6069
6070# Some flags need to be propagated to the compiler or linker for good
6071# libtool support.
6072case $host in
6073ia64-*-hpux*)
6074 # Find out which ABI we are using.
6075 echo 'int i;' > conftest.$ac_ext
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 case `/usr/bin/file conftest.$ac_objext` in
6082 *ELF-32*)
6083 HPUX_IA64_MODE="32"
6084 ;;
6085 *ELF-64*)
6086 HPUX_IA64_MODE="64"
6087 ;;
6088 esac
6089 fi
6090 rm -rf conftest*
6091 ;;
6092*-*-irix6*)
6093 # Find out which ABI we are using.
6094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6096 (eval $ac_compile) 2>&5
6097 ac_status=$?
6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099 test $ac_status = 0; }; then
6100 if test "$lt_cv_prog_gnu_ld" = yes; then
6101 case `/usr/bin/file conftest.$ac_objext` in
6102 *32-bit*)
6103 LD="${LD-ld} -melf32bsmip"
6104 ;;
6105 *N32*)
6106 LD="${LD-ld} -melf32bmipn32"
6107 ;;
6108 *64-bit*)
6109 LD="${LD-ld} -melf64bmip"
6110 ;;
6111 esac
6112 else
6113 case `/usr/bin/file conftest.$ac_objext` in
6114 *32-bit*)
6115 LD="${LD-ld} -32"
6116 ;;
6117 *N32*)
6118 LD="${LD-ld} -n32"
6119 ;;
6120 *64-bit*)
6121 LD="${LD-ld} -64"
6122 ;;
6123 esac
6124 fi
6125 fi
6126 rm -rf conftest*
6127 ;;
6128
6129x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6130s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6131 # Find out which ABI we are using.
6132 echo 'int i;' > conftest.$ac_ext
6133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6134 (eval $ac_compile) 2>&5
6135 ac_status=$?
6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 test $ac_status = 0; }; then
6138 case `/usr/bin/file conftest.o` in
6139 *32-bit*)
6140 case $host in
6141 x86_64-*kfreebsd*-gnu)
6142 LD="${LD-ld} -m elf_i386_fbsd"
6143 ;;
6144 x86_64-*linux*)
6145 LD="${LD-ld} -m elf_i386"
6146 ;;
6147 ppc64-*linux*|powerpc64-*linux*)
6148 LD="${LD-ld} -m elf32ppclinux"
6149 ;;
6150 s390x-*linux*)
6151 LD="${LD-ld} -m elf_s390"
6152 ;;
6153 sparc64-*linux*)
6154 LD="${LD-ld} -m elf32_sparc"
6155 ;;
6156 esac
6157 ;;
6158 *64-bit*)
6159 case $host in
6160 x86_64-*kfreebsd*-gnu)
6161 LD="${LD-ld} -m elf_x86_64_fbsd"
6162 ;;
6163 x86_64-*linux*)
6164 LD="${LD-ld} -m elf_x86_64"
6165 ;;
6166 ppc*-*linux*|powerpc*-*linux*)
6167 LD="${LD-ld} -m elf64ppc"
6168 ;;
6169 s390*-*linux*|s390*-*tpf*)
6170 LD="${LD-ld} -m elf64_s390"
6171 ;;
6172 sparc*-*linux*)
6173 LD="${LD-ld} -m elf64_sparc"
6174 ;;
6175 esac
6176 ;;
6177 esac
6178 fi
6179 rm -rf conftest*
6180 ;;
6181
6182*-*-sco3.2v5*)
6183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6184 SAVE_CFLAGS="$CFLAGS"
6185 CFLAGS="$CFLAGS -belf"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6187$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6188if ${lt_cv_cc_needs_belf+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 ac_ext=c
6192ac_cpp='$CPP $CPPFLAGS'
6193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_link "$LINENO"; then :
6209 lt_cv_cc_needs_belf=yes
6210else
6211 lt_cv_cc_needs_belf=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 ac_ext=c
6216ac_cpp='$CPP $CPPFLAGS'
6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6223$as_echo "$lt_cv_cc_needs_belf" >&6; }
6224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6226 CFLAGS="$SAVE_CFLAGS"
6227 fi
6228 ;;
6229sparc*-*solaris*)
6230 # Find out which ABI we are using.
6231 echo 'int i;' > conftest.$ac_ext
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }; then
6237 case `/usr/bin/file conftest.o` in
6238 *64-bit*)
6239 case $lt_cv_prog_gnu_ld in
6240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6241 *)
6242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243 LD="${LD-ld} -64"
6244 fi
6245 ;;
6246 esac
6247 ;;
6248 esac
6249 fi
6250 rm -rf conftest*
6251 ;;
6252esac
6253
6254need_locks="$enable_libtool_lock"
6255
6256if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6258set dummy ${ac_tool_prefix}mt; ac_word=$2
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
6261if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263else
6264 if test -n "$MANIFEST_TOOL"; then
6265 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279 done
6280IFS=$as_save_IFS
6281
6282fi
6283fi
6284MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6285if test -n "$MANIFEST_TOOL"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6287$as_echo "$MANIFEST_TOOL" >&6; }
6288else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290$as_echo "no" >&6; }
6291fi
6292
6293
6294fi
6295if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6296 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6297 # Extract the first word of "mt", so it can be a program name with args.
6298set dummy mt; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 if test -n "$ac_ct_MANIFEST_TOOL"; then
6305 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318done
6319 done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6325if test -n "$ac_ct_MANIFEST_TOOL"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6327$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6328else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6334 MANIFEST_TOOL=":"
6335 else
6336 case $cross_compiling:$ac_tool_warned in
6337yes:)
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340ac_tool_warned=yes ;;
6341esac
6342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6343 fi
6344else
6345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6346fi
6347
6348test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6350$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6351if ${lt_cv_path_mainfest_tool+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353else
6354 lt_cv_path_mainfest_tool=no
6355 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6356 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6357 cat conftest.err >&5
6358 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6359 lt_cv_path_mainfest_tool=yes
6360 fi
6361 rm -f conftest*
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6364$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6365if test "x$lt_cv_path_mainfest_tool" != xyes; then
6366 MANIFEST_TOOL=:
6367fi
6368
6369
6370
6371
6372
6373
6374 case $host_os in
6375 rhapsody* | darwin*)
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_DSYMUTIL+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$DSYMUTIL"; then
6385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404DSYMUTIL=$ac_cv_prog_DSYMUTIL
6405if test -n "$DSYMUTIL"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6407$as_echo "$DSYMUTIL" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414fi
6415if test -z "$ac_cv_prog_DSYMUTIL"; then
6416 ac_ct_DSYMUTIL=$DSYMUTIL
6417 # Extract the first word of "dsymutil", so it can be a program name with args.
6418set dummy dsymutil; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423else
6424 if test -n "$ac_ct_DSYMUTIL"; then
6425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439 done
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6445if test -n "$ac_ct_DSYMUTIL"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6447$as_echo "$ac_ct_DSYMUTIL" >&6; }
6448else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453 if test "x$ac_ct_DSYMUTIL" = x; then
6454 DSYMUTIL=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457yes:)
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462 DSYMUTIL=$ac_ct_DSYMUTIL
6463 fi
6464else
6465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6466fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6470set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if ${ac_cv_prog_NMEDIT+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$NMEDIT"; then
6477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491 done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496NMEDIT=$ac_cv_prog_NMEDIT
6497if test -n "$NMEDIT"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6499$as_echo "$NMEDIT" >&6; }
6500else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
6504
6505
6506fi
6507if test -z "$ac_cv_prog_NMEDIT"; then
6508 ac_ct_NMEDIT=$NMEDIT
6509 # Extract the first word of "nmedit", so it can be a program name with args.
6510set dummy nmedit; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$ac_ct_NMEDIT"; then
6517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531 done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6537if test -n "$ac_ct_NMEDIT"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6539$as_echo "$ac_ct_NMEDIT" >&6; }
6540else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545 if test "x$ac_ct_NMEDIT" = x; then
6546 NMEDIT=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549yes:)
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554 NMEDIT=$ac_ct_NMEDIT
6555 fi
6556else
6557 NMEDIT="$ac_cv_prog_NMEDIT"
6558fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}lipo; ac_word=$2
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if ${ac_cv_prog_LIPO+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$LIPO"; then
6569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582done
6583 done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588LIPO=$ac_cv_prog_LIPO
6589if test -n "$LIPO"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6591$as_echo "$LIPO" >&6; }
6592else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597
6598fi
6599if test -z "$ac_cv_prog_LIPO"; then
6600 ac_ct_LIPO=$LIPO
6601 # Extract the first word of "lipo", so it can be a program name with args.
6602set dummy lipo; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$ac_ct_LIPO"; then
6609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_LIPO="lipo"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623 done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6629if test -n "$ac_ct_LIPO"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6631$as_echo "$ac_ct_LIPO" >&6; }
6632else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637 if test "x$ac_ct_LIPO" = x; then
6638 LIPO=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 LIPO=$ac_ct_LIPO
6647 fi
6648else
6649 LIPO="$ac_cv_prog_LIPO"
6650fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}otool; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if ${ac_cv_prog_OTOOL+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$OTOOL"; then
6661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680OTOOL=$ac_cv_prog_OTOOL
6681if test -n "$OTOOL"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6683$as_echo "$OTOOL" >&6; }
6684else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_OTOOL"; then
6692 ac_ct_OTOOL=$OTOOL
6693 # Extract the first word of "otool", so it can be a program name with args.
6694set dummy otool; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$ac_ct_OTOOL"; then
6701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_OTOOL="otool"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715 done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6721if test -n "$ac_ct_OTOOL"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6723$as_echo "$ac_ct_OTOOL" >&6; }
6724else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729 if test "x$ac_ct_OTOOL" = x; then
6730 OTOOL=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738 OTOOL=$ac_ct_OTOOL
6739 fi
6740else
6741 OTOOL="$ac_cv_prog_OTOOL"
6742fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}otool64; ac_word=$2
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if ${ac_cv_prog_OTOOL64+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751else
6752 if test -n "$OTOOL64"; then
6753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766done
6767 done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772OTOOL64=$ac_cv_prog_OTOOL64
6773if test -n "$OTOOL64"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6775$as_echo "$OTOOL64" >&6; }
6776else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781
6782fi
6783if test -z "$ac_cv_prog_OTOOL64"; then
6784 ac_ct_OTOOL64=$OTOOL64
6785 # Extract the first word of "otool64", so it can be a program name with args.
6786set dummy otool64; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791else
6792 if test -n "$ac_ct_OTOOL64"; then
6793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_OTOOL64="otool64"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807 done
6808IFS=$as_save_IFS
6809
6810fi
6811fi
6812ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6813if test -n "$ac_ct_OTOOL64"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6815$as_echo "$ac_ct_OTOOL64" >&6; }
6816else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
6819fi
6820
6821 if test "x$ac_ct_OTOOL64" = x; then
6822 OTOOL64=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825yes:)
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828ac_tool_warned=yes ;;
6829esac
6830 OTOOL64=$ac_ct_OTOOL64
6831 fi
6832else
6833 OTOOL64="$ac_cv_prog_OTOOL64"
6834fi
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6863$as_echo_n "checking for -single_module linker flag... " >&6; }
6864if ${lt_cv_apple_cc_single_mod+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866else
6867 lt_cv_apple_cc_single_mod=no
6868 if test -z "${LT_MULTI_MODULE}"; then
6869 # By default we will add the -single_module flag. You can override
6870 # by either setting the environment variable LT_MULTI_MODULE
6871 # non-empty at configure time, or by adding -multi_module to the
6872 # link flags.
6873 rm -rf libconftest.dylib*
6874 echo "int foo(void){return 1;}" > conftest.c
6875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6876-dynamiclib -Wl,-single_module conftest.c" >&5
6877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6879 _lt_result=$?
6880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6881 lt_cv_apple_cc_single_mod=yes
6882 else
6883 cat conftest.err >&5
6884 fi
6885 rm -rf libconftest.dylib*
6886 rm -f conftest.*
6887 fi
6888fi
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6890$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6892$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6893if ${lt_cv_ld_exported_symbols_list+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895else
6896 lt_cv_ld_exported_symbols_list=no
6897 save_LDFLAGS=$LDFLAGS
6898 echo "_main" > conftest.sym
6899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h. */
6902
6903int
6904main ()
6905{
6906
6907 ;
6908 return 0;
6909}
6910_ACEOF
6911if ac_fn_c_try_link "$LINENO"; then :
6912 lt_cv_ld_exported_symbols_list=yes
6913else
6914 lt_cv_ld_exported_symbols_list=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 LDFLAGS="$save_LDFLAGS"
6919
6920fi
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6922$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6924$as_echo_n "checking for -force_load linker flag... " >&6; }
6925if ${lt_cv_ld_force_load+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927else
6928 lt_cv_ld_force_load=no
6929 cat > conftest.c << _LT_EOF
6930int forced_loaded() { return 2;}
6931_LT_EOF
6932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6934 echo "$AR cru libconftest.a conftest.o" >&5
6935 $AR cru libconftest.a conftest.o 2>&5
6936 echo "$RANLIB libconftest.a" >&5
6937 $RANLIB libconftest.a 2>&5
6938 cat > conftest.c << _LT_EOF
6939int main() { return 0;}
6940_LT_EOF
6941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6943 _lt_result=$?
6944 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6945 lt_cv_ld_force_load=yes
6946 else
6947 cat conftest.err >&5
6948 fi
6949 rm -f conftest.err libconftest.a conftest conftest.c
6950 rm -rf conftest.dSYM
6951
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6954$as_echo "$lt_cv_ld_force_load" >&6; }
6955 case $host_os in
6956 rhapsody* | darwin1.[012])
6957 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6958 darwin1.*)
6959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6960 darwin*) # darwin 5.x on
6961 # if running on 10.5 or later, the deployment target defaults
6962 # to the OS version, if on x86, and 10.4, the deployment
6963 # target defaults to 10.4. Don't you love it?
6964 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6965 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6966 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6967 10.[012]*)
6968 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6969 10.*)
6970 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6971 esac
6972 ;;
6973 esac
6974 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6975 _lt_dar_single_mod='$single_module'
6976 fi
6977 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6978 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6979 else
6980 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981 fi
6982 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6983 _lt_dsymutil='~$DSYMUTIL $lib || :'
6984 else
6985 _lt_dsymutil=
6986 fi
6987 ;;
6988 esac
6989
6990ac_ext=c
6991ac_cpp='$CPP $CPPFLAGS'
6992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994ac_compiler_gnu=$ac_cv_c_compiler_gnu
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6996$as_echo_n "checking how to run the C preprocessor... " >&6; }
6997# On Suns, sometimes $CPP names a directory.
6998if test -n "$CPP" && test -d "$CPP"; then
6999 CPP=
7000fi
7001if test -z "$CPP"; then
7002 if ${ac_cv_prog_CPP+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004else
7005 # Double quotes because CPP needs to be expanded
7006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7007 do
7008 ac_preproc_ok=false
7009for ac_c_preproc_warn_flag in '' yes
7010do
7011 # Use a header file that comes with gcc, so configuring glibc
7012 # with a fresh cross-compiler works.
7013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 # <limits.h> exists even on freestanding compilers.
7015 # On the NeXT, cc -E runs the code through the compiler's parser,
7016 # not just through cpp. "Syntax error" is here to catch this case.
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h. */
7019#ifdef __STDC__
7020# include <limits.h>
7021#else
7022# include <assert.h>
7023#endif
7024 Syntax error
7025_ACEOF
7026if ac_fn_c_try_cpp "$LINENO"; then :
7027
7028else
7029 # Broken: fails on valid input.
7030continue
7031fi
7032rm -f conftest.err conftest.i conftest.$ac_ext
7033
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h. */
7038#include <ac_nonexistent.h>
7039_ACEOF
7040if ac_fn_c_try_cpp "$LINENO"; then :
7041 # Broken: success on invalid input.
7042continue
7043else
7044 # Passes both tests.
7045ac_preproc_ok=:
7046break
7047fi
7048rm -f conftest.err conftest.i conftest.$ac_ext
7049
7050done
7051# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7052rm -f conftest.i conftest.err conftest.$ac_ext
7053if $ac_preproc_ok; then :
7054 break
7055fi
7056
7057 done
7058 ac_cv_prog_CPP=$CPP
7059
7060fi
7061 CPP=$ac_cv_prog_CPP
7062else
7063 ac_cv_prog_CPP=$CPP
7064fi
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7066$as_echo "$CPP" >&6; }
7067ac_preproc_ok=false
7068for ac_c_preproc_warn_flag in '' yes
7069do
7070 # Use a header file that comes with gcc, so configuring glibc
7071 # with a fresh cross-compiler works.
7072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 # <limits.h> exists even on freestanding compilers.
7074 # On the NeXT, cc -E runs the code through the compiler's parser,
7075 # not just through cpp. "Syntax error" is here to catch this case.
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077/* end confdefs.h. */
7078#ifdef __STDC__
7079# include <limits.h>
7080#else
7081# include <assert.h>
7082#endif
7083 Syntax error
7084_ACEOF
7085if ac_fn_c_try_cpp "$LINENO"; then :
7086
7087else
7088 # Broken: fails on valid input.
7089continue
7090fi
7091rm -f conftest.err conftest.i conftest.$ac_ext
7092
7093 # OK, works on sane cases. Now check whether nonexistent headers
7094 # can be detected and how.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h. */
7097#include <ac_nonexistent.h>
7098_ACEOF
7099if ac_fn_c_try_cpp "$LINENO"; then :
7100 # Broken: success on invalid input.
7101continue
7102else
7103 # Passes both tests.
7104ac_preproc_ok=:
7105break
7106fi
7107rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109done
7110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7111rm -f conftest.i conftest.err conftest.$ac_ext
7112if $ac_preproc_ok; then :
7113
7114else
7115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7117as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7118See \`config.log' for more details" "$LINENO" 5; }
7119fi
7120
7121ac_ext=c
7122ac_cpp='$CPP $CPPFLAGS'
7123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7129$as_echo_n "checking for ANSI C header files... " >&6; }
7130if ${ac_cv_header_stdc+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132else
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134/* end confdefs.h. */
7135#include <stdlib.h>
7136#include <stdarg.h>
7137#include <string.h>
7138#include <float.h>
7139
7140int
7141main ()
7142{
7143
7144 ;
7145 return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"; then :
7149 ac_cv_header_stdc=yes
7150else
7151 ac_cv_header_stdc=no
7152fi
7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154
7155if test $ac_cv_header_stdc = yes; then
7156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h. */
7159#include <string.h>
7160
7161_ACEOF
7162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "memchr" >/dev/null 2>&1; then :
7164
7165else
7166 ac_cv_header_stdc=no
7167fi
7168rm -f conftest*
7169
7170fi
7171
7172if test $ac_cv_header_stdc = yes; then
7173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h. */
7176#include <stdlib.h>
7177
7178_ACEOF
7179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "free" >/dev/null 2>&1; then :
7181
7182else
7183 ac_cv_header_stdc=no
7184fi
7185rm -f conftest*
7186
7187fi
7188
7189if test $ac_cv_header_stdc = yes; then
7190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7191 if test "$cross_compiling" = yes; then :
7192 :
7193else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196#include <ctype.h>
7197#include <stdlib.h>
7198#if ((' ' & 0x0FF) == 0x020)
7199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7201#else
7202# define ISLOWER(c) \
7203 (('a' <= (c) && (c) <= 'i') \
7204 || ('j' <= (c) && (c) <= 'r') \
7205 || ('s' <= (c) && (c) <= 'z'))
7206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7207#endif
7208
7209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7210int
7211main ()
7212{
7213 int i;
7214 for (i = 0; i < 256; i++)
7215 if (XOR (islower (i), ISLOWER (i))
7216 || toupper (i) != TOUPPER (i))
7217 return 2;
7218 return 0;
7219}
7220_ACEOF
7221if ac_fn_c_try_run "$LINENO"; then :
7222
7223else
7224 ac_cv_header_stdc=no
7225fi
7226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7227 conftest.$ac_objext conftest.beam conftest.$ac_ext
7228fi
7229
7230fi
7231fi
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7233$as_echo "$ac_cv_header_stdc" >&6; }
7234if test $ac_cv_header_stdc = yes; then
7235
7236$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7237
7238fi
7239
7240# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7242 inttypes.h stdint.h unistd.h
7243do :
7244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7246"
7247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7248 cat >>confdefs.h <<_ACEOF
7249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7250_ACEOF
7251
7252fi
7253
7254done
7255
7256
7257for ac_header in dlfcn.h
7258do :
7259 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7260"
7261if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7262 cat >>confdefs.h <<_ACEOF
7263#define HAVE_DLFCN_H 1
7264_ACEOF
7265
7266fi
7267
7268done
7269
7270
7271
7272
7273
7274# Set options
7275
7276
7277
7278 enable_dlopen=no
7279
7280
7281 enable_win32_dll=no
7282
7283
7284 # Check whether --enable-shared was given.
7285if test "${enable_shared+set}" = set; then :
7286 enableval=$enable_shared; p=${PACKAGE-default}
7287 case $enableval in
7288 yes) enable_shared=yes ;;
7289 no) enable_shared=no ;;
7290 *)
7291 enable_shared=no
7292 # Look at the argument we got. We use all the common list separators.
7293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7294 for pkg in $enableval; do
7295 IFS="$lt_save_ifs"
7296 if test "X$pkg" = "X$p"; then
7297 enable_shared=yes
7298 fi
7299 done
7300 IFS="$lt_save_ifs"
7301 ;;
7302 esac
7303else
7304 enable_shared=yes
7305fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --enable-static was given.
7316if test "${enable_static+set}" = set; then :
7317 enableval=$enable_static; p=${PACKAGE-default}
7318 case $enableval in
7319 yes) enable_static=yes ;;
7320 no) enable_static=no ;;
7321 *)
7322 enable_static=no
7323 # Look at the argument we got. We use all the common list separators.
7324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7325 for pkg in $enableval; do
7326 IFS="$lt_save_ifs"
7327 if test "X$pkg" = "X$p"; then
7328 enable_static=yes
7329 fi
7330 done
7331 IFS="$lt_save_ifs"
7332 ;;
7333 esac
7334else
7335 enable_static=yes
7336fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347# Check whether --with-pic was given.
7348if test "${with_pic+set}" = set; then :
7349 withval=$with_pic; pic_mode="$withval"
7350else
7351 pic_mode=default
7352fi
7353
7354
7355test -z "$pic_mode" && pic_mode=default
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --enable-fast-install was given.
7364if test "${enable_fast_install+set}" = set; then :
7365 enableval=$enable_fast_install; p=${PACKAGE-default}
7366 case $enableval in
7367 yes) enable_fast_install=yes ;;
7368 no) enable_fast_install=no ;;
7369 *)
7370 enable_fast_install=no
7371 # Look at the argument we got. We use all the common list separators.
7372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7373 for pkg in $enableval; do
7374 IFS="$lt_save_ifs"
7375 if test "X$pkg" = "X$p"; then
7376 enable_fast_install=yes
7377 fi
7378 done
7379 IFS="$lt_save_ifs"
7380 ;;
7381 esac
7382else
7383 enable_fast_install=yes
7384fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396# This can be used to rebuild libtool when needed
7397LIBTOOL_DEPS="$ltmain"
7398
7399# Always use our own libtool.
7400LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427test -z "$LN_S" && LN_S="ln -s"
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442if test -n "${ZSH_VERSION+set}" ; then
7443 setopt NO_GLOB_SUBST
7444fi
7445
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7447$as_echo_n "checking for objdir... " >&6; }
7448if ${lt_cv_objdir+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450else
7451 rm -f .libs 2>/dev/null
7452mkdir .libs 2>/dev/null
7453if test -d .libs; then
7454 lt_cv_objdir=.libs
7455else
7456 # MS-DOS does not allow filenames that begin with a dot.
7457 lt_cv_objdir=_libs
7458fi
7459rmdir .libs 2>/dev/null
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7462$as_echo "$lt_cv_objdir" >&6; }
7463objdir=$lt_cv_objdir
7464
7465
7466
7467
7468
7469cat >>confdefs.h <<_ACEOF
7470#define LT_OBJDIR "$lt_cv_objdir/"
7471_ACEOF
7472
7473
7474
7475
7476case $host_os in
7477aix3*)
7478 # AIX sometimes has problems with the GCC collect2 program. For some
7479 # reason, if we set the COLLECT_NAMES environment variable, the problems
7480 # vanish in a puff of smoke.
7481 if test "X${COLLECT_NAMES+set}" != Xset; then
7482 COLLECT_NAMES=
7483 export COLLECT_NAMES
7484 fi
7485 ;;
7486esac
7487
7488# Global variables:
7489ofile=libtool
7490can_build_shared=yes
7491
7492# All known linkers require a `.a' archive for static linking (except MSVC,
7493# which needs '.lib').
7494libext=a
7495
7496with_gnu_ld="$lt_cv_prog_gnu_ld"
7497
7498old_CC="$CC"
7499old_CFLAGS="$CFLAGS"
7500
7501# Set sane defaults for various variables
7502test -z "$CC" && CC=cc
7503test -z "$LTCC" && LTCC=$CC
7504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7505test -z "$LD" && LD=ld
7506test -z "$ac_objext" && ac_objext=o
7507
7508for cc_temp in $compiler""; do
7509 case $cc_temp in
7510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7512 \-*) ;;
7513 *) break;;
7514 esac
7515done
7516cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7517
7518
7519# Only perform the check for file, if the check method requires it
7520test -z "$MAGIC_CMD" && MAGIC_CMD=file
7521case $deplibs_check_method in
7522file_magic*)
7523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7525$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7526if ${lt_cv_path_MAGIC_CMD+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528else
7529 case $MAGIC_CMD in
7530[\\/*] | ?:[\\/]*)
7531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7532 ;;
7533*)
7534 lt_save_MAGIC_CMD="$MAGIC_CMD"
7535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7537 for ac_dir in $ac_dummy; do
7538 IFS="$lt_save_ifs"
7539 test -z "$ac_dir" && ac_dir=.
7540 if test -f $ac_dir/${ac_tool_prefix}file; then
7541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7542 if test -n "$file_magic_test_file"; then
7543 case $deplibs_check_method in
7544 "file_magic "*)
7545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7548 $EGREP "$file_magic_regex" > /dev/null; then
7549 :
7550 else
7551 cat <<_LT_EOF 1>&2
7552
7553*** Warning: the command libtool uses to detect shared libraries,
7554*** $file_magic_cmd, produces output that libtool cannot recognize.
7555*** The result is that libtool may fail to recognize shared libraries
7556*** as such. This will affect the creation of libtool libraries that
7557*** depend on shared libraries, but programs linked with such libtool
7558*** libraries will work regardless of this problem. Nevertheless, you
7559*** may want to report the problem to your system manager and/or to
7560*** bug-libtool@gnu.org
7561
7562_LT_EOF
7563 fi ;;
7564 esac
7565 fi
7566 break
7567 fi
7568 done
7569 IFS="$lt_save_ifs"
7570 MAGIC_CMD="$lt_save_MAGIC_CMD"
7571 ;;
7572esac
7573fi
7574
7575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576if test -n "$MAGIC_CMD"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7578$as_echo "$MAGIC_CMD" >&6; }
7579else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
7582fi
7583
7584
7585
7586
7587
7588if test -z "$lt_cv_path_MAGIC_CMD"; then
7589 if test -n "$ac_tool_prefix"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7591$as_echo_n "checking for file... " >&6; }
7592if ${lt_cv_path_MAGIC_CMD+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 case $MAGIC_CMD in
7596[\\/*] | ?:[\\/]*)
7597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7598 ;;
7599*)
7600 lt_save_MAGIC_CMD="$MAGIC_CMD"
7601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7603 for ac_dir in $ac_dummy; do
7604 IFS="$lt_save_ifs"
7605 test -z "$ac_dir" && ac_dir=.
7606 if test -f $ac_dir/file; then
7607 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7608 if test -n "$file_magic_test_file"; then
7609 case $deplibs_check_method in
7610 "file_magic "*)
7611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7614 $EGREP "$file_magic_regex" > /dev/null; then
7615 :
7616 else
7617 cat <<_LT_EOF 1>&2
7618
7619*** Warning: the command libtool uses to detect shared libraries,
7620*** $file_magic_cmd, produces output that libtool cannot recognize.
7621*** The result is that libtool may fail to recognize shared libraries
7622*** as such. This will affect the creation of libtool libraries that
7623*** depend on shared libraries, but programs linked with such libtool
7624*** libraries will work regardless of this problem. Nevertheless, you
7625*** may want to report the problem to your system manager and/or to
7626*** bug-libtool@gnu.org
7627
7628_LT_EOF
7629 fi ;;
7630 esac
7631 fi
7632 break
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 MAGIC_CMD="$lt_save_MAGIC_CMD"
7637 ;;
7638esac
7639fi
7640
7641MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642if test -n "$MAGIC_CMD"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7644$as_echo "$MAGIC_CMD" >&6; }
7645else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648fi
7649
7650
7651 else
7652 MAGIC_CMD=:
7653 fi
7654fi
7655
7656 fi
7657 ;;
7658esac
7659
7660# Use C for the default configuration in the libtool script
7661
7662lt_save_CC="$CC"
7663ac_ext=c
7664ac_cpp='$CPP $CPPFLAGS'
7665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668
7669
7670# Source file extension for C test sources.
7671ac_ext=c
7672
7673# Object file extension for compiled C test sources.
7674objext=o
7675objext=$objext
7676
7677# Code to be used in simple compile tests
7678lt_simple_compile_test_code="int some_variable = 0;"
7679
7680# Code to be used in simple link tests
7681lt_simple_link_test_code='int main(){return(0);}'
7682
7683
7684
7685
7686
7687
7688
7689# If no C compiler was specified, use CC.
7690LTCC=${LTCC-"$CC"}
7691
7692# If no C compiler flags were specified, use CFLAGS.
7693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7694
7695# Allow CC to be a program name with arguments.
7696compiler=$CC
7697
7698# Save the default compiler, since it gets overwritten when the other
7699# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7700compiler_DEFAULT=$CC
7701
7702# save warnings/boilerplate of simple test code
7703ac_outfile=conftest.$ac_objext
7704echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7705eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7706_lt_compiler_boilerplate=`cat conftest.err`
7707$RM conftest*
7708
7709ac_outfile=conftest.$ac_objext
7710echo "$lt_simple_link_test_code" >conftest.$ac_ext
7711eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7712_lt_linker_boilerplate=`cat conftest.err`
7713$RM -r conftest*
7714
7715
7716if test -n "$compiler"; then
7717
7718lt_prog_compiler_no_builtin_flag=
7719
7720if test "$GCC" = yes; then
7721 case $cc_basename in
7722 nvcc*)
7723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7724 *)
7725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7726 esac
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7729$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7730if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 lt_cv_prog_compiler_rtti_exceptions=no
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="-fno-rtti -fno-exceptions"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 # The option is referenced via a variable to avoid confusing sed.
7742 lt_compile=`echo "$ac_compile" | $SED \
7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7745 -e 's:$: $lt_compiler_flag:'`
7746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7747 (eval "$lt_compile" 2>conftest.err)
7748 ac_status=$?
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 if (exit $ac_status) && test -s "$ac_outfile"; then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings other than the usual output.
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_rtti_exceptions=yes
7758 fi
7759 fi
7760 $RM conftest*
7761
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7764$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7765
7766if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7768else
7769 :
7770fi
7771
7772fi
7773
7774
7775
7776
7777
7778
7779 lt_prog_compiler_wl=
7780lt_prog_compiler_pic=
7781lt_prog_compiler_static=
7782
7783
7784 if test "$GCC" = yes; then
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_static='-static'
7787
7788 case $host_os in
7789 aix*)
7790 # All AIX code is PIC.
7791 if test "$host_cpu" = ia64; then
7792 # AIX 5 now supports IA64 processor
7793 lt_prog_compiler_static='-Bstatic'
7794 fi
7795 ;;
7796
7797 amigaos*)
7798 case $host_cpu in
7799 powerpc)
7800 # see comment about AmigaOS4 .so support
7801 lt_prog_compiler_pic='-fPIC'
7802 ;;
7803 m68k)
7804 # FIXME: we need at least 68020 code to build shared libraries, but
7805 # adding the `-m68020' flag to GCC prevents building anything better,
7806 # like `-m68040'.
7807 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7808 ;;
7809 esac
7810 ;;
7811
7812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7813 # PIC is the default for these OSes.
7814 ;;
7815
7816 mingw* | cygwin* | pw32* | os2* | cegcc*)
7817 # This hack is so that the source file can tell whether it is being
7818 # built for inclusion in a dll (and should export symbols for example).
7819 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7820 # (--disable-auto-import) libraries
7821 lt_prog_compiler_pic='-DDLL_EXPORT'
7822 ;;
7823
7824 darwin* | rhapsody*)
7825 # PIC is the default on this platform
7826 # Common symbols not allowed in MH_DYLIB files
7827 lt_prog_compiler_pic='-fno-common'
7828 ;;
7829
7830 haiku*)
7831 # PIC is the default for Haiku.
7832 # The "-static" flag exists, but is broken.
7833 lt_prog_compiler_static=
7834 ;;
7835
7836 hpux*)
7837 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7838 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7839 # sets the default TLS model and affects inlining.
7840 case $host_cpu in
7841 hppa*64*)
7842 # +Z the default
7843 ;;
7844 *)
7845 lt_prog_compiler_pic='-fPIC'
7846 ;;
7847 esac
7848 ;;
7849
7850 interix[3-9]*)
7851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7852 # Instead, we relocate shared libraries at runtime.
7853 ;;
7854
7855 msdosdjgpp*)
7856 # Just because we use GCC doesn't mean we suddenly get shared libraries
7857 # on systems that don't support them.
7858 lt_prog_compiler_can_build_shared=no
7859 enable_shared=no
7860 ;;
7861
7862 *nto* | *qnx*)
7863 # QNX uses GNU C++, but need to define -shared option too, otherwise
7864 # it will coredump.
7865 lt_prog_compiler_pic='-fPIC -shared'
7866 ;;
7867
7868 sysv4*MP*)
7869 if test -d /usr/nec; then
7870 lt_prog_compiler_pic=-Kconform_pic
7871 fi
7872 ;;
7873
7874 *)
7875 lt_prog_compiler_pic='-fPIC'
7876 ;;
7877 esac
7878
7879 case $cc_basename in
7880 nvcc*) # Cuda Compiler Driver 2.2
7881 lt_prog_compiler_wl='-Xlinker '
7882 lt_prog_compiler_pic='-Xcompiler -fPIC'
7883 ;;
7884 esac
7885 else
7886 # PORTME Check for flag to pass linker flags through the system compiler.
7887 case $host_os in
7888 aix*)
7889 lt_prog_compiler_wl='-Wl,'
7890 if test "$host_cpu" = ia64; then
7891 # AIX 5 now supports IA64 processor
7892 lt_prog_compiler_static='-Bstatic'
7893 else
7894 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7895 fi
7896 ;;
7897
7898 mingw* | cygwin* | pw32* | os2* | cegcc*)
7899 # This hack is so that the source file can tell whether it is being
7900 # built for inclusion in a dll (and should export symbols for example).
7901 lt_prog_compiler_pic='-DDLL_EXPORT'
7902 ;;
7903
7904 hpux9* | hpux10* | hpux11*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7907 # not for PA HP-UX.
7908 case $host_cpu in
7909 hppa*64*|ia64*)
7910 # +Z the default
7911 ;;
7912 *)
7913 lt_prog_compiler_pic='+Z'
7914 ;;
7915 esac
7916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7917 lt_prog_compiler_static='${wl}-a ${wl}archive'
7918 ;;
7919
7920 irix5* | irix6* | nonstopux*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC (with -KPIC) is the default.
7923 lt_prog_compiler_static='-non_shared'
7924 ;;
7925
7926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7927 case $cc_basename in
7928 # old Intel for x86_64 which still supported -KPIC.
7929 ecc*)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-KPIC'
7932 lt_prog_compiler_static='-static'
7933 ;;
7934 # icc used to be incompatible with GCC.
7935 # ICC 10 doesn't accept -KPIC any more.
7936 icc* | ifort*)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='-fPIC'
7939 lt_prog_compiler_static='-static'
7940 ;;
7941 # Lahey Fortran 8.1.
7942 lf95*)
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_pic='--shared'
7945 lt_prog_compiler_static='--static'
7946 ;;
7947 nagfor*)
7948 # NAG Fortran compiler
7949 lt_prog_compiler_wl='-Wl,-Wl,,'
7950 lt_prog_compiler_pic='-PIC'
7951 lt_prog_compiler_static='-Bstatic'
7952 ;;
7953 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7954 # Portland Group compilers (*not* the Pentium gcc compiler,
7955 # which looks to be a dead project)
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-fpic'
7958 lt_prog_compiler_static='-Bstatic'
7959 ;;
7960 ccc*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # All Alpha code is PIC.
7963 lt_prog_compiler_static='-non_shared'
7964 ;;
7965 xl* | bgxl* | bgf* | mpixl*)
7966 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7967 lt_prog_compiler_wl='-Wl,'
7968 lt_prog_compiler_pic='-qpic'
7969 lt_prog_compiler_static='-qstaticlink'
7970 ;;
7971 *)
7972 case `$CC -V 2>&1 | sed 5q` in
7973 *Sun\ F* | *Sun*Fortran*)
7974 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7977 lt_prog_compiler_wl=''
7978 ;;
7979 *Sun\ C*)
7980 # Sun C 5.9
7981 lt_prog_compiler_pic='-KPIC'
7982 lt_prog_compiler_static='-Bstatic'
7983 lt_prog_compiler_wl='-Wl,'
7984 ;;
7985 esac
7986 ;;
7987 esac
7988 ;;
7989
7990 newsos6)
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 ;;
7994
7995 *nto* | *qnx*)
7996 # QNX uses GNU C++, but need to define -shared option too, otherwise
7997 # it will coredump.
7998 lt_prog_compiler_pic='-fPIC -shared'
7999 ;;
8000
8001 osf3* | osf4* | osf5*)
8002 lt_prog_compiler_wl='-Wl,'
8003 # All OSF/1 code is PIC.
8004 lt_prog_compiler_static='-non_shared'
8005 ;;
8006
8007 rdos*)
8008 lt_prog_compiler_static='-non_shared'
8009 ;;
8010
8011 solaris*)
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 case $cc_basename in
8015 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8016 lt_prog_compiler_wl='-Qoption ld ';;
8017 *)
8018 lt_prog_compiler_wl='-Wl,';;
8019 esac
8020 ;;
8021
8022 sunos4*)
8023 lt_prog_compiler_wl='-Qoption ld '
8024 lt_prog_compiler_pic='-PIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 ;;
8027
8028 sysv4 | sysv4.2uw2* | sysv4.3*)
8029 lt_prog_compiler_wl='-Wl,'
8030 lt_prog_compiler_pic='-KPIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033
8034 sysv4*MP*)
8035 if test -d /usr/nec ;then
8036 lt_prog_compiler_pic='-Kconform_pic'
8037 lt_prog_compiler_static='-Bstatic'
8038 fi
8039 ;;
8040
8041 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8042 lt_prog_compiler_wl='-Wl,'
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 unicos*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_can_build_shared=no
8050 ;;
8051
8052 uts4*)
8053 lt_prog_compiler_pic='-pic'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056
8057 *)
8058 lt_prog_compiler_can_build_shared=no
8059 ;;
8060 esac
8061 fi
8062
8063case $host_os in
8064 # For platforms which do not support PIC, -DPIC is meaningless:
8065 *djgpp*)
8066 lt_prog_compiler_pic=
8067 ;;
8068 *)
8069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8070 ;;
8071esac
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8074$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8075if ${lt_cv_prog_compiler_pic+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077else
8078 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8081$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8082lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8083
8084#
8085# Check to make sure the PIC flag actually works.
8086#
8087if test -n "$lt_prog_compiler_pic"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8089$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8090if ${lt_cv_prog_compiler_pic_works+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092else
8093 lt_cv_prog_compiler_pic_works=no
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8097 # Insert the option either (1) after the last *FLAGS variable, or
8098 # (2) before a word containing "conftest.", or (3) at the end.
8099 # Note that $ac_compile itself does not contain backslashes and begins
8100 # with a dollar sign (not a hyphen), so the echo should work correctly.
8101 # The option is referenced via a variable to avoid confusing sed.
8102 lt_compile=`echo "$ac_compile" | $SED \
8103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105 -e 's:$: $lt_compiler_flag:'`
8106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8107 (eval "$lt_compile" 2>conftest.err)
8108 ac_status=$?
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 if (exit $ac_status) && test -s "$ac_outfile"; then
8112 # The compiler can only warn and ignore the option if not recognized
8113 # So say no if there are warnings other than the usual output.
8114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8117 lt_cv_prog_compiler_pic_works=yes
8118 fi
8119 fi
8120 $RM conftest*
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8124$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8125
8126if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8127 case $lt_prog_compiler_pic in
8128 "" | " "*) ;;
8129 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8130 esac
8131else
8132 lt_prog_compiler_pic=
8133 lt_prog_compiler_can_build_shared=no
8134fi
8135
8136fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148#
8149# Check to make sure the static flag actually works.
8150#
8151wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8153$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8154if ${lt_cv_prog_compiler_static_works+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156else
8157 lt_cv_prog_compiler_static_works=no
8158 save_LDFLAGS="$LDFLAGS"
8159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8162 # The linker can only warn and ignore the option if not recognized
8163 # So say no if there are warnings
8164 if test -s conftest.err; then
8165 # Append any errors to the config.log.
8166 cat conftest.err 1>&5
8167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8169 if diff conftest.exp conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_static_works=yes
8171 fi
8172 else
8173 lt_cv_prog_compiler_static_works=yes
8174 fi
8175 fi
8176 $RM -r conftest*
8177 LDFLAGS="$save_LDFLAGS"
8178
8179fi
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8181$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8182
8183if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8184 :
8185else
8186 lt_prog_compiler_static=
8187fi
8188
8189
8190
8191
8192
8193
8194
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8196$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8197if ${lt_cv_prog_compiler_c_o+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199else
8200 lt_cv_prog_compiler_c_o=no
8201 $RM -r conftest 2>/dev/null
8202 mkdir conftest
8203 cd conftest
8204 mkdir out
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206
8207 lt_compiler_flag="-o out/conftest2.$ac_objext"
8208 # Insert the option either (1) after the last *FLAGS variable, or
8209 # (2) before a word containing "conftest.", or (3) at the end.
8210 # Note that $ac_compile itself does not contain backslashes and begins
8211 # with a dollar sign (not a hyphen), so the echo should work correctly.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>out/conftest.err)
8218 ac_status=$?
8219 cat out/conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8222 then
8223 # The compiler can only warn and ignore the option if not recognized
8224 # So say no if there are warnings
8225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8228 lt_cv_prog_compiler_c_o=yes
8229 fi
8230 fi
8231 chmod u+w . 2>&5
8232 $RM conftest*
8233 # SGI C++ compiler will create directory out/ii_files/ for
8234 # template instantiation
8235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8236 $RM out/* && rmdir out
8237 cd ..
8238 $RM -r conftest
8239 $RM conftest*
8240
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8243$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8244
8245
8246
8247
8248
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8252if ${lt_cv_prog_compiler_c_o+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254else
8255 lt_cv_prog_compiler_c_o=no
8256 $RM -r conftest 2>/dev/null
8257 mkdir conftest
8258 cd conftest
8259 mkdir out
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261
8262 lt_compiler_flag="-o out/conftest2.$ac_objext"
8263 # Insert the option either (1) after the last *FLAGS variable, or
8264 # (2) before a word containing "conftest.", or (3) at the end.
8265 # Note that $ac_compile itself does not contain backslashes and begins
8266 # with a dollar sign (not a hyphen), so the echo should work correctly.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
8271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8272 (eval "$lt_compile" 2>out/conftest.err)
8273 ac_status=$?
8274 cat out/conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8277 then
8278 # The compiler can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_c_o=yes
8284 fi
8285 fi
8286 chmod u+w . 2>&5
8287 $RM conftest*
8288 # SGI C++ compiler will create directory out/ii_files/ for
8289 # template instantiation
8290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8291 $RM out/* && rmdir out
8292 cd ..
8293 $RM -r conftest
8294 $RM conftest*
8295
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8298$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8299
8300
8301
8302
8303hard_links="nottested"
8304if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8305 # do not overwrite the value of need_locks provided by the user
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8307$as_echo_n "checking if we can lock with hard links... " >&6; }
8308 hard_links=yes
8309 $RM conftest*
8310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8311 touch conftest.a
8312 ln conftest.a conftest.b 2>&5 || hard_links=no
8313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8315$as_echo "$hard_links" >&6; }
8316 if test "$hard_links" = no; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8318$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8319 need_locks=warn
8320 fi
8321else
8322 need_locks=no
8323fi
8324
8325
8326
8327
8328
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8331$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8332
8333 runpath_var=
8334 allow_undefined_flag=
8335 always_export_symbols=no
8336 archive_cmds=
8337 archive_expsym_cmds=
8338 compiler_needs_object=no
8339 enable_shared_with_static_runtimes=no
8340 export_dynamic_flag_spec=
8341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8342 hardcode_automatic=no
8343 hardcode_direct=no
8344 hardcode_direct_absolute=no
8345 hardcode_libdir_flag_spec=
8346 hardcode_libdir_flag_spec_ld=
8347 hardcode_libdir_separator=
8348 hardcode_minus_L=no
8349 hardcode_shlibpath_var=unsupported
8350 inherit_rpath=no
8351 link_all_deplibs=unknown
8352 module_cmds=
8353 module_expsym_cmds=
8354 old_archive_from_new_cmds=
8355 old_archive_from_expsyms_cmds=
8356 thread_safe_flag_spec=
8357 whole_archive_flag_spec=
8358 # include_expsyms should be a list of space-separated symbols to be *always*
8359 # included in the symbol list
8360 include_expsyms=
8361 # exclude_expsyms can be an extended regexp of symbols to exclude
8362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8364 # as well as any symbol that contains `d'.
8365 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8367 # platforms (ab)use it in PIC code, but their linkers get confused if
8368 # the symbol is explicitly referenced. Since portable code cannot
8369 # rely on this symbol name, it's probably fine to never include it in
8370 # preloaded symbol tables.
8371 # Exclude shared library initialization/finalization symbols.
8372 extract_expsyms_cmds=
8373
8374 case $host_os in
8375 cygwin* | mingw* | pw32* | cegcc*)
8376 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8377 # When not using gcc, we currently assume that we are using
8378 # Microsoft Visual C++.
8379 if test "$GCC" != yes; then
8380 with_gnu_ld=no
8381 fi
8382 ;;
8383 interix*)
8384 # we just hope/assume this is gcc and not c89 (= MSVC++)
8385 with_gnu_ld=yes
8386 ;;
8387 openbsd*)
8388 with_gnu_ld=no
8389 ;;
8390 linux* | k*bsd*-gnu | gnu*)
8391 link_all_deplibs=no
8392 ;;
8393 esac
8394
8395 ld_shlibs=yes
8396
8397 # On some targets, GNU ld is compatible enough with the native linker
8398 # that we're better off using the native interface for both.
8399 lt_use_gnu_ld_interface=no
8400 if test "$with_gnu_ld" = yes; then
8401 case $host_os in
8402 aix*)
8403 # The AIX port of GNU ld has always aspired to compatibility
8404 # with the native linker. However, as the warning in the GNU ld
8405 # block says, versions before 2.19.5* couldn't really create working
8406 # shared libraries, regardless of the interface used.
8407 case `$LD -v 2>&1` in
8408 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8409 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8410 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8411 *)
8412 lt_use_gnu_ld_interface=yes
8413 ;;
8414 esac
8415 ;;
8416 *)
8417 lt_use_gnu_ld_interface=yes
8418 ;;
8419 esac
8420 fi
8421
8422 if test "$lt_use_gnu_ld_interface" = yes; then
8423 # If archive_cmds runs LD, not CC, wlarc should be empty
8424 wlarc='${wl}'
8425
8426 # Set some defaults for GNU ld with shared library support. These
8427 # are reset later if shared libraries are not supported. Putting them
8428 # here allows them to be overridden if necessary.
8429 runpath_var=LD_RUN_PATH
8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8431 export_dynamic_flag_spec='${wl}--export-dynamic'
8432 # ancient GNU ld didn't support --whole-archive et. al.
8433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8435 else
8436 whole_archive_flag_spec=
8437 fi
8438 supports_anon_versioning=no
8439 case `$LD -v 2>&1` in
8440 *GNU\ gold*) supports_anon_versioning=yes ;;
8441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444 *\ 2.11.*) ;; # other 2.11 versions
8445 *) supports_anon_versioning=yes ;;
8446 esac
8447
8448 # See if GNU ld supports shared libraries.
8449 case $host_os in
8450 aix[3-9]*)
8451 # On AIX/PPC, the GNU linker is very broken
8452 if test "$host_cpu" != ia64; then
8453 ld_shlibs=no
8454 cat <<_LT_EOF 1>&2
8455
8456*** Warning: the GNU linker, at least up to release 2.19, is reported
8457*** to be unable to reliably create shared libraries on AIX.
8458*** Therefore, libtool is disabling shared libraries support. If you
8459*** really care for shared libraries, you may want to install binutils
8460*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8461*** You will then need to restart the configuration process.
8462
8463_LT_EOF
8464 fi
8465 ;;
8466
8467 amigaos*)
8468 case $host_cpu in
8469 powerpc)
8470 # see comment about AmigaOS4 .so support
8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 archive_expsym_cmds=''
8473 ;;
8474 m68k)
8475 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)'
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_minus_L=yes
8478 ;;
8479 esac
8480 ;;
8481
8482 beos*)
8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8484 allow_undefined_flag=unsupported
8485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8486 # support --undefined. This deserves some investigation. FIXME
8487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492
8493 cygwin* | mingw* | pw32* | cegcc*)
8494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8495 # as there is no search path for DLLs.
8496 hardcode_libdir_flag_spec='-L$libdir'
8497 export_dynamic_flag_spec='${wl}--export-all-symbols'
8498 allow_undefined_flag=unsupported
8499 always_export_symbols=no
8500 enable_shared_with_static_runtimes=yes
8501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8502 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8503
8504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8506 # If the export-symbols file already is a .def file (1st line
8507 # is EXPORTS), use it as is; otherwise, prepend...
8508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8509 cp $export_symbols $output_objdir/$soname.def;
8510 else
8511 echo EXPORTS > $output_objdir/$soname.def;
8512 cat $export_symbols >> $output_objdir/$soname.def;
8513 fi~
8514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8515 else
8516 ld_shlibs=no
8517 fi
8518 ;;
8519
8520 haiku*)
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 link_all_deplibs=yes
8523 ;;
8524
8525 interix[3-9]*)
8526 hardcode_direct=no
8527 hardcode_shlibpath_var=no
8528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8529 export_dynamic_flag_spec='${wl}-E'
8530 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8531 # Instead, shared libraries are loaded at an image base (0x10000000 by
8532 # default) and relocated if they conflict, which is a slow very memory
8533 # consuming and fragmenting process. To avoid this, we pick a random,
8534 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8535 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8537 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'
8538 ;;
8539
8540 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8541 tmp_diet=no
8542 if test "$host_os" = linux-dietlibc; then
8543 case $cc_basename in
8544 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8545 esac
8546 fi
8547 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8548 && test "$tmp_diet" = no
8549 then
8550 tmp_addflag=' $pic_flag'
8551 tmp_sharedflag='-shared'
8552 case $cc_basename,$host_cpu in
8553 pgcc*) # Portland Group C compiler
8554 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8555 tmp_addflag=' $pic_flag'
8556 ;;
8557 pgf77* | pgf90* | pgf95* | pgfortran*)
8558 # Portland Group f77 and f90 compilers
8559 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8560 tmp_addflag=' $pic_flag -Mnomain' ;;
8561 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8562 tmp_addflag=' -i_dynamic' ;;
8563 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8564 tmp_addflag=' -i_dynamic -nofor_main' ;;
8565 ifc* | ifort*) # Intel Fortran compiler
8566 tmp_addflag=' -nofor_main' ;;
8567 lf95*) # Lahey Fortran 8.1
8568 whole_archive_flag_spec=
8569 tmp_sharedflag='--shared' ;;
8570 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8571 tmp_sharedflag='-qmkshrobj'
8572 tmp_addflag= ;;
8573 nvcc*) # Cuda Compiler Driver 2.2
8574 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8575 compiler_needs_object=yes
8576 ;;
8577 esac
8578 case `$CC -V 2>&1 | sed 5q` in
8579 *Sun\ C*) # Sun C 5.9
8580 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8581 compiler_needs_object=yes
8582 tmp_sharedflag='-G' ;;
8583 *Sun\ F*) # Sun Fortran 8.3
8584 tmp_sharedflag='-G' ;;
8585 esac
8586 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587
8588 if test "x$supports_anon_versioning" = xyes; then
8589 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591 echo "local: *; };" >> $output_objdir/$libname.ver~
8592 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8593 fi
8594
8595 case $cc_basename in
8596 xlf* | bgf* | bgxlf* | mpixlf*)
8597 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8598 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8599 hardcode_libdir_flag_spec=
8600 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8601 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8602 if test "x$supports_anon_versioning" = xyes; then
8603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8605 echo "local: *; };" >> $output_objdir/$libname.ver~
8606 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8607 fi
8608 ;;
8609 esac
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
8614
8615 netbsd* | netbsdelf*-gnu)
8616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8617 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8618 wlarc=
8619 else
8620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 fi
8623 ;;
8624
8625 solaris*)
8626 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8627 ld_shlibs=no
8628 cat <<_LT_EOF 1>&2
8629
8630*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8631*** create shared libraries on Solaris systems. Therefore, libtool
8632*** is disabling shared libraries support. We urge you to upgrade GNU
8633*** binutils to release 2.9.1 or newer. Another option is to modify
8634*** your PATH or compiler configuration so that the native linker is
8635*** used, and then restart.
8636
8637_LT_EOF
8638 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641 else
8642 ld_shlibs=no
8643 fi
8644 ;;
8645
8646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8647 case `$LD -v 2>&1` in
8648 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
8651
8652*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8653*** reliably create shared libraries on SCO systems. Therefore, libtool
8654*** is disabling shared libraries support. We urge you to upgrade GNU
8655*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8656*** your PATH or compiler configuration so that the native linker is
8657*** used, and then restart.
8658
8659_LT_EOF
8660 ;;
8661 *)
8662 # For security reasons, it is highly recommended that you always
8663 # use absolute paths for naming shared libraries, and exclude the
8664 # DT_RUNPATH tag from executables and libraries. But doing so
8665 # requires that you compile everything twice, which is a pain.
8666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 else
8671 ld_shlibs=no
8672 fi
8673 ;;
8674 esac
8675 ;;
8676
8677 sunos4*)
8678 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 wlarc=
8680 hardcode_direct=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 *)
8685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8686 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692 esac
8693
8694 if test "$ld_shlibs" = no; then
8695 runpath_var=
8696 hardcode_libdir_flag_spec=
8697 export_dynamic_flag_spec=
8698 whole_archive_flag_spec=
8699 fi
8700 else
8701 # PORTME fill in a description of your system's linker (not GNU ld)
8702 case $host_os in
8703 aix3*)
8704 allow_undefined_flag=unsupported
8705 always_export_symbols=yes
8706 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'
8707 # Note: this linker hardcodes the directories in LIBPATH if there
8708 # are no directories specified by -L.
8709 hardcode_minus_L=yes
8710 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8711 # Neither direct hardcoding nor static linking is supported with a
8712 # broken collect2.
8713 hardcode_direct=unsupported
8714 fi
8715 ;;
8716
8717 aix[4-9]*)
8718 if test "$host_cpu" = ia64; then
8719 # On IA64, the linker does run time linking by default, so we don't
8720 # have to do anything special.
8721 aix_use_runtimelinking=no
8722 exp_sym_flag='-Bexport'
8723 no_entry_flag=""
8724 else
8725 # If we're using GNU nm, then we don't want the "-C" option.
8726 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8727 # Also, AIX nm treats weak defined symbols like other global
8728 # defined symbols, whereas GNU nm marks them as "W".
8729 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8730 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8731 else
8732 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'
8733 fi
8734 aix_use_runtimelinking=no
8735
8736 # Test if we are trying to use run time linking or normal
8737 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8738 # need to do runtime linking.
8739 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8740 for ld_flag in $LDFLAGS; do
8741 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8742 aix_use_runtimelinking=yes
8743 break
8744 fi
8745 done
8746 ;;
8747 esac
8748
8749 exp_sym_flag='-bexport'
8750 no_entry_flag='-bnoentry'
8751 fi
8752
8753 # When large executables or shared objects are built, AIX ld can
8754 # have problems creating the table of contents. If linking a library
8755 # or program results in "error TOC overflow" add -mminimal-toc to
8756 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8757 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8758
8759 archive_cmds=''
8760 hardcode_direct=yes
8761 hardcode_direct_absolute=yes
8762 hardcode_libdir_separator=':'
8763 link_all_deplibs=yes
8764 file_list_spec='${wl}-f,'
8765
8766 if test "$GCC" = yes; then
8767 case $host_os in aix4.[012]|aix4.[012].*)
8768 # We only want to do this on AIX 4.2 and lower, the check
8769 # below for broken collect2 doesn't work under 4.3+
8770 collect2name=`${CC} -print-prog-name=collect2`
8771 if test -f "$collect2name" &&
8772 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8773 then
8774 # We have reworked collect2
8775 :
8776 else
8777 # We have old collect2
8778 hardcode_direct=unsupported
8779 # It fails to find uninstalled libraries when the uninstalled
8780 # path is not listed in the libpath. Setting hardcode_minus_L
8781 # to unsupported forces relinking
8782 hardcode_minus_L=yes
8783 hardcode_libdir_flag_spec='-L$libdir'
8784 hardcode_libdir_separator=
8785 fi
8786 ;;
8787 esac
8788 shared_flag='-shared'
8789 if test "$aix_use_runtimelinking" = yes; then
8790 shared_flag="$shared_flag "'${wl}-G'
8791 fi
8792 link_all_deplibs=no
8793 else
8794 # not using gcc
8795 if test "$host_cpu" = ia64; then
8796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8797 # chokes on -Wl,-G. The following line is correct:
8798 shared_flag='-G'
8799 else
8800 if test "$aix_use_runtimelinking" = yes; then
8801 shared_flag='${wl}-G'
8802 else
8803 shared_flag='${wl}-bM:SRE'
8804 fi
8805 fi
8806 fi
8807
8808 export_dynamic_flag_spec='${wl}-bexpall'
8809 # It seems that -bexpall does not export symbols beginning with
8810 # underscore (_), so it is better to generate a list of symbols to export.
8811 always_export_symbols=yes
8812 if test "$aix_use_runtimelinking" = yes; then
8813 # Warning - without using the other runtime loading flags (-brtl),
8814 # -berok will link without error, but may produce a broken library.
8815 allow_undefined_flag='-berok'
8816 # Determine the default libpath from the value encoded in an
8817 # empty executable.
8818 if test "${lt_cv_aix_libpath+set}" = set; then
8819 aix_libpath=$lt_cv_aix_libpath
8820else
8821 if ${lt_cv_aix_libpath_+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h. */
8826
8827int
8828main ()
8829{
8830
8831 ;
8832 return 0;
8833}
8834_ACEOF
8835if ac_fn_c_try_link "$LINENO"; then :
8836
8837 lt_aix_libpath_sed='
8838 /Import File Strings/,/^$/ {
8839 /^0/ {
8840 s/^0 *\([^ ]*\) *$/\1/
8841 p
8842 }
8843 }'
8844 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8845 # Check for a 64-bit object if we didn't find anything.
8846 if test -z "$lt_cv_aix_libpath_"; then
8847 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8848 fi
8849fi
8850rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 if test -z "$lt_cv_aix_libpath_"; then
8853 lt_cv_aix_libpath_="/usr/lib:/lib"
8854 fi
8855
8856fi
8857
8858 aix_libpath=$lt_cv_aix_libpath_
8859fi
8860
8861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8862 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8863 else
8864 if test "$host_cpu" = ia64; then
8865 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8866 allow_undefined_flag="-z nodefs"
8867 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"
8868 else
8869 # Determine the default libpath from the value encoded in an
8870 # empty executable.
8871 if test "${lt_cv_aix_libpath+set}" = set; then
8872 aix_libpath=$lt_cv_aix_libpath
8873else
8874 if ${lt_cv_aix_libpath_+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876else
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h. */
8879
8880int
8881main ()
8882{
8883
8884 ;
8885 return 0;
8886}
8887_ACEOF
8888if ac_fn_c_try_link "$LINENO"; then :
8889
8890 lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8892 /^0/ {
8893 s/^0 *\([^ ]*\) *$/\1/
8894 p
8895 }
8896 }'
8897 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 # Check for a 64-bit object if we didn't find anything.
8899 if test -z "$lt_cv_aix_libpath_"; then
8900 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 fi
8902fi
8903rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 if test -z "$lt_cv_aix_libpath_"; then
8906 lt_cv_aix_libpath_="/usr/lib:/lib"
8907 fi
8908
8909fi
8910
8911 aix_libpath=$lt_cv_aix_libpath_
8912fi
8913
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 # Warning - without using the other run time loading flags,
8916 # -berok will link without error, but may produce a broken library.
8917 no_undefined_flag=' ${wl}-bernotok'
8918 allow_undefined_flag=' ${wl}-berok'
8919 if test "$with_gnu_ld" = yes; then
8920 # We only use this code for GNU lds that support --whole-archive.
8921 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8922 else
8923 # Exported symbols can be pulled into shared objects from archives
8924 whole_archive_flag_spec='$convenience'
8925 fi
8926 archive_cmds_need_lc=yes
8927 # This is similar to how AIX traditionally builds its shared libraries.
8928 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'
8929 fi
8930 fi
8931 ;;
8932
8933 amigaos*)
8934 case $host_cpu in
8935 powerpc)
8936 # see comment about AmigaOS4 .so support
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds=''
8939 ;;
8940 m68k)
8941 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)'
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_minus_L=yes
8944 ;;
8945 esac
8946 ;;
8947
8948 bsdi[45]*)
8949 export_dynamic_flag_spec=-rdynamic
8950 ;;
8951
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # When not using gcc, we currently assume that we are using
8954 # Microsoft Visual C++.
8955 # hardcode_libdir_flag_spec is actually meaningless, as there is
8956 # no search path for DLLs.
8957 case $cc_basename in
8958 cl*)
8959 # Native MSVC
8960 hardcode_libdir_flag_spec=' '
8961 allow_undefined_flag=unsupported
8962 always_export_symbols=yes
8963 file_list_spec='@'
8964 # Tell ltmain to make .lib files, not .a files.
8965 libext=lib
8966 # Tell ltmain to make .dll files, not .so files.
8967 shrext_cmds=".dll"
8968 # FIXME: Setting linknames here is a bad hack.
8969 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8970 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8971 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8972 else
8973 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8974 fi~
8975 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8976 linknames='
8977 # The linker will not automatically build a static lib if we build a DLL.
8978 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8979 enable_shared_with_static_runtimes=yes
8980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8981 # Don't use ranlib
8982 old_postinstall_cmds='chmod 644 $oldlib'
8983 postlink_cmds='lt_outputfile="@OUTPUT@"~
8984 lt_tool_outputfile="@TOOL_OUTPUT@"~
8985 case $lt_outputfile in
8986 *.exe|*.EXE) ;;
8987 *)
8988 lt_outputfile="$lt_outputfile.exe"
8989 lt_tool_outputfile="$lt_tool_outputfile.exe"
8990 ;;
8991 esac~
8992 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8993 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8994 $RM "$lt_outputfile.manifest";
8995 fi'
8996 ;;
8997 *)
8998 # Assume MSVC wrapper
8999 hardcode_libdir_flag_spec=' '
9000 allow_undefined_flag=unsupported
9001 # Tell ltmain to make .lib files, not .a files.
9002 libext=lib
9003 # Tell ltmain to make .dll files, not .so files.
9004 shrext_cmds=".dll"
9005 # FIXME: Setting linknames here is a bad hack.
9006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9007 # The linker will automatically build a .lib file if we build a DLL.
9008 old_archive_from_new_cmds='true'
9009 # FIXME: Should let the user specify the lib program.
9010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9011 enable_shared_with_static_runtimes=yes
9012 ;;
9013 esac
9014 ;;
9015
9016 darwin* | rhapsody*)
9017
9018
9019 archive_cmds_need_lc=no
9020 hardcode_direct=no
9021 hardcode_automatic=yes
9022 hardcode_shlibpath_var=unsupported
9023 if test "$lt_cv_ld_force_load" = "yes"; then
9024 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9025 else
9026 whole_archive_flag_spec=''
9027 fi
9028 link_all_deplibs=yes
9029 allow_undefined_flag="$_lt_dar_allow_undefined"
9030 case $cc_basename in
9031 ifort*) _lt_dar_can_shared=yes ;;
9032 *) _lt_dar_can_shared=$GCC ;;
9033 esac
9034 if test "$_lt_dar_can_shared" = "yes"; then
9035 output_verbose_link_cmd=func_echo_all
9036 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9037 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9038 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9039 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9040
9041 else
9042 ld_shlibs=no
9043 fi
9044
9045 ;;
9046
9047 dgux*)
9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 freebsd1*)
9054 ld_shlibs=no
9055 ;;
9056
9057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9058 # support. Future versions do this automatically, but an explicit c++rt0.o
9059 # does not break anything, and helps significantly (at the cost of a little
9060 # extra space).
9061 freebsd2.2*)
9062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9063 hardcode_libdir_flag_spec='-R$libdir'
9064 hardcode_direct=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9069 freebsd2*)
9070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9071 hardcode_direct=yes
9072 hardcode_minus_L=yes
9073 hardcode_shlibpath_var=no
9074 ;;
9075
9076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9077 freebsd* | dragonfly*)
9078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9079 hardcode_libdir_flag_spec='-R$libdir'
9080 hardcode_direct=yes
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 hpux9*)
9085 if test "$GCC" = yes; then
9086 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9087 else
9088 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'
9089 fi
9090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091 hardcode_libdir_separator=:
9092 hardcode_direct=yes
9093
9094 # hardcode_minus_L: Not really in the search PATH,
9095 # but as the default location of the library.
9096 hardcode_minus_L=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 ;;
9099
9100 hpux10*)
9101 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9102 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9103 else
9104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9105 fi
9106 if test "$with_gnu_ld" = no; then
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_flag_spec_ld='+b $libdir'
9109 hardcode_libdir_separator=:
9110 hardcode_direct=yes
9111 hardcode_direct_absolute=yes
9112 export_dynamic_flag_spec='${wl}-E'
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 fi
9117 ;;
9118
9119 hpux11*)
9120 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9121 case $host_cpu in
9122 hppa*64*)
9123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 ia64*)
9126 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 *)
9129 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 esac
9132 else
9133 case $host_cpu in
9134 hppa*64*)
9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 ia64*)
9138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139 ;;
9140 *)
9141
9142 # Older versions of the 11.00 compiler do not understand -b yet
9143 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9145$as_echo_n "checking if $CC understands -b... " >&6; }
9146if ${lt_cv_prog_compiler__b+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148else
9149 lt_cv_prog_compiler__b=no
9150 save_LDFLAGS="$LDFLAGS"
9151 LDFLAGS="$LDFLAGS -b"
9152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9154 # The linker can only warn and ignore the option if not recognized
9155 # So say no if there are warnings
9156 if test -s conftest.err; then
9157 # Append any errors to the config.log.
9158 cat conftest.err 1>&5
9159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161 if diff conftest.exp conftest.er2 >/dev/null; then
9162 lt_cv_prog_compiler__b=yes
9163 fi
9164 else
9165 lt_cv_prog_compiler__b=yes
9166 fi
9167 fi
9168 $RM -r conftest*
9169 LDFLAGS="$save_LDFLAGS"
9170
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9173$as_echo "$lt_cv_prog_compiler__b" >&6; }
9174
9175if test x"$lt_cv_prog_compiler__b" = xyes; then
9176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9177else
9178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9179fi
9180
9181 ;;
9182 esac
9183 fi
9184 if test "$with_gnu_ld" = no; then
9185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186 hardcode_libdir_separator=:
9187
9188 case $host_cpu in
9189 hppa*64*|ia64*)
9190 hardcode_direct=no
9191 hardcode_shlibpath_var=no
9192 ;;
9193 *)
9194 hardcode_direct=yes
9195 hardcode_direct_absolute=yes
9196 export_dynamic_flag_spec='${wl}-E'
9197
9198 # hardcode_minus_L: Not really in the search PATH,
9199 # but as the default location of the library.
9200 hardcode_minus_L=yes
9201 ;;
9202 esac
9203 fi
9204 ;;
9205
9206 irix5* | irix6* | nonstopux*)
9207 if test "$GCC" = yes; then
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9209 # Try to use the -exported_symbol ld option, if it does not
9210 # work, assume that -exports_file does not work either and
9211 # implicitly export all symbols.
9212 # This should be the same for all languages, so no per-tag cache variable.
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9214$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9215if ${lt_cv_irix_exported_symbol+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217else
9218 save_LDFLAGS="$LDFLAGS"
9219 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h. */
9222int foo (void) { return 0; }
9223_ACEOF
9224if ac_fn_c_try_link "$LINENO"; then :
9225 lt_cv_irix_exported_symbol=yes
9226else
9227 lt_cv_irix_exported_symbol=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LDFLAGS="$save_LDFLAGS"
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9234$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9235 if test "$lt_cv_irix_exported_symbol" = yes; then
9236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9237 fi
9238 else
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9241 fi
9242 archive_cmds_need_lc='no'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 inherit_rpath=yes
9246 link_all_deplibs=yes
9247 ;;
9248
9249 netbsd* | netbsdelf*-gnu)
9250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 else
9253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9254 fi
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 ;;
9259
9260 newsos6)
9261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_direct=yes
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 hardcode_libdir_separator=:
9265 hardcode_shlibpath_var=no
9266 ;;
9267
9268 *nto* | *qnx*)
9269 ;;
9270
9271 openbsd*)
9272 if test -f /usr/libexec/ld.so; then
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 hardcode_direct_absolute=yes
9276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280 export_dynamic_flag_spec='${wl}-E'
9281 else
9282 case $host_os in
9283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 ;;
9287 *)
9288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9290 ;;
9291 esac
9292 fi
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 os2*)
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 allow_undefined_flag=unsupported
9302 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'
9303 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9304 ;;
9305
9306 osf3*)
9307 if test "$GCC" = yes; then
9308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9309 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9310 else
9311 allow_undefined_flag=' -expect_unresolved \*'
9312 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9313 fi
9314 archive_cmds_need_lc='no'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9317 ;;
9318
9319 osf4* | osf5*) # as osf3* with the addition of -msym flag
9320 if test "$GCC" = yes; then
9321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9322 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 else
9325 allow_undefined_flag=' -expect_unresolved \*'
9326 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9327 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9328 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9329
9330 # Both c and cxx compiler support -rpath directly
9331 hardcode_libdir_flag_spec='-rpath $libdir'
9332 fi
9333 archive_cmds_need_lc='no'
9334 hardcode_libdir_separator=:
9335 ;;
9336
9337 solaris*)
9338 no_undefined_flag=' -z defs'
9339 if test "$GCC" = yes; then
9340 wlarc='${wl}'
9341 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344 else
9345 case `$CC -V 2>&1` in
9346 *"Compilers 5.0"*)
9347 wlarc=''
9348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9351 ;;
9352 *)
9353 wlarc='${wl}'
9354 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9356 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9357 ;;
9358 esac
9359 fi
9360 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_shlibpath_var=no
9362 case $host_os in
9363 solaris2.[0-5] | solaris2.[0-5].*) ;;
9364 *)
9365 # The compiler driver will combine and reorder linker options,
9366 # but understands `-z linker_flag'. GCC discards it without `$wl',
9367 # but is careful enough not to reorder.
9368 # Supported since Solaris 2.6 (maybe 2.5.1?)
9369 if test "$GCC" = yes; then
9370 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 else
9372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9373 fi
9374 ;;
9375 esac
9376 link_all_deplibs=yes
9377 ;;
9378
9379 sunos4*)
9380 if test "x$host_vendor" = xsequent; then
9381 # Use $CC to link under sequent, because it throws in some extra .o
9382 # files that make .init and .fini sections work.
9383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 else
9385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386 fi
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 sysv4)
9394 case $host_vendor in
9395 sni)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes # is this really true???
9398 ;;
9399 siemens)
9400 ## LD is ld it makes a PLAMLIB
9401 ## CC just makes a GrossModule.
9402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9403 reload_cmds='$CC -r -o $output$reload_objs'
9404 hardcode_direct=no
9405 ;;
9406 motorola)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9409 ;;
9410 esac
9411 runpath_var='LD_RUN_PATH'
9412 hardcode_shlibpath_var=no
9413 ;;
9414
9415 sysv4.3*)
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 export_dynamic_flag_spec='-Bexport'
9419 ;;
9420
9421 sysv4*MP*)
9422 if test -d /usr/nec; then
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_shlibpath_var=no
9425 runpath_var=LD_RUN_PATH
9426 hardcode_runpath_var=yes
9427 ld_shlibs=yes
9428 fi
9429 ;;
9430
9431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9432 no_undefined_flag='${wl}-z,text'
9433 archive_cmds_need_lc=no
9434 hardcode_shlibpath_var=no
9435 runpath_var='LD_RUN_PATH'
9436
9437 if test "$GCC" = yes; then
9438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 fi
9444 ;;
9445
9446 sysv5* | sco3.2v5* | sco5v6*)
9447 # Note: We can NOT use -z defs as we might desire, because we do not
9448 # link with -lc, and that would cause any symbols used from libc to
9449 # always be unresolved, which means just about no library would
9450 # ever link correctly. If we're not using GNU ld we use -z text
9451 # though, which does catch some bad symbols but isn't as heavy-handed
9452 # as -z defs.
9453 no_undefined_flag='${wl}-z,text'
9454 allow_undefined_flag='${wl}-z,nodefs'
9455 archive_cmds_need_lc=no
9456 hardcode_shlibpath_var=no
9457 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9458 hardcode_libdir_separator=':'
9459 link_all_deplibs=yes
9460 export_dynamic_flag_spec='${wl}-Bexport'
9461 runpath_var='LD_RUN_PATH'
9462
9463 if test "$GCC" = yes; then
9464 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 fi
9470 ;;
9471
9472 uts4*)
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9476 ;;
9477
9478 *)
9479 ld_shlibs=no
9480 ;;
9481 esac
9482
9483 if test x$host_vendor = xsni; then
9484 case $host in
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9486 export_dynamic_flag_spec='${wl}-Blargedynsym'
9487 ;;
9488 esac
9489 fi
9490 fi
9491
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9493$as_echo "$ld_shlibs" >&6; }
9494test "$ld_shlibs" = no && can_build_shared=no
9495
9496with_gnu_ld=$with_gnu_ld
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512#
9513# Do we need to explicitly link libc?
9514#
9515case "x$archive_cmds_need_lc" in
9516x|xyes)
9517 # Assume -lc should be added
9518 archive_cmds_need_lc=yes
9519
9520 if test "$enable_shared" = yes && test "$GCC" = yes; then
9521 case $archive_cmds in
9522 *'~'*)
9523 # FIXME: we may have to deal with multi-command sequences.
9524 ;;
9525 '$CC '*)
9526 # Test whether the compiler implicitly links with -lc since on some
9527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9528 # to ld, don't add -lc before -lgcc.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9530$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9531if ${lt_cv_archive_cmds_need_lc+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533else
9534 $RM conftest*
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9538 (eval $ac_compile) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } 2>conftest.err; then
9542 soname=conftest
9543 lib=conftest
9544 libobjs=conftest.$ac_objext
9545 deplibs=
9546 wl=$lt_prog_compiler_wl
9547 pic_flag=$lt_prog_compiler_pic
9548 compiler_flags=-v
9549 linker_flags=-v
9550 verstring=
9551 output_objdir=.
9552 libname=conftest
9553 lt_save_allow_undefined_flag=$allow_undefined_flag
9554 allow_undefined_flag=
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9556 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }
9560 then
9561 lt_cv_archive_cmds_need_lc=no
9562 else
9563 lt_cv_archive_cmds_need_lc=yes
9564 fi
9565 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 else
9567 cat conftest.err 1>&5
9568 fi
9569 $RM conftest*
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9573$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9574 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9575 ;;
9576 esac
9577 fi
9578 ;;
9579esac
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9738$as_echo_n "checking dynamic linker characteristics... " >&6; }
9739
9740if test "$GCC" = yes; then
9741 case $host_os in
9742 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9743 *) lt_awk_arg="/^libraries:/" ;;
9744 esac
9745 case $host_os in
9746 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9747 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 esac
9749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9750 case $lt_search_path_spec in
9751 *\;*)
9752 # if the path contains ";" then we assume it to be the separator
9753 # otherwise default to the standard path separator (i.e. ":") - it is
9754 # assumed that no part of a normal pathname contains ";" but that should
9755 # okay in the real world where ";" in dirpaths is itself problematic.
9756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9757 ;;
9758 *)
9759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9760 ;;
9761 esac
9762 # Ok, now we have the path, separated by spaces, we can step through it
9763 # and add multilib dir if necessary.
9764 lt_tmp_lt_search_path_spec=
9765 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9766 for lt_sys_path in $lt_search_path_spec; do
9767 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 else
9770 test -d "$lt_sys_path" && \
9771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9772 fi
9773 done
9774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9775BEGIN {RS=" "; FS="/|\n";} {
9776 lt_foo="";
9777 lt_count=0;
9778 for (lt_i = NF; lt_i > 0; lt_i--) {
9779 if ($lt_i != "" && $lt_i != ".") {
9780 if ($lt_i == "..") {
9781 lt_count++;
9782 } else {
9783 if (lt_count == 0) {
9784 lt_foo="/" $lt_i lt_foo;
9785 } else {
9786 lt_count--;
9787 }
9788 }
9789 }
9790 }
9791 if (lt_foo != "") { lt_freq[lt_foo]++; }
9792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9793}'`
9794 # AWK program above erroneously prepends '/' to C:/dos/paths
9795 # for these hosts.
9796 case $host_os in
9797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9798 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 esac
9800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9801else
9802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9803fi
9804library_names_spec=
9805libname_spec='lib$name'
9806soname_spec=
9807shrext_cmds=".so"
9808postinstall_cmds=
9809postuninstall_cmds=
9810finish_cmds=
9811finish_eval=
9812shlibpath_var=
9813shlibpath_overrides_runpath=unknown
9814version_type=none
9815dynamic_linker="$host_os ld.so"
9816sys_lib_dlsearch_path_spec="/lib /usr/lib"
9817need_lib_prefix=unknown
9818hardcode_into_libs=no
9819
9820# when you set need_version to no, make sure it does not cause -set_version
9821# flags to be left without arguments
9822need_version=unknown
9823
9824case $host_os in
9825aix3*)
9826 version_type=linux
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9828 shlibpath_var=LIBPATH
9829
9830 # AIX 3 has no versioning support, so we append a major version to the name.
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 ;;
9833
9834aix[4-9]*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 hardcode_into_libs=yes
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 supports IA64
9841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 else
9844 # With GCC up to 2.95.x, collect2 would create an import file
9845 # for dependence libraries. The import file would start with
9846 # the line `#! .'. This would cause the generated library to
9847 # depend on `.', always an invalid library. This was fixed in
9848 # development snapshots of GCC prior to 3.0.
9849 case $host_os in
9850 aix4 | aix4.[01] | aix4.[01].*)
9851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo ' yes '
9853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9854 :
9855 else
9856 can_build_shared=no
9857 fi
9858 ;;
9859 esac
9860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9861 # soname into executable. Probably we can add versioning support to
9862 # collect2, so additional links can be useful in future.
9863 if test "$aix_use_runtimelinking" = yes; then
9864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9865 # instead of lib<name>.a to let people know that these are not
9866 # typical AIX shared libraries.
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 else
9869 # We preserve .a as extension for shared libraries through AIX4.2
9870 # and later when we are not doing run time linking.
9871 library_names_spec='${libname}${release}.a $libname.a'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 fi
9874 shlibpath_var=LIBPATH
9875 fi
9876 ;;
9877
9878amigaos*)
9879 case $host_cpu in
9880 powerpc)
9881 # Since July 2007 AmigaOS4 officially supports .so libraries.
9882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 ;;
9885 m68k)
9886 library_names_spec='$libname.ixlibrary $libname.a'
9887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9888 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9889 ;;
9890 esac
9891 ;;
9892
9893beos*)
9894 library_names_spec='${libname}${shared_ext}'
9895 dynamic_linker="$host_os ld.so"
9896 shlibpath_var=LIBRARY_PATH
9897 ;;
9898
9899bsdi[45]*)
9900 version_type=linux
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9908 # the default ld.so.conf also contains /usr/contrib/lib and
9909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9910 # libtool to hard-code these into programs
9911 ;;
9912
9913cygwin* | mingw* | pw32* | cegcc*)
9914 version_type=windows
9915 shrext_cmds=".dll"
9916 need_version=no
9917 need_lib_prefix=no
9918
9919 case $GCC,$cc_basename in
9920 yes,*)
9921 # gcc
9922 library_names_spec='$libname.dll.a'
9923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9924 postinstall_cmds='base_file=`basename \${file}`~
9925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9926 dldir=$destdir/`dirname \$dlpath`~
9927 test -d \$dldir || mkdir -p \$dldir~
9928 $install_prog $dir/$dlname \$dldir/$dlname~
9929 chmod a+x \$dldir/$dlname~
9930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9932 fi'
9933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9934 dlpath=$dir/\$dldll~
9935 $RM \$dlpath'
9936 shlibpath_overrides_runpath=yes
9937
9938 case $host_os in
9939 cygwin*)
9940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9942
9943 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9944 ;;
9945 mingw* | cegcc*)
9946 # MinGW DLLs use traditional 'lib' prefix
9947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948 ;;
9949 pw32*)
9950 # pw32 DLLs use 'pw' prefix rather than 'lib'
9951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 ;;
9953 esac
9954 dynamic_linker='Win32 ld.exe'
9955 ;;
9956
9957 *,cl*)
9958 # Native MSVC
9959 libname_spec='$name'
9960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9961 library_names_spec='${libname}.dll.lib'
9962
9963 case $build_os in
9964 mingw*)
9965 sys_lib_search_path_spec=
9966 lt_save_ifs=$IFS
9967 IFS=';'
9968 for lt_path in $LIB
9969 do
9970 IFS=$lt_save_ifs
9971 # Let DOS variable expansion print the short 8.3 style file name.
9972 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9973 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9974 done
9975 IFS=$lt_save_ifs
9976 # Convert to MSYS style.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9978 ;;
9979 cygwin*)
9980 # Convert to unix form, then to dos form, then back to unix form
9981 # but this time dos style (no spaces!) so that the unix form looks
9982 # like /cygdrive/c/PROGRA~1:/cygdr...
9983 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9984 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9985 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 ;;
9987 *)
9988 sys_lib_search_path_spec="$LIB"
9989 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9990 # It is most probably a Windows format PATH.
9991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9992 else
9993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9994 fi
9995 # FIXME: find the short name or the path components, as spaces are
9996 # common. (e.g. "Program Files" -> "PROGRA~1")
9997 ;;
9998 esac
9999
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname'
10006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10007 dlpath=$dir/\$dldll~
10008 $RM \$dlpath'
10009 shlibpath_overrides_runpath=yes
10010 dynamic_linker='Win32 link.exe'
10011 ;;
10012
10013 *)
10014 # Assume MSVC wrapper
10015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 dynamic_linker='Win32 ld.exe'
10017 ;;
10018 esac
10019 # FIXME: first we should search . and the directory the executable is in
10020 shlibpath_var=PATH
10021 ;;
10022
10023darwin* | rhapsody*)
10024 dynamic_linker="$host_os dyld"
10025 version_type=darwin
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10029 soname_spec='${libname}${release}${major}$shared_ext'
10030 shlibpath_overrides_runpath=yes
10031 shlibpath_var=DYLD_LIBRARY_PATH
10032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10033
10034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10036 ;;
10037
10038dgux*)
10039 version_type=linux
10040 need_lib_prefix=no
10041 need_version=no
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 ;;
10046
10047freebsd1*)
10048 dynamic_linker=no
10049 ;;
10050
10051freebsd* | dragonfly*)
10052 # DragonFly does not have aout. When/if they implement a new
10053 # versioning mechanism, adjust this.
10054 if test -x /usr/bin/objformat; then
10055 objformat=`/usr/bin/objformat`
10056 else
10057 case $host_os in
10058 freebsd[123]*) objformat=aout ;;
10059 *) objformat=elf ;;
10060 esac
10061 fi
10062 version_type=freebsd-$objformat
10063 case $version_type in
10064 freebsd-elf*)
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066 need_version=no
10067 need_lib_prefix=no
10068 ;;
10069 freebsd-*)
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10071 need_version=yes
10072 ;;
10073 esac
10074 shlibpath_var=LD_LIBRARY_PATH
10075 case $host_os in
10076 freebsd2*)
10077 shlibpath_overrides_runpath=yes
10078 ;;
10079 freebsd3.[01]* | freebsdelf3.[01]*)
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10082 ;;
10083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10087 ;;
10088 *) # from 4.6 on, and DragonFly
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10091 ;;
10092 esac
10093 ;;
10094
10095gnu*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=no
10103 hardcode_into_libs=yes
10104 ;;
10105
10106haiku*)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 dynamic_linker="$host_os runtime_loader"
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes
10115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10116 hardcode_into_libs=yes
10117 ;;
10118
10119hpux9* | hpux10* | hpux11*)
10120 # Give a soname corresponding to the major version so that dld.sl refuses to
10121 # link against other versions.
10122 version_type=sunos
10123 need_lib_prefix=no
10124 need_version=no
10125 case $host_cpu in
10126 ia64*)
10127 shrext_cmds='.so'
10128 hardcode_into_libs=yes
10129 dynamic_linker="$host_os dld.so"
10130 shlibpath_var=LD_LIBRARY_PATH
10131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 if test "X$HPUX_IA64_MODE" = X32; then
10135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10136 else
10137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10138 fi
10139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 ;;
10141 hppa*64*)
10142 shrext_cmds='.sl'
10143 hardcode_into_libs=yes
10144 dynamic_linker="$host_os dld.sl"
10145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 ;;
10152 *)
10153 shrext_cmds='.sl'
10154 dynamic_linker="$host_os dld.sl"
10155 shlibpath_var=SHLIB_PATH
10156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 ;;
10160 esac
10161 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10162 postinstall_cmds='chmod 555 $lib'
10163 # or fails outright, so override atomically:
10164 install_override_mode=555
10165 ;;
10166
10167interix[3-9]*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 hardcode_into_libs=yes
10177 ;;
10178
10179irix5* | irix6* | nonstopux*)
10180 case $host_os in
10181 nonstopux*) version_type=nonstopux ;;
10182 *)
10183 if test "$lt_cv_prog_gnu_ld" = yes; then
10184 version_type=linux
10185 else
10186 version_type=irix
10187 fi ;;
10188 esac
10189 need_lib_prefix=no
10190 need_version=no
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 case $host_os in
10194 irix5* | nonstopux*)
10195 libsuff= shlibsuff=
10196 ;;
10197 *)
10198 case $LD in # libtool.m4 will add one of these switches to LD
10199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10200 libsuff= shlibsuff= libmagic=32-bit;;
10201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10202 libsuff=32 shlibsuff=N32 libmagic=N32;;
10203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10205 *) libsuff= shlibsuff= libmagic=never-match;;
10206 esac
10207 ;;
10208 esac
10209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10210 shlibpath_overrides_runpath=no
10211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10213 hardcode_into_libs=yes
10214 ;;
10215
10216# No shared lib support for Linux oldld, aout, or coff.
10217linux*oldld* | linux*aout* | linux*coff*)
10218 dynamic_linker=no
10219 ;;
10220
10221# This must be Linux ELF.
10222linux* | k*bsd*-gnu | kopensolaris*-gnu)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=no
10231
10232 # Some binutils ld are patched to set DT_RUNPATH
10233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235else
10236 lt_cv_shlibpath_overrides_runpath=no
10237 save_LDFLAGS=$LDFLAGS
10238 save_libdir=$libdir
10239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h. */
10243
10244int
10245main ()
10246{
10247
10248 ;
10249 return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"; then :
10253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10254 lt_cv_shlibpath_overrides_runpath=yes
10255fi
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LDFLAGS=$save_LDFLAGS
10260 libdir=$save_libdir
10261
10262fi
10263
10264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10265
10266 # This implies no fast_install, which is unacceptable.
10267 # Some rework will be needed to allow for fast_install
10268 # before this can be enabled.
10269 hardcode_into_libs=yes
10270
10271 # Append ld.so.conf contents to the search path
10272 if test -f /etc/ld.so.conf; then
10273 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10275 fi
10276
10277 # We used to test for /lib/ld.so.1 and disable shared libraries on
10278 # powerpc, because MkLinux only supported shared libraries with the
10279 # GNU dynamic linker. Since this was broken with cross compilers,
10280 # most powerpc-linux boxes support dynamic linking these days and
10281 # people can always --disable-shared, the test was removed, and we
10282 # assume the GNU/Linux dynamic linker is in use.
10283 dynamic_linker='GNU/Linux ld.so'
10284 ;;
10285
10286netbsdelf*-gnu)
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=no
10294 hardcode_into_libs=yes
10295 dynamic_linker='NetBSD ld.elf_so'
10296 ;;
10297
10298netbsd*)
10299 version_type=sunos
10300 need_lib_prefix=no
10301 need_version=no
10302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305 dynamic_linker='NetBSD (a.out) ld.so'
10306 else
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 dynamic_linker='NetBSD ld.elf_so'
10310 fi
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 ;;
10315
10316newsos6)
10317 version_type=linux
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 ;;
10322
10323*nto* | *qnx*)
10324 version_type=qnx
10325 need_lib_prefix=no
10326 need_version=no
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=no
10331 hardcode_into_libs=yes
10332 dynamic_linker='ldqnx.so'
10333 ;;
10334
10335openbsd*)
10336 version_type=sunos
10337 sys_lib_dlsearch_path_spec="/usr/lib"
10338 need_lib_prefix=no
10339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10340 case $host_os in
10341 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10342 *) need_version=no ;;
10343 esac
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10348 case $host_os in
10349 openbsd2.[89] | openbsd2.[89].*)
10350 shlibpath_overrides_runpath=no
10351 ;;
10352 *)
10353 shlibpath_overrides_runpath=yes
10354 ;;
10355 esac
10356 else
10357 shlibpath_overrides_runpath=yes
10358 fi
10359 ;;
10360
10361os2*)
10362 libname_spec='$name'
10363 shrext_cmds=".dll"
10364 need_lib_prefix=no
10365 library_names_spec='$libname${shared_ext} $libname.a'
10366 dynamic_linker='OS/2 ld.exe'
10367 shlibpath_var=LIBPATH
10368 ;;
10369
10370osf3* | osf4* | osf5*)
10371 version_type=osf
10372 need_lib_prefix=no
10373 need_version=no
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10379 ;;
10380
10381rdos*)
10382 dynamic_linker=no
10383 ;;
10384
10385solaris*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10394 # ldd complains unless libraries are executable
10395 postinstall_cmds='chmod +x $lib'
10396 ;;
10397
10398sunos4*)
10399 version_type=sunos
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=yes
10404 if test "$with_gnu_ld" = yes; then
10405 need_lib_prefix=no
10406 fi
10407 need_version=yes
10408 ;;
10409
10410sysv4 | sysv4.3*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 case $host_vendor in
10416 sni)
10417 shlibpath_overrides_runpath=no
10418 need_lib_prefix=no
10419 runpath_var=LD_RUN_PATH
10420 ;;
10421 siemens)
10422 need_lib_prefix=no
10423 ;;
10424 motorola)
10425 need_lib_prefix=no
10426 need_version=no
10427 shlibpath_overrides_runpath=no
10428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10429 ;;
10430 esac
10431 ;;
10432
10433sysv4*MP*)
10434 if test -d /usr/nec ;then
10435 version_type=linux
10436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10437 soname_spec='$libname${shared_ext}.$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 fi
10440 ;;
10441
10442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10443 version_type=freebsd-elf
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=yes
10450 hardcode_into_libs=yes
10451 if test "$with_gnu_ld" = yes; then
10452 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10453 else
10454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10455 case $host_os in
10456 sco3.2v5*)
10457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10458 ;;
10459 esac
10460 fi
10461 sys_lib_dlsearch_path_spec='/usr/lib'
10462 ;;
10463
10464tpf*)
10465 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474
10475uts4*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 ;;
10481
10482*)
10483 dynamic_linker=no
10484 ;;
10485esac
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10487$as_echo "$dynamic_linker" >&6; }
10488test "$dynamic_linker" = no && can_build_shared=no
10489
10490variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10491if test "$GCC" = yes; then
10492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10493fi
10494
10495if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10496 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10497fi
10498if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10499 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10500fi
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10594$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10595hardcode_action=
10596if test -n "$hardcode_libdir_flag_spec" ||
10597 test -n "$runpath_var" ||
10598 test "X$hardcode_automatic" = "Xyes" ; then
10599
10600 # We can hardcode non-existent directories.
10601 if test "$hardcode_direct" != no &&
10602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10603 # have to relink, otherwise we might link with an installed library
10604 # when we should be linking with a yet-to-be-installed one
10605 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10606 test "$hardcode_minus_L" != no; then
10607 # Linking always hardcodes the temporary library directory.
10608 hardcode_action=relink
10609 else
10610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10611 hardcode_action=immediate
10612 fi
10613else
10614 # We cannot hardcode anything, or else we can only hardcode existing
10615 # directories.
10616 hardcode_action=unsupported
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10619$as_echo "$hardcode_action" >&6; }
10620
10621if test "$hardcode_action" = relink ||
10622 test "$inherit_rpath" = yes; then
10623 # Fast installation is not supported
10624 enable_fast_install=no
10625elif test "$shlibpath_overrides_runpath" = yes ||
10626 test "$enable_shared" = no; then
10627 # Fast installation is not necessary
10628 enable_fast_install=needless
10629fi
10630
10631
10632
10633
10634
10635
10636 if test "x$enable_dlopen" != xyes; then
10637 enable_dlopen=unknown
10638 enable_dlopen_self=unknown
10639 enable_dlopen_self_static=unknown
10640else
10641 lt_cv_dlopen=no
10642 lt_cv_dlopen_libs=
10643
10644 case $host_os in
10645 beos*)
10646 lt_cv_dlopen="load_add_on"
10647 lt_cv_dlopen_libs=
10648 lt_cv_dlopen_self=yes
10649 ;;
10650
10651 mingw* | pw32* | cegcc*)
10652 lt_cv_dlopen="LoadLibrary"
10653 lt_cv_dlopen_libs=
10654 ;;
10655
10656 cygwin*)
10657 lt_cv_dlopen="dlopen"
10658 lt_cv_dlopen_libs=
10659 ;;
10660
10661 darwin*)
10662 # if libdl is installed we need to link against it
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10664$as_echo_n "checking for dlopen in -ldl... " >&6; }
10665if ${ac_cv_lib_dl_dlopen+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667else
10668 ac_check_lib_save_LIBS=$LIBS
10669LIBS="-ldl $LIBS"
10670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h. */
10672
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
10679char dlopen ();
10680int
10681main ()
10682{
10683return dlopen ();
10684 ;
10685 return 0;
10686}
10687_ACEOF
10688if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dl_dlopen=yes
10690else
10691 ac_cv_lib_dl_dlopen=no
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10698$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701else
10702
10703 lt_cv_dlopen="dyld"
10704 lt_cv_dlopen_libs=
10705 lt_cv_dlopen_self=yes
10706
10707fi
10708
10709 ;;
10710
10711 *)
10712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10713if test "x$ac_cv_func_shl_load" = xyes; then :
10714 lt_cv_dlopen="shl_load"
10715else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10717$as_echo_n "checking for shl_load in -ldld... " >&6; }
10718if ${ac_cv_lib_dld_shl_load+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720else
10721 ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ldld $LIBS"
10723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h. */
10725
10726/* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729#ifdef __cplusplus
10730extern "C"
10731#endif
10732char shl_load ();
10733int
10734main ()
10735{
10736return shl_load ();
10737 ;
10738 return 0;
10739}
10740_ACEOF
10741if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_dld_shl_load=yes
10743else
10744 ac_cv_lib_dld_shl_load=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748LIBS=$ac_check_lib_save_LIBS
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10751$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10752if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10753 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10754else
10755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10756if test "x$ac_cv_func_dlopen" = xyes; then :
10757 lt_cv_dlopen="dlopen"
10758else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10760$as_echo_n "checking for dlopen in -ldl... " >&6; }
10761if ${ac_cv_lib_dl_dlopen+:} false; then :
10762 $as_echo_n "(cached) " >&6
10763else
10764 ac_check_lib_save_LIBS=$LIBS
10765LIBS="-ldl $LIBS"
10766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h. */
10768
10769/* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772#ifdef __cplusplus
10773extern "C"
10774#endif
10775char dlopen ();
10776int
10777main ()
10778{
10779return dlopen ();
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_link "$LINENO"; then :
10785 ac_cv_lib_dl_dlopen=yes
10786else
10787 ac_cv_lib_dl_dlopen=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791LIBS=$ac_check_lib_save_LIBS
10792fi
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10794$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10795if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10797else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10799$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10800if ${ac_cv_lib_svld_dlopen+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802else
10803 ac_check_lib_save_LIBS=$LIBS
10804LIBS="-lsvld $LIBS"
10805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h. */
10807
10808/* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811#ifdef __cplusplus
10812extern "C"
10813#endif
10814char dlopen ();
10815int
10816main ()
10817{
10818return dlopen ();
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_svld_dlopen=yes
10825else
10826 ac_cv_lib_svld_dlopen=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830LIBS=$ac_check_lib_save_LIBS
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10833$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10834if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10836else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10838$as_echo_n "checking for dld_link in -ldld... " >&6; }
10839if ${ac_cv_lib_dld_dld_link+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841else
10842 ac_check_lib_save_LIBS=$LIBS
10843LIBS="-ldld $LIBS"
10844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h. */
10846
10847/* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850#ifdef __cplusplus
10851extern "C"
10852#endif
10853char dld_link ();
10854int
10855main ()
10856{
10857return dld_link ();
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862if ac_fn_c_try_link "$LINENO"; then :
10863 ac_cv_lib_dld_dld_link=yes
10864else
10865 ac_cv_lib_dld_dld_link=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10872$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10873if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10874 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10875fi
10876
10877
10878fi
10879
10880
10881fi
10882
10883
10884fi
10885
10886
10887fi
10888
10889
10890fi
10891
10892 ;;
10893 esac
10894
10895 if test "x$lt_cv_dlopen" != xno; then
10896 enable_dlopen=yes
10897 else
10898 enable_dlopen=no
10899 fi
10900
10901 case $lt_cv_dlopen in
10902 dlopen)
10903 save_CPPFLAGS="$CPPFLAGS"
10904 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10905
10906 save_LDFLAGS="$LDFLAGS"
10907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10908
10909 save_LIBS="$LIBS"
10910 LIBS="$lt_cv_dlopen_libs $LIBS"
10911
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10913$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10914if ${lt_cv_dlopen_self+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916else
10917 if test "$cross_compiling" = yes; then :
10918 lt_cv_dlopen_self=cross
10919else
10920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921 lt_status=$lt_dlunknown
10922 cat > conftest.$ac_ext <<_LT_EOF
10923#line $LINENO "configure"
10924#include "confdefs.h"
10925
10926#if HAVE_DLFCN_H
10927#include <dlfcn.h>
10928#endif
10929
10930#include <stdio.h>
10931
10932#ifdef RTLD_GLOBAL
10933# define LT_DLGLOBAL RTLD_GLOBAL
10934#else
10935# ifdef DL_GLOBAL
10936# define LT_DLGLOBAL DL_GLOBAL
10937# else
10938# define LT_DLGLOBAL 0
10939# endif
10940#endif
10941
10942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943 find out it does not work in some platform. */
10944#ifndef LT_DLLAZY_OR_NOW
10945# ifdef RTLD_LAZY
10946# define LT_DLLAZY_OR_NOW RTLD_LAZY
10947# else
10948# ifdef DL_LAZY
10949# define LT_DLLAZY_OR_NOW DL_LAZY
10950# else
10951# ifdef RTLD_NOW
10952# define LT_DLLAZY_OR_NOW RTLD_NOW
10953# else
10954# ifdef DL_NOW
10955# define LT_DLLAZY_OR_NOW DL_NOW
10956# else
10957# define LT_DLLAZY_OR_NOW 0
10958# endif
10959# endif
10960# endif
10961# endif
10962#endif
10963
10964/* When -fvisbility=hidden is used, assume the code has been annotated
10965 correspondingly for the symbols needed. */
10966#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10967int fnord () __attribute__((visibility("default")));
10968#endif
10969
10970int fnord () { return 42; }
10971int main ()
10972{
10973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10974 int status = $lt_dlunknown;
10975
10976 if (self)
10977 {
10978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10979 else
10980 {
10981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10982 else puts (dlerror ());
10983 }
10984 /* dlclose (self); */
10985 }
10986 else
10987 puts (dlerror ());
10988
10989 return status;
10990}
10991_LT_EOF
10992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10993 (eval $ac_link) 2>&5
10994 ac_status=$?
10995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10996 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10997 (./conftest; exit; ) >&5 2>/dev/null
10998 lt_status=$?
10999 case x$lt_status in
11000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11003 esac
11004 else :
11005 # compilation failed
11006 lt_cv_dlopen_self=no
11007 fi
11008fi
11009rm -fr conftest*
11010
11011
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11014$as_echo "$lt_cv_dlopen_self" >&6; }
11015
11016 if test "x$lt_cv_dlopen_self" = xyes; then
11017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11019$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11020if ${lt_cv_dlopen_self_static+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022else
11023 if test "$cross_compiling" = yes; then :
11024 lt_cv_dlopen_self_static=cross
11025else
11026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11027 lt_status=$lt_dlunknown
11028 cat > conftest.$ac_ext <<_LT_EOF
11029#line $LINENO "configure"
11030#include "confdefs.h"
11031
11032#if HAVE_DLFCN_H
11033#include <dlfcn.h>
11034#endif
11035
11036#include <stdio.h>
11037
11038#ifdef RTLD_GLOBAL
11039# define LT_DLGLOBAL RTLD_GLOBAL
11040#else
11041# ifdef DL_GLOBAL
11042# define LT_DLGLOBAL DL_GLOBAL
11043# else
11044# define LT_DLGLOBAL 0
11045# endif
11046#endif
11047
11048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11049 find out it does not work in some platform. */
11050#ifndef LT_DLLAZY_OR_NOW
11051# ifdef RTLD_LAZY
11052# define LT_DLLAZY_OR_NOW RTLD_LAZY
11053# else
11054# ifdef DL_LAZY
11055# define LT_DLLAZY_OR_NOW DL_LAZY
11056# else
11057# ifdef RTLD_NOW
11058# define LT_DLLAZY_OR_NOW RTLD_NOW
11059# else
11060# ifdef DL_NOW
11061# define LT_DLLAZY_OR_NOW DL_NOW
11062# else
11063# define LT_DLLAZY_OR_NOW 0
11064# endif
11065# endif
11066# endif
11067# endif
11068#endif
11069
11070/* When -fvisbility=hidden is used, assume the code has been annotated
11071 correspondingly for the symbols needed. */
11072#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11073int fnord () __attribute__((visibility("default")));
11074#endif
11075
11076int fnord () { return 42; }
11077int main ()
11078{
11079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11080 int status = $lt_dlunknown;
11081
11082 if (self)
11083 {
11084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11085 else
11086 {
11087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11088 else puts (dlerror ());
11089 }
11090 /* dlclose (self); */
11091 }
11092 else
11093 puts (dlerror ());
11094
11095 return status;
11096}
11097_LT_EOF
11098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11099 (eval $ac_link) 2>&5
11100 ac_status=$?
11101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11103 (./conftest; exit; ) >&5 2>/dev/null
11104 lt_status=$?
11105 case x$lt_status in
11106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11109 esac
11110 else :
11111 # compilation failed
11112 lt_cv_dlopen_self_static=no
11113 fi
11114fi
11115rm -fr conftest*
11116
11117
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11120$as_echo "$lt_cv_dlopen_self_static" >&6; }
11121 fi
11122
11123 CPPFLAGS="$save_CPPFLAGS"
11124 LDFLAGS="$save_LDFLAGS"
11125 LIBS="$save_LIBS"
11126 ;;
11127 esac
11128
11129 case $lt_cv_dlopen_self in
11130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11131 *) enable_dlopen_self=unknown ;;
11132 esac
11133
11134 case $lt_cv_dlopen_self_static in
11135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11136 *) enable_dlopen_self_static=unknown ;;
11137 esac
11138fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156striplib=
11157old_striplib=
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11159$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11160if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164$as_echo "yes" >&6; }
11165else
11166# FIXME - insert some real tests, host_os isn't really good enough
11167 case $host_os in
11168 darwin*)
11169 if test -n "$STRIP" ; then
11170 striplib="$STRIP -x"
11171 old_striplib="$STRIP -S"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173$as_echo "yes" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
11177 fi
11178 ;;
11179 *)
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182 ;;
11183 esac
11184fi
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197 # Report which library types will actually be built
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11199$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11201$as_echo "$can_build_shared" >&6; }
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11204$as_echo_n "checking whether to build shared libraries... " >&6; }
11205 test "$can_build_shared" = "no" && enable_shared=no
11206
11207 # On AIX, shared libraries and static libraries use the same namespace, and
11208 # are all built from PIC.
11209 case $host_os in
11210 aix3*)
11211 test "$enable_shared" = yes && enable_static=no
11212 if test -n "$RANLIB"; then
11213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11214 postinstall_cmds='$RANLIB $lib'
11215 fi
11216 ;;
11217
11218 aix[4-9]*)
11219 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11220 test "$enable_shared" = yes && enable_static=no
11221 fi
11222 ;;
11223 esac
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11225$as_echo "$enable_shared" >&6; }
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11228$as_echo_n "checking whether to build static libraries... " >&6; }
11229 # Make sure either enable_shared or enable_static is yes.
11230 test "$enable_shared" = yes || enable_static=yes
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11232$as_echo "$enable_static" >&6; }
11233
11234
11235
11236
11237fi
11238ac_ext=c
11239ac_cpp='$CPP $CPPFLAGS'
11240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243
11244CC="$lt_save_CC"
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258 ac_config_commands="$ac_config_commands libtool"
11259
11260
11261
11262
11263# Only expand once:
11264
11265
11266
11267if test "x$CC" != xcc; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11269$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11270else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11272$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11273fi
11274set dummy $CC; ac_cc=`$as_echo "$2" |
11275 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11276if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h. */
11281
11282int
11283main ()
11284{
11285
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290# Make sure it works both with $CC and with simple cc.
11291# We do the test twice because some compilers refuse to overwrite an
11292# existing .o file with -o, though they will create one.
11293ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11294rm -f conftest2.*
11295if { { case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298esac
11299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11300$as_echo "$ac_try_echo"; } >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; } &&
11305 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11310$as_echo "$ac_try_echo"; } >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; };
11315then
11316 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11317 if test "x$CC" != xcc; then
11318 # Test first that cc exists at all.
11319 if { ac_try='cc -c conftest.$ac_ext >&5'
11320 { { case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323esac
11324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11325$as_echo "$ac_try_echo"; } >&5
11326 (eval "$ac_try") 2>&5
11327 ac_status=$?
11328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11329 test $ac_status = 0; }; }; then
11330 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11331 rm -f conftest2.*
11332 if { { case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11337$as_echo "$ac_try_echo"; } >&5
11338 (eval "$ac_try") 2>&5
11339 ac_status=$?
11340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341 test $ac_status = 0; } &&
11342 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345esac
11346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11347$as_echo "$ac_try_echo"; } >&5
11348 (eval "$ac_try") 2>&5
11349 ac_status=$?
11350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; };
11352 then
11353 # cc works too.
11354 :
11355 else
11356 # cc exists but doesn't like -o.
11357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11358 fi
11359 fi
11360 fi
11361else
11362 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11363fi
11364rm -f core conftest*
11365
11366fi
11367if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
11370else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373
11374$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11375
11376fi
11377
11378# FIXME: we rely on the cache variable name because
11379# there is no other way.
11380set dummy $CC
11381am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11382eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11383if test "$am_t" != yes; then
11384 # Losing compiler, so override with the script.
11385 # FIXME: It is wrong to rewrite CC.
11386 # But if we don't then we get into trouble of one sort or another.
11387 # A longer-term fix would be to have automake use am__CC in this case,
11388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11389 CC="$am_aux_dir/compile $CC"
11390fi
11391
11392
11393
11394# Work around stupid autoconf default cflags. pt 2
11395if test "$SAVE_CFLAGS" = "x"; then
11396 CFLAGS=""
11397fi
11398
11399# Extract the first word of "rpcgen", so it can be a program name with args.
11400set dummy rpcgen; ac_word=$2
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if ${ac_cv_prog_HAVE_RPCGEN+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405else
11406 if test -n "$HAVE_RPCGEN"; then
11407 ac_cv_prog_HAVE_RPCGEN="$HAVE_RPCGEN" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_prog_HAVE_RPCGEN="yes"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420done
11421 done
11422IFS=$as_save_IFS
11423
11424 test -z "$ac_cv_prog_HAVE_RPCGEN" && ac_cv_prog_HAVE_RPCGEN="no"
11425fi
11426fi
11427HAVE_RPCGEN=$ac_cv_prog_HAVE_RPCGEN
11428if test -n "$HAVE_RPCGEN"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPCGEN" >&5
11430$as_echo "$HAVE_RPCGEN" >&6; }
11431else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433$as_echo "no" >&6; }
11434fi
11435
11436
11437if test x$HAVE_RPCGEN != xyes; then
11438 as_fn_error $? "Can not find required program" "$LINENO" 5
11439fi
11440
11441#option: examples
11442# Check whether --enable-examples was given.
11443if test "${enable_examples+set}" = set; then :
11444 enableval=$enable_examples; ENABLE_EXAMPLES=$enableval
11445else
11446 ENABLE_EXAMPLES="no"
11447fi
11448
11449
11450if test x$ENABLE_EXAMPLES = xyes; then
11451 MAYBE_EXAMPLES="examples"
11452fi
11453
11454
3be27335
AM
11455# Check whether --enable-tirpc was given.
11456if test "${enable_tirpc+set}" = set; then :
11457 enableval=$enable_tirpc; enable_tirpc=$enableval
11458else
11459 enable_tirpc='no'
11460fi
11461
11462
dabf4152
AM
11463case $host in
11464 *darwin*)
11465 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11466 ;;
3be27335
AM
11467 *cygwin*)
11468 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11469 ;;
dabf4152
AM
11470 *solaris*)
11471 for ac_header in sys/filio.h
11472do :
11473 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11474if test "x$ac_cv_header_sys_filio_h" = xyes; then :
11475 cat >>confdefs.h <<_ACEOF
11476#define HAVE_SYS_FILIO_H 1
11477_ACEOF
11478
11479fi
11480
11481done
11482
11483 if test x$ENABLE_EXAMPLES = xyes; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11485$as_echo_n "checking for main in -lsocket... " >&6; }
11486if ${ac_cv_lib_socket_main+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488else
11489 ac_check_lib_save_LIBS=$LIBS
11490LIBS="-lsocket $LIBS"
11491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493
11494
11495int
11496main ()
11497{
11498return main ();
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_socket_main=yes
11505else
11506 ac_cv_lib_socket_main=no
11507fi
11508rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510LIBS=$ac_check_lib_save_LIBS
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11513$as_echo "$ac_cv_lib_socket_main" >&6; }
11514if test "x$ac_cv_lib_socket_main" = xyes; then :
11515 cat >>confdefs.h <<_ACEOF
11516#define HAVE_LIBSOCKET 1
11517_ACEOF
11518
11519 LIBS="-lsocket $LIBS"
11520
11521else
11522 as_fn_error $? "Can not find required library" "$LINENO" 5
11523fi
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11526$as_echo_n "checking for main in -lnsl... " >&6; }
11527if ${ac_cv_lib_nsl_main+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529else
11530 ac_check_lib_save_LIBS=$LIBS
11531LIBS="-lnsl $LIBS"
11532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533/* end confdefs.h. */
11534
11535
11536int
11537main ()
11538{
11539return main ();
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_nsl_main=yes
11546else
11547 ac_cv_lib_nsl_main=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11554$as_echo "$ac_cv_lib_nsl_main" >&6; }
11555if test "x$ac_cv_lib_nsl_main" = xyes; then :
11556 cat >>confdefs.h <<_ACEOF
11557#define HAVE_LIBNSL 1
11558_ACEOF
11559
11560 LIBS="-lnsl $LIBS"
11561
11562else
11563 as_fn_error $? "Can not find required library" "$LINENO" 5
11564fi
11565
11566 fi
11567 ;;
11568 *)
11569 ;;
11570esac
11571
11572
11573
11574# check for SA_LEN
11575ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11576#include <sys/types.h>
11577#include <sys/socket.h>
11578
11579"
11580if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11581
11582$as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
11583
11584fi
11585
11586
3be27335
AM
11587echo "Use TI-RPC: $enable_tirpc"
11588if test "$enable_tirpc" = "yes"; then
11589 CFLAGS="${CFLAGS} -I /usr/include/tirpc"
11590 LDFLAGS="${LDFLAGS} -ltirpc"
11591fi
11592
dabf4152
AM
11593#output
11594ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
11595
11596
11597cat >confcache <<\_ACEOF
11598# This file is a shell script that caches the results of configure
11599# tests run on this system so they can be shared between configure
11600# scripts and configure runs, see configure's option --config-cache.
11601# It is not useful on other systems. If it contains results you don't
11602# want to keep, you may remove or edit it.
11603#
11604# config.status only pays attention to the cache file if you give it
11605# the --recheck option to rerun configure.
11606#
11607# `ac_cv_env_foo' variables (set or unset) will be overridden when
11608# loading this file, other *unset* `ac_cv_foo' will be assigned the
11609# following values.
11610
11611_ACEOF
11612
11613# The following way of writing the cache mishandles newlines in values,
11614# but we know of no workaround that is simple, portable, and efficient.
11615# So, we kill variables containing newlines.
11616# Ultrix sh set writes to stderr and can't be redirected directly,
11617# and sets the high bit in the cache file unless we assign to the vars.
11618(
11619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11620 eval ac_val=\$$ac_var
11621 case $ac_val in #(
11622 *${as_nl}*)
11623 case $ac_var in #(
11624 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11625$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11626 esac
11627 case $ac_var in #(
11628 _ | IFS | as_nl) ;; #(
11629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11630 *) { eval $ac_var=; unset $ac_var;} ;;
11631 esac ;;
11632 esac
11633 done
11634
11635 (set) 2>&1 |
11636 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11637 *${as_nl}ac_space=\ *)
11638 # `set' does not quote correctly, so add quotes: double-quote
11639 # substitution turns \\\\ into \\, and sed turns \\ into \.
11640 sed -n \
11641 "s/'/'\\\\''/g;
11642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11643 ;; #(
11644 *)
11645 # `set' quotes correctly as required by POSIX, so do not add quotes.
11646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11647 ;;
11648 esac |
11649 sort
11650) |
11651 sed '
11652 /^ac_cv_env_/b end
11653 t clear
11654 :clear
11655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11656 t end
11657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11658 :end' >>confcache
11659if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11660 if test -w "$cache_file"; then
11661 if test "x$cache_file" != "x/dev/null"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11663$as_echo "$as_me: updating cache $cache_file" >&6;}
11664 if test ! -f "$cache_file" || test -h "$cache_file"; then
11665 cat confcache >"$cache_file"
11666 else
11667 case $cache_file in #(
11668 */* | ?:*)
11669 mv -f confcache "$cache_file"$$ &&
11670 mv -f "$cache_file"$$ "$cache_file" ;; #(
11671 *)
11672 mv -f confcache "$cache_file" ;;
11673 esac
11674 fi
11675 fi
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11678$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11679 fi
11680fi
11681rm -f confcache
11682
11683test "x$prefix" = xNONE && prefix=$ac_default_prefix
11684# Let make expand exec_prefix.
11685test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11686
11687DEFS=-DHAVE_CONFIG_H
11688
11689ac_libobjs=
11690ac_ltlibobjs=
11691U=
11692for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11693 # 1. Remove the extension, and $U if already installed.
11694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11697 # will be set to the directory where LIBOBJS objects are built.
11698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11700done
11701LIBOBJS=$ac_libobjs
11702
11703LTLIBOBJS=$ac_ltlibobjs
11704
11705
11706 if test -n "$EXEEXT"; then
11707 am__EXEEXT_TRUE=
11708 am__EXEEXT_FALSE='#'
11709else
11710 am__EXEEXT_TRUE='#'
11711 am__EXEEXT_FALSE=
11712fi
11713
11714if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11715 as_fn_error $? "conditional \"AMDEP\" was never defined.
11716Usually this means the macro was only invoked conditionally." "$LINENO" 5
11717fi
11718if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11720Usually this means the macro was only invoked conditionally." "$LINENO" 5
11721fi
11722
11723: "${CONFIG_STATUS=./config.status}"
11724ac_write_fail=0
11725ac_clean_files_save=$ac_clean_files
11726ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11728$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11729as_write_fail=0
11730cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11731#! $SHELL
11732# Generated by $as_me.
11733# Run this file to recreate the current configuration.
11734# Compiler output produced by configure, useful for debugging
11735# configure, is in config.log if it exists.
11736
11737debug=false
11738ac_cs_recheck=false
11739ac_cs_silent=false
11740
11741SHELL=\${CONFIG_SHELL-$SHELL}
11742export SHELL
11743_ASEOF
11744cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11745## -------------------- ##
11746## M4sh Initialization. ##
11747## -------------------- ##
11748
11749# Be more Bourne compatible
11750DUALCASE=1; export DUALCASE # for MKS sh
11751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11752 emulate sh
11753 NULLCMD=:
11754 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11755 # is contrary to our usage. Disable this feature.
11756 alias -g '${1+"$@"}'='"$@"'
11757 setopt NO_GLOB_SUBST
11758else
11759 case `(set -o) 2>/dev/null` in #(
11760 *posix*) :
11761 set -o posix ;; #(
11762 *) :
11763 ;;
11764esac
11765fi
11766
11767
11768as_nl='
11769'
11770export as_nl
11771# Printing a long string crashes Solaris 7 /usr/bin/printf.
11772as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11773as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11774as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11775# Prefer a ksh shell builtin over an external printf program on Solaris,
11776# but without wasting forks for bash or zsh.
11777if test -z "$BASH_VERSION$ZSH_VERSION" \
11778 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11779 as_echo='print -r --'
11780 as_echo_n='print -rn --'
11781elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11782 as_echo='printf %s\n'
11783 as_echo_n='printf %s'
11784else
11785 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11786 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11787 as_echo_n='/usr/ucb/echo -n'
11788 else
11789 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11790 as_echo_n_body='eval
11791 arg=$1;
11792 case $arg in #(
11793 *"$as_nl"*)
11794 expr "X$arg" : "X\\(.*\\)$as_nl";
11795 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11796 esac;
11797 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11798 '
11799 export as_echo_n_body
11800 as_echo_n='sh -c $as_echo_n_body as_echo'
11801 fi
11802 export as_echo_body
11803 as_echo='sh -c $as_echo_body as_echo'
11804fi
11805
11806# The user is always right.
11807if test "${PATH_SEPARATOR+set}" != set; then
11808 PATH_SEPARATOR=:
11809 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11810 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11811 PATH_SEPARATOR=';'
11812 }
11813fi
11814
11815
11816# IFS
11817# We need space, tab and new line, in precisely that order. Quoting is
11818# there to prevent editors from complaining about space-tab.
11819# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11820# splitting by setting IFS to empty value.)
11821IFS=" "" $as_nl"
11822
11823# Find who we are. Look in the path if we contain no directory separator.
11824as_myself=
11825case $0 in #((
11826 *[\\/]* ) as_myself=$0 ;;
11827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828for as_dir in $PATH
11829do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11833 done
11834IFS=$as_save_IFS
11835
11836 ;;
11837esac
11838# We did not find ourselves, most probably we were run as `sh COMMAND'
11839# in which case we are not to be found in the path.
11840if test "x$as_myself" = x; then
11841 as_myself=$0
11842fi
11843if test ! -f "$as_myself"; then
11844 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11845 exit 1
11846fi
11847
11848# Unset variables that we do not need and which cause bugs (e.g. in
11849# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11850# suppresses any "Segmentation fault" message there. '((' could
11851# trigger a bug in pdksh 5.2.14.
11852for as_var in BASH_ENV ENV MAIL MAILPATH
11853do eval test x\${$as_var+set} = xset \
11854 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11855done
11856PS1='$ '
11857PS2='> '
11858PS4='+ '
11859
11860# NLS nuisances.
11861LC_ALL=C
11862export LC_ALL
11863LANGUAGE=C
11864export LANGUAGE
11865
11866# CDPATH.
11867(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11868
11869
11870# as_fn_error STATUS ERROR [LINENO LOG_FD]
11871# ----------------------------------------
11872# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11873# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11874# script with STATUS, using 1 if that was 0.
11875as_fn_error ()
11876{
11877 as_status=$1; test $as_status -eq 0 && as_status=1
11878 if test "$4"; then
11879 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11880 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11881 fi
11882 $as_echo "$as_me: error: $2" >&2
11883 as_fn_exit $as_status
11884} # as_fn_error
11885
11886
11887# as_fn_set_status STATUS
11888# -----------------------
11889# Set $? to STATUS, without forking.
11890as_fn_set_status ()
11891{
11892 return $1
11893} # as_fn_set_status
11894
11895# as_fn_exit STATUS
11896# -----------------
11897# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11898as_fn_exit ()
11899{
11900 set +e
11901 as_fn_set_status $1
11902 exit $1
11903} # as_fn_exit
11904
11905# as_fn_unset VAR
11906# ---------------
11907# Portably unset VAR.
11908as_fn_unset ()
11909{
11910 { eval $1=; unset $1;}
11911}
11912as_unset=as_fn_unset
11913# as_fn_append VAR VALUE
11914# ----------------------
11915# Append the text in VALUE to the end of the definition contained in VAR. Take
11916# advantage of any shell optimizations that allow amortized linear growth over
11917# repeated appends, instead of the typical quadratic growth present in naive
11918# implementations.
11919if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11920 eval 'as_fn_append ()
11921 {
11922 eval $1+=\$2
11923 }'
11924else
11925 as_fn_append ()
11926 {
11927 eval $1=\$$1\$2
11928 }
11929fi # as_fn_append
11930
11931# as_fn_arith ARG...
11932# ------------------
11933# Perform arithmetic evaluation on the ARGs, and store the result in the
11934# global $as_val. Take advantage of shells that can avoid forks. The arguments
11935# must be portable across $(()) and expr.
11936if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11937 eval 'as_fn_arith ()
11938 {
11939 as_val=$(( $* ))
11940 }'
11941else
11942 as_fn_arith ()
11943 {
11944 as_val=`expr "$@" || test $? -eq 1`
11945 }
11946fi # as_fn_arith
11947
11948
11949if expr a : '\(a\)' >/dev/null 2>&1 &&
11950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11951 as_expr=expr
11952else
11953 as_expr=false
11954fi
11955
11956if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11957 as_basename=basename
11958else
11959 as_basename=false
11960fi
11961
11962if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11963 as_dirname=dirname
11964else
11965 as_dirname=false
11966fi
11967
11968as_me=`$as_basename -- "$0" ||
11969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11970 X"$0" : 'X\(//\)$' \| \
11971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11972$as_echo X/"$0" |
11973 sed '/^.*\/\([^/][^/]*\)\/*$/{
11974 s//\1/
11975 q
11976 }
11977 /^X\/\(\/\/\)$/{
11978 s//\1/
11979 q
11980 }
11981 /^X\/\(\/\).*/{
11982 s//\1/
11983 q
11984 }
11985 s/.*/./; q'`
11986
11987# Avoid depending upon Character Ranges.
11988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11991as_cr_digits='0123456789'
11992as_cr_alnum=$as_cr_Letters$as_cr_digits
11993
11994ECHO_C= ECHO_N= ECHO_T=
11995case `echo -n x` in #(((((
11996-n*)
11997 case `echo 'xy\c'` in
11998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11999 xy) ECHO_C='\c';;
12000 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12001 ECHO_T=' ';;
12002 esac;;
12003*)
12004 ECHO_N='-n';;
12005esac
12006
12007rm -f conf$$ conf$$.exe conf$$.file
12008if test -d conf$$.dir; then
12009 rm -f conf$$.dir/conf$$.file
12010else
12011 rm -f conf$$.dir
12012 mkdir conf$$.dir 2>/dev/null
12013fi
12014if (echo >conf$$.file) 2>/dev/null; then
12015 if ln -s conf$$.file conf$$ 2>/dev/null; then
12016 as_ln_s='ln -s'
12017 # ... but there are two gotchas:
12018 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12019 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12020 # In both cases, we have to default to `cp -p'.
12021 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12022 as_ln_s='cp -p'
12023 elif ln conf$$.file conf$$ 2>/dev/null; then
12024 as_ln_s=ln
12025 else
12026 as_ln_s='cp -p'
12027 fi
12028else
12029 as_ln_s='cp -p'
12030fi
12031rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12032rmdir conf$$.dir 2>/dev/null
12033
12034
12035# as_fn_mkdir_p
12036# -------------
12037# Create "$as_dir" as a directory, including parents if necessary.
12038as_fn_mkdir_p ()
12039{
12040
12041 case $as_dir in #(
12042 -*) as_dir=./$as_dir;;
12043 esac
12044 test -d "$as_dir" || eval $as_mkdir_p || {
12045 as_dirs=
12046 while :; do
12047 case $as_dir in #(
12048 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12049 *) as_qdir=$as_dir;;
12050 esac
12051 as_dirs="'$as_qdir' $as_dirs"
12052 as_dir=`$as_dirname -- "$as_dir" ||
12053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054 X"$as_dir" : 'X\(//\)[^/]' \| \
12055 X"$as_dir" : 'X\(//\)$' \| \
12056 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12057$as_echo X"$as_dir" |
12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)[^/].*/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)$/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\).*/{
12071 s//\1/
12072 q
12073 }
12074 s/.*/./; q'`
12075 test -d "$as_dir" && break
12076 done
12077 test -z "$as_dirs" || eval "mkdir $as_dirs"
12078 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12079
12080
12081} # as_fn_mkdir_p
12082if mkdir -p . 2>/dev/null; then
12083 as_mkdir_p='mkdir -p "$as_dir"'
12084else
12085 test -d ./-p && rmdir ./-p
12086 as_mkdir_p=false
12087fi
12088
12089if test -x / >/dev/null 2>&1; then
12090 as_test_x='test -x'
12091else
12092 if ls -dL / >/dev/null 2>&1; then
12093 as_ls_L_option=L
12094 else
12095 as_ls_L_option=
12096 fi
12097 as_test_x='
12098 eval sh -c '\''
12099 if test -d "$1"; then
12100 test -d "$1/.";
12101 else
12102 case $1 in #(
12103 -*)set "./$1";;
12104 esac;
12105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12106 ???[sx]*):;;*)false;;esac;fi
12107 '\'' sh
12108 '
12109fi
12110as_executable_p=$as_test_x
12111
12112# Sed expression to map a string onto a valid CPP name.
12113as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12114
12115# Sed expression to map a string onto a valid variable name.
12116as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12117
12118
12119exec 6>&1
12120## ----------------------------------- ##
12121## Main body of $CONFIG_STATUS script. ##
12122## ----------------------------------- ##
12123_ASEOF
12124test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12125
12126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12127# Save the log message, to keep $0 and so on meaningful, and to
12128# report actual input values of CONFIG_FILES etc. instead of their
12129# values after options handling.
12130ac_log="
12131This file was extended by libnfs $as_me 0.0.0, which was
12132generated by GNU Autoconf 2.68. Invocation command line was
12133
12134 CONFIG_FILES = $CONFIG_FILES
12135 CONFIG_HEADERS = $CONFIG_HEADERS
12136 CONFIG_LINKS = $CONFIG_LINKS
12137 CONFIG_COMMANDS = $CONFIG_COMMANDS
12138 $ $0 $@
12139
12140on `(hostname || uname -n) 2>/dev/null | sed 1q`
12141"
12142
12143_ACEOF
12144
12145case $ac_config_files in *"
12146"*) set x $ac_config_files; shift; ac_config_files=$*;;
12147esac
12148
12149case $ac_config_headers in *"
12150"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12151esac
12152
12153
12154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12155# Files that config.status was made for.
12156config_files="$ac_config_files"
12157config_headers="$ac_config_headers"
12158config_commands="$ac_config_commands"
12159
12160_ACEOF
12161
12162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163ac_cs_usage="\
12164\`$as_me' instantiates files and other configuration actions
12165from templates according to the current configuration. Unless the files
12166and actions are specified as TAGs, all are instantiated by default.
12167
12168Usage: $0 [OPTION]... [TAG]...
12169
12170 -h, --help print this help, then exit
12171 -V, --version print version number and configuration settings, then exit
12172 --config print configuration, then exit
12173 -q, --quiet, --silent
12174 do not print progress messages
12175 -d, --debug don't remove temporary files
12176 --recheck update $as_me by reconfiguring in the same conditions
12177 --file=FILE[:TEMPLATE]
12178 instantiate the configuration file FILE
12179 --header=FILE[:TEMPLATE]
12180 instantiate the configuration header FILE
12181
12182Configuration files:
12183$config_files
12184
12185Configuration headers:
12186$config_headers
12187
12188Configuration commands:
12189$config_commands
12190
12191Report bugs to the package provider."
12192
12193_ACEOF
12194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12196ac_cs_version="\\
12197libnfs config.status 0.0.0
12198configured by $0, generated by GNU Autoconf 2.68,
12199 with options \\"\$ac_cs_config\\"
12200
12201Copyright (C) 2010 Free Software Foundation, Inc.
12202This config.status script is free software; the Free Software Foundation
12203gives unlimited permission to copy, distribute and modify it."
12204
12205ac_pwd='$ac_pwd'
12206srcdir='$srcdir'
12207INSTALL='$INSTALL'
12208MKDIR_P='$MKDIR_P'
12209AWK='$AWK'
12210test -n "\$AWK" || AWK=awk
12211_ACEOF
12212
12213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12214# The default lists apply if the user does not specify any file.
12215ac_need_defaults=:
12216while test $# != 0
12217do
12218 case $1 in
12219 --*=?*)
12220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12222 ac_shift=:
12223 ;;
12224 --*=)
12225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12226 ac_optarg=
12227 ac_shift=:
12228 ;;
12229 *)
12230 ac_option=$1
12231 ac_optarg=$2
12232 ac_shift=shift
12233 ;;
12234 esac
12235
12236 case $ac_option in
12237 # Handling of the options.
12238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12239 ac_cs_recheck=: ;;
12240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12241 $as_echo "$ac_cs_version"; exit ;;
12242 --config | --confi | --conf | --con | --co | --c )
12243 $as_echo "$ac_cs_config"; exit ;;
12244 --debug | --debu | --deb | --de | --d | -d )
12245 debug=: ;;
12246 --file | --fil | --fi | --f )
12247 $ac_shift
12248 case $ac_optarg in
12249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12250 '') as_fn_error $? "missing file argument" ;;
12251 esac
12252 as_fn_append CONFIG_FILES " '$ac_optarg'"
12253 ac_need_defaults=false;;
12254 --header | --heade | --head | --hea )
12255 $ac_shift
12256 case $ac_optarg in
12257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12258 esac
12259 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12260 ac_need_defaults=false;;
12261 --he | --h)
12262 # Conflict between --help and --header
12263 as_fn_error $? "ambiguous option: \`$1'
12264Try \`$0 --help' for more information.";;
12265 --help | --hel | -h )
12266 $as_echo "$ac_cs_usage"; exit ;;
12267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12269 ac_cs_silent=: ;;
12270
12271 # This is an error.
12272 -*) as_fn_error $? "unrecognized option: \`$1'
12273Try \`$0 --help' for more information." ;;
12274
12275 *) as_fn_append ac_config_targets " $1"
12276 ac_need_defaults=false ;;
12277
12278 esac
12279 shift
12280done
12281
12282ac_configure_extra_args=
12283
12284if $ac_cs_silent; then
12285 exec 6>/dev/null
12286 ac_configure_extra_args="$ac_configure_extra_args --silent"
12287fi
12288
12289_ACEOF
12290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12291if \$ac_cs_recheck; then
12292 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12293 shift
12294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12295 CONFIG_SHELL='$SHELL'
12296 export CONFIG_SHELL
12297 exec "\$@"
12298fi
12299
12300_ACEOF
12301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12302exec 5>>config.log
12303{
12304 echo
12305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12306## Running $as_me. ##
12307_ASBOX
12308 $as_echo "$ac_log"
12309} >&5
12310
12311_ACEOF
12312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12313#
12314# INIT-COMMANDS
12315#
12316AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12317
12318
12319# The HP-UX ksh and POSIX shell print the target directory to stdout
12320# if CDPATH is set.
12321(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12322
12323sed_quote_subst='$sed_quote_subst'
12324double_quote_subst='$double_quote_subst'
12325delay_variable_subst='$delay_variable_subst'
12326macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12327macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12328enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12329enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12330pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12331enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12332SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12333ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12334host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12335host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12336host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12337build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12338build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12339build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12340SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12341Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12342GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12343EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12344FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12345LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12346NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12347LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12348max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12349ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12350exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12351lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12352lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12353lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12354lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12355lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12356reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12357reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12358OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12359deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12360file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12361file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12362want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12363DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12364sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12365AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12366AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12367archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12368STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12369RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12370old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12371old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12372old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12373lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12374CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12375CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12376compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12377GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12378lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12379lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12380lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12381lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12382nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12383lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12384objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12385MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12386lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12387lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12388lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12389lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12390lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12391need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12392MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12393DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12394NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12395LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12396OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12397OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12398libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12399shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12400extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12401archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12402enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12403export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12404whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12405compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12406old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12407old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12408archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12409archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12410module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12411module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12412with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12413allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12414no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12415hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12416hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12417hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12418hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12419hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12420hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12421hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12422hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12423inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12424link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12425always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12426export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12427exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12428include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12429prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12430postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12431file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12432variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12433need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12434need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12435version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12436runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12437shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12438shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12439libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12440library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12441soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12442install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12443postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12444postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12445finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12446finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12447hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12448sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12449sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12450hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12451enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12452enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12453enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12454old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12455striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12456
12457LTCC='$LTCC'
12458LTCFLAGS='$LTCFLAGS'
12459compiler='$compiler_DEFAULT'
12460
12461# A function that is used when there is no print builtin or printf.
12462func_fallback_echo ()
12463{
12464 eval 'cat <<_LTECHO_EOF
12465\$1
12466_LTECHO_EOF'
12467}
12468
12469# Quote evaled strings.
12470for var in SHELL \
12471ECHO \
12472SED \
12473GREP \
12474EGREP \
12475FGREP \
12476LD \
12477NM \
12478LN_S \
12479lt_SP2NL \
12480lt_NL2SP \
12481reload_flag \
12482OBJDUMP \
12483deplibs_check_method \
12484file_magic_cmd \
12485file_magic_glob \
12486want_nocaseglob \
12487DLLTOOL \
12488sharedlib_from_linklib_cmd \
12489AR \
12490AR_FLAGS \
12491archiver_list_spec \
12492STRIP \
12493RANLIB \
12494CC \
12495CFLAGS \
12496compiler \
12497lt_cv_sys_global_symbol_pipe \
12498lt_cv_sys_global_symbol_to_cdecl \
12499lt_cv_sys_global_symbol_to_c_name_address \
12500lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12501nm_file_list_spec \
12502lt_prog_compiler_no_builtin_flag \
12503lt_prog_compiler_pic \
12504lt_prog_compiler_wl \
12505lt_prog_compiler_static \
12506lt_cv_prog_compiler_c_o \
12507need_locks \
12508MANIFEST_TOOL \
12509DSYMUTIL \
12510NMEDIT \
12511LIPO \
12512OTOOL \
12513OTOOL64 \
12514shrext_cmds \
12515export_dynamic_flag_spec \
12516whole_archive_flag_spec \
12517compiler_needs_object \
12518with_gnu_ld \
12519allow_undefined_flag \
12520no_undefined_flag \
12521hardcode_libdir_flag_spec \
12522hardcode_libdir_flag_spec_ld \
12523hardcode_libdir_separator \
12524exclude_expsyms \
12525include_expsyms \
12526file_list_spec \
12527variables_saved_for_relink \
12528libname_spec \
12529library_names_spec \
12530soname_spec \
12531install_override_mode \
12532finish_eval \
12533old_striplib \
12534striplib; do
12535 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12536 *[\\\\\\\`\\"\\\$]*)
12537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12538 ;;
12539 *)
12540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12541 ;;
12542 esac
12543done
12544
12545# Double-quote double-evaled strings.
12546for var in reload_cmds \
12547old_postinstall_cmds \
12548old_postuninstall_cmds \
12549old_archive_cmds \
12550extract_expsyms_cmds \
12551old_archive_from_new_cmds \
12552old_archive_from_expsyms_cmds \
12553archive_cmds \
12554archive_expsym_cmds \
12555module_cmds \
12556module_expsym_cmds \
12557export_symbols_cmds \
12558prelink_cmds \
12559postlink_cmds \
12560postinstall_cmds \
12561postuninstall_cmds \
12562finish_cmds \
12563sys_lib_search_path_spec \
12564sys_lib_dlsearch_path_spec; do
12565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12566 *[\\\\\\\`\\"\\\$]*)
12567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12568 ;;
12569 *)
12570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12571 ;;
12572 esac
12573done
12574
12575ac_aux_dir='$ac_aux_dir'
12576xsi_shell='$xsi_shell'
12577lt_shell_append='$lt_shell_append'
12578
12579# See if we are running on zsh, and set the options which allow our
12580# commands through without removal of \ escapes INIT.
12581if test -n "\${ZSH_VERSION+set}" ; then
12582 setopt NO_GLOB_SUBST
12583fi
12584
12585
12586 PACKAGE='$PACKAGE'
12587 VERSION='$VERSION'
12588 TIMESTAMP='$TIMESTAMP'
12589 RM='$RM'
12590 ofile='$ofile'
12591
12592
12593
12594
12595_ACEOF
12596
12597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598
12599# Handling of arguments.
12600for ac_config_target in $ac_config_targets
12601do
12602 case $ac_config_target in
12603 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12604 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12605 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12607 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12608 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12609 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
12610 "nfs/Makefile") CONFIG_FILES="$CONFIG_FILES nfs/Makefile" ;;
12611 "portmap/Makefile") CONFIG_FILES="$CONFIG_FILES portmap/Makefile" ;;
12612 "rquota/Makefile") CONFIG_FILES="$CONFIG_FILES rquota/Makefile" ;;
12613 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12614
12615 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12616 esac
12617done
12618
12619
12620# If the user did not use the arguments to specify the items to instantiate,
12621# then the envvar interface is used. Set only those that are not.
12622# We use the long form for the default assignment because of an extremely
12623# bizarre bug on SunOS 4.1.3.
12624if $ac_need_defaults; then
12625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12628fi
12629
12630# Have a temporary directory for convenience. Make it in the build tree
12631# simply because there is no reason against having it here, and in addition,
12632# creating and moving files from /tmp can sometimes cause problems.
12633# Hook for its removal unless debugging.
12634# Note that there is a small window in which the directory will not be cleaned:
12635# after its creation but before its name has been assigned to `$tmp'.
12636$debug ||
12637{
12638 tmp= ac_tmp=
12639 trap 'exit_status=$?
12640 : "${ac_tmp:=$tmp}"
12641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12642' 0
12643 trap 'as_fn_exit 1' 1 2 13 15
12644}
12645# Create a (secure) tmp directory for tmp files.
12646
12647{
12648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12649 test -d "$tmp"
12650} ||
12651{
12652 tmp=./conf$$-$RANDOM
12653 (umask 077 && mkdir "$tmp")
12654} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12655ac_tmp=$tmp
12656
12657# Set up the scripts for CONFIG_FILES section.
12658# No need to generate them if there are no CONFIG_FILES.
12659# This happens for instance with `./config.status config.h'.
12660if test -n "$CONFIG_FILES"; then
12661
12662
12663ac_cr=`echo X | tr X '\015'`
12664# On cygwin, bash can eat \r inside `` if the user requested igncr.
12665# But we know of no other shell where ac_cr would be empty at this
12666# point, so we can use a bashism as a fallback.
12667if test "x$ac_cr" = x; then
12668 eval ac_cr=\$\'\\r\'
12669fi
12670ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12671if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12672 ac_cs_awk_cr='\\r'
12673else
12674 ac_cs_awk_cr=$ac_cr
12675fi
12676
12677echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12678_ACEOF
12679
12680
12681{
12682 echo "cat >conf$$subs.awk <<_ACEOF" &&
12683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12684 echo "_ACEOF"
12685} >conf$$subs.sh ||
12686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12687ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12688ac_delim='%!_!# '
12689for ac_last_try in false false false false false :; do
12690 . ./conf$$subs.sh ||
12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12692
12693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12694 if test $ac_delim_n = $ac_delim_num; then
12695 break
12696 elif $ac_last_try; then
12697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12698 else
12699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12700 fi
12701done
12702rm -f conf$$subs.sh
12703
12704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12705cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12706_ACEOF
12707sed -n '
12708h
12709s/^/S["/; s/!.*/"]=/
12710p
12711g
12712s/^[^!]*!//
12713:repl
12714t repl
12715s/'"$ac_delim"'$//
12716t delim
12717:nl
12718h
12719s/\(.\{148\}\)..*/\1/
12720t more1
12721s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12722p
12723n
12724b repl
12725:more1
12726s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12727p
12728g
12729s/.\{148\}//
12730t nl
12731:delim
12732h
12733s/\(.\{148\}\)..*/\1/
12734t more2
12735s/["\\]/\\&/g; s/^/"/; s/$/"/
12736p
12737b
12738:more2
12739s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12740p
12741g
12742s/.\{148\}//
12743t delim
12744' <conf$$subs.awk | sed '
12745/^[^""]/{
12746 N
12747 s/\n//
12748}
12749' >>$CONFIG_STATUS || ac_write_fail=1
12750rm -f conf$$subs.awk
12751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752_ACAWK
12753cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12754 for (key in S) S_is_set[key] = 1
12755 FS = "\a"
12756
12757}
12758{
12759 line = $ 0
12760 nfields = split(line, field, "@")
12761 substed = 0
12762 len = length(field[1])
12763 for (i = 2; i < nfields; i++) {
12764 key = field[i]
12765 keylen = length(key)
12766 if (S_is_set[key]) {
12767 value = S[key]
12768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12769 len += length(value) + length(field[++i])
12770 substed = 1
12771 } else
12772 len += 1 + keylen
12773 }
12774
12775 print line
12776}
12777
12778_ACAWK
12779_ACEOF
12780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12783else
12784 cat
12785fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12786 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12787_ACEOF
12788
12789# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12790# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12791# trailing colons and then remove the whole line if VPATH becomes empty
12792# (actually we leave an empty line to preserve line numbers).
12793if test "x$srcdir" = x.; then
12794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12795h
12796s///
12797s/^/:/
12798s/[ ]*$/:/
12799s/:\$(srcdir):/:/g
12800s/:\${srcdir}:/:/g
12801s/:@srcdir@:/:/g
12802s/^:*//
12803s/:*$//
12804x
12805s/\(=[ ]*\).*/\1/
12806G
12807s/\n//
12808s/^[^=]*=[ ]*$//
12809}'
12810fi
12811
12812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813fi # test -n "$CONFIG_FILES"
12814
12815# Set up the scripts for CONFIG_HEADERS section.
12816# No need to generate them if there are no CONFIG_HEADERS.
12817# This happens for instance with `./config.status Makefile'.
12818if test -n "$CONFIG_HEADERS"; then
12819cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12820BEGIN {
12821_ACEOF
12822
12823# Transform confdefs.h into an awk script `defines.awk', embedded as
12824# here-document in config.status, that substitutes the proper values into
12825# config.h.in to produce config.h.
12826
12827# Create a delimiter string that does not exist in confdefs.h, to ease
12828# handling of long lines.
12829ac_delim='%!_!# '
12830for ac_last_try in false false :; do
12831 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12832 if test -z "$ac_tt"; then
12833 break
12834 elif $ac_last_try; then
12835 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12836 else
12837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12838 fi
12839done
12840
12841# For the awk script, D is an array of macro values keyed by name,
12842# likewise P contains macro parameters if any. Preserve backslash
12843# newline sequences.
12844
12845ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12846sed -n '
12847s/.\{148\}/&'"$ac_delim"'/g
12848t rset
12849:rset
12850s/^[ ]*#[ ]*define[ ][ ]*/ /
12851t def
12852d
12853:def
12854s/\\$//
12855t bsnl
12856s/["\\]/\\&/g
12857s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12858D["\1"]=" \3"/p
12859s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12860d
12861:bsnl
12862s/["\\]/\\&/g
12863s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12864D["\1"]=" \3\\\\\\n"\\/p
12865t cont
12866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12867t cont
12868d
12869:cont
12870n
12871s/.\{148\}/&'"$ac_delim"'/g
12872t clear
12873:clear
12874s/\\$//
12875t bsnlc
12876s/["\\]/\\&/g; s/^/"/; s/$/"/p
12877d
12878:bsnlc
12879s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12880b cont
12881' <confdefs.h | sed '
12882s/'"$ac_delim"'/"\\\
12883"/g' >>$CONFIG_STATUS || ac_write_fail=1
12884
12885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12886 for (key in D) D_is_set[key] = 1
12887 FS = "\a"
12888}
12889/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12890 line = \$ 0
12891 split(line, arg, " ")
12892 if (arg[1] == "#") {
12893 defundef = arg[2]
12894 mac1 = arg[3]
12895 } else {
12896 defundef = substr(arg[1], 2)
12897 mac1 = arg[2]
12898 }
12899 split(mac1, mac2, "(") #)
12900 macro = mac2[1]
12901 prefix = substr(line, 1, index(line, defundef) - 1)
12902 if (D_is_set[macro]) {
12903 # Preserve the white space surrounding the "#".
12904 print prefix "define", macro P[macro] D[macro]
12905 next
12906 } else {
12907 # Replace #undef with comments. This is necessary, for example,
12908 # in the case of _POSIX_SOURCE, which is predefined and required
12909 # on some systems where configure will not decide to define it.
12910 if (defundef == "undef") {
12911 print "/*", prefix defundef, macro, "*/"
12912 next
12913 }
12914 }
12915}
12916{ print }
12917_ACAWK
12918_ACEOF
12919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12921fi # test -n "$CONFIG_HEADERS"
12922
12923
12924eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12925shift
12926for ac_tag
12927do
12928 case $ac_tag in
12929 :[FHLC]) ac_mode=$ac_tag; continue;;
12930 esac
12931 case $ac_mode$ac_tag in
12932 :[FHL]*:*);;
12933 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12934 :[FH]-) ac_tag=-:-;;
12935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12936 esac
12937 ac_save_IFS=$IFS
12938 IFS=:
12939 set x $ac_tag
12940 IFS=$ac_save_IFS
12941 shift
12942 ac_file=$1
12943 shift
12944
12945 case $ac_mode in
12946 :L) ac_source=$1;;
12947 :[FH])
12948 ac_file_inputs=
12949 for ac_f
12950 do
12951 case $ac_f in
12952 -) ac_f="$ac_tmp/stdin";;
12953 *) # Look for the file first in the build tree, then in the source tree
12954 # (if the path is not absolute). The absolute path cannot be DOS-style,
12955 # because $ac_f cannot contain `:'.
12956 test -f "$ac_f" ||
12957 case $ac_f in
12958 [\\/$]*) false;;
12959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12960 esac ||
12961 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12962 esac
12963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12964 as_fn_append ac_file_inputs " '$ac_f'"
12965 done
12966
12967 # Let's still pretend it is `configure' which instantiates (i.e., don't
12968 # use $as_me), people would be surprised to read:
12969 # /* config.h. Generated by config.status. */
12970 configure_input='Generated from '`
12971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12972 `' by configure.'
12973 if test x"$ac_file" != x-; then
12974 configure_input="$ac_file. $configure_input"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12976$as_echo "$as_me: creating $ac_file" >&6;}
12977 fi
12978 # Neutralize special characters interpreted by sed in replacement strings.
12979 case $configure_input in #(
12980 *\&* | *\|* | *\\* )
12981 ac_sed_conf_input=`$as_echo "$configure_input" |
12982 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12983 *) ac_sed_conf_input=$configure_input;;
12984 esac
12985
12986 case $ac_tag in
12987 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12989 esac
12990 ;;
12991 esac
12992
12993 ac_dir=`$as_dirname -- "$ac_file" ||
12994$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12995 X"$ac_file" : 'X\(//\)[^/]' \| \
12996 X"$ac_file" : 'X\(//\)$' \| \
12997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12998$as_echo X"$ac_file" |
12999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13000 s//\1/
13001 q
13002 }
13003 /^X\(\/\/\)[^/].*/{
13004 s//\1/
13005 q
13006 }
13007 /^X\(\/\/\)$/{
13008 s//\1/
13009 q
13010 }
13011 /^X\(\/\).*/{
13012 s//\1/
13013 q
13014 }
13015 s/.*/./; q'`
13016 as_dir="$ac_dir"; as_fn_mkdir_p
13017 ac_builddir=.
13018
13019case "$ac_dir" in
13020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13021*)
13022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13023 # A ".." for each directory in $ac_dir_suffix.
13024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13025 case $ac_top_builddir_sub in
13026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13028 esac ;;
13029esac
13030ac_abs_top_builddir=$ac_pwd
13031ac_abs_builddir=$ac_pwd$ac_dir_suffix
13032# for backward compatibility:
13033ac_top_builddir=$ac_top_build_prefix
13034
13035case $srcdir in
13036 .) # We are building in place.
13037 ac_srcdir=.
13038 ac_top_srcdir=$ac_top_builddir_sub
13039 ac_abs_top_srcdir=$ac_pwd ;;
13040 [\\/]* | ?:[\\/]* ) # Absolute name.
13041 ac_srcdir=$srcdir$ac_dir_suffix;
13042 ac_top_srcdir=$srcdir
13043 ac_abs_top_srcdir=$srcdir ;;
13044 *) # Relative name.
13045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13046 ac_top_srcdir=$ac_top_build_prefix$srcdir
13047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13048esac
13049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13050
13051
13052 case $ac_mode in
13053 :F)
13054 #
13055 # CONFIG_FILE
13056 #
13057
13058 case $INSTALL in
13059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13061 esac
13062 ac_MKDIR_P=$MKDIR_P
13063 case $MKDIR_P in
13064 [\\/$]* | ?:[\\/]* ) ;;
13065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13066 esac
13067_ACEOF
13068
13069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13070# If the template does not know about datarootdir, expand it.
13071# FIXME: This hack should be removed a few years after 2.60.
13072ac_datarootdir_hack=; ac_datarootdir_seen=
13073ac_sed_dataroot='
13074/datarootdir/ {
13075 p
13076 q
13077}
13078/@datadir@/p
13079/@docdir@/p
13080/@infodir@/p
13081/@localedir@/p
13082/@mandir@/p'
13083case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13084*datarootdir*) ac_datarootdir_seen=yes;;
13085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13087$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13088_ACEOF
13089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13090 ac_datarootdir_hack='
13091 s&@datadir@&$datadir&g
13092 s&@docdir@&$docdir&g
13093 s&@infodir@&$infodir&g
13094 s&@localedir@&$localedir&g
13095 s&@mandir@&$mandir&g
13096 s&\\\${datarootdir}&$datarootdir&g' ;;
13097esac
13098_ACEOF
13099
13100# Neutralize VPATH when `$srcdir' = `.'.
13101# Shell code in configure.ac might set extrasub.
13102# FIXME: do we really want to maintain this feature?
13103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104ac_sed_extra="$ac_vpsub
13105$extrasub
13106_ACEOF
13107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108:t
13109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13110s|@configure_input@|$ac_sed_conf_input|;t t
13111s&@top_builddir@&$ac_top_builddir_sub&;t t
13112s&@top_build_prefix@&$ac_top_build_prefix&;t t
13113s&@srcdir@&$ac_srcdir&;t t
13114s&@abs_srcdir@&$ac_abs_srcdir&;t t
13115s&@top_srcdir@&$ac_top_srcdir&;t t
13116s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13117s&@builddir@&$ac_builddir&;t t
13118s&@abs_builddir@&$ac_abs_builddir&;t t
13119s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13120s&@INSTALL@&$ac_INSTALL&;t t
13121s&@MKDIR_P@&$ac_MKDIR_P&;t t
13122$ac_datarootdir_hack
13123"
13124eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13126
13127test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13130 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13132which seems to be undefined. Please make sure it is defined" >&5
13133$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13134which seems to be undefined. Please make sure it is defined" >&2;}
13135
13136 rm -f "$ac_tmp/stdin"
13137 case $ac_file in
13138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13140 esac \
13141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13142 ;;
13143 :H)
13144 #
13145 # CONFIG_HEADER
13146 #
13147 if test x"$ac_file" != x-; then
13148 {
13149 $as_echo "/* $configure_input */" \
13150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13151 } >"$ac_tmp/config.h" \
13152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13155$as_echo "$as_me: $ac_file is unchanged" >&6;}
13156 else
13157 rm -f "$ac_file"
13158 mv "$ac_tmp/config.h" "$ac_file" \
13159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13160 fi
13161 else
13162 $as_echo "/* $configure_input */" \
13163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13164 || as_fn_error $? "could not create -" "$LINENO" 5
13165 fi
13166# Compute "$ac_file"'s index in $config_headers.
13167_am_arg="$ac_file"
13168_am_stamp_count=1
13169for _am_header in $config_headers :; do
13170 case $_am_header in
13171 $_am_arg | $_am_arg:* )
13172 break ;;
13173 * )
13174 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13175 esac
13176done
13177echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13178$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13179 X"$_am_arg" : 'X\(//\)[^/]' \| \
13180 X"$_am_arg" : 'X\(//\)$' \| \
13181 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13182$as_echo X"$_am_arg" |
13183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13184 s//\1/
13185 q
13186 }
13187 /^X\(\/\/\)[^/].*/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\/\)$/{
13192 s//\1/
13193 q
13194 }
13195 /^X\(\/\).*/{
13196 s//\1/
13197 q
13198 }
13199 s/.*/./; q'`/stamp-h$_am_stamp_count
13200 ;;
13201
13202 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13203$as_echo "$as_me: executing $ac_file commands" >&6;}
13204 ;;
13205 esac
13206
13207
13208 case $ac_file$ac_mode in
13209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13210 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13211 # are listed without --file. Let's play safe and only enable the eval
13212 # if we detect the quoting.
13213 case $CONFIG_FILES in
13214 *\'*) eval set x "$CONFIG_FILES" ;;
13215 *) set x $CONFIG_FILES ;;
13216 esac
13217 shift
13218 for mf
13219 do
13220 # Strip MF so we end up with the name of the file.
13221 mf=`echo "$mf" | sed -e 's/:.*$//'`
13222 # Check whether this is an Automake generated Makefile or not.
13223 # We used to match only the files named `Makefile.in', but
13224 # some people rename them; so instead we look at the file content.
13225 # Grep'ing the first line is not enough: some people post-process
13226 # each Makefile.in and add a new line on top of each file to say so.
13227 # Grep'ing the whole file is not good either: AIX grep has a line
13228 # limit of 2048, but all sed's we know have understand at least 4000.
13229 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13230 dirpart=`$as_dirname -- "$mf" ||
13231$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13232 X"$mf" : 'X\(//\)[^/]' \| \
13233 X"$mf" : 'X\(//\)$' \| \
13234 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13235$as_echo X"$mf" |
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13237 s//\1/
13238 q
13239 }
13240 /^X\(\/\/\)[^/].*/{
13241 s//\1/
13242 q
13243 }
13244 /^X\(\/\/\)$/{
13245 s//\1/
13246 q
13247 }
13248 /^X\(\/\).*/{
13249 s//\1/
13250 q
13251 }
13252 s/.*/./; q'`
13253 else
13254 continue
13255 fi
13256 # Extract the definition of DEPDIR, am__include, and am__quote
13257 # from the Makefile without running `make'.
13258 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13259 test -z "$DEPDIR" && continue
13260 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13261 test -z "am__include" && continue
13262 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13263 # When using ansi2knr, U may be empty or an underscore; expand it
13264 U=`sed -n 's/^U = //p' < "$mf"`
13265 # Find all dependency output files, they are included files with
13266 # $(DEPDIR) in their names. We invoke sed twice because it is the
13267 # simplest approach to changing $(DEPDIR) to its actual value in the
13268 # expansion.
13269 for file in `sed -n "
13270 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13271 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13272 # Make sure the directory exists.
13273 test -f "$dirpart/$file" && continue
13274 fdir=`$as_dirname -- "$file" ||
13275$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13276 X"$file" : 'X\(//\)[^/]' \| \
13277 X"$file" : 'X\(//\)$' \| \
13278 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13279$as_echo X"$file" |
13280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13281 s//\1/
13282 q
13283 }
13284 /^X\(\/\/\)[^/].*/{
13285 s//\1/
13286 q
13287 }
13288 /^X\(\/\/\)$/{
13289 s//\1/
13290 q
13291 }
13292 /^X\(\/\).*/{
13293 s//\1/
13294 q
13295 }
13296 s/.*/./; q'`
13297 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13298 # echo "creating $dirpart/$file"
13299 echo '# dummy' > "$dirpart/$file"
13300 done
13301 done
13302}
13303 ;;
13304 "libtool":C)
13305
13306 # See if we are running on zsh, and set the options which allow our
13307 # commands through without removal of \ escapes.
13308 if test -n "${ZSH_VERSION+set}" ; then
13309 setopt NO_GLOB_SUBST
13310 fi
13311
13312 cfgfile="${ofile}T"
13313 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13314 $RM "$cfgfile"
13315
13316 cat <<_LT_EOF >> "$cfgfile"
13317#! $SHELL
13318
13319# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13320# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13321# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13322# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13323#
13324# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13325# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13326# Inc.
13327# Written by Gordon Matzigkeit, 1996
13328#
13329# This file is part of GNU Libtool.
13330#
13331# GNU Libtool is free software; you can redistribute it and/or
13332# modify it under the terms of the GNU General Public License as
13333# published by the Free Software Foundation; either version 2 of
13334# the License, or (at your option) any later version.
13335#
13336# As a special exception to the GNU General Public License,
13337# if you distribute this file as part of a program or library that
13338# is built using GNU Libtool, you may include this file under the
13339# same distribution terms that you use for the rest of that program.
13340#
13341# GNU Libtool is distributed in the hope that it will be useful,
13342# but WITHOUT ANY WARRANTY; without even the implied warranty of
13343# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13344# GNU General Public License for more details.
13345#
13346# You should have received a copy of the GNU General Public License
13347# along with GNU Libtool; see the file COPYING. If not, a copy
13348# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13349# obtained by writing to the Free Software Foundation, Inc.,
13350# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13351
13352
13353# The names of the tagged configurations supported by this script.
13354available_tags=""
13355
13356# ### BEGIN LIBTOOL CONFIG
13357
13358# Which release of libtool.m4 was used?
13359macro_version=$macro_version
13360macro_revision=$macro_revision
13361
13362# Whether or not to build shared libraries.
13363build_libtool_libs=$enable_shared
13364
13365# Whether or not to build static libraries.
13366build_old_libs=$enable_static
13367
13368# What type of objects to build.
13369pic_mode=$pic_mode
13370
13371# Whether or not to optimize for fast installation.
13372fast_install=$enable_fast_install
13373
13374# Shell to use when invoking shell scripts.
13375SHELL=$lt_SHELL
13376
13377# An echo program that protects backslashes.
13378ECHO=$lt_ECHO
13379
13380# The host system.
13381host_alias=$host_alias
13382host=$host
13383host_os=$host_os
13384
13385# The build system.
13386build_alias=$build_alias
13387build=$build
13388build_os=$build_os
13389
13390# A sed program that does not truncate output.
13391SED=$lt_SED
13392
13393# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13394Xsed="\$SED -e 1s/^X//"
13395
13396# A grep program that handles long lines.
13397GREP=$lt_GREP
13398
13399# An ERE matcher.
13400EGREP=$lt_EGREP
13401
13402# A literal string matcher.
13403FGREP=$lt_FGREP
13404
13405# A BSD- or MS-compatible name lister.
13406NM=$lt_NM
13407
13408# Whether we need soft or hard links.
13409LN_S=$lt_LN_S
13410
13411# What is the maximum length of a command?
13412max_cmd_len=$max_cmd_len
13413
13414# Object file suffix (normally "o").
13415objext=$ac_objext
13416
13417# Executable file suffix (normally "").
13418exeext=$exeext
13419
13420# whether the shell understands "unset".
13421lt_unset=$lt_unset
13422
13423# turn spaces into newlines.
13424SP2NL=$lt_lt_SP2NL
13425
13426# turn newlines into spaces.
13427NL2SP=$lt_lt_NL2SP
13428
13429# convert \$build file names to \$host format.
13430to_host_file_cmd=$lt_cv_to_host_file_cmd
13431
13432# convert \$build files to toolchain format.
13433to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13434
13435# An object symbol dumper.
13436OBJDUMP=$lt_OBJDUMP
13437
13438# Method to check whether dependent libraries are shared objects.
13439deplibs_check_method=$lt_deplibs_check_method
13440
13441# Command to use when deplibs_check_method = "file_magic".
13442file_magic_cmd=$lt_file_magic_cmd
13443
13444# How to find potential files when deplibs_check_method = "file_magic".
13445file_magic_glob=$lt_file_magic_glob
13446
13447# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13448want_nocaseglob=$lt_want_nocaseglob
13449
13450# DLL creation program.
13451DLLTOOL=$lt_DLLTOOL
13452
13453# Command to associate shared and link libraries.
13454sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13455
13456# The archiver.
13457AR=$lt_AR
13458
13459# Flags to create an archive.
13460AR_FLAGS=$lt_AR_FLAGS
13461
13462# How to feed a file listing to the archiver.
13463archiver_list_spec=$lt_archiver_list_spec
13464
13465# A symbol stripping program.
13466STRIP=$lt_STRIP
13467
13468# Commands used to install an old-style archive.
13469RANLIB=$lt_RANLIB
13470old_postinstall_cmds=$lt_old_postinstall_cmds
13471old_postuninstall_cmds=$lt_old_postuninstall_cmds
13472
13473# Whether to use a lock for old archive extraction.
13474lock_old_archive_extraction=$lock_old_archive_extraction
13475
13476# A C compiler.
13477LTCC=$lt_CC
13478
13479# LTCC compiler flags.
13480LTCFLAGS=$lt_CFLAGS
13481
13482# Take the output of nm and produce a listing of raw symbols and C names.
13483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13484
13485# Transform the output of nm in a proper C declaration.
13486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13487
13488# Transform the output of nm in a C name address pair.
13489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13490
13491# Transform the output of nm in a C name address pair when lib prefix is needed.
13492global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13493
13494# Specify filename containing input files for \$NM.
13495nm_file_list_spec=$lt_nm_file_list_spec
13496
13497# The root where to search for dependent libraries,and in which our libraries should be installed.
13498lt_sysroot=$lt_sysroot
13499
13500# The name of the directory that contains temporary libtool files.
13501objdir=$objdir
13502
13503# Used to examine libraries when file_magic_cmd begins with "file".
13504MAGIC_CMD=$MAGIC_CMD
13505
13506# Must we lock files when doing compilation?
13507need_locks=$lt_need_locks
13508
13509# Manifest tool.
13510MANIFEST_TOOL=$lt_MANIFEST_TOOL
13511
13512# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13513DSYMUTIL=$lt_DSYMUTIL
13514
13515# Tool to change global to local symbols on Mac OS X.
13516NMEDIT=$lt_NMEDIT
13517
13518# Tool to manipulate fat objects and archives on Mac OS X.
13519LIPO=$lt_LIPO
13520
13521# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13522OTOOL=$lt_OTOOL
13523
13524# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13525OTOOL64=$lt_OTOOL64
13526
13527# Old archive suffix (normally "a").
13528libext=$libext
13529
13530# Shared library suffix (normally ".so").
13531shrext_cmds=$lt_shrext_cmds
13532
13533# The commands to extract the exported symbol list from a shared archive.
13534extract_expsyms_cmds=$lt_extract_expsyms_cmds
13535
13536# Variables whose values should be saved in libtool wrapper scripts and
13537# restored at link time.
13538variables_saved_for_relink=$lt_variables_saved_for_relink
13539
13540# Do we need the "lib" prefix for modules?
13541need_lib_prefix=$need_lib_prefix
13542
13543# Do we need a version for libraries?
13544need_version=$need_version
13545
13546# Library versioning type.
13547version_type=$version_type
13548
13549# Shared library runtime path variable.
13550runpath_var=$runpath_var
13551
13552# Shared library path variable.
13553shlibpath_var=$shlibpath_var
13554
13555# Is shlibpath searched before the hard-coded library search path?
13556shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13557
13558# Format of library name prefix.
13559libname_spec=$lt_libname_spec
13560
13561# List of archive names. First name is the real one, the rest are links.
13562# The last name is the one that the linker finds with -lNAME
13563library_names_spec=$lt_library_names_spec
13564
13565# The coded name of the library, if different from the real name.
13566soname_spec=$lt_soname_spec
13567
13568# Permission mode override for installation of shared libraries.
13569install_override_mode=$lt_install_override_mode
13570
13571# Command to use after installation of a shared archive.
13572postinstall_cmds=$lt_postinstall_cmds
13573
13574# Command to use after uninstallation of a shared archive.
13575postuninstall_cmds=$lt_postuninstall_cmds
13576
13577# Commands used to finish a libtool library installation in a directory.
13578finish_cmds=$lt_finish_cmds
13579
13580# As "finish_cmds", except a single script fragment to be evaled but
13581# not shown.
13582finish_eval=$lt_finish_eval
13583
13584# Whether we should hardcode library paths into libraries.
13585hardcode_into_libs=$hardcode_into_libs
13586
13587# Compile-time system search path for libraries.
13588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13589
13590# Run-time system search path for libraries.
13591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13592
13593# Whether dlopen is supported.
13594dlopen_support=$enable_dlopen
13595
13596# Whether dlopen of programs is supported.
13597dlopen_self=$enable_dlopen_self
13598
13599# Whether dlopen of statically linked programs is supported.
13600dlopen_self_static=$enable_dlopen_self_static
13601
13602# Commands to strip libraries.
13603old_striplib=$lt_old_striplib
13604striplib=$lt_striplib
13605
13606
13607# The linker used to build libraries.
13608LD=$lt_LD
13609
13610# How to create reloadable object files.
13611reload_flag=$lt_reload_flag
13612reload_cmds=$lt_reload_cmds
13613
13614# Commands used to build an old-style archive.
13615old_archive_cmds=$lt_old_archive_cmds
13616
13617# A language specific compiler.
13618CC=$lt_compiler
13619
13620# Is the compiler the GNU compiler?
13621with_gcc=$GCC
13622
13623# Compiler flag to turn off builtin functions.
13624no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13625
13626# Additional compiler flags for building library objects.
13627pic_flag=$lt_lt_prog_compiler_pic
13628
13629# How to pass a linker flag through the compiler.
13630wl=$lt_lt_prog_compiler_wl
13631
13632# Compiler flag to prevent dynamic linking.
13633link_static_flag=$lt_lt_prog_compiler_static
13634
13635# Does compiler simultaneously support -c and -o options?
13636compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13637
13638# Whether or not to add -lc for building shared libraries.
13639build_libtool_need_lc=$archive_cmds_need_lc
13640
13641# Whether or not to disallow shared libs when runtime libs are static.
13642allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13643
13644# Compiler flag to allow reflexive dlopens.
13645export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13646
13647# Compiler flag to generate shared objects directly from archives.
13648whole_archive_flag_spec=$lt_whole_archive_flag_spec
13649
13650# Whether the compiler copes with passing no objects directly.
13651compiler_needs_object=$lt_compiler_needs_object
13652
13653# Create an old-style archive from a shared archive.
13654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13655
13656# Create a temporary old-style archive to link instead of a shared archive.
13657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13658
13659# Commands used to build a shared archive.
13660archive_cmds=$lt_archive_cmds
13661archive_expsym_cmds=$lt_archive_expsym_cmds
13662
13663# Commands used to build a loadable module if different from building
13664# a shared archive.
13665module_cmds=$lt_module_cmds
13666module_expsym_cmds=$lt_module_expsym_cmds
13667
13668# Whether we are building with GNU ld or not.
13669with_gnu_ld=$lt_with_gnu_ld
13670
13671# Flag that allows shared libraries with undefined symbols to be built.
13672allow_undefined_flag=$lt_allow_undefined_flag
13673
13674# Flag that enforces no undefined symbols.
13675no_undefined_flag=$lt_no_undefined_flag
13676
13677# Flag to hardcode \$libdir into a binary during linking.
13678# This must work even if \$libdir does not exist
13679hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13680
13681# If ld is used when linking, flag to hardcode \$libdir into a binary
13682# during linking. This must work even if \$libdir does not exist.
13683hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13684
13685# Whether we need a single "-rpath" flag with a separated argument.
13686hardcode_libdir_separator=$lt_hardcode_libdir_separator
13687
13688# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13689# DIR into the resulting binary.
13690hardcode_direct=$hardcode_direct
13691
13692# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13693# DIR into the resulting binary and the resulting library dependency is
13694# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13695# library is relocated.
13696hardcode_direct_absolute=$hardcode_direct_absolute
13697
13698# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13699# into the resulting binary.
13700hardcode_minus_L=$hardcode_minus_L
13701
13702# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13703# into the resulting binary.
13704hardcode_shlibpath_var=$hardcode_shlibpath_var
13705
13706# Set to "yes" if building a shared library automatically hardcodes DIR
13707# into the library and all subsequent libraries and executables linked
13708# against it.
13709hardcode_automatic=$hardcode_automatic
13710
13711# Set to yes if linker adds runtime paths of dependent libraries
13712# to runtime path list.
13713inherit_rpath=$inherit_rpath
13714
13715# Whether libtool must link a program against all its dependency libraries.
13716link_all_deplibs=$link_all_deplibs
13717
13718# Set to "yes" if exported symbols are required.
13719always_export_symbols=$always_export_symbols
13720
13721# The commands to list exported symbols.
13722export_symbols_cmds=$lt_export_symbols_cmds
13723
13724# Symbols that should not be listed in the preloaded symbols.
13725exclude_expsyms=$lt_exclude_expsyms
13726
13727# Symbols that must always be exported.
13728include_expsyms=$lt_include_expsyms
13729
13730# Commands necessary for linking programs (against libraries) with templates.
13731prelink_cmds=$lt_prelink_cmds
13732
13733# Commands necessary for finishing linking programs.
13734postlink_cmds=$lt_postlink_cmds
13735
13736# Specify filename containing input files.
13737file_list_spec=$lt_file_list_spec
13738
13739# How to hardcode a shared library path into an executable.
13740hardcode_action=$hardcode_action
13741
13742# ### END LIBTOOL CONFIG
13743
13744_LT_EOF
13745
13746 case $host_os in
13747 aix3*)
13748 cat <<\_LT_EOF >> "$cfgfile"
13749# AIX sometimes has problems with the GCC collect2 program. For some
13750# reason, if we set the COLLECT_NAMES environment variable, the problems
13751# vanish in a puff of smoke.
13752if test "X${COLLECT_NAMES+set}" != Xset; then
13753 COLLECT_NAMES=
13754 export COLLECT_NAMES
13755fi
13756_LT_EOF
13757 ;;
13758 esac
13759
13760
13761ltmain="$ac_aux_dir/ltmain.sh"
13762
13763
13764 # We use sed instead of cat because bash on DJGPP gets confused if
13765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13766 # text mode, it properly converts lines to CR/LF. This bash problem
13767 # is reportedly fixed, but why not run on old versions too?
13768 sed '$q' "$ltmain" >> "$cfgfile" \
13769 || (rm -f "$cfgfile"; exit 1)
13770
13771 if test x"$xsi_shell" = xyes; then
13772 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13773func_dirname ()\
13774{\
13775\ case ${1} in\
13776\ */*) func_dirname_result="${1%/*}${2}" ;;\
13777\ * ) func_dirname_result="${3}" ;;\
13778\ esac\
13779} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13780 && mv -f "$cfgfile.tmp" "$cfgfile" \
13781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13782test 0 -eq $? || _lt_function_replace_fail=:
13783
13784
13785 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13786func_basename ()\
13787{\
13788\ func_basename_result="${1##*/}"\
13789} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13790 && mv -f "$cfgfile.tmp" "$cfgfile" \
13791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13792test 0 -eq $? || _lt_function_replace_fail=:
13793
13794
13795 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13796func_dirname_and_basename ()\
13797{\
13798\ case ${1} in\
13799\ */*) func_dirname_result="${1%/*}${2}" ;;\
13800\ * ) func_dirname_result="${3}" ;;\
13801\ esac\
13802\ func_basename_result="${1##*/}"\
13803} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13804 && mv -f "$cfgfile.tmp" "$cfgfile" \
13805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13806test 0 -eq $? || _lt_function_replace_fail=:
13807
13808
13809 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13810func_stripname ()\
13811{\
13812\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13813\ # positional parameters, so assign one to ordinary parameter first.\
13814\ func_stripname_result=${3}\
13815\ func_stripname_result=${func_stripname_result#"${1}"}\
13816\ func_stripname_result=${func_stripname_result%"${2}"}\
13817} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13818 && mv -f "$cfgfile.tmp" "$cfgfile" \
13819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13820test 0 -eq $? || _lt_function_replace_fail=:
13821
13822
13823 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13824func_split_long_opt ()\
13825{\
13826\ func_split_long_opt_name=${1%%=*}\
13827\ func_split_long_opt_arg=${1#*=}\
13828} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13829 && mv -f "$cfgfile.tmp" "$cfgfile" \
13830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13831test 0 -eq $? || _lt_function_replace_fail=:
13832
13833
13834 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13835func_split_short_opt ()\
13836{\
13837\ func_split_short_opt_arg=${1#??}\
13838\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13839} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13840 && mv -f "$cfgfile.tmp" "$cfgfile" \
13841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13846func_lo2o ()\
13847{\
13848\ case ${1} in\
13849\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13850\ *) func_lo2o_result=${1} ;;\
13851\ esac\
13852} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13853 && mv -f "$cfgfile.tmp" "$cfgfile" \
13854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13855test 0 -eq $? || _lt_function_replace_fail=:
13856
13857
13858 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13859func_xform ()\
13860{\
13861 func_xform_result=${1%.*}.lo\
13862} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13863 && mv -f "$cfgfile.tmp" "$cfgfile" \
13864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13865test 0 -eq $? || _lt_function_replace_fail=:
13866
13867
13868 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13869func_arith ()\
13870{\
13871 func_arith_result=$(( $* ))\
13872} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13873 && mv -f "$cfgfile.tmp" "$cfgfile" \
13874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13875test 0 -eq $? || _lt_function_replace_fail=:
13876
13877
13878 sed -e '/^func_len ()$/,/^} # func_len /c\
13879func_len ()\
13880{\
13881 func_len_result=${#1}\
13882} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13883 && mv -f "$cfgfile.tmp" "$cfgfile" \
13884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13885test 0 -eq $? || _lt_function_replace_fail=:
13886
13887fi
13888
13889if test x"$lt_shell_append" = xyes; then
13890 sed -e '/^func_append ()$/,/^} # func_append /c\
13891func_append ()\
13892{\
13893 eval "${1}+=\\${2}"\
13894} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13895 && mv -f "$cfgfile.tmp" "$cfgfile" \
13896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13897test 0 -eq $? || _lt_function_replace_fail=:
13898
13899
13900 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13901func_append_quoted ()\
13902{\
13903\ func_quote_for_eval "${2}"\
13904\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13905} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13906 && mv -f "$cfgfile.tmp" "$cfgfile" \
13907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13908test 0 -eq $? || _lt_function_replace_fail=:
13909
13910
13911 # Save a `func_append' function call where possible by direct use of '+='
13912 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13913 && mv -f "$cfgfile.tmp" "$cfgfile" \
13914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13915 test 0 -eq $? || _lt_function_replace_fail=:
13916else
13917 # Save a `func_append' function call even when '+=' is not available
13918 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13919 && mv -f "$cfgfile.tmp" "$cfgfile" \
13920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13921 test 0 -eq $? || _lt_function_replace_fail=:
13922fi
13923
13924if test x"$_lt_function_replace_fail" = x":"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13926$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13927fi
13928
13929
13930 mv -f "$cfgfile" "$ofile" ||
13931 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13932 chmod +x "$ofile"
13933
13934 ;;
13935
13936 esac
13937done # for ac_tag
13938
13939
13940as_fn_exit 0
13941_ACEOF
13942ac_clean_files=$ac_clean_files_save
13943
13944test $ac_write_fail = 0 ||
13945 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13946
13947
13948# configure is writing to config.log, and then calls config.status.
13949# config.status does its own redirection, appending to config.log.
13950# Unfortunately, on DOS this fails, as config.log is still kept open
13951# by configure, so config.status won't be able to write to it; its
13952# output is simply discarded. So we exec the FD to /dev/null,
13953# effectively closing config.log, so it can be properly (re)opened and
13954# appended to by config.status. When coming back to configure, we
13955# need to make the FD available again.
13956if test "$no_create" != yes; then
13957 ac_cs_success=:
13958 ac_config_status_args=
13959 test "$silent" = yes &&
13960 ac_config_status_args="$ac_config_status_args --quiet"
13961 exec 5>/dev/null
13962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13963 exec 5>>config.log
13964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13965 # would make configure fail if this is the last instruction.
13966 $ac_cs_success || as_fn_exit 1
13967fi
13968if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13970$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13971fi
13972