Update changelog.
[deb_libnfs.git] / configure
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if 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
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test 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
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
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
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
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
218 fi; }
219 IFS=$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+"$@"}
238 fi
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
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_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.
285 as_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.
295 as_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.
345 if (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 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # 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.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # 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.
380 as_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
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_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.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_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
468 ECHO_C= ECHO_N= ECHO_T=
469 case `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';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (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
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
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 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_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.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 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.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='libnfs'
569 PACKAGE_TARNAME='libnfs'
570 PACKAGE_VERSION='0.0.0'
571 PACKAGE_STRING='libnfs 0.0.0'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_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
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 RPCGENFLAGS
616 MAYBE_EXAMPLES
617 HAVE_RPCGEN
618 CPP
619 OTOOL64
620 OTOOL
621 LIPO
622 NMEDIT
623 DSYMUTIL
624 MANIFEST_TOOL
625 RANLIB
626 ac_ct_AR
627 AR
628 DLLTOOL
629 OBJDUMP
630 LN_S
631 NM
632 ac_ct_DUMPBIN
633 DUMPBIN
634 LD
635 FGREP
636 EGREP
637 GREP
638 SED
639 LIBTOOL
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_dependency_tracking
729 enable_shared
730 enable_static
731 with_pic
732 enable_fast_install
733 with_gnu_ld
734 with_sysroot
735 enable_libtool_lock
736 enable_examples
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
747
748
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *=) ac_optarg= ;;
811 *) ac_optarg=yes ;;
812 esac
813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
844
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
893
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
902
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
906
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
913
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
918
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
924
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
931
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
936
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
941
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
948
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
953
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
960
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
965
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
969
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
973
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
977
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
986
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
991
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
998
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1005
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1022
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1027
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1032
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 ;;
1153
1154 esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1160 fi
1161
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168 fi
1169
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1175 do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used" >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1206 fi
1207 fi
1208
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212 test "$silent" = yes && exec 6>/dev/null
1213
1214
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error $? "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error $? "pwd does not report name of working directory"
1221
1222
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1253 fi
1254 else
1255 ac_srcdir_defaulted=no
1256 fi
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1268 fi
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1281
1282 #
1283 # Report the --help message.
1284 #
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289 \`configure' configures libnfs 0.0.0 to adapt to many kinds of systems.
1290
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1295
1296 Defaults for the options are specified in brackets.
1297
1298 Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking ...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1314
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1319
1320 For better control, use the options below.
1321
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfs]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342 _ACEOF
1343
1344 cat <<\_ACEOF
1345
1346 Program names:
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1350
1351 System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358 case $ac_init_help in
1359 short | recursive ) echo "Configuration of libnfs 0.0.0:";;
1360 esac
1361 cat <<\_ACEOF
1362
1363 Optional Features:
1364 --disable-option-checking ignore unrecognized --enable/--with options
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --disable-dependency-tracking speeds up one-time build
1368 --enable-dependency-tracking do not reject slow dependency extractors
1369 --enable-shared[=PKGS] build shared libraries [default=yes]
1370 --enable-static[=PKGS] build static libraries [default=yes]
1371 --enable-fast-install[=PKGS]
1372 optimize for fast installation [default=yes]
1373 --disable-libtool-lock avoid locking (might break parallel builds)
1374 --enable-examples Build example programs
1375
1376 Optional Packages:
1377 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1378 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1379 --with-pic try to use only PIC/non-PIC objects [default=use
1380 both]
1381 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1382 --with-sysroot=DIR Search for dependent libraries within DIR
1383 (or the compiler's sysroot if not specified).
1384
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1394
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to the package provider.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
1409 ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 libnfs configure 0.0.0
1462 generated by GNU Autoconf 2.68
1463
1464 Copyright (C) 2010 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468 exit
1469 fi
1470
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507 fi
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509 as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_link LINENO
1514 # -----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_link ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext conftest$ac_exeext
1520 if { { ac_try="$ac_link"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest$ac_exeext && {
1539 test "$cross_compiling" = yes ||
1540 $as_test_x conftest$ac_exeext
1541 }; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1550 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1551 # interfere with the next link command; also delete a directory that is
1552 # left behind by Apple's compiler. We do this before executing the actions.
1553 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_link
1558
1559 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1560 # -------------------------------------------------------
1561 # Tests whether HEADER exists and can be compiled using the include files in
1562 # INCLUDES, setting the cache variable VAR accordingly.
1563 ac_fn_c_check_header_compile ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567 $as_echo_n "checking for $2... " >&6; }
1568 if eval \${$3+:} false; then :
1569 $as_echo_n "(cached) " >&6
1570 else
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h. */
1573 $4
1574 #include <$2>
1575 _ACEOF
1576 if ac_fn_c_try_compile "$LINENO"; then :
1577 eval "$3=yes"
1578 else
1579 eval "$3=no"
1580 fi
1581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582 fi
1583 eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
1588 } # ac_fn_c_check_header_compile
1589
1590 # ac_fn_c_try_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_cpp ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } > conftest.i && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 }; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_cpp
1626
1627 # ac_fn_c_try_run LINENO
1628 # ----------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1630 # that executables *can* be run.
1631 ac_fn_c_try_run ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_link"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>&5
1642 ac_status=$?
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1645 { { case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_try") 2>&5
1652 ac_status=$?
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; }; }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: program exited with status $ac_status" >&5
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=$ac_status
1662 fi
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_run
1668
1669 # ac_fn_c_check_func LINENO FUNC VAR
1670 # ----------------------------------
1671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1672 ac_fn_c_check_func ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1684 #define $2 innocuous_$2
1685
1686 /* System header to define __stub macros and hopefully few prototypes,
1687 which can conflict with char $2 (); below.
1688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1689 <limits.h> exists even on freestanding compilers. */
1690
1691 #ifdef __STDC__
1692 # include <limits.h>
1693 #else
1694 # include <assert.h>
1695 #endif
1696
1697 #undef $2
1698
1699 /* Override any GCC internal prototype to avoid an error.
1700 Use char because int might match the return type of a GCC
1701 builtin and then its argument prototype would still apply. */
1702 #ifdef __cplusplus
1703 extern "C"
1704 #endif
1705 char $2 ();
1706 /* The GNU C library defines this for functions which it implements
1707 to always fail with ENOSYS. Some functions are actually named
1708 something starting with __ and the normal name is an alias. */
1709 #if defined __stub_$2 || defined __stub___$2
1710 choke me
1711 #endif
1712
1713 int
1714 main ()
1715 {
1716 return $2 ();
1717 ;
1718 return 0;
1719 }
1720 _ACEOF
1721 if ac_fn_c_try_link "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext \
1727 conftest$ac_exeext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_func
1735
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1740 # accordingly.
1741 ac_fn_c_check_header_mongrel ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if eval \${$3+:} false; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 else
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1764 else
1765 ac_header_compiler=no
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1770
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1780 else
1781 ac_header_preproc=no
1782 fi
1783 rm -f conftest.err conftest.i conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1786
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 yes:no: )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ;;
1795 no:yes:* )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 ;;
1807 esac
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 eval "$3=\$ac_header_compiler"
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_header_mongrel
1822
1823 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1824 # ----------------------------------------------------
1825 # Tries to find if the field MEMBER exists in type AGGR, after including
1826 # INCLUDES, setting cache variable VAR accordingly.
1827 ac_fn_c_check_member ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1831 $as_echo_n "checking for $2.$3... " >&6; }
1832 if eval \${$4+:} false; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $5
1838 int
1839 main ()
1840 {
1841 static $2 ac_aggr;
1842 if (ac_aggr.$3)
1843 return 0;
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$4=yes"
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $5
1854 int
1855 main ()
1856 {
1857 static $2 ac_aggr;
1858 if (sizeof ac_aggr.$3)
1859 return 0;
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$4=yes"
1866 else
1867 eval "$4=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$4
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_member
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by libnfs $as_me 0.0.0, which was
1884 generated by GNU Autoconf 2.68. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231 ac_config_headers="$ac_config_headers config.h"
2232
2233 am__api_version='1.11'
2234
2235 ac_aux_dir=
2236 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2249 fi
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2253 fi
2254
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2262
2263
2264 # Find a good install program. We prefer a C program (faster),
2265 # so one script is as good as another. But avoid the broken or
2266 # incompatible versions:
2267 # SysV /etc/install, /usr/sbin/install
2268 # SunOS /usr/etc/install
2269 # IRIX /sbin/install
2270 # AIX /bin/install
2271 # AmigaOS /C/install, which installs bootblocks on floppy discs
2272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2275 # OS/2's system install, which has a completely different semantic
2276 # ./install, which can be erroneously created by make from ./install.sh.
2277 # Reject install programs that cannot install multiple files.
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2280 if test -z "$INSTALL"; then
2281 if ${ac_cv_path_install+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 # Account for people who put trailing slashes in PATH elements.
2290 case $as_dir/ in #((
2291 ./ | .// | /[cC]/* | \
2292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2294 /usr/ucb/* ) ;;
2295 *)
2296 # OSF1 and SCO ODT 3.0 have their own names for install.
2297 # Don't use installbsd from OSF since it installs stuff as root
2298 # by default.
2299 for ac_prog in ginstall scoinst install; do
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2305 :
2306 elif test $ac_prog = install &&
2307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2309 :
2310 else
2311 rm -rf conftest.one conftest.two conftest.dir
2312 echo one > conftest.one
2313 echo two > conftest.two
2314 mkdir conftest.dir
2315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2316 test -s conftest.one && test -s conftest.two &&
2317 test -s conftest.dir/conftest.one &&
2318 test -s conftest.dir/conftest.two
2319 then
2320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2321 break 3
2322 fi
2323 fi
2324 fi
2325 done
2326 done
2327 ;;
2328 esac
2329
2330 done
2331 IFS=$as_save_IFS
2332
2333 rm -rf conftest.one conftest.two conftest.dir
2334
2335 fi
2336 if test "${ac_cv_path_install+set}" = set; then
2337 INSTALL=$ac_cv_path_install
2338 else
2339 # As a last resort, use the slow shell script. Don't cache a
2340 # value for INSTALL within a source directory, because that will
2341 # break other packages using the cache if that directory is
2342 # removed, or if the value is a relative name.
2343 INSTALL=$ac_install_sh
2344 fi
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2347 $as_echo "$INSTALL" >&6; }
2348
2349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2350 # It thinks the first close brace ends the variable substitution.
2351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2352
2353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2354
2355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2358 $as_echo_n "checking whether build environment is sane... " >&6; }
2359 # Just in case
2360 sleep 1
2361 echo timestamp > conftest.file
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do `set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2382 if test "$*" = "X"; then
2383 # -L didn't work.
2384 set X `ls -t "$srcdir/configure" conftest.file`
2385 fi
2386 rm -f conftest.file
2387 if test "$*" != "X $srcdir/configure conftest.file" \
2388 && test "$*" != "X conftest.file $srcdir/configure"; then
2389
2390 # If neither matched, then we have a broken ls. This can happen
2391 # if, for instance, CONFIG_SHELL is bash and it inherits a
2392 # broken ls alias from the environment. This has actually
2393 # happened. Such a system could not be considered "sane".
2394 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2395 alias in your environment" "$LINENO" 5
2396 fi
2397
2398 test "$2" = conftest.file
2399 )
2400 then
2401 # Ok.
2402 :
2403 else
2404 as_fn_error $? "newly created file is older than distributed files!
2405 Check your system clock" "$LINENO" 5
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408 $as_echo "yes" >&6; }
2409 test "$program_prefix" != NONE &&
2410 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2411 # Use a double $ so make ignores it.
2412 test "$program_suffix" != NONE &&
2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2414 # Double any \ or $.
2415 # By default was `s,x,x', remove it if useless.
2416 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2418
2419 # expand $ac_aux_dir to an absolute path
2420 am_aux_dir=`cd $ac_aux_dir && pwd`
2421
2422 if test x"${MISSING+set}" != xset; then
2423 case $am_aux_dir in
2424 *\ * | *\ *)
2425 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2426 *)
2427 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2428 esac
2429 fi
2430 # Use eval to expand $SHELL
2431 if eval "$MISSING --run true"; then
2432 am_missing_run="$MISSING --run "
2433 else
2434 am_missing_run=
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2436 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2437 fi
2438
2439 if test x"${install_sh}" != xset; then
2440 case $am_aux_dir in
2441 *\ * | *\ *)
2442 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2443 *)
2444 install_sh="\${SHELL} $am_aux_dir/install-sh"
2445 esac
2446 fi
2447
2448 # Installed binaries are usually stripped using `strip' when the user
2449 # run `make install-strip'. However `strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the `STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_STRIP+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2484 $as_echo "$STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491 fi
2492 if test -z "$ac_cv_prog_STRIP"; then
2493 ac_ct_STRIP=$STRIP
2494 # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_ac_ct_STRIP="strip"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2524 $as_echo "$ac_ct_STRIP" >&6; }
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530 if test "x$ac_ct_STRIP" = x; then
2531 STRIP=":"
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537 ac_tool_warned=yes ;;
2538 esac
2539 STRIP=$ac_ct_STRIP
2540 fi
2541 else
2542 STRIP="$ac_cv_prog_STRIP"
2543 fi
2544
2545 fi
2546 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2547
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2549 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2550 if test -z "$MKDIR_P"; then
2551 if ${ac_cv_path_mkdir+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_prog in mkdir gmkdir; do
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2562 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2563 'mkdir (GNU coreutils) '* | \
2564 'mkdir (coreutils) '* | \
2565 'mkdir (fileutils) '4.1*)
2566 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567 break 3;;
2568 esac
2569 done
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575
2576 test -d ./--version && rmdir ./--version
2577 if test "${ac_cv_path_mkdir+set}" = set; then
2578 MKDIR_P="$ac_cv_path_mkdir -p"
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for MKDIR_P within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 MKDIR_P="$ac_install_sh -d"
2585 fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2588 $as_echo "$MKDIR_P" >&6; }
2589
2590 mkdir_p="$MKDIR_P"
2591 case $mkdir_p in
2592 [\\/$]* | ?:[\\/]*) ;;
2593 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2594 esac
2595
2596 for ac_prog in gawk mawk nawk awk
2597 do
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_AWK+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$AWK"; then
2606 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_AWK="$ac_prog"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 AWK=$ac_cv_prog_AWK
2626 if test -n "$AWK"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2628 $as_echo "$AWK" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634
2635 test -n "$AWK" && break
2636 done
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2640 set x ${MAKE-make}
2641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 cat >conftest.make <<\_ACEOF
2646 SHELL = /bin/sh
2647 all:
2648 @echo '@@@%%%=$(MAKE)=@@@%%%'
2649 _ACEOF
2650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2652 *@@@%%%=?*=@@@%%%*)
2653 eval ac_cv_prog_make_${ac_make}_set=yes;;
2654 *)
2655 eval ac_cv_prog_make_${ac_make}_set=no;;
2656 esac
2657 rm -f conftest.make
2658 fi
2659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661 $as_echo "yes" >&6; }
2662 SET_MAKE=
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 SET_MAKE="MAKE=${MAKE-make}"
2667 fi
2668
2669 rm -rf .tst 2>/dev/null
2670 mkdir .tst 2>/dev/null
2671 if test -d .tst; then
2672 am__leading_dot=.
2673 else
2674 am__leading_dot=_
2675 fi
2676 rmdir .tst 2>/dev/null
2677
2678 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2679 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2680 # is not polluted with repeated "-I."
2681 am__isrc=' -I$(srcdir)'
2682 # test to see if srcdir already configured
2683 if test -f $srcdir/config.status; then
2684 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2685 fi
2686 fi
2687
2688 # test whether we have cygpath
2689 if test -z "$CYGPATH_W"; then
2690 if (cygpath --version) >/dev/null 2>/dev/null; then
2691 CYGPATH_W='cygpath -w'
2692 else
2693 CYGPATH_W=echo
2694 fi
2695 fi
2696
2697
2698 # Define the identity of the package.
2699 PACKAGE='libnfs'
2700 VERSION='0.0.0'
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE "$PACKAGE"
2705 _ACEOF
2706
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define VERSION "$VERSION"
2710 _ACEOF
2711
2712 # Some tools Automake needs.
2713
2714 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2715
2716
2717 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2718
2719
2720 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2721
2722
2723 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2724
2725
2726 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2727
2728 # We need awk for the "check" target. The system "awk" is bad on
2729 # some platforms.
2730 # Always define AMTAR for backward compatibility.
2731
2732 AMTAR=${AMTAR-"${am_missing_run}tar"}
2733
2734 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2735
2736
2737
2738
2739
2740 # Make sure we can run config.sub.
2741 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2742 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2745 $as_echo_n "checking build system type... " >&6; }
2746 if ${ac_cv_build+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 ac_build_alias=$build_alias
2750 test "x$ac_build_alias" = x &&
2751 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2752 test "x$ac_build_alias" = x &&
2753 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2754 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2756
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2759 $as_echo "$ac_cv_build" >&6; }
2760 case $ac_cv_build in
2761 *-*-*) ;;
2762 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763 esac
2764 build=$ac_cv_build
2765 ac_save_IFS=$IFS; IFS='-'
2766 set x $ac_cv_build
2767 shift
2768 build_cpu=$1
2769 build_vendor=$2
2770 shift; shift
2771 # Remember, the first character of IFS is used to create $*,
2772 # except with old shells:
2773 build_os=$*
2774 IFS=$ac_save_IFS
2775 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2776
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2779 $as_echo_n "checking host system type... " >&6; }
2780 if ${ac_cv_host+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test "x$host_alias" = x; then
2784 ac_cv_host=$ac_cv_build
2785 else
2786 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2788 fi
2789
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2792 $as_echo "$ac_cv_host" >&6; }
2793 case $ac_cv_host in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2796 esac
2797 host=$ac_cv_host
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_host
2800 shift
2801 host_cpu=$1
2802 host_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 host_os=$*
2807 IFS=$ac_save_IFS
2808 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2809
2810
2811
2812 # Work around stupid autoconf default cflags. pt 1
2813 SAVE_CFLAGS="x${CFLAGS}"
2814
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858 fi
2859 if test -z "$ac_cv_prog_CC"; then
2860 ac_ct_CC=$CC
2861 # Extract the first word of "gcc", so it can be a program name with args.
2862 set dummy gcc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$ac_ct_CC"; then
2869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_ac_ct_CC="gcc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889 if test -n "$ac_ct_CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2891 $as_echo "$ac_ct_CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897 if test "x$ac_ct_CC" = x; then
2898 CC=""
2899 else
2900 case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906 CC=$ac_ct_CC
2907 fi
2908 else
2909 CC="$ac_cv_prog_CC"
2910 fi
2911
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="${ac_tool_prefix}cc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 fi
2953 if test -z "$CC"; then
2954 # Extract the first word of "cc", so it can be a program name with args.
2955 set dummy cc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 ac_prog_rejected=no
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2973 ac_prog_rejected=yes
2974 continue
2975 fi
2976 ac_cv_prog_CC="cc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 if test $ac_prog_rejected = yes; then
2985 # We found a bogon in the path, so make sure we never use it.
2986 set dummy $ac_cv_prog_CC
2987 shift
2988 if test $# != 0; then
2989 # We chose a different compiler from the bogus one.
2990 # However, it has the same basename, so the bogon will be chosen
2991 # first if we set CC to just the basename; use the full file name.
2992 shift
2993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2994 fi
2995 fi
2996 fi
2997 fi
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007
3008 fi
3009 if test -z "$CC"; then
3010 if test -n "$ac_tool_prefix"; then
3011 for ac_prog in cl.exe
3012 do
3013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 test -n "$CC" && break
3051 done
3052 fi
3053 if test -z "$CC"; then
3054 ac_ct_CC=$CC
3055 for ac_prog in cl.exe
3056 do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 set dummy $ac_prog; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_ac_ct_CC="$ac_prog"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 $as_echo "$ac_ct_CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 test -n "$ac_ct_CC" && break
3095 done
3096
3097 if test "x$ac_ct_CC" = x; then
3098 CC=""
3099 else
3100 case $cross_compiling:$ac_tool_warned in
3101 yes:)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3105 esac
3106 CC=$ac_ct_CC
3107 fi
3108 fi
3109
3110 fi
3111
3112
3113 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details" "$LINENO" 5; }
3117
3118 # Provide some information about the compiler.
3119 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3120 set X $ac_compile
3121 ac_compiler=$2
3122 for ac_option in --version -v -V -qversion; do
3123 { { ac_try="$ac_compiler $ac_option >&5"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3131 ac_status=$?
3132 if test -s conftest.err; then
3133 sed '10a\
3134 ... rest of stderr output deleted ...
3135 10q' conftest.err >conftest.er1
3136 cat conftest.er1 >&5
3137 fi
3138 rm -f conftest.er1 conftest.err
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }
3141 done
3142
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3158 # of exeext.
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3160 $as_echo_n "checking whether the C compiler works... " >&6; }
3161 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162
3163 # The possible output files:
3164 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3165
3166 ac_rmfiles=
3167 for ac_file in $ac_files
3168 do
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3171 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3172 esac
3173 done
3174 rm -f $ac_rmfiles
3175
3176 if { { ac_try="$ac_link_default"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link_default") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197 ;;
3198 [ab].out )
3199 # We found the default executable, but exeext='' is most
3200 # certainly right.
3201 break;;
3202 *.* )
3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204 then :; else
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 fi
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an `-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3211 # actually working.
3212 break;;
3213 * )
3214 break;;
3215 esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220 ac_file=''
3221 fi
3222 if test -z "$ac_file"; then :
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 $as_echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error 77 "C compiler cannot create executables
3231 See \`config.log' for more details" "$LINENO" 5; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3237 $as_echo_n "checking for C compiler default output file name... " >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3239 $as_echo "$ac_file" >&6; }
3240 ac_exeext=$ac_cv_exeext
3241
3242 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3243 ac_clean_files=$ac_clean_files_save
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3245 $as_echo_n "checking for suffix of executables... " >&6; }
3246 if { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3259 # work properly (i.e., refer to `conftest.exe'), while it won't with
3260 # `rm'.
3261 for ac_file in conftest.exe conftest conftest.*; do
3262 test -f "$ac_file" || continue
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 break;;
3267 * ) break;;
3268 esac
3269 done
3270 else
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3274 See \`config.log' for more details" "$LINENO" 5; }
3275 fi
3276 rm -f conftest conftest$ac_cv_exeext
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3278 $as_echo "$ac_cv_exeext" >&6; }
3279
3280 rm -f conftest.$ac_ext
3281 EXEEXT=$ac_cv_exeext
3282 ac_exeext=$EXEEXT
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3285 #include <stdio.h>
3286 int
3287 main ()
3288 {
3289 FILE *f = fopen ("conftest.out", "w");
3290 return ferror (f) || fclose (f) != 0;
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files="$ac_clean_files conftest.out"
3297 # Check that the compiler produces executables we can run. If not, either
3298 # the compiler is broken, or we cross compile.
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3300 $as_echo_n "checking whether we are cross compiling... " >&6; }
3301 if test "$cross_compiling" != yes; then
3302 { { ac_try="$ac_link"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }
3313 if { ac_try='./conftest$ac_cv_exeext'
3314 { { case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; }; then
3324 cross_compiling=no
3325 else
3326 if test "$cross_compiling" = maybe; then
3327 cross_compiling=yes
3328 else
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 fi
3335 fi
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3338 $as_echo "$cross_compiling" >&6; }
3339
3340 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3341 ac_clean_files=$ac_clean_files_save
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3343 $as_echo_n "checking for suffix of object files... " >&6; }
3344 if ${ac_cv_objext+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349
3350 int
3351 main ()
3352 {
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.o conftest.obj
3359 if { { ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_compile") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 for ac_file in conftest.o conftest.obj conftest.*; do
3371 test -f "$ac_file" || continue;
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375 break;;
3376 esac
3377 done
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details" "$LINENO" 5; }
3386 fi
3387 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3390 $as_echo "$ac_cv_objext" >&6; }
3391 OBJEXT=$ac_cv_objext
3392 ac_objext=$OBJEXT
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3394 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3395 if ${ac_cv_c_compiler_gnu+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404 #ifndef __GNUC__
3405 choke me
3406 #endif
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_compiler_gnu=yes
3414 else
3415 ac_compiler_gnu=no
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3419
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3422 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3423 if test $ac_compiler_gnu = yes; then
3424 GCC=yes
3425 else
3426 GCC=
3427 fi
3428 ac_test_CFLAGS=${CFLAGS+set}
3429 ac_save_CFLAGS=$CFLAGS
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3431 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3432 if ${ac_cv_prog_cc_g+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 ac_save_c_werror_flag=$ac_c_werror_flag
3436 ac_c_werror_flag=yes
3437 ac_cv_prog_cc_g=no
3438 CFLAGS="-g"
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451 ac_cv_prog_cc_g=yes
3452 else
3453 CFLAGS=""
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466
3467 else
3468 ac_c_werror_flag=$ac_save_c_werror_flag
3469 CFLAGS="-g"
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472
3473 int
3474 main ()
3475 {
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_cv_prog_cc_g=yes
3483 fi
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_c_werror_flag=$ac_save_c_werror_flag
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3492 $as_echo "$ac_cv_prog_cc_g" >&6; }
3493 if test "$ac_test_CFLAGS" = set; then
3494 CFLAGS=$ac_save_CFLAGS
3495 elif test $ac_cv_prog_cc_g = yes; then
3496 if test "$GCC" = yes; then
3497 CFLAGS="-g -O2"
3498 else
3499 CFLAGS="-g"
3500 fi
3501 else
3502 if test "$GCC" = yes; then
3503 CFLAGS="-O2"
3504 else
3505 CFLAGS=
3506 fi
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3509 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3510 if ${ac_cv_prog_cc_c89+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 ac_cv_prog_cc_c89=no
3514 ac_save_CC=$CC
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <stdarg.h>
3518 #include <stdio.h>
3519 #include <sys/types.h>
3520 #include <sys/stat.h>
3521 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3522 struct buf { int x; };
3523 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3524 static char *e (p, i)
3525 char **p;
3526 int i;
3527 {
3528 return p[i];
3529 }
3530 static char *f (char * (*g) (char **, int), char **p, ...)
3531 {
3532 char *s;
3533 va_list v;
3534 va_start (v,p);
3535 s = g (p, va_arg (v,int));
3536 va_end (v);
3537 return s;
3538 }
3539
3540 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3541 function prototypes and stuff, but not '\xHH' hex character constants.
3542 These don't provoke an error unfortunately, instead are silently treated
3543 as 'x'. The following induces an error, until -std is added to get
3544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3545 array size at least. It's necessary to write '\x00'==0 to get something
3546 that's true only with -std. */
3547 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3548
3549 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3550 inside strings and character constants. */
3551 #define FOO(x) 'x'
3552 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3553
3554 int test (int i, double x);
3555 struct s1 {int (*f) (int a);};
3556 struct s2 {int (*f) (double a);};
3557 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3558 int argc;
3559 char **argv;
3560 int
3561 main ()
3562 {
3563 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3570 do
3571 CC="$ac_save_CC $ac_arg"
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_c89=$ac_arg
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext
3576 test "x$ac_cv_prog_cc_c89" != "xno" && break
3577 done
3578 rm -f conftest.$ac_ext
3579 CC=$ac_save_CC
3580
3581 fi
3582 # AC_CACHE_VAL
3583 case "x$ac_cv_prog_cc_c89" in
3584 x)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3586 $as_echo "none needed" >&6; } ;;
3587 xno)
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3589 $as_echo "unsupported" >&6; } ;;
3590 *)
3591 CC="$CC $ac_cv_prog_cc_c89"
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3593 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3594 esac
3595 if test "x$ac_cv_prog_cc_c89" != xno; then :
3596
3597 fi
3598
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 DEPDIR="${am__leading_dot}deps"
3605
3606 ac_config_commands="$ac_config_commands depfiles"
3607
3608
3609 am_make=${MAKE-make}
3610 cat > confinc << 'END'
3611 am__doit:
3612 @echo this is the am__doit target
3613 .PHONY: am__doit
3614 END
3615 # If we don't find an include directive, just comment out the code.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3617 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3618 am__include="#"
3619 am__quote=
3620 _am_result=none
3621 # First try GNU make style include.
3622 echo "include confinc" > confmf
3623 # Ignore all kinds of additional output from `make'.
3624 case `$am_make -s -f confmf 2> /dev/null` in #(
3625 *the\ am__doit\ target*)
3626 am__include=include
3627 am__quote=
3628 _am_result=GNU
3629 ;;
3630 esac
3631 # Now try BSD make style include.
3632 if test "$am__include" = "#"; then
3633 echo '.include "confinc"' > confmf
3634 case `$am_make -s -f confmf 2> /dev/null` in #(
3635 *the\ am__doit\ target*)
3636 am__include=.include
3637 am__quote="\""
3638 _am_result=BSD
3639 ;;
3640 esac
3641 fi
3642
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3645 $as_echo "$_am_result" >&6; }
3646 rm -f confinc confmf
3647
3648 # Check whether --enable-dependency-tracking was given.
3649 if test "${enable_dependency_tracking+set}" = set; then :
3650 enableval=$enable_dependency_tracking;
3651 fi
3652
3653 if test "x$enable_dependency_tracking" != xno; then
3654 am_depcomp="$ac_aux_dir/depcomp"
3655 AMDEPBACKSLASH='\'
3656 fi
3657 if test "x$enable_dependency_tracking" != xno; then
3658 AMDEP_TRUE=
3659 AMDEP_FALSE='#'
3660 else
3661 AMDEP_TRUE='#'
3662 AMDEP_FALSE=
3663 fi
3664
3665
3666
3667 depcc="$CC" am_compiler_list=
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3670 $as_echo_n "checking dependency style of $depcc... " >&6; }
3671 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3675 # We make a subdir and do the tests there. Otherwise we can end up
3676 # making bogus files that we don't know about and never remove. For
3677 # instance it was reported that on HP-UX the gcc test will end up
3678 # making a dummy file named `D' -- because `-MD' means `put the output
3679 # in D'.
3680 mkdir conftest.dir
3681 # Copy depcomp to subdir because otherwise we won't find it if we're
3682 # using a relative directory.
3683 cp "$am_depcomp" conftest.dir
3684 cd conftest.dir
3685 # We will build objects and dependencies in a subdirectory because
3686 # it helps to detect inapplicable dependency modes. For instance
3687 # both Tru64's cc and ICC support -MD to output dependencies as a
3688 # side effect of compilation, but ICC will put the dependencies in
3689 # the current directory while Tru64 will put them in the object
3690 # directory.
3691 mkdir sub
3692
3693 am_cv_CC_dependencies_compiler_type=none
3694 if test "$am_compiler_list" = ""; then
3695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3696 fi
3697 am__universal=false
3698 case " $depcc " in #(
3699 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3700 esac
3701
3702 for depmode in $am_compiler_list; do
3703 # Setup a source with many dependencies, because some compilers
3704 # like to wrap large dependency lists on column 80 (with \), and
3705 # we should not choose a depcomp mode which is confused by this.
3706 #
3707 # We need to recreate these files for each test, as the compiler may
3708 # overwrite some of them when testing with obscure command lines.
3709 # This happens at least with the AIX C compiler.
3710 : > sub/conftest.c
3711 for i in 1 2 3 4 5 6; do
3712 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3713 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3714 # Solaris 8's {/usr,}/bin/sh.
3715 touch sub/conftst$i.h
3716 done
3717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3718
3719 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3720 # mode. It turns out that the SunPro C++ compiler does not properly
3721 # handle `-M -o', and we need to detect this. Also, some Intel
3722 # versions had trouble with output in subdirs
3723 am__obj=sub/conftest.${OBJEXT-o}
3724 am__minus_obj="-o $am__obj"
3725 case $depmode in
3726 gcc)
3727 # This depmode causes a compiler race in universal mode.
3728 test "$am__universal" = false || continue
3729 ;;
3730 nosideeffect)
3731 # after this tag, mechanisms are not by side-effect, so they'll
3732 # only be used when explicitly requested
3733 if test "x$enable_dependency_tracking" = xyes; then
3734 continue
3735 else
3736 break
3737 fi
3738 ;;
3739 msvisualcpp | msvcmsys)
3740 # This compiler won't grok `-c -o', but also, the minuso test has
3741 # not run yet. These depmodes are late enough in the game, and
3742 # so weak that their functioning should not be impacted.
3743 am__obj=conftest.${OBJEXT-o}
3744 am__minus_obj=
3745 ;;
3746 none) break ;;
3747 esac
3748 if depmode=$depmode \
3749 source=sub/conftest.c object=$am__obj \
3750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3751 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3752 >/dev/null 2>conftest.err &&
3753 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3754 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3755 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3756 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3757 # icc doesn't choke on unknown options, it will just issue warnings
3758 # or remarks (even with -Werror). So we grep stderr for any message
3759 # that says an option was ignored or not supported.
3760 # When given -MP, icc 7.0 and 7.1 complain thusly:
3761 # icc: Command line warning: ignoring option '-M'; no argument required
3762 # The diagnosis changed in icc 8.0:
3763 # icc: Command line remark: option '-MP' not supported
3764 if (grep 'ignoring option' conftest.err ||
3765 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3766 am_cv_CC_dependencies_compiler_type=$depmode
3767 break
3768 fi
3769 fi
3770 done
3771
3772 cd ..
3773 rm -rf conftest.dir
3774 else
3775 am_cv_CC_dependencies_compiler_type=none
3776 fi
3777
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3780 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3781 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3782
3783 if
3784 test "x$enable_dependency_tracking" != xno \
3785 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3786 am__fastdepCC_TRUE=
3787 am__fastdepCC_FALSE='#'
3788 else
3789 am__fastdepCC_TRUE='#'
3790 am__fastdepCC_FALSE=
3791 fi
3792
3793
3794 case `pwd` in
3795 *\ * | *\ *)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3797 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3798 esac
3799
3800
3801
3802 macro_version='2.4'
3803 macro_revision='1.3293'
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817 ltmain="$ac_aux_dir/ltmain.sh"
3818
3819 # Backslashify metacharacters that are still active within
3820 # double-quoted strings.
3821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3822
3823 # Same as above, but do not quote variable references.
3824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3825
3826 # Sed substitution to delay expansion of an escaped shell variable in a
3827 # double_quote_subst'ed string.
3828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3829
3830 # Sed substitution to delay expansion of an escaped single quote.
3831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3832
3833 # Sed substitution to avoid accidental globbing in evaled expressions
3834 no_glob_subst='s/\*/\\\*/g'
3835
3836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3841 $as_echo_n "checking how to print strings... " >&6; }
3842 # Test print first, because it will be a builtin if present.
3843 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3845 ECHO='print -r --'
3846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3847 ECHO='printf %s\n'
3848 else
3849 # Use this function as a fallback that always works.
3850 func_fallback_echo ()
3851 {
3852 eval 'cat <<_LTECHO_EOF
3853 $1
3854 _LTECHO_EOF'
3855 }
3856 ECHO='func_fallback_echo'
3857 fi
3858
3859 # func_echo_all arg...
3860 # Invoke $ECHO with all args, space-separated.
3861 func_echo_all ()
3862 {
3863 $ECHO ""
3864 }
3865
3866 case "$ECHO" in
3867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3868 $as_echo "printf" >&6; } ;;
3869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3870 $as_echo "print -r" >&6; } ;;
3871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3872 $as_echo "cat" >&6; } ;;
3873 esac
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3890 if ${ac_cv_path_SED+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3894 for ac_i in 1 2 3 4 5 6 7; do
3895 ac_script="$ac_script$as_nl$ac_script"
3896 done
3897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3898 { ac_script=; unset ac_script;}
3899 if test -z "$SED"; then
3900 ac_path_SED_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in sed gsed; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3911 # Check for GNU ac_path_SED and select it if it is found.
3912 # Check for GNU $ac_path_SED
3913 case `"$ac_path_SED" --version 2>&1` in
3914 *GNU*)
3915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3916 *)
3917 ac_count=0
3918 $as_echo_n 0123456789 >"conftest.in"
3919 while :
3920 do
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo '' >> "conftest.nl"
3925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_SED_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_SED="$ac_path_SED"
3931 ac_path_SED_max=$ac_count
3932 fi
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3935 done
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939 $ac_path_SED_found && break 3
3940 done
3941 done
3942 done
3943 IFS=$as_save_IFS
3944 if test -z "$ac_cv_path_SED"; then
3945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3946 fi
3947 else
3948 ac_cv_path_SED=$SED
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3953 $as_echo "$ac_cv_path_SED" >&6; }
3954 SED="$ac_cv_path_SED"
3955 rm -f conftest.sed
3956
3957 test -z "$SED" && SED=sed
3958 Xsed="$SED -e 1s/^X//"
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3971 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3972 if ${ac_cv_path_GREP+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -z "$GREP"; then
3976 ac_path_GREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in grep ggrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3987 # Check for GNU ac_path_GREP and select it if it is found.
3988 # Check for GNU $ac_path_GREP
3989 case `"$ac_path_GREP" --version 2>&1` in
3990 *GNU*)
3991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3992 *)
3993 ac_count=0
3994 $as_echo_n 0123456789 >"conftest.in"
3995 while :
3996 do
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'GREP' >> "conftest.nl"
4001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 as_fn_arith $ac_count + 1 && ac_count=$as_val
4004 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_GREP="$ac_path_GREP"
4007 ac_path_GREP_max=$ac_count
4008 fi
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4011 done
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015 $ac_path_GREP_found && break 3
4016 done
4017 done
4018 done
4019 IFS=$as_save_IFS
4020 if test -z "$ac_cv_path_GREP"; then
4021 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022 fi
4023 else
4024 ac_cv_path_GREP=$GREP
4025 fi
4026
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4029 $as_echo "$ac_cv_path_GREP" >&6; }
4030 GREP="$ac_cv_path_GREP"
4031
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4034 $as_echo_n "checking for egrep... " >&6; }
4035 if ${ac_cv_path_EGREP+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039 then ac_cv_path_EGREP="$GREP -E"
4040 else
4041 if test -z "$EGREP"; then
4042 ac_path_EGREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in egrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4053 # Check for GNU ac_path_EGREP and select it if it is found.
4054 # Check for GNU $ac_path_EGREP
4055 case `"$ac_path_EGREP" --version 2>&1` in
4056 *GNU*)
4057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4058 *)
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'EGREP' >> "conftest.nl"
4067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_EGREP="$ac_path_EGREP"
4073 ac_path_EGREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4080
4081 $ac_path_EGREP_found && break 3
4082 done
4083 done
4084 done
4085 IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_EGREP"; then
4087 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088 fi
4089 else
4090 ac_cv_path_EGREP=$EGREP
4091 fi
4092
4093 fi
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4096 $as_echo "$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4101 $as_echo_n "checking for fgrep... " >&6; }
4102 if ${ac_cv_path_FGREP+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4106 then ac_cv_path_FGREP="$GREP -F"
4107 else
4108 if test -z "$FGREP"; then
4109 ac_path_FGREP_found=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in fgrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4120 # Check for GNU ac_path_FGREP and select it if it is found.
4121 # Check for GNU $ac_path_FGREP
4122 case `"$ac_path_FGREP" --version 2>&1` in
4123 *GNU*)
4124 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4125 *)
4126 ac_count=0
4127 $as_echo_n 0123456789 >"conftest.in"
4128 while :
4129 do
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 $as_echo 'FGREP' >> "conftest.nl"
4134 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 as_fn_arith $ac_count + 1 && ac_count=$as_val
4137 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_FGREP="$ac_path_FGREP"
4140 ac_path_FGREP_max=$ac_count
4141 fi
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 esac
4147
4148 $ac_path_FGREP_found && break 3
4149 done
4150 done
4151 done
4152 IFS=$as_save_IFS
4153 if test -z "$ac_cv_path_FGREP"; then
4154 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 fi
4156 else
4157 ac_cv_path_FGREP=$FGREP
4158 fi
4159
4160 fi
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4163 $as_echo "$ac_cv_path_FGREP" >&6; }
4164 FGREP="$ac_cv_path_FGREP"
4165
4166
4167 test -z "$GREP" && GREP=grep
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187 # Check whether --with-gnu-ld was given.
4188 if test "${with_gnu_ld+set}" = set; then :
4189 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4190 else
4191 with_gnu_ld=no
4192 fi
4193
4194 ac_prog=ld
4195 if test "$GCC" = yes; then
4196 # Check if gcc -print-prog-name=ld gives a path.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4198 $as_echo_n "checking for ld used by $CC... " >&6; }
4199 case $host in
4200 *-*-mingw*)
4201 # gcc leaves a trailing carriage return which upsets mingw
4202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4203 *)
4204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4205 esac
4206 case $ac_prog in
4207 # Accept absolute paths.
4208 [\\/]* | ?:[\\/]*)
4209 re_direlt='/[^/][^/]*/\.\./'
4210 # Canonicalize the pathname of ld
4211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4214 done
4215 test -z "$LD" && LD="$ac_prog"
4216 ;;
4217 "")
4218 # If it fails, then pretend we aren't using GCC.
4219 ac_prog=ld
4220 ;;
4221 *)
4222 # If it is relative, then search for the first ld in PATH.
4223 with_gnu_ld=unknown
4224 ;;
4225 esac
4226 elif test "$with_gnu_ld" = yes; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4228 $as_echo_n "checking for GNU ld... " >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4231 $as_echo_n "checking for non-GNU ld... " >&6; }
4232 fi
4233 if ${lt_cv_path_LD+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -z "$LD"; then
4237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4238 for ac_dir in $PATH; do
4239 IFS="$lt_save_ifs"
4240 test -z "$ac_dir" && ac_dir=.
4241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4242 lt_cv_path_LD="$ac_dir/$ac_prog"
4243 # Check to see if the program is GNU ld. I'd rather use --version,
4244 # but apparently some variants of GNU ld only accept -v.
4245 # Break only if it was the GNU/non-GNU ld that we prefer.
4246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4247 *GNU* | *'with BFD'*)
4248 test "$with_gnu_ld" != no && break
4249 ;;
4250 *)
4251 test "$with_gnu_ld" != yes && break
4252 ;;
4253 esac
4254 fi
4255 done
4256 IFS="$lt_save_ifs"
4257 else
4258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4259 fi
4260 fi
4261
4262 LD="$lt_cv_path_LD"
4263 if test -n "$LD"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4265 $as_echo "$LD" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 fi
4270 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4272 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4273 if ${lt_cv_prog_gnu_ld+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4277 case `$LD -v 2>&1 </dev/null` in
4278 *GNU* | *'with BFD'*)
4279 lt_cv_prog_gnu_ld=yes
4280 ;;
4281 *)
4282 lt_cv_prog_gnu_ld=no
4283 ;;
4284 esac
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4287 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4288 with_gnu_ld=$lt_cv_prog_gnu_ld
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4299 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4300 if ${lt_cv_path_NM+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -n "$NM"; then
4304 # Let the user override the test.
4305 lt_cv_path_NM="$NM"
4306 else
4307 lt_nm_to_check="${ac_tool_prefix}nm"
4308 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4309 lt_nm_to_check="$lt_nm_to_check nm"
4310 fi
4311 for lt_tmp_nm in $lt_nm_to_check; do
4312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4313 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4314 IFS="$lt_save_ifs"
4315 test -z "$ac_dir" && ac_dir=.
4316 tmp_nm="$ac_dir/$lt_tmp_nm"
4317 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4318 # Check to see if the nm accepts a BSD-compat flag.
4319 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4320 # nm: unknown option "B" ignored
4321 # Tru64's nm complains that /dev/null is an invalid object file
4322 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4323 */dev/null* | *'Invalid file or object type'*)
4324 lt_cv_path_NM="$tmp_nm -B"
4325 break
4326 ;;
4327 *)
4328 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4329 */dev/null*)
4330 lt_cv_path_NM="$tmp_nm -p"
4331 break
4332 ;;
4333 *)
4334 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4335 continue # so that we can try to find one that supports BSD flags
4336 ;;
4337 esac
4338 ;;
4339 esac
4340 fi
4341 done
4342 IFS="$lt_save_ifs"
4343 done
4344 : ${lt_cv_path_NM=no}
4345 fi
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4348 $as_echo "$lt_cv_path_NM" >&6; }
4349 if test "$lt_cv_path_NM" != "no"; then
4350 NM="$lt_cv_path_NM"
4351 else
4352 # Didn't find any BSD compatible name lister, look for dumpbin.
4353 if test -n "$DUMPBIN"; then :
4354 # Let the user override the test.
4355 else
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in dumpbin "link -dump"
4358 do
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_DUMPBIN+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$DUMPBIN"; then
4367 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 DUMPBIN=$ac_cv_prog_DUMPBIN
4387 if test -n "$DUMPBIN"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4389 $as_echo "$DUMPBIN" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396 test -n "$DUMPBIN" && break
4397 done
4398 fi
4399 if test -z "$DUMPBIN"; then
4400 ac_ct_DUMPBIN=$DUMPBIN
4401 for ac_prog in dumpbin "link -dump"
4402 do
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$ac_ct_DUMPBIN"; then
4411 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4431 if test -n "$ac_ct_DUMPBIN"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4433 $as_echo "$ac_ct_DUMPBIN" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$ac_ct_DUMPBIN" && break
4441 done
4442
4443 if test "x$ac_ct_DUMPBIN" = x; then
4444 DUMPBIN=":"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 DUMPBIN=$ac_ct_DUMPBIN
4453 fi
4454 fi
4455
4456 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4457 *COFF*)
4458 DUMPBIN="$DUMPBIN -symbols"
4459 ;;
4460 *)
4461 DUMPBIN=:
4462 ;;
4463 esac
4464 fi
4465
4466 if test "$DUMPBIN" != ":"; then
4467 NM="$DUMPBIN"
4468 fi
4469 fi
4470 test -z "$NM" && NM=nm
4471
4472
4473
4474
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4478 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4479 if ${lt_cv_nm_interface+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 lt_cv_nm_interface="BSD nm"
4483 echo "int some_variable = 0;" > conftest.$ac_ext
4484 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4485 (eval "$ac_compile" 2>conftest.err)
4486 cat conftest.err >&5
4487 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4489 cat conftest.err >&5
4490 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4491 cat conftest.out >&5
4492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4493 lt_cv_nm_interface="MS dumpbin"
4494 fi
4495 rm -f conftest*
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4498 $as_echo "$lt_cv_nm_interface" >&6; }
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4501 $as_echo_n "checking whether ln -s works... " >&6; }
4502 LN_S=$as_ln_s
4503 if test "$LN_S" = "ln -s"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505 $as_echo "yes" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4508 $as_echo "no, using $LN_S" >&6; }
4509 fi
4510
4511 # find the maximum length of command line arguments
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4513 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4514 if ${lt_cv_sys_max_cmd_len+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 i=0
4518 teststring="ABCD"
4519
4520 case $build_os in
4521 msdosdjgpp*)
4522 # On DJGPP, this test can blow up pretty badly due to problems in libc
4523 # (any single argument exceeding 2000 bytes causes a buffer overrun
4524 # during glob expansion). Even if it were fixed, the result of this
4525 # check would be larger than it should be.
4526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4527 ;;
4528
4529 gnu*)
4530 # Under GNU Hurd, this test is not required because there is
4531 # no limit to the length of command line arguments.
4532 # Libtool will interpret -1 as no limit whatsoever
4533 lt_cv_sys_max_cmd_len=-1;
4534 ;;
4535
4536 cygwin* | mingw* | cegcc*)
4537 # On Win9x/ME, this test blows up -- it succeeds, but takes
4538 # about 5 minutes as the teststring grows exponentially.
4539 # Worse, since 9x/ME are not pre-emptively multitasking,
4540 # you end up with a "frozen" computer, even though with patience
4541 # the test eventually succeeds (with a max line length of 256k).
4542 # Instead, let's just punt: use the minimum linelength reported by
4543 # all of the supported platforms: 8192 (on NT/2K/XP).
4544 lt_cv_sys_max_cmd_len=8192;
4545 ;;
4546
4547 mint*)
4548 # On MiNT this can take a long time and run out of memory.
4549 lt_cv_sys_max_cmd_len=8192;
4550 ;;
4551
4552 amigaos*)
4553 # On AmigaOS with pdksh, this test takes hours, literally.
4554 # So we just punt and use a minimum line length of 8192.
4555 lt_cv_sys_max_cmd_len=8192;
4556 ;;
4557
4558 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4559 # This has been around since 386BSD, at least. Likely further.
4560 if test -x /sbin/sysctl; then
4561 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4562 elif test -x /usr/sbin/sysctl; then
4563 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4564 else
4565 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4566 fi
4567 # And add a safety zone
4568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4570 ;;
4571
4572 interix*)
4573 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4574 lt_cv_sys_max_cmd_len=196608
4575 ;;
4576
4577 osf*)
4578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4580 # nice to cause kernel panics so lets avoid the loop below.
4581 # First set a reasonable default.
4582 lt_cv_sys_max_cmd_len=16384
4583 #
4584 if test -x /sbin/sysconfig; then
4585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4586 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4587 esac
4588 fi
4589 ;;
4590 sco3.2v5*)
4591 lt_cv_sys_max_cmd_len=102400
4592 ;;
4593 sysv5* | sco5v6* | sysv4.2uw2*)
4594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4595 if test -n "$kargmax"; then
4596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4597 else
4598 lt_cv_sys_max_cmd_len=32768
4599 fi
4600 ;;
4601 *)
4602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4603 if test -n "$lt_cv_sys_max_cmd_len"; then
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4606 else
4607 # Make teststring a little bigger before we do anything with it.
4608 # a 1K string should be a reasonable start.
4609 for i in 1 2 3 4 5 6 7 8 ; do
4610 teststring=$teststring$teststring
4611 done
4612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4613 # If test is not a shell built-in, we'll probably end up computing a
4614 # maximum length that is only half of the actual maximum length, but
4615 # we can't tell.
4616 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4618 test $i != 17 # 1/2 MB should be enough
4619 do
4620 i=`expr $i + 1`
4621 teststring=$teststring$teststring
4622 done
4623 # Only check the string length outside the loop.
4624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4625 teststring=
4626 # Add a significant safety factor because C++ compilers can tack on
4627 # massive amounts of additional arguments before passing them to the
4628 # linker. It appears as though 1/2 is a usable value.
4629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4630 fi
4631 ;;
4632 esac
4633
4634 fi
4635
4636 if test -n $lt_cv_sys_max_cmd_len ; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4641 $as_echo "none" >&6; }
4642 fi
4643 max_cmd_len=$lt_cv_sys_max_cmd_len
4644
4645
4646
4647
4648
4649
4650 : ${CP="cp -f"}
4651 : ${MV="mv -f"}
4652 : ${RM="rm -f"}
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4656 # Try some XSI features
4657 xsi_shell=no
4658 ( _lt_dummy="a/b/c"
4659 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4660 = c,a/b,b/c, \
4661 && eval 'test $(( 1 + 1 )) -eq 2 \
4662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4663 && xsi_shell=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4665 $as_echo "$xsi_shell" >&6; }
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4670 lt_shell_append=no
4671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4672 >/dev/null 2>&1 \
4673 && lt_shell_append=yes
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4675 $as_echo "$lt_shell_append" >&6; }
4676
4677
4678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679 lt_unset=unset
4680 else
4681 lt_unset=false
4682 fi
4683
4684
4685
4686
4687
4688 # test EBCDIC or ASCII
4689 case `echo X|tr X '\101'` in
4690 A) # ASCII based system
4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692 lt_SP2NL='tr \040 \012'
4693 lt_NL2SP='tr \015\012 \040\040'
4694 ;;
4695 *) # EBCDIC based system
4696 lt_SP2NL='tr \100 \n'
4697 lt_NL2SP='tr \r\n \100\100'
4698 ;;
4699 esac
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4711 if ${lt_cv_to_host_file_cmd+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 case $host in
4715 *-*-mingw* )
4716 case $build in
4717 *-*-mingw* ) # actually msys
4718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4719 ;;
4720 *-*-cygwin* )
4721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4722 ;;
4723 * ) # otherwise, assume *nix
4724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4725 ;;
4726 esac
4727 ;;
4728 *-*-cygwin* )
4729 case $build in
4730 *-*-mingw* ) # actually msys
4731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4732 ;;
4733 *-*-cygwin* )
4734 lt_cv_to_host_file_cmd=func_convert_file_noop
4735 ;;
4736 * ) # otherwise, assume *nix
4737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4738 ;;
4739 esac
4740 ;;
4741 * ) # unhandled hosts (and "normal" native builds)
4742 lt_cv_to_host_file_cmd=func_convert_file_noop
4743 ;;
4744 esac
4745
4746 fi
4747
4748 to_host_file_cmd=$lt_cv_to_host_file_cmd
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4751
4752
4753
4754
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4758 if ${lt_cv_to_tool_file_cmd+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 #assume ordinary cross tools, or native build.
4762 lt_cv_to_tool_file_cmd=func_convert_file_noop
4763 case $host in
4764 *-*-mingw* )
4765 case $build in
4766 *-*-mingw* ) # actually msys
4767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4768 ;;
4769 esac
4770 ;;
4771 esac
4772
4773 fi
4774
4775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4778
4779
4780
4781
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4785 if ${lt_cv_ld_reload_flag+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 lt_cv_ld_reload_flag='-r'
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4792 reload_flag=$lt_cv_ld_reload_flag
4793 case $reload_flag in
4794 "" | " "*) ;;
4795 *) reload_flag=" $reload_flag" ;;
4796 esac
4797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4798 case $host_os in
4799 cygwin* | mingw* | pw32* | cegcc*)
4800 if test "$GCC" != yes; then
4801 reload_cmds=false
4802 fi
4803 ;;
4804 darwin*)
4805 if test "$GCC" = yes; then
4806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4807 else
4808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4809 fi
4810 ;;
4811 esac
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_prog_OBJDUMP+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$OBJDUMP"; then
4830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 OBJDUMP=$ac_cv_prog_OBJDUMP
4850 if test -n "$OBJDUMP"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4852 $as_echo "$OBJDUMP" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858
4859 fi
4860 if test -z "$ac_cv_prog_OBJDUMP"; then
4861 ac_ct_OBJDUMP=$OBJDUMP
4862 # Extract the first word of "objdump", so it can be a program name with args.
4863 set dummy objdump; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$ac_ct_OBJDUMP"; then
4870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4890 if test -n "$ac_ct_OBJDUMP"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4892 $as_echo "$ac_ct_OBJDUMP" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898 if test "x$ac_ct_OBJDUMP" = x; then
4899 OBJDUMP="false"
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907 OBJDUMP=$ac_ct_OBJDUMP
4908 fi
4909 else
4910 OBJDUMP="$ac_cv_prog_OBJDUMP"
4911 fi
4912
4913 test -z "$OBJDUMP" && OBJDUMP=objdump
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4925 if ${lt_cv_deplibs_check_method+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 lt_cv_file_magic_cmd='$MAGIC_CMD'
4929 lt_cv_file_magic_test_file=
4930 lt_cv_deplibs_check_method='unknown'
4931 # Need to set the preceding variable on all platforms that support
4932 # interlibrary dependencies.
4933 # 'none' -- dependencies not supported.
4934 # `unknown' -- same as none, but documents that we really don't know.
4935 # 'pass_all' -- all dependencies passed with no checks.
4936 # 'test_compile' -- check by making test program.
4937 # 'file_magic [[regex]]' -- check by looking for files in library path
4938 # which responds to the $file_magic_cmd with a given extended regex.
4939 # If you have `file' or equivalent on your system and you're not sure
4940 # whether `pass_all' will *always* work, you probably want this one.
4941
4942 case $host_os in
4943 aix[4-9]*)
4944 lt_cv_deplibs_check_method=pass_all
4945 ;;
4946
4947 beos*)
4948 lt_cv_deplibs_check_method=pass_all
4949 ;;
4950
4951 bsdi[45]*)
4952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4953 lt_cv_file_magic_cmd='/usr/bin/file -L'
4954 lt_cv_file_magic_test_file=/shlib/libc.so
4955 ;;
4956
4957 cygwin*)
4958 # func_win32_libid is a shell function defined in ltmain.sh
4959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4960 lt_cv_file_magic_cmd='func_win32_libid'
4961 ;;
4962
4963 mingw* | pw32*)
4964 # Base MSYS/MinGW do not provide the 'file' command needed by
4965 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4966 # unless we find 'file', for example because we are cross-compiling.
4967 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4968 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4970 lt_cv_file_magic_cmd='func_win32_libid'
4971 else
4972 # Keep this pattern in sync with the one in func_win32_libid.
4973 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4974 lt_cv_file_magic_cmd='$OBJDUMP -f'
4975 fi
4976 ;;
4977
4978 cegcc*)
4979 # use the weaker test based on 'objdump'. See mingw*.
4980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4981 lt_cv_file_magic_cmd='$OBJDUMP -f'
4982 ;;
4983
4984 darwin* | rhapsody*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988 freebsd* | dragonfly*)
4989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4990 case $host_cpu in
4991 i*86 )
4992 # Not sure whether the presence of OpenBSD here was a mistake.
4993 # Let's accept both of them until this is cleared up.
4994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4995 lt_cv_file_magic_cmd=/usr/bin/file
4996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4997 ;;
4998 esac
4999 else
5000 lt_cv_deplibs_check_method=pass_all
5001 fi
5002 ;;
5003
5004 gnu*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
5007
5008 haiku*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012 hpux10.20* | hpux11*)
5013 lt_cv_file_magic_cmd=/usr/bin/file
5014 case $host_cpu in
5015 ia64*)
5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5018 ;;
5019 hppa*64*)
5020 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]'
5021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5022 ;;
5023 *)
5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5026 ;;
5027 esac
5028 ;;
5029
5030 interix[3-9]*)
5031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5033 ;;
5034
5035 irix5* | irix6* | nonstopux*)
5036 case $LD in
5037 *-32|*"-32 ") libmagic=32-bit;;
5038 *-n32|*"-n32 ") libmagic=N32;;
5039 *-64|*"-64 ") libmagic=64-bit;;
5040 *) libmagic=never-match;;
5041 esac
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 # This must be Linux ELF.
5046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 netbsd* | netbsdelf*-gnu)
5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5053 else
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5055 fi
5056 ;;
5057
5058 newos6*)
5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5060 lt_cv_file_magic_cmd=/usr/bin/file
5061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5062 ;;
5063
5064 *nto* | *qnx*)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067
5068 openbsd*)
5069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5071 else
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073 fi
5074 ;;
5075
5076 osf3* | osf4* | osf5*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079
5080 rdos*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084 solaris*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 sysv4 | sysv4.3*)
5093 case $host_vendor in
5094 motorola)
5095 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]'
5096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5097 ;;
5098 ncr)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101 sequent)
5102 lt_cv_file_magic_cmd='/bin/file'
5103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5104 ;;
5105 sni)
5106 lt_cv_file_magic_cmd='/bin/file'
5107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5108 lt_cv_file_magic_test_file=/lib/libc.so
5109 ;;
5110 siemens)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113 pc)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116 esac
5117 ;;
5118
5119 tpf*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122 esac
5123
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5127
5128 file_magic_glob=
5129 want_nocaseglob=no
5130 if test "$build" = "$host"; then
5131 case $host_os in
5132 mingw* | pw32*)
5133 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5134 want_nocaseglob=yes
5135 else
5136 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5137 fi
5138 ;;
5139 esac
5140 fi
5141
5142 file_magic_cmd=$lt_cv_file_magic_cmd
5143 deplibs_check_method=$lt_cv_deplibs_check_method
5144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167 if test -n "$ac_tool_prefix"; then
5168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5169 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_prog_DLLTOOL+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$DLLTOOL"; then
5176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 DLLTOOL=$ac_cv_prog_DLLTOOL
5196 if test -n "$DLLTOOL"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5198 $as_echo "$DLLTOOL" >&6; }
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205 fi
5206 if test -z "$ac_cv_prog_DLLTOOL"; then
5207 ac_ct_DLLTOOL=$DLLTOOL
5208 # Extract the first word of "dlltool", so it can be a program name with args.
5209 set dummy dlltool; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if test -n "$ac_ct_DLLTOOL"; then
5216 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5236 if test -n "$ac_ct_DLLTOOL"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5238 $as_echo "$ac_ct_DLLTOOL" >&6; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244 if test "x$ac_ct_DLLTOOL" = x; then
5245 DLLTOOL="false"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248 yes:)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 DLLTOOL=$ac_ct_DLLTOOL
5254 fi
5255 else
5256 DLLTOOL="$ac_cv_prog_DLLTOOL"
5257 fi
5258
5259 test -z "$DLLTOOL" && DLLTOOL=dlltool
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5271 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5272 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 lt_cv_sharedlib_from_linklib_cmd='unknown'
5276
5277 case $host_os in
5278 cygwin* | mingw* | pw32* | cegcc*)
5279 # two different shell functions defined in ltmain.sh
5280 # decide which to use based on capabilities of $DLLTOOL
5281 case `$DLLTOOL --help 2>&1` in
5282 *--identify-strict*)
5283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5284 ;;
5285 *)
5286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5287 ;;
5288 esac
5289 ;;
5290 *)
5291 # fallback: assume linklib IS sharedlib
5292 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5293 ;;
5294 esac
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5298 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5299 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5300 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5301
5302
5303
5304
5305
5306
5307
5308
5309 if test -n "$ac_tool_prefix"; then
5310 for ac_prog in ar
5311 do
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_AR+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$AR"; then
5320 ac_cv_prog_AR="$AR" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 AR=$ac_cv_prog_AR
5340 if test -n "$AR"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5342 $as_echo "$AR" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 test -n "$AR" && break
5350 done
5351 fi
5352 if test -z "$AR"; then
5353 ac_ct_AR=$AR
5354 for ac_prog in ar
5355 do
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_AR"; then
5364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_AR="$ac_prog"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5384 if test -n "$ac_ct_AR"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5386 $as_echo "$ac_ct_AR" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 test -n "$ac_ct_AR" && break
5394 done
5395
5396 if test "x$ac_ct_AR" = x; then
5397 AR="false"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 AR=$ac_ct_AR
5406 fi
5407 fi
5408
5409 : ${AR=ar}
5410 : ${AR_FLAGS=cru}
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5423 $as_echo_n "checking for archiver @FILE support... " >&6; }
5424 if ${lt_cv_ar_at_file+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 lt_cv_ar_at_file=no
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430
5431 int
5432 main ()
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 echo conftest.$ac_objext > conftest.lst
5441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5443 (eval $lt_ar_try) 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 if test "$ac_status" -eq 0; then
5448 # Ensure the archiver fails upon bogus file names.
5449 rm -f conftest.$ac_objext libconftest.a
5450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5451 (eval $lt_ar_try) 2>&5
5452 ac_status=$?
5453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454 test $ac_status = 0; }
5455 if test "$ac_status" -ne 0; then
5456 lt_cv_ar_at_file=@
5457 fi
5458 fi
5459 rm -f conftest.* libconftest.a
5460
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5466 $as_echo "$lt_cv_ar_at_file" >&6; }
5467
5468 if test "x$lt_cv_ar_at_file" = xno; then
5469 archiver_list_spec=
5470 else
5471 archiver_list_spec=$lt_cv_ar_at_file
5472 fi
5473
5474
5475
5476
5477
5478
5479
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}strip; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_STRIP+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$STRIP"; then
5489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 STRIP=$ac_cv_prog_STRIP
5509 if test -n "$STRIP"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5511 $as_echo "$STRIP" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 fi
5519 if test -z "$ac_cv_prog_STRIP"; then
5520 ac_ct_STRIP=$STRIP
5521 # Extract the first word of "strip", so it can be a program name with args.
5522 set dummy strip; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$ac_ct_STRIP"; then
5529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_STRIP="strip"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5549 if test -n "$ac_ct_STRIP"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5551 $as_echo "$ac_ct_STRIP" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557 if test "x$ac_ct_STRIP" = x; then
5558 STRIP=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 STRIP=$ac_ct_STRIP
5567 fi
5568 else
5569 STRIP="$ac_cv_prog_STRIP"
5570 fi
5571
5572 test -z "$STRIP" && STRIP=:
5573
5574
5575
5576
5577
5578
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_RANLIB+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$RANLIB"; then
5588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 RANLIB=$ac_cv_prog_RANLIB
5608 if test -n "$RANLIB"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5610 $as_echo "$RANLIB" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 fi
5618 if test -z "$ac_cv_prog_RANLIB"; then
5619 ac_ct_RANLIB=$RANLIB
5620 # Extract the first word of "ranlib", so it can be a program name with args.
5621 set dummy ranlib; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$ac_ct_RANLIB"; then
5628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_ac_ct_RANLIB="ranlib"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5648 if test -n "$ac_ct_RANLIB"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5650 $as_echo "$ac_ct_RANLIB" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656 if test "x$ac_ct_RANLIB" = x; then
5657 RANLIB=":"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 RANLIB=$ac_ct_RANLIB
5666 fi
5667 else
5668 RANLIB="$ac_cv_prog_RANLIB"
5669 fi
5670
5671 test -z "$RANLIB" && RANLIB=:
5672
5673
5674
5675
5676
5677
5678 # Determine commands to create old-style static archives.
5679 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5680 old_postinstall_cmds='chmod 644 $oldlib'
5681 old_postuninstall_cmds=
5682
5683 if test -n "$RANLIB"; then
5684 case $host_os in
5685 openbsd*)
5686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5687 ;;
5688 *)
5689 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5690 ;;
5691 esac
5692 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5693 fi
5694
5695 case $host_os in
5696 darwin*)
5697 lock_old_archive_extraction=yes ;;
5698 *)
5699 lock_old_archive_extraction=no ;;
5700 esac
5701
5702
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 # If no C compiler was specified, use CC.
5741 LTCC=${LTCC-"$CC"}
5742
5743 # If no C compiler flags were specified, use CFLAGS.
5744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5745
5746 # Allow CC to be a program name with arguments.
5747 compiler=$CC
5748
5749
5750 # Check for command to grab the raw symbol name followed by C symbol from nm.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5752 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5753 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756
5757 # These are sane defaults that work on at least a few old systems.
5758 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5759
5760 # Character class describing NM global symbol codes.
5761 symcode='[BCDEGRST]'
5762
5763 # Regexp to match symbols that can be accessed directly from C.
5764 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5765
5766 # Define system-specific variables.
5767 case $host_os in
5768 aix*)
5769 symcode='[BCDT]'
5770 ;;
5771 cygwin* | mingw* | pw32* | cegcc*)
5772 symcode='[ABCDGISTW]'
5773 ;;
5774 hpux*)
5775 if test "$host_cpu" = ia64; then
5776 symcode='[ABCDEGRST]'
5777 fi
5778 ;;
5779 irix* | nonstopux*)
5780 symcode='[BCDEGRST]'
5781 ;;
5782 osf*)
5783 symcode='[BCDEGQRST]'
5784 ;;
5785 solaris*)
5786 symcode='[BDRT]'
5787 ;;
5788 sco3.2v5*)
5789 symcode='[DT]'
5790 ;;
5791 sysv4.2uw2*)
5792 symcode='[DT]'
5793 ;;
5794 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5795 symcode='[ABDT]'
5796 ;;
5797 sysv4)
5798 symcode='[DFNSTU]'
5799 ;;
5800 esac
5801
5802 # If we're using GNU nm, then use its standard symbol codes.
5803 case `$NM -V 2>&1` in
5804 *GNU* | *'with BFD'*)
5805 symcode='[ABCDGIRSTW]' ;;
5806 esac
5807
5808 # Transform an extracted symbol line into a proper C declaration.
5809 # Some systems (esp. on ia64) link data and code symbols differently,
5810 # so use this general approach.
5811 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5812
5813 # Transform an extracted symbol line into symbol name and symbol address
5814 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5815 lt_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'"
5816
5817 # Handle CRLF in mingw tool chain
5818 opt_cr=
5819 case $build_os in
5820 mingw*)
5821 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5822 ;;
5823 esac
5824
5825 # Try without a prefix underscore, then with it.
5826 for ac_symprfx in "" "_"; do
5827
5828 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5829 symxfrm="\\1 $ac_symprfx\\2 \\2"
5830
5831 # Write the raw and C identifiers.
5832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5833 # Fake it for dumpbin and say T for any non-static function
5834 # and D for any global variable.
5835 # Also find C++ and __fastcall symbols from MSVC++,
5836 # which start with @ or ?.
5837 lt_cv_sys_global_symbol_pipe="$AWK '"\
5838 " {last_section=section; section=\$ 3};"\
5839 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5840 " \$ 0!~/External *\|/{next};"\
5841 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5842 " {if(hide[section]) next};"\
5843 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5844 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5845 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5846 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5847 " ' prfx=^$ac_symprfx"
5848 else
5849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5850 fi
5851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5852
5853 # Check to see that the pipe works correctly.
5854 pipe_works=no
5855
5856 rm -f conftest*
5857 cat > conftest.$ac_ext <<_LT_EOF
5858 #ifdef __cplusplus
5859 extern "C" {
5860 #endif
5861 char nm_test_var;
5862 void nm_test_func(void);
5863 void nm_test_func(void){}
5864 #ifdef __cplusplus
5865 }
5866 #endif
5867 int main(){nm_test_var='a';nm_test_func();return(0);}
5868 _LT_EOF
5869
5870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; then
5875 # Now try to grab the symbols.
5876 nlist=conftest.nm
5877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; } && test -s "$nlist"; then
5882 # Try sorting and uniquifying the output.
5883 if sort "$nlist" | uniq > "$nlist"T; then
5884 mv -f "$nlist"T "$nlist"
5885 else
5886 rm -f "$nlist"T
5887 fi
5888
5889 # Make sure that we snagged all the symbols we need.
5890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5892 cat <<_LT_EOF > conftest.$ac_ext
5893 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5894 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5895 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5896 relocations are performed -- see ld's documentation on pseudo-relocs. */
5897 # define LT_DLSYM_CONST
5898 #elif defined(__osf__)
5899 /* This system does not cope well with relocations in const data. */
5900 # define LT_DLSYM_CONST
5901 #else
5902 # define LT_DLSYM_CONST const
5903 #endif
5904
5905 #ifdef __cplusplus
5906 extern "C" {
5907 #endif
5908
5909 _LT_EOF
5910 # Now generate the symbol file.
5911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5912
5913 cat <<_LT_EOF >> conftest.$ac_ext
5914
5915 /* The mapping between symbol names and symbols. */
5916 LT_DLSYM_CONST struct {
5917 const char *name;
5918 void *address;
5919 }
5920 lt__PROGRAM__LTX_preloaded_symbols[] =
5921 {
5922 { "@PROGRAM@", (void *) 0 },
5923 _LT_EOF
5924 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5925 cat <<\_LT_EOF >> conftest.$ac_ext
5926 {0, (void *) 0}
5927 };
5928
5929 /* This works around a problem in FreeBSD linker */
5930 #ifdef FREEBSD_WORKAROUND
5931 static const void *lt_preloaded_setup() {
5932 return lt__PROGRAM__LTX_preloaded_symbols;
5933 }
5934 #endif
5935
5936 #ifdef __cplusplus
5937 }
5938 #endif
5939 _LT_EOF
5940 # Now try linking the two files.
5941 mv conftest.$ac_objext conftstm.$ac_objext
5942 lt_globsym_save_LIBS=$LIBS
5943 lt_globsym_save_CFLAGS=$CFLAGS
5944 LIBS="conftstm.$ac_objext"
5945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5947 (eval $ac_link) 2>&5
5948 ac_status=$?
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5951 pipe_works=yes
5952 fi
5953 LIBS=$lt_globsym_save_LIBS
5954 CFLAGS=$lt_globsym_save_CFLAGS
5955 else
5956 echo "cannot find nm_test_func in $nlist" >&5
5957 fi
5958 else
5959 echo "cannot find nm_test_var in $nlist" >&5
5960 fi
5961 else
5962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5963 fi
5964 else
5965 echo "$progname: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 fi
5968 rm -rf conftest* conftst*
5969
5970 # Do not use the global_symbol_pipe unless it works.
5971 if test "$pipe_works" = yes; then
5972 break
5973 else
5974 lt_cv_sys_global_symbol_pipe=
5975 fi
5976 done
5977
5978 fi
5979
5980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5981 lt_cv_sys_global_symbol_to_cdecl=
5982 fi
5983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5985 $as_echo "failed" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5988 $as_echo "ok" >&6; }
5989 fi
5990
5991 # Response file support.
5992 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5993 nm_file_list_spec='@'
5994 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5995 nm_file_list_spec='@'
5996 fi
5997
5998
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6025 $as_echo_n "checking for sysroot... " >&6; }
6026
6027 # Check whether --with-sysroot was given.
6028 if test "${with_sysroot+set}" = set; then :
6029 withval=$with_sysroot;
6030 else
6031 with_sysroot=no
6032 fi
6033
6034
6035 lt_sysroot=
6036 case ${with_sysroot} in #(
6037 yes)
6038 if test "$GCC" = yes; then
6039 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6040 fi
6041 ;; #(
6042 /*)
6043 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6044 ;; #(
6045 no|'')
6046 ;; #(
6047 *)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6049 $as_echo "${with_sysroot}" >&6; }
6050 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6051 ;;
6052 esac
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6055 $as_echo "${lt_sysroot:-no}" >&6; }
6056
6057
6058
6059
6060
6061 # Check whether --enable-libtool-lock was given.
6062 if test "${enable_libtool_lock+set}" = set; then :
6063 enableval=$enable_libtool_lock;
6064 fi
6065
6066 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6067
6068 # Some flags need to be propagated to the compiler or linker for good
6069 # libtool support.
6070 case $host in
6071 ia64-*-hpux*)
6072 # Find out which ABI we are using.
6073 echo 'int i;' > conftest.$ac_ext
6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6075 (eval $ac_compile) 2>&5
6076 ac_status=$?
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; }; then
6079 case `/usr/bin/file conftest.$ac_objext` in
6080 *ELF-32*)
6081 HPUX_IA64_MODE="32"
6082 ;;
6083 *ELF-64*)
6084 HPUX_IA64_MODE="64"
6085 ;;
6086 esac
6087 fi
6088 rm -rf conftest*
6089 ;;
6090 *-*-irix6*)
6091 # Find out which ABI we are using.
6092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094 (eval $ac_compile) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; then
6098 if test "$lt_cv_prog_gnu_ld" = yes; then
6099 case `/usr/bin/file conftest.$ac_objext` in
6100 *32-bit*)
6101 LD="${LD-ld} -melf32bsmip"
6102 ;;
6103 *N32*)
6104 LD="${LD-ld} -melf32bmipn32"
6105 ;;
6106 *64-bit*)
6107 LD="${LD-ld} -melf64bmip"
6108 ;;
6109 esac
6110 else
6111 case `/usr/bin/file conftest.$ac_objext` in
6112 *32-bit*)
6113 LD="${LD-ld} -32"
6114 ;;
6115 *N32*)
6116 LD="${LD-ld} -n32"
6117 ;;
6118 *64-bit*)
6119 LD="${LD-ld} -64"
6120 ;;
6121 esac
6122 fi
6123 fi
6124 rm -rf conftest*
6125 ;;
6126
6127 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6128 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6129 # Find out which ABI we are using.
6130 echo 'int i;' > conftest.$ac_ext
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132 (eval $ac_compile) 2>&5
6133 ac_status=$?
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; }; then
6136 case `/usr/bin/file conftest.o` in
6137 *32-bit*)
6138 case $host in
6139 x86_64-*kfreebsd*-gnu)
6140 LD="${LD-ld} -m elf_i386_fbsd"
6141 ;;
6142 x86_64-*linux*)
6143 LD="${LD-ld} -m elf_i386"
6144 ;;
6145 ppc64-*linux*|powerpc64-*linux*)
6146 LD="${LD-ld} -m elf32ppclinux"
6147 ;;
6148 s390x-*linux*)
6149 LD="${LD-ld} -m elf_s390"
6150 ;;
6151 sparc64-*linux*)
6152 LD="${LD-ld} -m elf32_sparc"
6153 ;;
6154 esac
6155 ;;
6156 *64-bit*)
6157 case $host in
6158 x86_64-*kfreebsd*-gnu)
6159 LD="${LD-ld} -m elf_x86_64_fbsd"
6160 ;;
6161 x86_64-*linux*)
6162 LD="${LD-ld} -m elf_x86_64"
6163 ;;
6164 ppc*-*linux*|powerpc*-*linux*)
6165 LD="${LD-ld} -m elf64ppc"
6166 ;;
6167 s390*-*linux*|s390*-*tpf*)
6168 LD="${LD-ld} -m elf64_s390"
6169 ;;
6170 sparc*-*linux*)
6171 LD="${LD-ld} -m elf64_sparc"
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 rm -rf conftest*
6178 ;;
6179
6180 *-*-sco3.2v5*)
6181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6182 SAVE_CFLAGS="$CFLAGS"
6183 CFLAGS="$CFLAGS -belf"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6185 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6186 if ${lt_cv_cc_needs_belf+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197
6198 int
6199 main ()
6200 {
6201
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_link "$LINENO"; then :
6207 lt_cv_cc_needs_belf=yes
6208 else
6209 lt_cv_cc_needs_belf=no
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6221 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6224 CFLAGS="$SAVE_CFLAGS"
6225 fi
6226 ;;
6227 sparc*-*solaris*)
6228 # Find out which ABI we are using.
6229 echo 'int i;' > conftest.$ac_ext
6230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6231 (eval $ac_compile) 2>&5
6232 ac_status=$?
6233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234 test $ac_status = 0; }; then
6235 case `/usr/bin/file conftest.o` in
6236 *64-bit*)
6237 case $lt_cv_prog_gnu_ld in
6238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6239 *)
6240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6241 LD="${LD-ld} -64"
6242 fi
6243 ;;
6244 esac
6245 ;;
6246 esac
6247 fi
6248 rm -rf conftest*
6249 ;;
6250 esac
6251
6252 need_locks="$enable_libtool_lock"
6253
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}mt; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -n "$MANIFEST_TOOL"; then
6263 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6283 if test -n "$MANIFEST_TOOL"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6285 $as_echo "$MANIFEST_TOOL" >&6; }
6286 else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6294 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6295 # Extract the first word of "mt", so it can be a program name with args.
6296 set dummy mt; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$ac_ct_MANIFEST_TOOL"; then
6303 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6323 if test -n "$ac_ct_MANIFEST_TOOL"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6325 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6332 MANIFEST_TOOL=":"
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6341 fi
6342 else
6343 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6344 fi
6345
6346 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6348 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6349 if ${lt_cv_path_mainfest_tool+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 lt_cv_path_mainfest_tool=no
6353 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6354 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6355 cat conftest.err >&5
6356 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6357 lt_cv_path_mainfest_tool=yes
6358 fi
6359 rm -f conftest*
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6362 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6363 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6364 MANIFEST_TOOL=:
6365 fi
6366
6367
6368
6369
6370
6371
6372 case $host_os in
6373 rhapsody* | darwin*)
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$DSYMUTIL"; then
6383 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6403 if test -n "$DSYMUTIL"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6405 $as_echo "$DSYMUTIL" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_DSYMUTIL"; then
6414 ac_ct_DSYMUTIL=$DSYMUTIL
6415 # Extract the first word of "dsymutil", so it can be a program name with args.
6416 set dummy dsymutil; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$ac_ct_DSYMUTIL"; then
6423 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6443 if test -n "$ac_ct_DSYMUTIL"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6445 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451 if test "x$ac_ct_DSYMUTIL" = x; then
6452 DSYMUTIL=":"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460 DSYMUTIL=$ac_ct_DSYMUTIL
6461 fi
6462 else
6463 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6464 fi
6465
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_NMEDIT+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$NMEDIT"; then
6475 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 NMEDIT=$ac_cv_prog_NMEDIT
6495 if test -n "$NMEDIT"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6497 $as_echo "$NMEDIT" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_NMEDIT"; then
6506 ac_ct_NMEDIT=$NMEDIT
6507 # Extract the first word of "nmedit", so it can be a program name with args.
6508 set dummy nmedit; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_NMEDIT"; then
6515 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6535 if test -n "$ac_ct_NMEDIT"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6537 $as_echo "$ac_ct_NMEDIT" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543 if test "x$ac_ct_NMEDIT" = x; then
6544 NMEDIT=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 NMEDIT=$ac_ct_NMEDIT
6553 fi
6554 else
6555 NMEDIT="$ac_cv_prog_NMEDIT"
6556 fi
6557
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_LIPO+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$LIPO"; then
6567 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 LIPO=$ac_cv_prog_LIPO
6587 if test -n "$LIPO"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6589 $as_echo "$LIPO" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_LIPO"; then
6598 ac_ct_LIPO=$LIPO
6599 # Extract the first word of "lipo", so it can be a program name with args.
6600 set dummy lipo; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_LIPO"; then
6607 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_ac_ct_LIPO="lipo"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6627 if test -n "$ac_ct_LIPO"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6629 $as_echo "$ac_ct_LIPO" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635 if test "x$ac_ct_LIPO" = x; then
6636 LIPO=":"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644 LIPO=$ac_ct_LIPO
6645 fi
6646 else
6647 LIPO="$ac_cv_prog_LIPO"
6648 fi
6649
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}otool; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_OTOOL+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$OTOOL"; then
6659 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 OTOOL=$ac_cv_prog_OTOOL
6679 if test -n "$OTOOL"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6681 $as_echo "$OTOOL" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_OTOOL"; then
6690 ac_ct_OTOOL=$OTOOL
6691 # Extract the first word of "otool", so it can be a program name with args.
6692 set dummy otool; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$ac_ct_OTOOL"; then
6699 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_ac_ct_OTOOL="otool"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6719 if test -n "$ac_ct_OTOOL"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6721 $as_echo "$ac_ct_OTOOL" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727 if test "x$ac_ct_OTOOL" = x; then
6728 OTOOL=":"
6729 else
6730 case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6735 esac
6736 OTOOL=$ac_ct_OTOOL
6737 fi
6738 else
6739 OTOOL="$ac_cv_prog_OTOOL"
6740 fi
6741
6742 if test -n "$ac_tool_prefix"; then
6743 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6744 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if ${ac_cv_prog_OTOOL64+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test -n "$OTOOL64"; then
6751 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 OTOOL64=$ac_cv_prog_OTOOL64
6771 if test -n "$OTOOL64"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6773 $as_echo "$OTOOL64" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778
6779
6780 fi
6781 if test -z "$ac_cv_prog_OTOOL64"; then
6782 ac_ct_OTOOL64=$OTOOL64
6783 # Extract the first word of "otool64", so it can be a program name with args.
6784 set dummy otool64; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test -n "$ac_ct_OTOOL64"; then
6791 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_ac_ct_OTOOL64="otool64"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6811 if test -n "$ac_ct_OTOOL64"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6813 $as_echo "$ac_ct_OTOOL64" >&6; }
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819 if test "x$ac_ct_OTOOL64" = x; then
6820 OTOOL64=":"
6821 else
6822 case $cross_compiling:$ac_tool_warned in
6823 yes:)
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826 ac_tool_warned=yes ;;
6827 esac
6828 OTOOL64=$ac_ct_OTOOL64
6829 fi
6830 else
6831 OTOOL64="$ac_cv_prog_OTOOL64"
6832 fi
6833
6834
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6861 $as_echo_n "checking for -single_module linker flag... " >&6; }
6862 if ${lt_cv_apple_cc_single_mod+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 lt_cv_apple_cc_single_mod=no
6866 if test -z "${LT_MULTI_MODULE}"; then
6867 # By default we will add the -single_module flag. You can override
6868 # by either setting the environment variable LT_MULTI_MODULE
6869 # non-empty at configure time, or by adding -multi_module to the
6870 # link flags.
6871 rm -rf libconftest.dylib*
6872 echo "int foo(void){return 1;}" > conftest.c
6873 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6874 -dynamiclib -Wl,-single_module conftest.c" >&5
6875 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6876 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6877 _lt_result=$?
6878 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6879 lt_cv_apple_cc_single_mod=yes
6880 else
6881 cat conftest.err >&5
6882 fi
6883 rm -rf libconftest.dylib*
6884 rm -f conftest.*
6885 fi
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6888 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6890 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6891 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 lt_cv_ld_exported_symbols_list=no
6895 save_LDFLAGS=$LDFLAGS
6896 echo "_main" > conftest.sym
6897 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900
6901 int
6902 main ()
6903 {
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910 lt_cv_ld_exported_symbols_list=yes
6911 else
6912 lt_cv_ld_exported_symbols_list=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 LDFLAGS="$save_LDFLAGS"
6917
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6920 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6922 $as_echo_n "checking for -force_load linker flag... " >&6; }
6923 if ${lt_cv_ld_force_load+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 lt_cv_ld_force_load=no
6927 cat > conftest.c << _LT_EOF
6928 int forced_loaded() { return 2;}
6929 _LT_EOF
6930 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6931 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6932 echo "$AR cru libconftest.a conftest.o" >&5
6933 $AR cru libconftest.a conftest.o 2>&5
6934 echo "$RANLIB libconftest.a" >&5
6935 $RANLIB libconftest.a 2>&5
6936 cat > conftest.c << _LT_EOF
6937 int main() { return 0;}
6938 _LT_EOF
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6940 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6941 _lt_result=$?
6942 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6943 lt_cv_ld_force_load=yes
6944 else
6945 cat conftest.err >&5
6946 fi
6947 rm -f conftest.err libconftest.a conftest conftest.c
6948 rm -rf conftest.dSYM
6949
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6952 $as_echo "$lt_cv_ld_force_load" >&6; }
6953 case $host_os in
6954 rhapsody* | darwin1.[012])
6955 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6956 darwin1.*)
6957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6958 darwin*) # darwin 5.x on
6959 # if running on 10.5 or later, the deployment target defaults
6960 # to the OS version, if on x86, and 10.4, the deployment
6961 # target defaults to 10.4. Don't you love it?
6962 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6963 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6965 10.[012]*)
6966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6967 10.*)
6968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6969 esac
6970 ;;
6971 esac
6972 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6973 _lt_dar_single_mod='$single_module'
6974 fi
6975 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6976 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6977 else
6978 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6979 fi
6980 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6981 _lt_dsymutil='~$DSYMUTIL $lib || :'
6982 else
6983 _lt_dsymutil=
6984 fi
6985 ;;
6986 esac
6987
6988 ac_ext=c
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6995 # On Suns, sometimes $CPP names a directory.
6996 if test -n "$CPP" && test -d "$CPP"; then
6997 CPP=
6998 fi
6999 if test -z "$CPP"; then
7000 if ${ac_cv_prog_CPP+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 # Double quotes because CPP needs to be expanded
7004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7005 do
7006 ac_preproc_ok=false
7007 for ac_c_preproc_warn_flag in '' yes
7008 do
7009 # Use a header file that comes with gcc, so configuring glibc
7010 # with a fresh cross-compiler works.
7011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7012 # <limits.h> exists even on freestanding compilers.
7013 # On the NeXT, cc -E runs the code through the compiler's parser,
7014 # not just through cpp. "Syntax error" is here to catch this case.
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 #ifdef __STDC__
7018 # include <limits.h>
7019 #else
7020 # include <assert.h>
7021 #endif
7022 Syntax error
7023 _ACEOF
7024 if ac_fn_c_try_cpp "$LINENO"; then :
7025
7026 else
7027 # Broken: fails on valid input.
7028 continue
7029 fi
7030 rm -f conftest.err conftest.i conftest.$ac_ext
7031
7032 # OK, works on sane cases. Now check whether nonexistent headers
7033 # can be detected and how.
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <ac_nonexistent.h>
7037 _ACEOF
7038 if ac_fn_c_try_cpp "$LINENO"; then :
7039 # Broken: success on invalid input.
7040 continue
7041 else
7042 # Passes both tests.
7043 ac_preproc_ok=:
7044 break
7045 fi
7046 rm -f conftest.err conftest.i conftest.$ac_ext
7047
7048 done
7049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7050 rm -f conftest.i conftest.err conftest.$ac_ext
7051 if $ac_preproc_ok; then :
7052 break
7053 fi
7054
7055 done
7056 ac_cv_prog_CPP=$CPP
7057
7058 fi
7059 CPP=$ac_cv_prog_CPP
7060 else
7061 ac_cv_prog_CPP=$CPP
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7064 $as_echo "$CPP" >&6; }
7065 ac_preproc_ok=false
7066 for ac_c_preproc_warn_flag in '' yes
7067 do
7068 # Use a header file that comes with gcc, so configuring glibc
7069 # with a fresh cross-compiler works.
7070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 # <limits.h> exists even on freestanding compilers.
7072 # On the NeXT, cc -E runs the code through the compiler's parser,
7073 # not just through cpp. "Syntax error" is here to catch this case.
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #ifdef __STDC__
7077 # include <limits.h>
7078 #else
7079 # include <assert.h>
7080 #endif
7081 Syntax error
7082 _ACEOF
7083 if ac_fn_c_try_cpp "$LINENO"; then :
7084
7085 else
7086 # Broken: fails on valid input.
7087 continue
7088 fi
7089 rm -f conftest.err conftest.i conftest.$ac_ext
7090
7091 # OK, works on sane cases. Now check whether nonexistent headers
7092 # can be detected and how.
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 #include <ac_nonexistent.h>
7096 _ACEOF
7097 if ac_fn_c_try_cpp "$LINENO"; then :
7098 # Broken: success on invalid input.
7099 continue
7100 else
7101 # Passes both tests.
7102 ac_preproc_ok=:
7103 break
7104 fi
7105 rm -f conftest.err conftest.i conftest.$ac_ext
7106
7107 done
7108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7109 rm -f conftest.i conftest.err conftest.$ac_ext
7110 if $ac_preproc_ok; then :
7111
7112 else
7113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7116 See \`config.log' for more details" "$LINENO" 5; }
7117 fi
7118
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7127 $as_echo_n "checking for ANSI C header files... " >&6; }
7128 if ${ac_cv_header_stdc+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #include <stdlib.h>
7134 #include <stdarg.h>
7135 #include <string.h>
7136 #include <float.h>
7137
7138 int
7139 main ()
7140 {
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 ac_cv_header_stdc=yes
7148 else
7149 ac_cv_header_stdc=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152
7153 if test $ac_cv_header_stdc = yes; then
7154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <string.h>
7158
7159 _ACEOF
7160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7161 $EGREP "memchr" >/dev/null 2>&1; then :
7162
7163 else
7164 ac_cv_header_stdc=no
7165 fi
7166 rm -f conftest*
7167
7168 fi
7169
7170 if test $ac_cv_header_stdc = yes; then
7171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 #include <stdlib.h>
7175
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "free" >/dev/null 2>&1; then :
7179
7180 else
7181 ac_cv_header_stdc=no
7182 fi
7183 rm -f conftest*
7184
7185 fi
7186
7187 if test $ac_cv_header_stdc = yes; then
7188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7189 if test "$cross_compiling" = yes; then :
7190 :
7191 else
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #include <ctype.h>
7195 #include <stdlib.h>
7196 #if ((' ' & 0x0FF) == 0x020)
7197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7199 #else
7200 # define ISLOWER(c) \
7201 (('a' <= (c) && (c) <= 'i') \
7202 || ('j' <= (c) && (c) <= 'r') \
7203 || ('s' <= (c) && (c) <= 'z'))
7204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7205 #endif
7206
7207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7208 int
7209 main ()
7210 {
7211 int i;
7212 for (i = 0; i < 256; i++)
7213 if (XOR (islower (i), ISLOWER (i))
7214 || toupper (i) != TOUPPER (i))
7215 return 2;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_run "$LINENO"; then :
7220
7221 else
7222 ac_cv_header_stdc=no
7223 fi
7224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7225 conftest.$ac_objext conftest.beam conftest.$ac_ext
7226 fi
7227
7228 fi
7229 fi
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7231 $as_echo "$ac_cv_header_stdc" >&6; }
7232 if test $ac_cv_header_stdc = yes; then
7233
7234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7235
7236 fi
7237
7238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7240 inttypes.h stdint.h unistd.h
7241 do :
7242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7244 "
7245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7246 cat >>confdefs.h <<_ACEOF
7247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248 _ACEOF
7249
7250 fi
7251
7252 done
7253
7254
7255 for ac_header in dlfcn.h
7256 do :
7257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7258 "
7259 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7260 cat >>confdefs.h <<_ACEOF
7261 #define HAVE_DLFCN_H 1
7262 _ACEOF
7263
7264 fi
7265
7266 done
7267
7268
7269
7270
7271
7272 # Set options
7273
7274
7275
7276 enable_dlopen=no
7277
7278
7279 enable_win32_dll=no
7280
7281
7282 # Check whether --enable-shared was given.
7283 if test "${enable_shared+set}" = set; then :
7284 enableval=$enable_shared; p=${PACKAGE-default}
7285 case $enableval in
7286 yes) enable_shared=yes ;;
7287 no) enable_shared=no ;;
7288 *)
7289 enable_shared=no
7290 # Look at the argument we got. We use all the common list separators.
7291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7292 for pkg in $enableval; do
7293 IFS="$lt_save_ifs"
7294 if test "X$pkg" = "X$p"; then
7295 enable_shared=yes
7296 fi
7297 done
7298 IFS="$lt_save_ifs"
7299 ;;
7300 esac
7301 else
7302 enable_shared=yes
7303 fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 # Check whether --enable-static was given.
7314 if test "${enable_static+set}" = set; then :
7315 enableval=$enable_static; p=${PACKAGE-default}
7316 case $enableval in
7317 yes) enable_static=yes ;;
7318 no) enable_static=no ;;
7319 *)
7320 enable_static=no
7321 # Look at the argument we got. We use all the common list separators.
7322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7323 for pkg in $enableval; do
7324 IFS="$lt_save_ifs"
7325 if test "X$pkg" = "X$p"; then
7326 enable_static=yes
7327 fi
7328 done
7329 IFS="$lt_save_ifs"
7330 ;;
7331 esac
7332 else
7333 enable_static=yes
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 # Check whether --with-pic was given.
7346 if test "${with_pic+set}" = set; then :
7347 withval=$with_pic; pic_mode="$withval"
7348 else
7349 pic_mode=default
7350 fi
7351
7352
7353 test -z "$pic_mode" && pic_mode=default
7354
7355
7356
7357
7358
7359
7360
7361 # Check whether --enable-fast-install was given.
7362 if test "${enable_fast_install+set}" = set; then :
7363 enableval=$enable_fast_install; p=${PACKAGE-default}
7364 case $enableval in
7365 yes) enable_fast_install=yes ;;
7366 no) enable_fast_install=no ;;
7367 *)
7368 enable_fast_install=no
7369 # Look at the argument we got. We use all the common list separators.
7370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7371 for pkg in $enableval; do
7372 IFS="$lt_save_ifs"
7373 if test "X$pkg" = "X$p"; then
7374 enable_fast_install=yes
7375 fi
7376 done
7377 IFS="$lt_save_ifs"
7378 ;;
7379 esac
7380 else
7381 enable_fast_install=yes
7382 fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 # This can be used to rebuild libtool when needed
7395 LIBTOOL_DEPS="$ltmain"
7396
7397 # Always use our own libtool.
7398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7399
7400
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 test -z "$LN_S" && LN_S="ln -s"
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 if test -n "${ZSH_VERSION+set}" ; then
7441 setopt NO_GLOB_SUBST
7442 fi
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7445 $as_echo_n "checking for objdir... " >&6; }
7446 if ${lt_cv_objdir+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 rm -f .libs 2>/dev/null
7450 mkdir .libs 2>/dev/null
7451 if test -d .libs; then
7452 lt_cv_objdir=.libs
7453 else
7454 # MS-DOS does not allow filenames that begin with a dot.
7455 lt_cv_objdir=_libs
7456 fi
7457 rmdir .libs 2>/dev/null
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7460 $as_echo "$lt_cv_objdir" >&6; }
7461 objdir=$lt_cv_objdir
7462
7463
7464
7465
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define LT_OBJDIR "$lt_cv_objdir/"
7469 _ACEOF
7470
7471
7472
7473
7474 case $host_os in
7475 aix3*)
7476 # AIX sometimes has problems with the GCC collect2 program. For some
7477 # reason, if we set the COLLECT_NAMES environment variable, the problems
7478 # vanish in a puff of smoke.
7479 if test "X${COLLECT_NAMES+set}" != Xset; then
7480 COLLECT_NAMES=
7481 export COLLECT_NAMES
7482 fi
7483 ;;
7484 esac
7485
7486 # Global variables:
7487 ofile=libtool
7488 can_build_shared=yes
7489
7490 # All known linkers require a `.a' archive for static linking (except MSVC,
7491 # which needs '.lib').
7492 libext=a
7493
7494 with_gnu_ld="$lt_cv_prog_gnu_ld"
7495
7496 old_CC="$CC"
7497 old_CFLAGS="$CFLAGS"
7498
7499 # Set sane defaults for various variables
7500 test -z "$CC" && CC=cc
7501 test -z "$LTCC" && LTCC=$CC
7502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7503 test -z "$LD" && LD=ld
7504 test -z "$ac_objext" && ac_objext=o
7505
7506 for cc_temp in $compiler""; do
7507 case $cc_temp in
7508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7510 \-*) ;;
7511 *) break;;
7512 esac
7513 done
7514 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7515
7516
7517 # Only perform the check for file, if the check method requires it
7518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7519 case $deplibs_check_method in
7520 file_magic*)
7521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7523 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7524 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 case $MAGIC_CMD in
7528 [\\/*] | ?:[\\/]*)
7529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7530 ;;
7531 *)
7532 lt_save_MAGIC_CMD="$MAGIC_CMD"
7533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7535 for ac_dir in $ac_dummy; do
7536 IFS="$lt_save_ifs"
7537 test -z "$ac_dir" && ac_dir=.
7538 if test -f $ac_dir/${ac_tool_prefix}file; then
7539 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7540 if test -n "$file_magic_test_file"; then
7541 case $deplibs_check_method in
7542 "file_magic "*)
7543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7546 $EGREP "$file_magic_regex" > /dev/null; then
7547 :
7548 else
7549 cat <<_LT_EOF 1>&2
7550
7551 *** Warning: the command libtool uses to detect shared libraries,
7552 *** $file_magic_cmd, produces output that libtool cannot recognize.
7553 *** The result is that libtool may fail to recognize shared libraries
7554 *** as such. This will affect the creation of libtool libraries that
7555 *** depend on shared libraries, but programs linked with such libtool
7556 *** libraries will work regardless of this problem. Nevertheless, you
7557 *** may want to report the problem to your system manager and/or to
7558 *** bug-libtool@gnu.org
7559
7560 _LT_EOF
7561 fi ;;
7562 esac
7563 fi
7564 break
7565 fi
7566 done
7567 IFS="$lt_save_ifs"
7568 MAGIC_CMD="$lt_save_MAGIC_CMD"
7569 ;;
7570 esac
7571 fi
7572
7573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574 if test -n "$MAGIC_CMD"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7576 $as_echo "$MAGIC_CMD" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583
7584
7585
7586 if test -z "$lt_cv_path_MAGIC_CMD"; then
7587 if test -n "$ac_tool_prefix"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7589 $as_echo_n "checking for file... " >&6; }
7590 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 case $MAGIC_CMD in
7594 [\\/*] | ?:[\\/]*)
7595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 lt_save_MAGIC_CMD="$MAGIC_CMD"
7599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601 for ac_dir in $ac_dummy; do
7602 IFS="$lt_save_ifs"
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/file; then
7605 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7606 if test -n "$file_magic_test_file"; then
7607 case $deplibs_check_method in
7608 "file_magic "*)
7609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612 $EGREP "$file_magic_regex" > /dev/null; then
7613 :
7614 else
7615 cat <<_LT_EOF 1>&2
7616
7617 *** Warning: the command libtool uses to detect shared libraries,
7618 *** $file_magic_cmd, produces output that libtool cannot recognize.
7619 *** The result is that libtool may fail to recognize shared libraries
7620 *** as such. This will affect the creation of libtool libraries that
7621 *** depend on shared libraries, but programs linked with such libtool
7622 *** libraries will work regardless of this problem. Nevertheless, you
7623 *** may want to report the problem to your system manager and/or to
7624 *** bug-libtool@gnu.org
7625
7626 _LT_EOF
7627 fi ;;
7628 esac
7629 fi
7630 break
7631 fi
7632 done
7633 IFS="$lt_save_ifs"
7634 MAGIC_CMD="$lt_save_MAGIC_CMD"
7635 ;;
7636 esac
7637 fi
7638
7639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640 if test -n "$MAGIC_CMD"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642 $as_echo "$MAGIC_CMD" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649 else
7650 MAGIC_CMD=:
7651 fi
7652 fi
7653
7654 fi
7655 ;;
7656 esac
7657
7658 # Use C for the default configuration in the libtool script
7659
7660 lt_save_CC="$CC"
7661 ac_ext=c
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667
7668 # Source file extension for C test sources.
7669 ac_ext=c
7670
7671 # Object file extension for compiled C test sources.
7672 objext=o
7673 objext=$objext
7674
7675 # Code to be used in simple compile tests
7676 lt_simple_compile_test_code="int some_variable = 0;"
7677
7678 # Code to be used in simple link tests
7679 lt_simple_link_test_code='int main(){return(0);}'
7680
7681
7682
7683
7684
7685
7686
7687 # If no C compiler was specified, use CC.
7688 LTCC=${LTCC-"$CC"}
7689
7690 # If no C compiler flags were specified, use CFLAGS.
7691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7692
7693 # Allow CC to be a program name with arguments.
7694 compiler=$CC
7695
7696 # Save the default compiler, since it gets overwritten when the other
7697 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7698 compiler_DEFAULT=$CC
7699
7700 # save warnings/boilerplate of simple test code
7701 ac_outfile=conftest.$ac_objext
7702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704 _lt_compiler_boilerplate=`cat conftest.err`
7705 $RM conftest*
7706
7707 ac_outfile=conftest.$ac_objext
7708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7710 _lt_linker_boilerplate=`cat conftest.err`
7711 $RM -r conftest*
7712
7713
7714 if test -n "$compiler"; then
7715
7716 lt_prog_compiler_no_builtin_flag=
7717
7718 if test "$GCC" = yes; then
7719 case $cc_basename in
7720 nvcc*)
7721 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7722 *)
7723 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7724 esac
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7727 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7728 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 lt_cv_prog_compiler_rtti_exceptions=no
7732 ac_outfile=conftest.$ac_objext
7733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7734 lt_compiler_flag="-fno-rtti -fno-exceptions"
7735 # Insert the option either (1) after the last *FLAGS variable, or
7736 # (2) before a word containing "conftest.", or (3) at the end.
7737 # Note that $ac_compile itself does not contain backslashes and begins
7738 # with a dollar sign (not a hyphen), so the echo should work correctly.
7739 # The option is referenced via a variable to avoid confusing sed.
7740 lt_compile=`echo "$ac_compile" | $SED \
7741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7743 -e 's:$: $lt_compiler_flag:'`
7744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7745 (eval "$lt_compile" 2>conftest.err)
7746 ac_status=$?
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 if (exit $ac_status) && test -s "$ac_outfile"; then
7750 # The compiler can only warn and ignore the option if not recognized
7751 # So say no if there are warnings other than the usual output.
7752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7755 lt_cv_prog_compiler_rtti_exceptions=yes
7756 fi
7757 fi
7758 $RM conftest*
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7762 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7763
7764 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7765 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7766 else
7767 :
7768 fi
7769
7770 fi
7771
7772
7773
7774
7775
7776
7777 lt_prog_compiler_wl=
7778 lt_prog_compiler_pic=
7779 lt_prog_compiler_static=
7780
7781
7782 if test "$GCC" = yes; then
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_static='-static'
7785
7786 case $host_os in
7787 aix*)
7788 # All AIX code is PIC.
7789 if test "$host_cpu" = ia64; then
7790 # AIX 5 now supports IA64 processor
7791 lt_prog_compiler_static='-Bstatic'
7792 fi
7793 ;;
7794
7795 amigaos*)
7796 case $host_cpu in
7797 powerpc)
7798 # see comment about AmigaOS4 .so support
7799 lt_prog_compiler_pic='-fPIC'
7800 ;;
7801 m68k)
7802 # FIXME: we need at least 68020 code to build shared libraries, but
7803 # adding the `-m68020' flag to GCC prevents building anything better,
7804 # like `-m68040'.
7805 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7806 ;;
7807 esac
7808 ;;
7809
7810 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7811 # PIC is the default for these OSes.
7812 ;;
7813
7814 mingw* | cygwin* | pw32* | os2* | cegcc*)
7815 # This hack is so that the source file can tell whether it is being
7816 # built for inclusion in a dll (and should export symbols for example).
7817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7818 # (--disable-auto-import) libraries
7819 lt_prog_compiler_pic='-DDLL_EXPORT'
7820 ;;
7821
7822 darwin* | rhapsody*)
7823 # PIC is the default on this platform
7824 # Common symbols not allowed in MH_DYLIB files
7825 lt_prog_compiler_pic='-fno-common'
7826 ;;
7827
7828 haiku*)
7829 # PIC is the default for Haiku.
7830 # The "-static" flag exists, but is broken.
7831 lt_prog_compiler_static=
7832 ;;
7833
7834 hpux*)
7835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7837 # sets the default TLS model and affects inlining.
7838 case $host_cpu in
7839 hppa*64*)
7840 # +Z the default
7841 ;;
7842 *)
7843 lt_prog_compiler_pic='-fPIC'
7844 ;;
7845 esac
7846 ;;
7847
7848 interix[3-9]*)
7849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7850 # Instead, we relocate shared libraries at runtime.
7851 ;;
7852
7853 msdosdjgpp*)
7854 # Just because we use GCC doesn't mean we suddenly get shared libraries
7855 # on systems that don't support them.
7856 lt_prog_compiler_can_build_shared=no
7857 enable_shared=no
7858 ;;
7859
7860 *nto* | *qnx*)
7861 # QNX uses GNU C++, but need to define -shared option too, otherwise
7862 # it will coredump.
7863 lt_prog_compiler_pic='-fPIC -shared'
7864 ;;
7865
7866 sysv4*MP*)
7867 if test -d /usr/nec; then
7868 lt_prog_compiler_pic=-Kconform_pic
7869 fi
7870 ;;
7871
7872 *)
7873 lt_prog_compiler_pic='-fPIC'
7874 ;;
7875 esac
7876
7877 case $cc_basename in
7878 nvcc*) # Cuda Compiler Driver 2.2
7879 lt_prog_compiler_wl='-Xlinker '
7880 lt_prog_compiler_pic='-Xcompiler -fPIC'
7881 ;;
7882 esac
7883 else
7884 # PORTME Check for flag to pass linker flags through the system compiler.
7885 case $host_os in
7886 aix*)
7887 lt_prog_compiler_wl='-Wl,'
7888 if test "$host_cpu" = ia64; then
7889 # AIX 5 now supports IA64 processor
7890 lt_prog_compiler_static='-Bstatic'
7891 else
7892 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7893 fi
7894 ;;
7895
7896 mingw* | cygwin* | pw32* | os2* | cegcc*)
7897 # This hack is so that the source file can tell whether it is being
7898 # built for inclusion in a dll (and should export symbols for example).
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 ;;
7901
7902 hpux9* | hpux10* | hpux11*)
7903 lt_prog_compiler_wl='-Wl,'
7904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7905 # not for PA HP-UX.
7906 case $host_cpu in
7907 hppa*64*|ia64*)
7908 # +Z the default
7909 ;;
7910 *)
7911 lt_prog_compiler_pic='+Z'
7912 ;;
7913 esac
7914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7915 lt_prog_compiler_static='${wl}-a ${wl}archive'
7916 ;;
7917
7918 irix5* | irix6* | nonstopux*)
7919 lt_prog_compiler_wl='-Wl,'
7920 # PIC (with -KPIC) is the default.
7921 lt_prog_compiler_static='-non_shared'
7922 ;;
7923
7924 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7925 case $cc_basename in
7926 # old Intel for x86_64 which still supported -KPIC.
7927 ecc*)
7928 lt_prog_compiler_wl='-Wl,'
7929 lt_prog_compiler_pic='-KPIC'
7930 lt_prog_compiler_static='-static'
7931 ;;
7932 # icc used to be incompatible with GCC.
7933 # ICC 10 doesn't accept -KPIC any more.
7934 icc* | ifort*)
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_pic='-fPIC'
7937 lt_prog_compiler_static='-static'
7938 ;;
7939 # Lahey Fortran 8.1.
7940 lf95*)
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_pic='--shared'
7943 lt_prog_compiler_static='--static'
7944 ;;
7945 nagfor*)
7946 # NAG Fortran compiler
7947 lt_prog_compiler_wl='-Wl,-Wl,,'
7948 lt_prog_compiler_pic='-PIC'
7949 lt_prog_compiler_static='-Bstatic'
7950 ;;
7951 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7952 # Portland Group compilers (*not* the Pentium gcc compiler,
7953 # which looks to be a dead project)
7954 lt_prog_compiler_wl='-Wl,'
7955 lt_prog_compiler_pic='-fpic'
7956 lt_prog_compiler_static='-Bstatic'
7957 ;;
7958 ccc*)
7959 lt_prog_compiler_wl='-Wl,'
7960 # All Alpha code is PIC.
7961 lt_prog_compiler_static='-non_shared'
7962 ;;
7963 xl* | bgxl* | bgf* | mpixl*)
7964 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7965 lt_prog_compiler_wl='-Wl,'
7966 lt_prog_compiler_pic='-qpic'
7967 lt_prog_compiler_static='-qstaticlink'
7968 ;;
7969 *)
7970 case `$CC -V 2>&1 | sed 5q` in
7971 *Sun\ F* | *Sun*Fortran*)
7972 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7973 lt_prog_compiler_pic='-KPIC'
7974 lt_prog_compiler_static='-Bstatic'
7975 lt_prog_compiler_wl=''
7976 ;;
7977 *Sun\ C*)
7978 # Sun C 5.9
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-Bstatic'
7981 lt_prog_compiler_wl='-Wl,'
7982 ;;
7983 esac
7984 ;;
7985 esac
7986 ;;
7987
7988 newsos6)
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 ;;
7992
7993 *nto* | *qnx*)
7994 # QNX uses GNU C++, but need to define -shared option too, otherwise
7995 # it will coredump.
7996 lt_prog_compiler_pic='-fPIC -shared'
7997 ;;
7998
7999 osf3* | osf4* | osf5*)
8000 lt_prog_compiler_wl='-Wl,'
8001 # All OSF/1 code is PIC.
8002 lt_prog_compiler_static='-non_shared'
8003 ;;
8004
8005 rdos*)
8006 lt_prog_compiler_static='-non_shared'
8007 ;;
8008
8009 solaris*)
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 case $cc_basename in
8013 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8014 lt_prog_compiler_wl='-Qoption ld ';;
8015 *)
8016 lt_prog_compiler_wl='-Wl,';;
8017 esac
8018 ;;
8019
8020 sunos4*)
8021 lt_prog_compiler_wl='-Qoption ld '
8022 lt_prog_compiler_pic='-PIC'
8023 lt_prog_compiler_static='-Bstatic'
8024 ;;
8025
8026 sysv4 | sysv4.2uw2* | sysv4.3*)
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-Bstatic'
8030 ;;
8031
8032 sysv4*MP*)
8033 if test -d /usr/nec ;then
8034 lt_prog_compiler_pic='-Kconform_pic'
8035 lt_prog_compiler_static='-Bstatic'
8036 fi
8037 ;;
8038
8039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044
8045 unicos*)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_can_build_shared=no
8048 ;;
8049
8050 uts4*)
8051 lt_prog_compiler_pic='-pic'
8052 lt_prog_compiler_static='-Bstatic'
8053 ;;
8054
8055 *)
8056 lt_prog_compiler_can_build_shared=no
8057 ;;
8058 esac
8059 fi
8060
8061 case $host_os in
8062 # For platforms which do not support PIC, -DPIC is meaningless:
8063 *djgpp*)
8064 lt_prog_compiler_pic=
8065 ;;
8066 *)
8067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8068 ;;
8069 esac
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8072 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8073 if ${lt_cv_prog_compiler_pic+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8077 fi
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8079 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8080 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8081
8082 #
8083 # Check to make sure the PIC flag actually works.
8084 #
8085 if test -n "$lt_prog_compiler_pic"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8088 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 lt_cv_prog_compiler_pic_works=no
8092 ac_outfile=conftest.$ac_objext
8093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8094 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8095 # Insert the option either (1) after the last *FLAGS variable, or
8096 # (2) before a word containing "conftest.", or (3) at the end.
8097 # Note that $ac_compile itself does not contain backslashes and begins
8098 # with a dollar sign (not a hyphen), so the echo should work correctly.
8099 # The option is referenced via a variable to avoid confusing sed.
8100 lt_compile=`echo "$ac_compile" | $SED \
8101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8103 -e 's:$: $lt_compiler_flag:'`
8104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8105 (eval "$lt_compile" 2>conftest.err)
8106 ac_status=$?
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 if (exit $ac_status) && test -s "$ac_outfile"; then
8110 # The compiler can only warn and ignore the option if not recognized
8111 # So say no if there are warnings other than the usual output.
8112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8115 lt_cv_prog_compiler_pic_works=yes
8116 fi
8117 fi
8118 $RM conftest*
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8122 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8123
8124 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8125 case $lt_prog_compiler_pic in
8126 "" | " "*) ;;
8127 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8128 esac
8129 else
8130 lt_prog_compiler_pic=
8131 lt_prog_compiler_can_build_shared=no
8132 fi
8133
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 #
8147 # Check to make sure the static flag actually works.
8148 #
8149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8152 if ${lt_cv_prog_compiler_static_works+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 lt_cv_prog_compiler_static_works=no
8156 save_LDFLAGS="$LDFLAGS"
8157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8160 # The linker can only warn and ignore the option if not recognized
8161 # So say no if there are warnings
8162 if test -s conftest.err; then
8163 # Append any errors to the config.log.
8164 cat conftest.err 1>&5
8165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8167 if diff conftest.exp conftest.er2 >/dev/null; then
8168 lt_cv_prog_compiler_static_works=yes
8169 fi
8170 else
8171 lt_cv_prog_compiler_static_works=yes
8172 fi
8173 fi
8174 $RM -r conftest*
8175 LDFLAGS="$save_LDFLAGS"
8176
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8180
8181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8182 :
8183 else
8184 lt_prog_compiler_static=
8185 fi
8186
8187
8188
8189
8190
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8195 if ${lt_cv_prog_compiler_c_o+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_c_o=no
8199 $RM -r conftest 2>/dev/null
8200 mkdir conftest
8201 cd conftest
8202 mkdir out
8203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8204
8205 lt_compiler_flag="-o out/conftest2.$ac_objext"
8206 # Insert the option either (1) after the last *FLAGS variable, or
8207 # (2) before a word containing "conftest.", or (3) at the end.
8208 # Note that $ac_compile itself does not contain backslashes and begins
8209 # with a dollar sign (not a hyphen), so the echo should work correctly.
8210 lt_compile=`echo "$ac_compile" | $SED \
8211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213 -e 's:$: $lt_compiler_flag:'`
8214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8215 (eval "$lt_compile" 2>out/conftest.err)
8216 ac_status=$?
8217 cat out/conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8220 then
8221 # The compiler can only warn and ignore the option if not recognized
8222 # So say no if there are warnings
8223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8226 lt_cv_prog_compiler_c_o=yes
8227 fi
8228 fi
8229 chmod u+w . 2>&5
8230 $RM conftest*
8231 # SGI C++ compiler will create directory out/ii_files/ for
8232 # template instantiation
8233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8234 $RM out/* && rmdir out
8235 cd ..
8236 $RM -r conftest
8237 $RM conftest*
8238
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8242
8243
8244
8245
8246
8247
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8250 if ${lt_cv_prog_compiler_c_o+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 lt_cv_prog_compiler_c_o=no
8254 $RM -r conftest 2>/dev/null
8255 mkdir conftest
8256 cd conftest
8257 mkdir out
8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8259
8260 lt_compiler_flag="-o out/conftest2.$ac_objext"
8261 # Insert the option either (1) after the last *FLAGS variable, or
8262 # (2) before a word containing "conftest.", or (3) at the end.
8263 # Note that $ac_compile itself does not contain backslashes and begins
8264 # with a dollar sign (not a hyphen), so the echo should work correctly.
8265 lt_compile=`echo "$ac_compile" | $SED \
8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8268 -e 's:$: $lt_compiler_flag:'`
8269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8270 (eval "$lt_compile" 2>out/conftest.err)
8271 ac_status=$?
8272 cat out/conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8275 then
8276 # The compiler can only warn and ignore the option if not recognized
8277 # So say no if there are warnings
8278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8281 lt_cv_prog_compiler_c_o=yes
8282 fi
8283 fi
8284 chmod u+w . 2>&5
8285 $RM conftest*
8286 # SGI C++ compiler will create directory out/ii_files/ for
8287 # template instantiation
8288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8289 $RM out/* && rmdir out
8290 cd ..
8291 $RM -r conftest
8292 $RM conftest*
8293
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8297
8298
8299
8300
8301 hard_links="nottested"
8302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8303 # do not overwrite the value of need_locks provided by the user
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8305 $as_echo_n "checking if we can lock with hard links... " >&6; }
8306 hard_links=yes
8307 $RM conftest*
8308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8309 touch conftest.a
8310 ln conftest.a conftest.b 2>&5 || hard_links=no
8311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8313 $as_echo "$hard_links" >&6; }
8314 if test "$hard_links" = no; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8317 need_locks=warn
8318 fi
8319 else
8320 need_locks=no
8321 fi
8322
8323
8324
8325
8326
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8330
8331 runpath_var=
8332 allow_undefined_flag=
8333 always_export_symbols=no
8334 archive_cmds=
8335 archive_expsym_cmds=
8336 compiler_needs_object=no
8337 enable_shared_with_static_runtimes=no
8338 export_dynamic_flag_spec=
8339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8340 hardcode_automatic=no
8341 hardcode_direct=no
8342 hardcode_direct_absolute=no
8343 hardcode_libdir_flag_spec=
8344 hardcode_libdir_flag_spec_ld=
8345 hardcode_libdir_separator=
8346 hardcode_minus_L=no
8347 hardcode_shlibpath_var=unsupported
8348 inherit_rpath=no
8349 link_all_deplibs=unknown
8350 module_cmds=
8351 module_expsym_cmds=
8352 old_archive_from_new_cmds=
8353 old_archive_from_expsyms_cmds=
8354 thread_safe_flag_spec=
8355 whole_archive_flag_spec=
8356 # include_expsyms should be a list of space-separated symbols to be *always*
8357 # included in the symbol list
8358 include_expsyms=
8359 # exclude_expsyms can be an extended regexp of symbols to exclude
8360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8362 # as well as any symbol that contains `d'.
8363 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8365 # platforms (ab)use it in PIC code, but their linkers get confused if
8366 # the symbol is explicitly referenced. Since portable code cannot
8367 # rely on this symbol name, it's probably fine to never include it in
8368 # preloaded symbol tables.
8369 # Exclude shared library initialization/finalization symbols.
8370 extract_expsyms_cmds=
8371
8372 case $host_os in
8373 cygwin* | mingw* | pw32* | cegcc*)
8374 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8375 # When not using gcc, we currently assume that we are using
8376 # Microsoft Visual C++.
8377 if test "$GCC" != yes; then
8378 with_gnu_ld=no
8379 fi
8380 ;;
8381 interix*)
8382 # we just hope/assume this is gcc and not c89 (= MSVC++)
8383 with_gnu_ld=yes
8384 ;;
8385 openbsd*)
8386 with_gnu_ld=no
8387 ;;
8388 linux* | k*bsd*-gnu | gnu*)
8389 link_all_deplibs=no
8390 ;;
8391 esac
8392
8393 ld_shlibs=yes
8394
8395 # On some targets, GNU ld is compatible enough with the native linker
8396 # that we're better off using the native interface for both.
8397 lt_use_gnu_ld_interface=no
8398 if test "$with_gnu_ld" = yes; then
8399 case $host_os in
8400 aix*)
8401 # The AIX port of GNU ld has always aspired to compatibility
8402 # with the native linker. However, as the warning in the GNU ld
8403 # block says, versions before 2.19.5* couldn't really create working
8404 # shared libraries, regardless of the interface used.
8405 case `$LD -v 2>&1` in
8406 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8407 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8408 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8409 *)
8410 lt_use_gnu_ld_interface=yes
8411 ;;
8412 esac
8413 ;;
8414 *)
8415 lt_use_gnu_ld_interface=yes
8416 ;;
8417 esac
8418 fi
8419
8420 if test "$lt_use_gnu_ld_interface" = yes; then
8421 # If archive_cmds runs LD, not CC, wlarc should be empty
8422 wlarc='${wl}'
8423
8424 # Set some defaults for GNU ld with shared library support. These
8425 # are reset later if shared libraries are not supported. Putting them
8426 # here allows them to be overridden if necessary.
8427 runpath_var=LD_RUN_PATH
8428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8429 export_dynamic_flag_spec='${wl}--export-dynamic'
8430 # ancient GNU ld didn't support --whole-archive et. al.
8431 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8432 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8433 else
8434 whole_archive_flag_spec=
8435 fi
8436 supports_anon_versioning=no
8437 case `$LD -v 2>&1` in
8438 *GNU\ gold*) supports_anon_versioning=yes ;;
8439 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8440 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8441 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8442 *\ 2.11.*) ;; # other 2.11 versions
8443 *) supports_anon_versioning=yes ;;
8444 esac
8445
8446 # See if GNU ld supports shared libraries.
8447 case $host_os in
8448 aix[3-9]*)
8449 # On AIX/PPC, the GNU linker is very broken
8450 if test "$host_cpu" != ia64; then
8451 ld_shlibs=no
8452 cat <<_LT_EOF 1>&2
8453
8454 *** Warning: the GNU linker, at least up to release 2.19, is reported
8455 *** to be unable to reliably create shared libraries on AIX.
8456 *** Therefore, libtool is disabling shared libraries support. If you
8457 *** really care for shared libraries, you may want to install binutils
8458 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8459 *** You will then need to restart the configuration process.
8460
8461 _LT_EOF
8462 fi
8463 ;;
8464
8465 amigaos*)
8466 case $host_cpu in
8467 powerpc)
8468 # see comment about AmigaOS4 .so support
8469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470 archive_expsym_cmds=''
8471 ;;
8472 m68k)
8473 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)'
8474 hardcode_libdir_flag_spec='-L$libdir'
8475 hardcode_minus_L=yes
8476 ;;
8477 esac
8478 ;;
8479
8480 beos*)
8481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482 allow_undefined_flag=unsupported
8483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8484 # support --undefined. This deserves some investigation. FIXME
8485 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486 else
8487 ld_shlibs=no
8488 fi
8489 ;;
8490
8491 cygwin* | mingw* | pw32* | cegcc*)
8492 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8493 # as there is no search path for DLLs.
8494 hardcode_libdir_flag_spec='-L$libdir'
8495 export_dynamic_flag_spec='${wl}--export-all-symbols'
8496 allow_undefined_flag=unsupported
8497 always_export_symbols=no
8498 enable_shared_with_static_runtimes=yes
8499 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'
8500 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8501
8502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8504 # If the export-symbols file already is a .def file (1st line
8505 # is EXPORTS), use it as is; otherwise, prepend...
8506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8507 cp $export_symbols $output_objdir/$soname.def;
8508 else
8509 echo EXPORTS > $output_objdir/$soname.def;
8510 cat $export_symbols >> $output_objdir/$soname.def;
8511 fi~
8512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8513 else
8514 ld_shlibs=no
8515 fi
8516 ;;
8517
8518 haiku*)
8519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 link_all_deplibs=yes
8521 ;;
8522
8523 interix[3-9]*)
8524 hardcode_direct=no
8525 hardcode_shlibpath_var=no
8526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8527 export_dynamic_flag_spec='${wl}-E'
8528 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8529 # Instead, shared libraries are loaded at an image base (0x10000000 by
8530 # default) and relocated if they conflict, which is a slow very memory
8531 # consuming and fragmenting process. To avoid this, we pick a random,
8532 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8533 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8535 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'
8536 ;;
8537
8538 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8539 tmp_diet=no
8540 if test "$host_os" = linux-dietlibc; then
8541 case $cc_basename in
8542 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8543 esac
8544 fi
8545 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8546 && test "$tmp_diet" = no
8547 then
8548 tmp_addflag=' $pic_flag'
8549 tmp_sharedflag='-shared'
8550 case $cc_basename,$host_cpu in
8551 pgcc*) # Portland Group C compiler
8552 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'
8553 tmp_addflag=' $pic_flag'
8554 ;;
8555 pgf77* | pgf90* | pgf95* | pgfortran*)
8556 # Portland Group f77 and f90 compilers
8557 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'
8558 tmp_addflag=' $pic_flag -Mnomain' ;;
8559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8560 tmp_addflag=' -i_dynamic' ;;
8561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8562 tmp_addflag=' -i_dynamic -nofor_main' ;;
8563 ifc* | ifort*) # Intel Fortran compiler
8564 tmp_addflag=' -nofor_main' ;;
8565 lf95*) # Lahey Fortran 8.1
8566 whole_archive_flag_spec=
8567 tmp_sharedflag='--shared' ;;
8568 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8569 tmp_sharedflag='-qmkshrobj'
8570 tmp_addflag= ;;
8571 nvcc*) # Cuda Compiler Driver 2.2
8572 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'
8573 compiler_needs_object=yes
8574 ;;
8575 esac
8576 case `$CC -V 2>&1 | sed 5q` in
8577 *Sun\ C*) # Sun C 5.9
8578 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'
8579 compiler_needs_object=yes
8580 tmp_sharedflag='-G' ;;
8581 *Sun\ F*) # Sun Fortran 8.3
8582 tmp_sharedflag='-G' ;;
8583 esac
8584 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585
8586 if test "x$supports_anon_versioning" = xyes; then
8587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8589 echo "local: *; };" >> $output_objdir/$libname.ver~
8590 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8591 fi
8592
8593 case $cc_basename in
8594 xlf* | bgf* | bgxlf* | mpixlf*)
8595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8596 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8597 hardcode_libdir_flag_spec=
8598 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8599 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8605 fi
8606 ;;
8607 esac
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
8612
8613 netbsd* | netbsdelf*-gnu)
8614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8615 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8616 wlarc=
8617 else
8618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 fi
8621 ;;
8622
8623 solaris*)
8624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8625 ld_shlibs=no
8626 cat <<_LT_EOF 1>&2
8627
8628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8629 *** create shared libraries on Solaris systems. Therefore, libtool
8630 *** is disabling shared libraries support. We urge you to upgrade GNU
8631 *** binutils to release 2.9.1 or newer. Another option is to modify
8632 *** your PATH or compiler configuration so that the native linker is
8633 *** used, and then restart.
8634
8635 _LT_EOF
8636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8639 else
8640 ld_shlibs=no
8641 fi
8642 ;;
8643
8644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8645 case `$LD -v 2>&1` in
8646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8647 ld_shlibs=no
8648 cat <<_LT_EOF 1>&2
8649
8650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8651 *** reliably create shared libraries on SCO systems. Therefore, libtool
8652 *** is disabling shared libraries support. We urge you to upgrade GNU
8653 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8654 *** your PATH or compiler configuration so that the native linker is
8655 *** used, and then restart.
8656
8657 _LT_EOF
8658 ;;
8659 *)
8660 # For security reasons, it is highly recommended that you always
8661 # use absolute paths for naming shared libraries, and exclude the
8662 # DT_RUNPATH tag from executables and libraries. But doing so
8663 # requires that you compile everything twice, which is a pain.
8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 else
8669 ld_shlibs=no
8670 fi
8671 ;;
8672 esac
8673 ;;
8674
8675 sunos4*)
8676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 wlarc=
8678 hardcode_direct=yes
8679 hardcode_shlibpath_var=no
8680 ;;
8681
8682 *)
8683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
8690 esac
8691
8692 if test "$ld_shlibs" = no; then
8693 runpath_var=
8694 hardcode_libdir_flag_spec=
8695 export_dynamic_flag_spec=
8696 whole_archive_flag_spec=
8697 fi
8698 else
8699 # PORTME fill in a description of your system's linker (not GNU ld)
8700 case $host_os in
8701 aix3*)
8702 allow_undefined_flag=unsupported
8703 always_export_symbols=yes
8704 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'
8705 # Note: this linker hardcodes the directories in LIBPATH if there
8706 # are no directories specified by -L.
8707 hardcode_minus_L=yes
8708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8709 # Neither direct hardcoding nor static linking is supported with a
8710 # broken collect2.
8711 hardcode_direct=unsupported
8712 fi
8713 ;;
8714
8715 aix[4-9]*)
8716 if test "$host_cpu" = ia64; then
8717 # On IA64, the linker does run time linking by default, so we don't
8718 # have to do anything special.
8719 aix_use_runtimelinking=no
8720 exp_sym_flag='-Bexport'
8721 no_entry_flag=""
8722 else
8723 # If we're using GNU nm, then we don't want the "-C" option.
8724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8725 # Also, AIX nm treats weak defined symbols like other global
8726 # defined symbols, whereas GNU nm marks them as "W".
8727 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8728 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'
8729 else
8730 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'
8731 fi
8732 aix_use_runtimelinking=no
8733
8734 # Test if we are trying to use run time linking or normal
8735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8736 # need to do runtime linking.
8737 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8738 for ld_flag in $LDFLAGS; do
8739 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8740 aix_use_runtimelinking=yes
8741 break
8742 fi
8743 done
8744 ;;
8745 esac
8746
8747 exp_sym_flag='-bexport'
8748 no_entry_flag='-bnoentry'
8749 fi
8750
8751 # When large executables or shared objects are built, AIX ld can
8752 # have problems creating the table of contents. If linking a library
8753 # or program results in "error TOC overflow" add -mminimal-toc to
8754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8756
8757 archive_cmds=''
8758 hardcode_direct=yes
8759 hardcode_direct_absolute=yes
8760 hardcode_libdir_separator=':'
8761 link_all_deplibs=yes
8762 file_list_spec='${wl}-f,'
8763
8764 if test "$GCC" = yes; then
8765 case $host_os in aix4.[012]|aix4.[012].*)
8766 # We only want to do this on AIX 4.2 and lower, the check
8767 # below for broken collect2 doesn't work under 4.3+
8768 collect2name=`${CC} -print-prog-name=collect2`
8769 if test -f "$collect2name" &&
8770 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8771 then
8772 # We have reworked collect2
8773 :
8774 else
8775 # We have old collect2
8776 hardcode_direct=unsupported
8777 # It fails to find uninstalled libraries when the uninstalled
8778 # path is not listed in the libpath. Setting hardcode_minus_L
8779 # to unsupported forces relinking
8780 hardcode_minus_L=yes
8781 hardcode_libdir_flag_spec='-L$libdir'
8782 hardcode_libdir_separator=
8783 fi
8784 ;;
8785 esac
8786 shared_flag='-shared'
8787 if test "$aix_use_runtimelinking" = yes; then
8788 shared_flag="$shared_flag "'${wl}-G'
8789 fi
8790 link_all_deplibs=no
8791 else
8792 # not using gcc
8793 if test "$host_cpu" = ia64; then
8794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8795 # chokes on -Wl,-G. The following line is correct:
8796 shared_flag='-G'
8797 else
8798 if test "$aix_use_runtimelinking" = yes; then
8799 shared_flag='${wl}-G'
8800 else
8801 shared_flag='${wl}-bM:SRE'
8802 fi
8803 fi
8804 fi
8805
8806 export_dynamic_flag_spec='${wl}-bexpall'
8807 # It seems that -bexpall does not export symbols beginning with
8808 # underscore (_), so it is better to generate a list of symbols to export.
8809 always_export_symbols=yes
8810 if test "$aix_use_runtimelinking" = yes; then
8811 # Warning - without using the other runtime loading flags (-brtl),
8812 # -berok will link without error, but may produce a broken library.
8813 allow_undefined_flag='-berok'
8814 # Determine the default libpath from the value encoded in an
8815 # empty executable.
8816 if test "${lt_cv_aix_libpath+set}" = set; then
8817 aix_libpath=$lt_cv_aix_libpath
8818 else
8819 if ${lt_cv_aix_libpath_+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824
8825 int
8826 main ()
8827 {
8828
8829 ;
8830 return 0;
8831 }
8832 _ACEOF
8833 if ac_fn_c_try_link "$LINENO"; then :
8834
8835 lt_aix_libpath_sed='
8836 /Import File Strings/,/^$/ {
8837 /^0/ {
8838 s/^0 *\([^ ]*\) *$/\1/
8839 p
8840 }
8841 }'
8842 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8843 # Check for a 64-bit object if we didn't find anything.
8844 if test -z "$lt_cv_aix_libpath_"; then
8845 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 fi
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 if test -z "$lt_cv_aix_libpath_"; then
8851 lt_cv_aix_libpath_="/usr/lib:/lib"
8852 fi
8853
8854 fi
8855
8856 aix_libpath=$lt_cv_aix_libpath_
8857 fi
8858
8859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8860 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"
8861 else
8862 if test "$host_cpu" = ia64; then
8863 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8864 allow_undefined_flag="-z nodefs"
8865 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"
8866 else
8867 # Determine the default libpath from the value encoded in an
8868 # empty executable.
8869 if test "${lt_cv_aix_libpath+set}" = set; then
8870 aix_libpath=$lt_cv_aix_libpath
8871 else
8872 if ${lt_cv_aix_libpath_+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877
8878 int
8879 main ()
8880 {
8881
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8887
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\([^ ]*\) *$/\1/
8892 p
8893 }
8894 }'
8895 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$lt_cv_aix_libpath_"; then
8898 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 fi
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$lt_cv_aix_libpath_"; then
8904 lt_cv_aix_libpath_="/usr/lib:/lib"
8905 fi
8906
8907 fi
8908
8909 aix_libpath=$lt_cv_aix_libpath_
8910 fi
8911
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 # Warning - without using the other run time loading flags,
8914 # -berok will link without error, but may produce a broken library.
8915 no_undefined_flag=' ${wl}-bernotok'
8916 allow_undefined_flag=' ${wl}-berok'
8917 if test "$with_gnu_ld" = yes; then
8918 # We only use this code for GNU lds that support --whole-archive.
8919 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8920 else
8921 # Exported symbols can be pulled into shared objects from archives
8922 whole_archive_flag_spec='$convenience'
8923 fi
8924 archive_cmds_need_lc=yes
8925 # This is similar to how AIX traditionally builds its shared libraries.
8926 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'
8927 fi
8928 fi
8929 ;;
8930
8931 amigaos*)
8932 case $host_cpu in
8933 powerpc)
8934 # see comment about AmigaOS4 .so support
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds=''
8937 ;;
8938 m68k)
8939 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)'
8940 hardcode_libdir_flag_spec='-L$libdir'
8941 hardcode_minus_L=yes
8942 ;;
8943 esac
8944 ;;
8945
8946 bsdi[45]*)
8947 export_dynamic_flag_spec=-rdynamic
8948 ;;
8949
8950 cygwin* | mingw* | pw32* | cegcc*)
8951 # When not using gcc, we currently assume that we are using
8952 # Microsoft Visual C++.
8953 # hardcode_libdir_flag_spec is actually meaningless, as there is
8954 # no search path for DLLs.
8955 case $cc_basename in
8956 cl*)
8957 # Native MSVC
8958 hardcode_libdir_flag_spec=' '
8959 allow_undefined_flag=unsupported
8960 always_export_symbols=yes
8961 file_list_spec='@'
8962 # Tell ltmain to make .lib files, not .a files.
8963 libext=lib
8964 # Tell ltmain to make .dll files, not .so files.
8965 shrext_cmds=".dll"
8966 # FIXME: Setting linknames here is a bad hack.
8967 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8968 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8969 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8970 else
8971 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8972 fi~
8973 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8974 linknames='
8975 # The linker will not automatically build a static lib if we build a DLL.
8976 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8977 enable_shared_with_static_runtimes=yes
8978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8979 # Don't use ranlib
8980 old_postinstall_cmds='chmod 644 $oldlib'
8981 postlink_cmds='lt_outputfile="@OUTPUT@"~
8982 lt_tool_outputfile="@TOOL_OUTPUT@"~
8983 case $lt_outputfile in
8984 *.exe|*.EXE) ;;
8985 *)
8986 lt_outputfile="$lt_outputfile.exe"
8987 lt_tool_outputfile="$lt_tool_outputfile.exe"
8988 ;;
8989 esac~
8990 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8991 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8992 $RM "$lt_outputfile.manifest";
8993 fi'
8994 ;;
8995 *)
8996 # Assume MSVC wrapper
8997 hardcode_libdir_flag_spec=' '
8998 allow_undefined_flag=unsupported
8999 # Tell ltmain to make .lib files, not .a files.
9000 libext=lib
9001 # Tell ltmain to make .dll files, not .so files.
9002 shrext_cmds=".dll"
9003 # FIXME: Setting linknames here is a bad hack.
9004 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9005 # The linker will automatically build a .lib file if we build a DLL.
9006 old_archive_from_new_cmds='true'
9007 # FIXME: Should let the user specify the lib program.
9008 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9009 enable_shared_with_static_runtimes=yes
9010 ;;
9011 esac
9012 ;;
9013
9014 darwin* | rhapsody*)
9015
9016
9017 archive_cmds_need_lc=no
9018 hardcode_direct=no
9019 hardcode_automatic=yes
9020 hardcode_shlibpath_var=unsupported
9021 if test "$lt_cv_ld_force_load" = "yes"; then
9022 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\"`'
9023 else
9024 whole_archive_flag_spec=''
9025 fi
9026 link_all_deplibs=yes
9027 allow_undefined_flag="$_lt_dar_allow_undefined"
9028 case $cc_basename in
9029 ifort*) _lt_dar_can_shared=yes ;;
9030 *) _lt_dar_can_shared=$GCC ;;
9031 esac
9032 if test "$_lt_dar_can_shared" = "yes"; then
9033 output_verbose_link_cmd=func_echo_all
9034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9036 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}"
9037 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}"
9038
9039 else
9040 ld_shlibs=no
9041 fi
9042
9043 ;;
9044
9045 dgux*)
9046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047 hardcode_libdir_flag_spec='-L$libdir'
9048 hardcode_shlibpath_var=no
9049 ;;
9050
9051 freebsd1*)
9052 ld_shlibs=no
9053 ;;
9054
9055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9056 # support. Future versions do this automatically, but an explicit c++rt0.o
9057 # does not break anything, and helps significantly (at the cost of a little
9058 # extra space).
9059 freebsd2.2*)
9060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9061 hardcode_libdir_flag_spec='-R$libdir'
9062 hardcode_direct=yes
9063 hardcode_shlibpath_var=no
9064 ;;
9065
9066 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9067 freebsd2*)
9068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_direct=yes
9070 hardcode_minus_L=yes
9071 hardcode_shlibpath_var=no
9072 ;;
9073
9074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9075 freebsd* | dragonfly*)
9076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9077 hardcode_libdir_flag_spec='-R$libdir'
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 hpux9*)
9083 if test "$GCC" = yes; then
9084 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'
9085 else
9086 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'
9087 fi
9088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9089 hardcode_libdir_separator=:
9090 hardcode_direct=yes
9091
9092 # hardcode_minus_L: Not really in the search PATH,
9093 # but as the default location of the library.
9094 hardcode_minus_L=yes
9095 export_dynamic_flag_spec='${wl}-E'
9096 ;;
9097
9098 hpux10*)
9099 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9100 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101 else
9102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9103 fi
9104 if test "$with_gnu_ld" = no; then
9105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9106 hardcode_libdir_flag_spec_ld='+b $libdir'
9107 hardcode_libdir_separator=:
9108 hardcode_direct=yes
9109 hardcode_direct_absolute=yes
9110 export_dynamic_flag_spec='${wl}-E'
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
9113 hardcode_minus_L=yes
9114 fi
9115 ;;
9116
9117 hpux11*)
9118 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9119 case $host_cpu in
9120 hppa*64*)
9121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 ;;
9123 ia64*)
9124 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9125 ;;
9126 *)
9127 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9128 ;;
9129 esac
9130 else
9131 case $host_cpu in
9132 hppa*64*)
9133 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 ;;
9135 ia64*)
9136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9137 ;;
9138 *)
9139
9140 # Older versions of the 11.00 compiler do not understand -b yet
9141 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9143 $as_echo_n "checking if $CC understands -b... " >&6; }
9144 if ${lt_cv_prog_compiler__b+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 lt_cv_prog_compiler__b=no
9148 save_LDFLAGS="$LDFLAGS"
9149 LDFLAGS="$LDFLAGS -b"
9150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9152 # The linker can only warn and ignore the option if not recognized
9153 # So say no if there are warnings
9154 if test -s conftest.err; then
9155 # Append any errors to the config.log.
9156 cat conftest.err 1>&5
9157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159 if diff conftest.exp conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler__b=yes
9161 fi
9162 else
9163 lt_cv_prog_compiler__b=yes
9164 fi
9165 fi
9166 $RM -r conftest*
9167 LDFLAGS="$save_LDFLAGS"
9168
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9171 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9172
9173 if test x"$lt_cv_prog_compiler__b" = xyes; then
9174 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9175 else
9176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9177 fi
9178
9179 ;;
9180 esac
9181 fi
9182 if test "$with_gnu_ld" = no; then
9183 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184 hardcode_libdir_separator=:
9185
9186 case $host_cpu in
9187 hppa*64*|ia64*)
9188 hardcode_direct=no
9189 hardcode_shlibpath_var=no
9190 ;;
9191 *)
9192 hardcode_direct=yes
9193 hardcode_direct_absolute=yes
9194 export_dynamic_flag_spec='${wl}-E'
9195
9196 # hardcode_minus_L: Not really in the search PATH,
9197 # but as the default location of the library.
9198 hardcode_minus_L=yes
9199 ;;
9200 esac
9201 fi
9202 ;;
9203
9204 irix5* | irix6* | nonstopux*)
9205 if test "$GCC" = yes; then
9206 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'
9207 # Try to use the -exported_symbol ld option, if it does not
9208 # work, assume that -exports_file does not work either and
9209 # implicitly export all symbols.
9210 # This should be the same for all languages, so no per-tag cache variable.
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9212 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9213 if ${lt_cv_irix_exported_symbol+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 save_LDFLAGS="$LDFLAGS"
9217 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220 int foo (void) { return 0; }
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"; then :
9223 lt_cv_irix_exported_symbol=yes
9224 else
9225 lt_cv_irix_exported_symbol=no
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LDFLAGS="$save_LDFLAGS"
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9232 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9233 if test "$lt_cv_irix_exported_symbol" = yes; then
9234 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'
9235 fi
9236 else
9237 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'
9238 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'
9239 fi
9240 archive_cmds_need_lc='no'
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 hardcode_libdir_separator=:
9243 inherit_rpath=yes
9244 link_all_deplibs=yes
9245 ;;
9246
9247 netbsd* | netbsdelf*-gnu)
9248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9250 else
9251 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9252 fi
9253 hardcode_libdir_flag_spec='-R$libdir'
9254 hardcode_direct=yes
9255 hardcode_shlibpath_var=no
9256 ;;
9257
9258 newsos6)
9259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 hardcode_direct=yes
9261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262 hardcode_libdir_separator=:
9263 hardcode_shlibpath_var=no
9264 ;;
9265
9266 *nto* | *qnx*)
9267 ;;
9268
9269 openbsd*)
9270 if test -f /usr/libexec/ld.so; then
9271 hardcode_direct=yes
9272 hardcode_shlibpath_var=no
9273 hardcode_direct_absolute=yes
9274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9278 export_dynamic_flag_spec='${wl}-E'
9279 else
9280 case $host_os in
9281 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_libdir_flag_spec='-R$libdir'
9284 ;;
9285 *)
9286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9288 ;;
9289 esac
9290 fi
9291 else
9292 ld_shlibs=no
9293 fi
9294 ;;
9295
9296 os2*)
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9299 allow_undefined_flag=unsupported
9300 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'
9301 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9302 ;;
9303
9304 osf3*)
9305 if test "$GCC" = yes; then
9306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307 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'
9308 else
9309 allow_undefined_flag=' -expect_unresolved \*'
9310 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'
9311 fi
9312 archive_cmds_need_lc='no'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 hardcode_libdir_separator=:
9315 ;;
9316
9317 osf4* | osf5*) # as osf3* with the addition of -msym flag
9318 if test "$GCC" = yes; then
9319 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320 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'
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 else
9323 allow_undefined_flag=' -expect_unresolved \*'
9324 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'
9325 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~
9326 $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'
9327
9328 # Both c and cxx compiler support -rpath directly
9329 hardcode_libdir_flag_spec='-rpath $libdir'
9330 fi
9331 archive_cmds_need_lc='no'
9332 hardcode_libdir_separator=:
9333 ;;
9334
9335 solaris*)
9336 no_undefined_flag=' -z defs'
9337 if test "$GCC" = yes; then
9338 wlarc='${wl}'
9339 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $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'
9342 else
9343 case `$CC -V 2>&1` in
9344 *"Compilers 5.0"*)
9345 wlarc=''
9346 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9349 ;;
9350 *)
9351 wlarc='${wl}'
9352 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9354 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9355 ;;
9356 esac
9357 fi
9358 hardcode_libdir_flag_spec='-R$libdir'
9359 hardcode_shlibpath_var=no
9360 case $host_os in
9361 solaris2.[0-5] | solaris2.[0-5].*) ;;
9362 *)
9363 # The compiler driver will combine and reorder linker options,
9364 # but understands `-z linker_flag'. GCC discards it without `$wl',
9365 # but is careful enough not to reorder.
9366 # Supported since Solaris 2.6 (maybe 2.5.1?)
9367 if test "$GCC" = yes; then
9368 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9369 else
9370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9371 fi
9372 ;;
9373 esac
9374 link_all_deplibs=yes
9375 ;;
9376
9377 sunos4*)
9378 if test "x$host_vendor" = xsequent; then
9379 # Use $CC to link under sequent, because it throws in some extra .o
9380 # files that make .init and .fini sections work.
9381 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9382 else
9383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9384 fi
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_direct=yes
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 sysv4)
9392 case $host_vendor in
9393 sni)
9394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes # is this really true???
9396 ;;
9397 siemens)
9398 ## LD is ld it makes a PLAMLIB
9399 ## CC just makes a GrossModule.
9400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9401 reload_cmds='$CC -r -o $output$reload_objs'
9402 hardcode_direct=no
9403 ;;
9404 motorola)
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9407 ;;
9408 esac
9409 runpath_var='LD_RUN_PATH'
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 sysv4.3*)
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 export_dynamic_flag_spec='-Bexport'
9417 ;;
9418
9419 sysv4*MP*)
9420 if test -d /usr/nec; then
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_shlibpath_var=no
9423 runpath_var=LD_RUN_PATH
9424 hardcode_runpath_var=yes
9425 ld_shlibs=yes
9426 fi
9427 ;;
9428
9429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9430 no_undefined_flag='${wl}-z,text'
9431 archive_cmds_need_lc=no
9432 hardcode_shlibpath_var=no
9433 runpath_var='LD_RUN_PATH'
9434
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 fi
9442 ;;
9443
9444 sysv5* | sco3.2v5* | sco5v6*)
9445 # Note: We can NOT use -z defs as we might desire, because we do not
9446 # link with -lc, and that would cause any symbols used from libc to
9447 # always be unresolved, which means just about no library would
9448 # ever link correctly. If we're not using GNU ld we use -z text
9449 # though, which does catch some bad symbols but isn't as heavy-handed
9450 # as -z defs.
9451 no_undefined_flag='${wl}-z,text'
9452 allow_undefined_flag='${wl}-z,nodefs'
9453 archive_cmds_need_lc=no
9454 hardcode_shlibpath_var=no
9455 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9456 hardcode_libdir_separator=':'
9457 link_all_deplibs=yes
9458 export_dynamic_flag_spec='${wl}-Bexport'
9459 runpath_var='LD_RUN_PATH'
9460
9461 if test "$GCC" = yes; then
9462 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 fi
9468 ;;
9469
9470 uts4*)
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 hardcode_shlibpath_var=no
9474 ;;
9475
9476 *)
9477 ld_shlibs=no
9478 ;;
9479 esac
9480
9481 if test x$host_vendor = xsni; then
9482 case $host in
9483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9484 export_dynamic_flag_spec='${wl}-Blargedynsym'
9485 ;;
9486 esac
9487 fi
9488 fi
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9491 $as_echo "$ld_shlibs" >&6; }
9492 test "$ld_shlibs" = no && can_build_shared=no
9493
9494 with_gnu_ld=$with_gnu_ld
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510 #
9511 # Do we need to explicitly link libc?
9512 #
9513 case "x$archive_cmds_need_lc" in
9514 x|xyes)
9515 # Assume -lc should be added
9516 archive_cmds_need_lc=yes
9517
9518 if test "$enable_shared" = yes && test "$GCC" = yes; then
9519 case $archive_cmds in
9520 *'~'*)
9521 # FIXME: we may have to deal with multi-command sequences.
9522 ;;
9523 '$CC '*)
9524 # Test whether the compiler implicitly links with -lc since on some
9525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9526 # to ld, don't add -lc before -lgcc.
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9528 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9529 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 $RM conftest*
9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9534
9535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9536 (eval $ac_compile) 2>&5
9537 ac_status=$?
9538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9539 test $ac_status = 0; } 2>conftest.err; then
9540 soname=conftest
9541 lib=conftest
9542 libobjs=conftest.$ac_objext
9543 deplibs=
9544 wl=$lt_prog_compiler_wl
9545 pic_flag=$lt_prog_compiler_pic
9546 compiler_flags=-v
9547 linker_flags=-v
9548 verstring=
9549 output_objdir=.
9550 libname=conftest
9551 lt_save_allow_undefined_flag=$allow_undefined_flag
9552 allow_undefined_flag=
9553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9554 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9555 ac_status=$?
9556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9557 test $ac_status = 0; }
9558 then
9559 lt_cv_archive_cmds_need_lc=no
9560 else
9561 lt_cv_archive_cmds_need_lc=yes
9562 fi
9563 allow_undefined_flag=$lt_save_allow_undefined_flag
9564 else
9565 cat conftest.err 1>&5
9566 fi
9567 $RM conftest*
9568
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9571 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9572 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9573 ;;
9574 esac
9575 fi
9576 ;;
9577 esac
9578
9579
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9736 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9737
9738 if test "$GCC" = yes; then
9739 case $host_os in
9740 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9741 *) lt_awk_arg="/^libraries:/" ;;
9742 esac
9743 case $host_os in
9744 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9745 *) lt_sed_strip_eq="s,=/,/,g" ;;
9746 esac
9747 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9748 case $lt_search_path_spec in
9749 *\;*)
9750 # if the path contains ";" then we assume it to be the separator
9751 # otherwise default to the standard path separator (i.e. ":") - it is
9752 # assumed that no part of a normal pathname contains ";" but that should
9753 # okay in the real world where ";" in dirpaths is itself problematic.
9754 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9755 ;;
9756 *)
9757 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9758 ;;
9759 esac
9760 # Ok, now we have the path, separated by spaces, we can step through it
9761 # and add multilib dir if necessary.
9762 lt_tmp_lt_search_path_spec=
9763 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9764 for lt_sys_path in $lt_search_path_spec; do
9765 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9767 else
9768 test -d "$lt_sys_path" && \
9769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9770 fi
9771 done
9772 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9773 BEGIN {RS=" "; FS="/|\n";} {
9774 lt_foo="";
9775 lt_count=0;
9776 for (lt_i = NF; lt_i > 0; lt_i--) {
9777 if ($lt_i != "" && $lt_i != ".") {
9778 if ($lt_i == "..") {
9779 lt_count++;
9780 } else {
9781 if (lt_count == 0) {
9782 lt_foo="/" $lt_i lt_foo;
9783 } else {
9784 lt_count--;
9785 }
9786 }
9787 }
9788 }
9789 if (lt_foo != "") { lt_freq[lt_foo]++; }
9790 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9791 }'`
9792 # AWK program above erroneously prepends '/' to C:/dos/paths
9793 # for these hosts.
9794 case $host_os in
9795 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9796 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9797 esac
9798 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9799 else
9800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9801 fi
9802 library_names_spec=
9803 libname_spec='lib$name'
9804 soname_spec=
9805 shrext_cmds=".so"
9806 postinstall_cmds=
9807 postuninstall_cmds=
9808 finish_cmds=
9809 finish_eval=
9810 shlibpath_var=
9811 shlibpath_overrides_runpath=unknown
9812 version_type=none
9813 dynamic_linker="$host_os ld.so"
9814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9815 need_lib_prefix=unknown
9816 hardcode_into_libs=no
9817
9818 # when you set need_version to no, make sure it does not cause -set_version
9819 # flags to be left without arguments
9820 need_version=unknown
9821
9822 case $host_os in
9823 aix3*)
9824 version_type=linux
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9826 shlibpath_var=LIBPATH
9827
9828 # AIX 3 has no versioning support, so we append a major version to the name.
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 ;;
9831
9832 aix[4-9]*)
9833 version_type=linux
9834 need_lib_prefix=no
9835 need_version=no
9836 hardcode_into_libs=yes
9837 if test "$host_cpu" = ia64; then
9838 # AIX 5 supports IA64
9839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 else
9842 # With GCC up to 2.95.x, collect2 would create an import file
9843 # for dependence libraries. The import file would start with
9844 # the line `#! .'. This would cause the generated library to
9845 # depend on `.', always an invalid library. This was fixed in
9846 # development snapshots of GCC prior to 3.0.
9847 case $host_os in
9848 aix4 | aix4.[01] | aix4.[01].*)
9849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9850 echo ' yes '
9851 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9852 :
9853 else
9854 can_build_shared=no
9855 fi
9856 ;;
9857 esac
9858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9859 # soname into executable. Probably we can add versioning support to
9860 # collect2, so additional links can be useful in future.
9861 if test "$aix_use_runtimelinking" = yes; then
9862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9863 # instead of lib<name>.a to let people know that these are not
9864 # typical AIX shared libraries.
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 else
9867 # We preserve .a as extension for shared libraries through AIX4.2
9868 # and later when we are not doing run time linking.
9869 library_names_spec='${libname}${release}.a $libname.a'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 fi
9872 shlibpath_var=LIBPATH
9873 fi
9874 ;;
9875
9876 amigaos*)
9877 case $host_cpu in
9878 powerpc)
9879 # Since July 2007 AmigaOS4 officially supports .so libraries.
9880 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 ;;
9883 m68k)
9884 library_names_spec='$libname.ixlibrary $libname.a'
9885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9886 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'
9887 ;;
9888 esac
9889 ;;
9890
9891 beos*)
9892 library_names_spec='${libname}${shared_ext}'
9893 dynamic_linker="$host_os ld.so"
9894 shlibpath_var=LIBRARY_PATH
9895 ;;
9896
9897 bsdi[45]*)
9898 version_type=linux
9899 need_version=no
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9905 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9906 # the default ld.so.conf also contains /usr/contrib/lib and
9907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9908 # libtool to hard-code these into programs
9909 ;;
9910
9911 cygwin* | mingw* | pw32* | cegcc*)
9912 version_type=windows
9913 shrext_cmds=".dll"
9914 need_version=no
9915 need_lib_prefix=no
9916
9917 case $GCC,$cc_basename in
9918 yes,*)
9919 # gcc
9920 library_names_spec='$libname.dll.a'
9921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922 postinstall_cmds='base_file=`basename \${file}`~
9923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9924 dldir=$destdir/`dirname \$dlpath`~
9925 test -d \$dldir || mkdir -p \$dldir~
9926 $install_prog $dir/$dlname \$dldir/$dlname~
9927 chmod a+x \$dldir/$dlname~
9928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9930 fi'
9931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9932 dlpath=$dir/\$dldll~
9933 $RM \$dlpath'
9934 shlibpath_overrides_runpath=yes
9935
9936 case $host_os in
9937 cygwin*)
9938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940
9941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9942 ;;
9943 mingw* | cegcc*)
9944 # MinGW DLLs use traditional 'lib' prefix
9945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946 ;;
9947 pw32*)
9948 # pw32 DLLs use 'pw' prefix rather than 'lib'
9949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950 ;;
9951 esac
9952 dynamic_linker='Win32 ld.exe'
9953 ;;
9954
9955 *,cl*)
9956 # Native MSVC
9957 libname_spec='$name'
9958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959 library_names_spec='${libname}.dll.lib'
9960
9961 case $build_os in
9962 mingw*)
9963 sys_lib_search_path_spec=
9964 lt_save_ifs=$IFS
9965 IFS=';'
9966 for lt_path in $LIB
9967 do
9968 IFS=$lt_save_ifs
9969 # Let DOS variable expansion print the short 8.3 style file name.
9970 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9972 done
9973 IFS=$lt_save_ifs
9974 # Convert to MSYS style.
9975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9976 ;;
9977 cygwin*)
9978 # Convert to unix form, then to dos form, then back to unix form
9979 # but this time dos style (no spaces!) so that the unix form looks
9980 # like /cygdrive/c/PROGRA~1:/cygdr...
9981 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9982 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9983 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9984 ;;
9985 *)
9986 sys_lib_search_path_spec="$LIB"
9987 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9988 # It is most probably a Windows format PATH.
9989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9990 else
9991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9992 fi
9993 # FIXME: find the short name or the path components, as spaces are
9994 # common. (e.g. "Program Files" -> "PROGRA~1")
9995 ;;
9996 esac
9997
9998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999 postinstall_cmds='base_file=`basename \${file}`~
10000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10001 dldir=$destdir/`dirname \$dlpath`~
10002 test -d \$dldir || mkdir -p \$dldir~
10003 $install_prog $dir/$dlname \$dldir/$dlname'
10004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10005 dlpath=$dir/\$dldll~
10006 $RM \$dlpath'
10007 shlibpath_overrides_runpath=yes
10008 dynamic_linker='Win32 link.exe'
10009 ;;
10010
10011 *)
10012 # Assume MSVC wrapper
10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014 dynamic_linker='Win32 ld.exe'
10015 ;;
10016 esac
10017 # FIXME: first we should search . and the directory the executable is in
10018 shlibpath_var=PATH
10019 ;;
10020
10021 darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
10028 shlibpath_overrides_runpath=yes
10029 shlibpath_var=DYLD_LIBRARY_PATH
10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10031
10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10034 ;;
10035
10036 dgux*)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 ;;
10044
10045 freebsd1*)
10046 dynamic_linker=no
10047 ;;
10048
10049 freebsd* | dragonfly*)
10050 # DragonFly does not have aout. When/if they implement a new
10051 # versioning mechanism, adjust this.
10052 if test -x /usr/bin/objformat; then
10053 objformat=`/usr/bin/objformat`
10054 else
10055 case $host_os in
10056 freebsd[123]*) objformat=aout ;;
10057 *) objformat=elf ;;
10058 esac
10059 fi
10060 version_type=freebsd-$objformat
10061 case $version_type in
10062 freebsd-elf*)
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064 need_version=no
10065 need_lib_prefix=no
10066 ;;
10067 freebsd-*)
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10069 need_version=yes
10070 ;;
10071 esac
10072 shlibpath_var=LD_LIBRARY_PATH
10073 case $host_os in
10074 freebsd2*)
10075 shlibpath_overrides_runpath=yes
10076 ;;
10077 freebsd3.[01]* | freebsdelf3.[01]*)
10078 shlibpath_overrides_runpath=yes
10079 hardcode_into_libs=yes
10080 ;;
10081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 ;;
10086 *) # from 4.6 on, and DragonFly
10087 shlibpath_overrides_runpath=yes
10088 hardcode_into_libs=yes
10089 ;;
10090 esac
10091 ;;
10092
10093 gnu*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=no
10101 hardcode_into_libs=yes
10102 ;;
10103
10104 haiku*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 dynamic_linker="$host_os runtime_loader"
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10114 hardcode_into_libs=yes
10115 ;;
10116
10117 hpux9* | hpux10* | hpux11*)
10118 # Give a soname corresponding to the major version so that dld.sl refuses to
10119 # link against other versions.
10120 version_type=sunos
10121 need_lib_prefix=no
10122 need_version=no
10123 case $host_cpu in
10124 ia64*)
10125 shrext_cmds='.so'
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.so"
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 if test "X$HPUX_IA64_MODE" = X32; then
10133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134 else
10135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136 fi
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 ;;
10139 hppa*64*)
10140 shrext_cmds='.sl'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149 ;;
10150 *)
10151 shrext_cmds='.sl'
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=SHLIB_PATH
10154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 ;;
10158 esac
10159 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10160 postinstall_cmds='chmod 555 $lib'
10161 # or fails outright, so override atomically:
10162 install_override_mode=555
10163 ;;
10164
10165 interix[3-9]*)
10166 version_type=linux
10167 need_lib_prefix=no
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 hardcode_into_libs=yes
10175 ;;
10176
10177 irix5* | irix6* | nonstopux*)
10178 case $host_os in
10179 nonstopux*) version_type=nonstopux ;;
10180 *)
10181 if test "$lt_cv_prog_gnu_ld" = yes; then
10182 version_type=linux
10183 else
10184 version_type=irix
10185 fi ;;
10186 esac
10187 need_lib_prefix=no
10188 need_version=no
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 case $host_os in
10192 irix5* | nonstopux*)
10193 libsuff= shlibsuff=
10194 ;;
10195 *)
10196 case $LD in # libtool.m4 will add one of these switches to LD
10197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10198 libsuff= shlibsuff= libmagic=32-bit;;
10199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10200 libsuff=32 shlibsuff=N32 libmagic=N32;;
10201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10203 *) libsuff= shlibsuff= libmagic=never-match;;
10204 esac
10205 ;;
10206 esac
10207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10208 shlibpath_overrides_runpath=no
10209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10211 hardcode_into_libs=yes
10212 ;;
10213
10214 # No shared lib support for Linux oldld, aout, or coff.
10215 linux*oldld* | linux*aout* | linux*coff*)
10216 dynamic_linker=no
10217 ;;
10218
10219 # This must be Linux ELF.
10220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10221 version_type=linux
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=no
10229
10230 # Some binutils ld are patched to set DT_RUNPATH
10231 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 lt_cv_shlibpath_overrides_runpath=no
10235 save_LDFLAGS=$LDFLAGS
10236 save_libdir=$libdir
10237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241
10242 int
10243 main ()
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10252 lt_cv_shlibpath_overrides_runpath=yes
10253 fi
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS=$save_LDFLAGS
10258 libdir=$save_libdir
10259
10260 fi
10261
10262 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10263
10264 # This implies no fast_install, which is unacceptable.
10265 # Some rework will be needed to allow for fast_install
10266 # before this can be enabled.
10267 hardcode_into_libs=yes
10268
10269 # Append ld.so.conf contents to the search path
10270 if test -f /etc/ld.so.conf; then
10271 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' ' '`
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10273 fi
10274
10275 # We used to test for /lib/ld.so.1 and disable shared libraries on
10276 # powerpc, because MkLinux only supported shared libraries with the
10277 # GNU dynamic linker. Since this was broken with cross compilers,
10278 # most powerpc-linux boxes support dynamic linking these days and
10279 # people can always --disable-shared, the test was removed, and we
10280 # assume the GNU/Linux dynamic linker is in use.
10281 dynamic_linker='GNU/Linux ld.so'
10282 ;;
10283
10284 netbsdelf*-gnu)
10285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10293 dynamic_linker='NetBSD ld.elf_so'
10294 ;;
10295
10296 netbsd*)
10297 version_type=sunos
10298 need_lib_prefix=no
10299 need_version=no
10300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303 dynamic_linker='NetBSD (a.out) ld.so'
10304 else
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 dynamic_linker='NetBSD ld.elf_so'
10308 fi
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 hardcode_into_libs=yes
10312 ;;
10313
10314 newsos6)
10315 version_type=linux
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=yes
10319 ;;
10320
10321 *nto* | *qnx*)
10322 version_type=qnx
10323 need_lib_prefix=no
10324 need_version=no
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=no
10329 hardcode_into_libs=yes
10330 dynamic_linker='ldqnx.so'
10331 ;;
10332
10333 openbsd*)
10334 version_type=sunos
10335 sys_lib_dlsearch_path_spec="/usr/lib"
10336 need_lib_prefix=no
10337 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10338 case $host_os in
10339 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10340 *) need_version=no ;;
10341 esac
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10346 case $host_os in
10347 openbsd2.[89] | openbsd2.[89].*)
10348 shlibpath_overrides_runpath=no
10349 ;;
10350 *)
10351 shlibpath_overrides_runpath=yes
10352 ;;
10353 esac
10354 else
10355 shlibpath_overrides_runpath=yes
10356 fi
10357 ;;
10358
10359 os2*)
10360 libname_spec='$name'
10361 shrext_cmds=".dll"
10362 need_lib_prefix=no
10363 library_names_spec='$libname${shared_ext} $libname.a'
10364 dynamic_linker='OS/2 ld.exe'
10365 shlibpath_var=LIBPATH
10366 ;;
10367
10368 osf3* | osf4* | osf5*)
10369 version_type=osf
10370 need_lib_prefix=no
10371 need_version=no
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10376 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10377 ;;
10378
10379 rdos*)
10380 dynamic_linker=no
10381 ;;
10382
10383 solaris*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10392 # ldd complains unless libraries are executable
10393 postinstall_cmds='chmod +x $lib'
10394 ;;
10395
10396 sunos4*)
10397 version_type=sunos
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10402 if test "$with_gnu_ld" = yes; then
10403 need_lib_prefix=no
10404 fi
10405 need_version=yes
10406 ;;
10407
10408 sysv4 | sysv4.3*)
10409 version_type=linux
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 case $host_vendor in
10414 sni)
10415 shlibpath_overrides_runpath=no
10416 need_lib_prefix=no
10417 runpath_var=LD_RUN_PATH
10418 ;;
10419 siemens)
10420 need_lib_prefix=no
10421 ;;
10422 motorola)
10423 need_lib_prefix=no
10424 need_version=no
10425 shlibpath_overrides_runpath=no
10426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10427 ;;
10428 esac
10429 ;;
10430
10431 sysv4*MP*)
10432 if test -d /usr/nec ;then
10433 version_type=linux
10434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10435 soname_spec='$libname${shared_ext}.$major'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 fi
10438 ;;
10439
10440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10441 version_type=freebsd-elf
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 shlibpath_overrides_runpath=yes
10448 hardcode_into_libs=yes
10449 if test "$with_gnu_ld" = yes; then
10450 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10451 else
10452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10453 case $host_os in
10454 sco3.2v5*)
10455 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10456 ;;
10457 esac
10458 fi
10459 sys_lib_dlsearch_path_spec='/usr/lib'
10460 ;;
10461
10462 tpf*)
10463 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10464 version_type=linux
10465 need_lib_prefix=no
10466 need_version=no
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=no
10470 hardcode_into_libs=yes
10471 ;;
10472
10473 uts4*)
10474 version_type=linux
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 ;;
10479
10480 *)
10481 dynamic_linker=no
10482 ;;
10483 esac
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10485 $as_echo "$dynamic_linker" >&6; }
10486 test "$dynamic_linker" = no && can_build_shared=no
10487
10488 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10489 if test "$GCC" = yes; then
10490 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10491 fi
10492
10493 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10494 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10495 fi
10496 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10497 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10498 fi
10499
10500
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10592 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10593 hardcode_action=
10594 if test -n "$hardcode_libdir_flag_spec" ||
10595 test -n "$runpath_var" ||
10596 test "X$hardcode_automatic" = "Xyes" ; then
10597
10598 # We can hardcode non-existent directories.
10599 if test "$hardcode_direct" != no &&
10600 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10601 # have to relink, otherwise we might link with an installed library
10602 # when we should be linking with a yet-to-be-installed one
10603 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10604 test "$hardcode_minus_L" != no; then
10605 # Linking always hardcodes the temporary library directory.
10606 hardcode_action=relink
10607 else
10608 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10609 hardcode_action=immediate
10610 fi
10611 else
10612 # We cannot hardcode anything, or else we can only hardcode existing
10613 # directories.
10614 hardcode_action=unsupported
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10617 $as_echo "$hardcode_action" >&6; }
10618
10619 if test "$hardcode_action" = relink ||
10620 test "$inherit_rpath" = yes; then
10621 # Fast installation is not supported
10622 enable_fast_install=no
10623 elif test "$shlibpath_overrides_runpath" = yes ||
10624 test "$enable_shared" = no; then
10625 # Fast installation is not necessary
10626 enable_fast_install=needless
10627 fi
10628
10629
10630
10631
10632
10633
10634 if test "x$enable_dlopen" != xyes; then
10635 enable_dlopen=unknown
10636 enable_dlopen_self=unknown
10637 enable_dlopen_self_static=unknown
10638 else
10639 lt_cv_dlopen=no
10640 lt_cv_dlopen_libs=
10641
10642 case $host_os in
10643 beos*)
10644 lt_cv_dlopen="load_add_on"
10645 lt_cv_dlopen_libs=
10646 lt_cv_dlopen_self=yes
10647 ;;
10648
10649 mingw* | pw32* | cegcc*)
10650 lt_cv_dlopen="LoadLibrary"
10651 lt_cv_dlopen_libs=
10652 ;;
10653
10654 cygwin*)
10655 lt_cv_dlopen="dlopen"
10656 lt_cv_dlopen_libs=
10657 ;;
10658
10659 darwin*)
10660 # if libdl is installed we need to link against it
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10662 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10663 if ${ac_cv_lib_dl_dlopen+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-ldl $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dlopen ();
10678 int
10679 main ()
10680 {
10681 return dlopen ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_dl_dlopen=yes
10688 else
10689 ac_cv_lib_dl_dlopen=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10697 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10699 else
10700
10701 lt_cv_dlopen="dyld"
10702 lt_cv_dlopen_libs=
10703 lt_cv_dlopen_self=yes
10704
10705 fi
10706
10707 ;;
10708
10709 *)
10710 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10711 if test "x$ac_cv_func_shl_load" = xyes; then :
10712 lt_cv_dlopen="shl_load"
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10715 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10716 if ${ac_cv_lib_dld_shl_load+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldld $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char shl_load ();
10731 int
10732 main ()
10733 {
10734 return shl_load ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dld_shl_load=yes
10741 else
10742 ac_cv_lib_dld_shl_load=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10749 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10750 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10751 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10752 else
10753 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10754 if test "x$ac_cv_func_dlopen" = xyes; then :
10755 lt_cv_dlopen="dlopen"
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10758 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10759 if ${ac_cv_lib_dl_dlopen+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-ldl $LIBS"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10770 #ifdef __cplusplus
10771 extern "C"
10772 #endif
10773 char dlopen ();
10774 int
10775 main ()
10776 {
10777 return dlopen ();
10778 ;
10779 return 0;
10780 }
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10783 ac_cv_lib_dl_dlopen=yes
10784 else
10785 ac_cv_lib_dl_dlopen=no
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_lib_save_LIBS
10790 fi
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10792 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10793 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10797 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10798 if ${ac_cv_lib_svld_dlopen+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lsvld $LIBS"
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809 #ifdef __cplusplus
10810 extern "C"
10811 #endif
10812 char dlopen ();
10813 int
10814 main ()
10815 {
10816 return dlopen ();
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"; then :
10822 ac_cv_lib_svld_dlopen=yes
10823 else
10824 ac_cv_lib_svld_dlopen=no
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext \
10827 conftest$ac_exeext conftest.$ac_ext
10828 LIBS=$ac_check_lib_save_LIBS
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10831 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10832 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10836 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10837 if ${ac_cv_lib_dld_dld_link+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 ac_check_lib_save_LIBS=$LIBS
10841 LIBS="-ldld $LIBS"
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 char dld_link ();
10852 int
10853 main ()
10854 {
10855 return dld_link ();
10856 ;
10857 return 0;
10858 }
10859 _ACEOF
10860 if ac_fn_c_try_link "$LINENO"; then :
10861 ac_cv_lib_dld_dld_link=yes
10862 else
10863 ac_cv_lib_dld_dld_link=no
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10868 fi
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10870 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10871 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10872 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10873 fi
10874
10875
10876 fi
10877
10878
10879 fi
10880
10881
10882 fi
10883
10884
10885 fi
10886
10887
10888 fi
10889
10890 ;;
10891 esac
10892
10893 if test "x$lt_cv_dlopen" != xno; then
10894 enable_dlopen=yes
10895 else
10896 enable_dlopen=no
10897 fi
10898
10899 case $lt_cv_dlopen in
10900 dlopen)
10901 save_CPPFLAGS="$CPPFLAGS"
10902 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10903
10904 save_LDFLAGS="$LDFLAGS"
10905 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10906
10907 save_LIBS="$LIBS"
10908 LIBS="$lt_cv_dlopen_libs $LIBS"
10909
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10911 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10912 if ${lt_cv_dlopen_self+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 if test "$cross_compiling" = yes; then :
10916 lt_cv_dlopen_self=cross
10917 else
10918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10919 lt_status=$lt_dlunknown
10920 cat > conftest.$ac_ext <<_LT_EOF
10921 #line $LINENO "configure"
10922 #include "confdefs.h"
10923
10924 #if HAVE_DLFCN_H
10925 #include <dlfcn.h>
10926 #endif
10927
10928 #include <stdio.h>
10929
10930 #ifdef RTLD_GLOBAL
10931 # define LT_DLGLOBAL RTLD_GLOBAL
10932 #else
10933 # ifdef DL_GLOBAL
10934 # define LT_DLGLOBAL DL_GLOBAL
10935 # else
10936 # define LT_DLGLOBAL 0
10937 # endif
10938 #endif
10939
10940 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10941 find out it does not work in some platform. */
10942 #ifndef LT_DLLAZY_OR_NOW
10943 # ifdef RTLD_LAZY
10944 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10945 # else
10946 # ifdef DL_LAZY
10947 # define LT_DLLAZY_OR_NOW DL_LAZY
10948 # else
10949 # ifdef RTLD_NOW
10950 # define LT_DLLAZY_OR_NOW RTLD_NOW
10951 # else
10952 # ifdef DL_NOW
10953 # define LT_DLLAZY_OR_NOW DL_NOW
10954 # else
10955 # define LT_DLLAZY_OR_NOW 0
10956 # endif
10957 # endif
10958 # endif
10959 # endif
10960 #endif
10961
10962 /* When -fvisbility=hidden is used, assume the code has been annotated
10963 correspondingly for the symbols needed. */
10964 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10965 int fnord () __attribute__((visibility("default")));
10966 #endif
10967
10968 int fnord () { return 42; }
10969 int main ()
10970 {
10971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10972 int status = $lt_dlunknown;
10973
10974 if (self)
10975 {
10976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10977 else
10978 {
10979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10980 else puts (dlerror ());
10981 }
10982 /* dlclose (self); */
10983 }
10984 else
10985 puts (dlerror ());
10986
10987 return status;
10988 }
10989 _LT_EOF
10990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10991 (eval $ac_link) 2>&5
10992 ac_status=$?
10993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10994 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10995 (./conftest; exit; ) >&5 2>/dev/null
10996 lt_status=$?
10997 case x$lt_status in
10998 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10999 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11000 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11001 esac
11002 else :
11003 # compilation failed
11004 lt_cv_dlopen_self=no
11005 fi
11006 fi
11007 rm -fr conftest*
11008
11009
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11012 $as_echo "$lt_cv_dlopen_self" >&6; }
11013
11014 if test "x$lt_cv_dlopen_self" = xyes; then
11015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11017 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11018 if ${lt_cv_dlopen_self_static+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test "$cross_compiling" = yes; then :
11022 lt_cv_dlopen_self_static=cross
11023 else
11024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11025 lt_status=$lt_dlunknown
11026 cat > conftest.$ac_ext <<_LT_EOF
11027 #line $LINENO "configure"
11028 #include "confdefs.h"
11029
11030 #if HAVE_DLFCN_H
11031 #include <dlfcn.h>
11032 #endif
11033
11034 #include <stdio.h>
11035
11036 #ifdef RTLD_GLOBAL
11037 # define LT_DLGLOBAL RTLD_GLOBAL
11038 #else
11039 # ifdef DL_GLOBAL
11040 # define LT_DLGLOBAL DL_GLOBAL
11041 # else
11042 # define LT_DLGLOBAL 0
11043 # endif
11044 #endif
11045
11046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11047 find out it does not work in some platform. */
11048 #ifndef LT_DLLAZY_OR_NOW
11049 # ifdef RTLD_LAZY
11050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11051 # else
11052 # ifdef DL_LAZY
11053 # define LT_DLLAZY_OR_NOW DL_LAZY
11054 # else
11055 # ifdef RTLD_NOW
11056 # define LT_DLLAZY_OR_NOW RTLD_NOW
11057 # else
11058 # ifdef DL_NOW
11059 # define LT_DLLAZY_OR_NOW DL_NOW
11060 # else
11061 # define LT_DLLAZY_OR_NOW 0
11062 # endif
11063 # endif
11064 # endif
11065 # endif
11066 #endif
11067
11068 /* When -fvisbility=hidden is used, assume the code has been annotated
11069 correspondingly for the symbols needed. */
11070 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11071 int fnord () __attribute__((visibility("default")));
11072 #endif
11073
11074 int fnord () { return 42; }
11075 int main ()
11076 {
11077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11078 int status = $lt_dlunknown;
11079
11080 if (self)
11081 {
11082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11083 else
11084 {
11085 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11086 else puts (dlerror ());
11087 }
11088 /* dlclose (self); */
11089 }
11090 else
11091 puts (dlerror ());
11092
11093 return status;
11094 }
11095 _LT_EOF
11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11097 (eval $ac_link) 2>&5
11098 ac_status=$?
11099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11101 (./conftest; exit; ) >&5 2>/dev/null
11102 lt_status=$?
11103 case x$lt_status in
11104 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11105 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11106 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11107 esac
11108 else :
11109 # compilation failed
11110 lt_cv_dlopen_self_static=no
11111 fi
11112 fi
11113 rm -fr conftest*
11114
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11118 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11119 fi
11120
11121 CPPFLAGS="$save_CPPFLAGS"
11122 LDFLAGS="$save_LDFLAGS"
11123 LIBS="$save_LIBS"
11124 ;;
11125 esac
11126
11127 case $lt_cv_dlopen_self in
11128 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11129 *) enable_dlopen_self=unknown ;;
11130 esac
11131
11132 case $lt_cv_dlopen_self_static in
11133 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11134 *) enable_dlopen_self_static=unknown ;;
11135 esac
11136 fi
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154 striplib=
11155 old_striplib=
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11157 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11158 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11162 $as_echo "yes" >&6; }
11163 else
11164 # FIXME - insert some real tests, host_os isn't really good enough
11165 case $host_os in
11166 darwin*)
11167 if test -n "$STRIP" ; then
11168 striplib="$STRIP -x"
11169 old_striplib="$STRIP -S"
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171 $as_echo "yes" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176 ;;
11177 *)
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 ;;
11181 esac
11182 fi
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195 # Report which library types will actually be built
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11197 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11199 $as_echo "$can_build_shared" >&6; }
11200
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11202 $as_echo_n "checking whether to build shared libraries... " >&6; }
11203 test "$can_build_shared" = "no" && enable_shared=no
11204
11205 # On AIX, shared libraries and static libraries use the same namespace, and
11206 # are all built from PIC.
11207 case $host_os in
11208 aix3*)
11209 test "$enable_shared" = yes && enable_static=no
11210 if test -n "$RANLIB"; then
11211 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11212 postinstall_cmds='$RANLIB $lib'
11213 fi
11214 ;;
11215
11216 aix[4-9]*)
11217 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11218 test "$enable_shared" = yes && enable_static=no
11219 fi
11220 ;;
11221 esac
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11223 $as_echo "$enable_shared" >&6; }
11224
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11226 $as_echo_n "checking whether to build static libraries... " >&6; }
11227 # Make sure either enable_shared or enable_static is yes.
11228 test "$enable_shared" = yes || enable_static=yes
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11230 $as_echo "$enable_static" >&6; }
11231
11232
11233
11234
11235 fi
11236 ac_ext=c
11237 ac_cpp='$CPP $CPPFLAGS'
11238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11241
11242 CC="$lt_save_CC"
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 ac_config_commands="$ac_config_commands libtool"
11257
11258
11259
11260
11261 # Only expand once:
11262
11263
11264
11265 if test "x$CC" != xcc; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11271 fi
11272 set dummy $CC; ac_cc=`$as_echo "$2" |
11273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11274 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279
11280 int
11281 main ()
11282 {
11283
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 # Make sure it works both with $CC and with simple cc.
11289 # We do the test twice because some compilers refuse to overwrite an
11290 # existing .o file with -o, though they will create one.
11291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11292 rm -f conftest2.*
11293 if { { case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11298 $as_echo "$ac_try_echo"; } >&5
11299 (eval "$ac_try") 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; } &&
11303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11308 $as_echo "$ac_try_echo"; } >&5
11309 (eval "$ac_try") 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312 test $ac_status = 0; };
11313 then
11314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11315 if test "x$CC" != xcc; then
11316 # Test first that cc exists at all.
11317 if { ac_try='cc -c conftest.$ac_ext >&5'
11318 { { case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11323 $as_echo "$ac_try_echo"; } >&5
11324 (eval "$ac_try") 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; }; }; then
11328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11329 rm -f conftest2.*
11330 if { { case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11335 $as_echo "$ac_try_echo"; } >&5
11336 (eval "$ac_try") 2>&5
11337 ac_status=$?
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } &&
11340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11345 $as_echo "$ac_try_echo"; } >&5
11346 (eval "$ac_try") 2>&5
11347 ac_status=$?
11348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349 test $ac_status = 0; };
11350 then
11351 # cc works too.
11352 :
11353 else
11354 # cc exists but doesn't like -o.
11355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11356 fi
11357 fi
11358 fi
11359 else
11360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11361 fi
11362 rm -f core conftest*
11363
11364 fi
11365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371
11372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11373
11374 fi
11375
11376 # FIXME: we rely on the cache variable name because
11377 # there is no other way.
11378 set dummy $CC
11379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11381 if test "$am_t" != yes; then
11382 # Losing compiler, so override with the script.
11383 # FIXME: It is wrong to rewrite CC.
11384 # But if we don't then we get into trouble of one sort or another.
11385 # A longer-term fix would be to have automake use am__CC in this case,
11386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11387 CC="$am_aux_dir/compile $CC"
11388 fi
11389
11390
11391
11392 # Work around stupid autoconf default cflags. pt 2
11393 if test "$SAVE_CFLAGS" = "x"; then
11394 CFLAGS=""
11395 fi
11396
11397 # Extract the first word of "rpcgen", so it can be a program name with args.
11398 set dummy rpcgen; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_HAVE_RPCGEN+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 if test -n "$HAVE_RPCGEN"; then
11405 ac_cv_prog_HAVE_RPCGEN="$HAVE_RPCGEN" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_prog_HAVE_RPCGEN="yes"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 test -z "$ac_cv_prog_HAVE_RPCGEN" && ac_cv_prog_HAVE_RPCGEN="no"
11423 fi
11424 fi
11425 HAVE_RPCGEN=$ac_cv_prog_HAVE_RPCGEN
11426 if test -n "$HAVE_RPCGEN"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPCGEN" >&5
11428 $as_echo "$HAVE_RPCGEN" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435 if test x$HAVE_RPCGEN != xyes; then
11436 as_fn_error $? "Can not find required program" "$LINENO" 5
11437 fi
11438
11439 #option: examples
11440 # Check whether --enable-examples was given.
11441 if test "${enable_examples+set}" = set; then :
11442 enableval=$enable_examples; ENABLE_EXAMPLES=$enableval
11443 else
11444 ENABLE_EXAMPLES="no"
11445 fi
11446
11447
11448 if test x$ENABLE_EXAMPLES = xyes; then
11449 MAYBE_EXAMPLES="examples"
11450 fi
11451
11452
11453 case $host in
11454 *darwin*)
11455 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11456 ;;
11457 *solaris*)
11458 for ac_header in sys/filio.h
11459 do :
11460 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11461 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_SYS_FILIO_H 1
11464 _ACEOF
11465
11466 fi
11467
11468 done
11469
11470 if test x$ENABLE_EXAMPLES = xyes; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11472 $as_echo_n "checking for main in -lsocket... " >&6; }
11473 if ${ac_cv_lib_socket_main+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-lsocket $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480
11481
11482 int
11483 main ()
11484 {
11485 return main ();
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_socket_main=yes
11492 else
11493 ac_cv_lib_socket_main=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11500 $as_echo "$ac_cv_lib_socket_main" >&6; }
11501 if test "x$ac_cv_lib_socket_main" = xyes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_LIBSOCKET 1
11504 _ACEOF
11505
11506 LIBS="-lsocket $LIBS"
11507
11508 else
11509 as_fn_error $? "Can not find required library" "$LINENO" 5
11510 fi
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11513 $as_echo_n "checking for main in -lnsl... " >&6; }
11514 if ${ac_cv_lib_nsl_main+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-lnsl $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521
11522
11523 int
11524 main ()
11525 {
11526 return main ();
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532 ac_cv_lib_nsl_main=yes
11533 else
11534 ac_cv_lib_nsl_main=no
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_lib_save_LIBS
11539 fi
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11541 $as_echo "$ac_cv_lib_nsl_main" >&6; }
11542 if test "x$ac_cv_lib_nsl_main" = xyes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_LIBNSL 1
11545 _ACEOF
11546
11547 LIBS="-lnsl $LIBS"
11548
11549 else
11550 as_fn_error $? "Can not find required library" "$LINENO" 5
11551 fi
11552
11553 fi
11554 ;;
11555 *)
11556 ;;
11557 esac
11558
11559
11560
11561 # check for SA_LEN
11562 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11563 #include <sys/types.h>
11564 #include <sys/socket.h>
11565
11566 "
11567 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11568
11569 $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
11570
11571 fi
11572
11573
11574 #output
11575 ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
11576
11577
11578 cat >confcache <<\_ACEOF
11579 # This file is a shell script that caches the results of configure
11580 # tests run on this system so they can be shared between configure
11581 # scripts and configure runs, see configure's option --config-cache.
11582 # It is not useful on other systems. If it contains results you don't
11583 # want to keep, you may remove or edit it.
11584 #
11585 # config.status only pays attention to the cache file if you give it
11586 # the --recheck option to rerun configure.
11587 #
11588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11590 # following values.
11591
11592 _ACEOF
11593
11594 # The following way of writing the cache mishandles newlines in values,
11595 # but we know of no workaround that is simple, portable, and efficient.
11596 # So, we kill variables containing newlines.
11597 # Ultrix sh set writes to stderr and can't be redirected directly,
11598 # and sets the high bit in the cache file unless we assign to the vars.
11599 (
11600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11601 eval ac_val=\$$ac_var
11602 case $ac_val in #(
11603 *${as_nl}*)
11604 case $ac_var in #(
11605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11607 esac
11608 case $ac_var in #(
11609 _ | IFS | as_nl) ;; #(
11610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11611 *) { eval $ac_var=; unset $ac_var;} ;;
11612 esac ;;
11613 esac
11614 done
11615
11616 (set) 2>&1 |
11617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11618 *${as_nl}ac_space=\ *)
11619 # `set' does not quote correctly, so add quotes: double-quote
11620 # substitution turns \\\\ into \\, and sed turns \\ into \.
11621 sed -n \
11622 "s/'/'\\\\''/g;
11623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11624 ;; #(
11625 *)
11626 # `set' quotes correctly as required by POSIX, so do not add quotes.
11627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11628 ;;
11629 esac |
11630 sort
11631 ) |
11632 sed '
11633 /^ac_cv_env_/b end
11634 t clear
11635 :clear
11636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11637 t end
11638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11639 :end' >>confcache
11640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11641 if test -w "$cache_file"; then
11642 if test "x$cache_file" != "x/dev/null"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11644 $as_echo "$as_me: updating cache $cache_file" >&6;}
11645 if test ! -f "$cache_file" || test -h "$cache_file"; then
11646 cat confcache >"$cache_file"
11647 else
11648 case $cache_file in #(
11649 */* | ?:*)
11650 mv -f confcache "$cache_file"$$ &&
11651 mv -f "$cache_file"$$ "$cache_file" ;; #(
11652 *)
11653 mv -f confcache "$cache_file" ;;
11654 esac
11655 fi
11656 fi
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11659 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11660 fi
11661 fi
11662 rm -f confcache
11663
11664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11665 # Let make expand exec_prefix.
11666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11667
11668 DEFS=-DHAVE_CONFIG_H
11669
11670 ac_libobjs=
11671 ac_ltlibobjs=
11672 U=
11673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11674 # 1. Remove the extension, and $U if already installed.
11675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11678 # will be set to the directory where LIBOBJS objects are built.
11679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11681 done
11682 LIBOBJS=$ac_libobjs
11683
11684 LTLIBOBJS=$ac_ltlibobjs
11685
11686
11687 if test -n "$EXEEXT"; then
11688 am__EXEEXT_TRUE=
11689 am__EXEEXT_FALSE='#'
11690 else
11691 am__EXEEXT_TRUE='#'
11692 am__EXEEXT_FALSE=
11693 fi
11694
11695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11696 as_fn_error $? "conditional \"AMDEP\" was never defined.
11697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11698 fi
11699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11700 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11702 fi
11703
11704 : "${CONFIG_STATUS=./config.status}"
11705 ac_write_fail=0
11706 ac_clean_files_save=$ac_clean_files
11707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11709 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11710 as_write_fail=0
11711 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11712 #! $SHELL
11713 # Generated by $as_me.
11714 # Run this file to recreate the current configuration.
11715 # Compiler output produced by configure, useful for debugging
11716 # configure, is in config.log if it exists.
11717
11718 debug=false
11719 ac_cs_recheck=false
11720 ac_cs_silent=false
11721
11722 SHELL=\${CONFIG_SHELL-$SHELL}
11723 export SHELL
11724 _ASEOF
11725 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11726 ## -------------------- ##
11727 ## M4sh Initialization. ##
11728 ## -------------------- ##
11729
11730 # Be more Bourne compatible
11731 DUALCASE=1; export DUALCASE # for MKS sh
11732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11733 emulate sh
11734 NULLCMD=:
11735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11736 # is contrary to our usage. Disable this feature.
11737 alias -g '${1+"$@"}'='"$@"'
11738 setopt NO_GLOB_SUBST
11739 else
11740 case `(set -o) 2>/dev/null` in #(
11741 *posix*) :
11742 set -o posix ;; #(
11743 *) :
11744 ;;
11745 esac
11746 fi
11747
11748
11749 as_nl='
11750 '
11751 export as_nl
11752 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11753 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11756 # Prefer a ksh shell builtin over an external printf program on Solaris,
11757 # but without wasting forks for bash or zsh.
11758 if test -z "$BASH_VERSION$ZSH_VERSION" \
11759 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11760 as_echo='print -r --'
11761 as_echo_n='print -rn --'
11762 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11763 as_echo='printf %s\n'
11764 as_echo_n='printf %s'
11765 else
11766 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11767 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11768 as_echo_n='/usr/ucb/echo -n'
11769 else
11770 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11771 as_echo_n_body='eval
11772 arg=$1;
11773 case $arg in #(
11774 *"$as_nl"*)
11775 expr "X$arg" : "X\\(.*\\)$as_nl";
11776 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11777 esac;
11778 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11779 '
11780 export as_echo_n_body
11781 as_echo_n='sh -c $as_echo_n_body as_echo'
11782 fi
11783 export as_echo_body
11784 as_echo='sh -c $as_echo_body as_echo'
11785 fi
11786
11787 # The user is always right.
11788 if test "${PATH_SEPARATOR+set}" != set; then
11789 PATH_SEPARATOR=:
11790 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11791 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11792 PATH_SEPARATOR=';'
11793 }
11794 fi
11795
11796
11797 # IFS
11798 # We need space, tab and new line, in precisely that order. Quoting is
11799 # there to prevent editors from complaining about space-tab.
11800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11801 # splitting by setting IFS to empty value.)
11802 IFS=" "" $as_nl"
11803
11804 # Find who we are. Look in the path if we contain no directory separator.
11805 as_myself=
11806 case $0 in #((
11807 *[\\/]* ) as_myself=$0 ;;
11808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11810 do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11814 done
11815 IFS=$as_save_IFS
11816
11817 ;;
11818 esac
11819 # We did not find ourselves, most probably we were run as `sh COMMAND'
11820 # in which case we are not to be found in the path.
11821 if test "x$as_myself" = x; then
11822 as_myself=$0
11823 fi
11824 if test ! -f "$as_myself"; then
11825 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11826 exit 1
11827 fi
11828
11829 # Unset variables that we do not need and which cause bugs (e.g. in
11830 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11831 # suppresses any "Segmentation fault" message there. '((' could
11832 # trigger a bug in pdksh 5.2.14.
11833 for as_var in BASH_ENV ENV MAIL MAILPATH
11834 do eval test x\${$as_var+set} = xset \
11835 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11836 done
11837 PS1='$ '
11838 PS2='> '
11839 PS4='+ '
11840
11841 # NLS nuisances.
11842 LC_ALL=C
11843 export LC_ALL
11844 LANGUAGE=C
11845 export LANGUAGE
11846
11847 # CDPATH.
11848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11849
11850
11851 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11852 # ----------------------------------------
11853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11855 # script with STATUS, using 1 if that was 0.
11856 as_fn_error ()
11857 {
11858 as_status=$1; test $as_status -eq 0 && as_status=1
11859 if test "$4"; then
11860 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11861 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11862 fi
11863 $as_echo "$as_me: error: $2" >&2
11864 as_fn_exit $as_status
11865 } # as_fn_error
11866
11867
11868 # as_fn_set_status STATUS
11869 # -----------------------
11870 # Set $? to STATUS, without forking.
11871 as_fn_set_status ()
11872 {
11873 return $1
11874 } # as_fn_set_status
11875
11876 # as_fn_exit STATUS
11877 # -----------------
11878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11879 as_fn_exit ()
11880 {
11881 set +e
11882 as_fn_set_status $1
11883 exit $1
11884 } # as_fn_exit
11885
11886 # as_fn_unset VAR
11887 # ---------------
11888 # Portably unset VAR.
11889 as_fn_unset ()
11890 {
11891 { eval $1=; unset $1;}
11892 }
11893 as_unset=as_fn_unset
11894 # as_fn_append VAR VALUE
11895 # ----------------------
11896 # Append the text in VALUE to the end of the definition contained in VAR. Take
11897 # advantage of any shell optimizations that allow amortized linear growth over
11898 # repeated appends, instead of the typical quadratic growth present in naive
11899 # implementations.
11900 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11901 eval 'as_fn_append ()
11902 {
11903 eval $1+=\$2
11904 }'
11905 else
11906 as_fn_append ()
11907 {
11908 eval $1=\$$1\$2
11909 }
11910 fi # as_fn_append
11911
11912 # as_fn_arith ARG...
11913 # ------------------
11914 # Perform arithmetic evaluation on the ARGs, and store the result in the
11915 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11916 # must be portable across $(()) and expr.
11917 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11918 eval 'as_fn_arith ()
11919 {
11920 as_val=$(( $* ))
11921 }'
11922 else
11923 as_fn_arith ()
11924 {
11925 as_val=`expr "$@" || test $? -eq 1`
11926 }
11927 fi # as_fn_arith
11928
11929
11930 if expr a : '\(a\)' >/dev/null 2>&1 &&
11931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11932 as_expr=expr
11933 else
11934 as_expr=false
11935 fi
11936
11937 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11938 as_basename=basename
11939 else
11940 as_basename=false
11941 fi
11942
11943 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11944 as_dirname=dirname
11945 else
11946 as_dirname=false
11947 fi
11948
11949 as_me=`$as_basename -- "$0" ||
11950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11951 X"$0" : 'X\(//\)$' \| \
11952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11953 $as_echo X/"$0" |
11954 sed '/^.*\/\([^/][^/]*\)\/*$/{
11955 s//\1/
11956 q
11957 }
11958 /^X\/\(\/\/\)$/{
11959 s//\1/
11960 q
11961 }
11962 /^X\/\(\/\).*/{
11963 s//\1/
11964 q
11965 }
11966 s/.*/./; q'`
11967
11968 # Avoid depending upon Character Ranges.
11969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11972 as_cr_digits='0123456789'
11973 as_cr_alnum=$as_cr_Letters$as_cr_digits
11974
11975 ECHO_C= ECHO_N= ECHO_T=
11976 case `echo -n x` in #(((((
11977 -n*)
11978 case `echo 'xy\c'` in
11979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11980 xy) ECHO_C='\c';;
11981 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11982 ECHO_T=' ';;
11983 esac;;
11984 *)
11985 ECHO_N='-n';;
11986 esac
11987
11988 rm -f conf$$ conf$$.exe conf$$.file
11989 if test -d conf$$.dir; then
11990 rm -f conf$$.dir/conf$$.file
11991 else
11992 rm -f conf$$.dir
11993 mkdir conf$$.dir 2>/dev/null
11994 fi
11995 if (echo >conf$$.file) 2>/dev/null; then
11996 if ln -s conf$$.file conf$$ 2>/dev/null; then
11997 as_ln_s='ln -s'
11998 # ... but there are two gotchas:
11999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12001 # In both cases, we have to default to `cp -p'.
12002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12003 as_ln_s='cp -p'
12004 elif ln conf$$.file conf$$ 2>/dev/null; then
12005 as_ln_s=ln
12006 else
12007 as_ln_s='cp -p'
12008 fi
12009 else
12010 as_ln_s='cp -p'
12011 fi
12012 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12013 rmdir conf$$.dir 2>/dev/null
12014
12015
12016 # as_fn_mkdir_p
12017 # -------------
12018 # Create "$as_dir" as a directory, including parents if necessary.
12019 as_fn_mkdir_p ()
12020 {
12021
12022 case $as_dir in #(
12023 -*) as_dir=./$as_dir;;
12024 esac
12025 test -d "$as_dir" || eval $as_mkdir_p || {
12026 as_dirs=
12027 while :; do
12028 case $as_dir in #(
12029 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12030 *) as_qdir=$as_dir;;
12031 esac
12032 as_dirs="'$as_qdir' $as_dirs"
12033 as_dir=`$as_dirname -- "$as_dir" ||
12034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12035 X"$as_dir" : 'X\(//\)[^/]' \| \
12036 X"$as_dir" : 'X\(//\)$' \| \
12037 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12038 $as_echo X"$as_dir" |
12039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12040 s//\1/
12041 q
12042 }
12043 /^X\(\/\/\)[^/].*/{
12044 s//\1/
12045 q
12046 }
12047 /^X\(\/\/\)$/{
12048 s//\1/
12049 q
12050 }
12051 /^X\(\/\).*/{
12052 s//\1/
12053 q
12054 }
12055 s/.*/./; q'`
12056 test -d "$as_dir" && break
12057 done
12058 test -z "$as_dirs" || eval "mkdir $as_dirs"
12059 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12060
12061
12062 } # as_fn_mkdir_p
12063 if mkdir -p . 2>/dev/null; then
12064 as_mkdir_p='mkdir -p "$as_dir"'
12065 else
12066 test -d ./-p && rmdir ./-p
12067 as_mkdir_p=false
12068 fi
12069
12070 if test -x / >/dev/null 2>&1; then
12071 as_test_x='test -x'
12072 else
12073 if ls -dL / >/dev/null 2>&1; then
12074 as_ls_L_option=L
12075 else
12076 as_ls_L_option=
12077 fi
12078 as_test_x='
12079 eval sh -c '\''
12080 if test -d "$1"; then
12081 test -d "$1/.";
12082 else
12083 case $1 in #(
12084 -*)set "./$1";;
12085 esac;
12086 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12087 ???[sx]*):;;*)false;;esac;fi
12088 '\'' sh
12089 '
12090 fi
12091 as_executable_p=$as_test_x
12092
12093 # Sed expression to map a string onto a valid CPP name.
12094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12095
12096 # Sed expression to map a string onto a valid variable name.
12097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12098
12099
12100 exec 6>&1
12101 ## ----------------------------------- ##
12102 ## Main body of $CONFIG_STATUS script. ##
12103 ## ----------------------------------- ##
12104 _ASEOF
12105 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12106
12107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108 # Save the log message, to keep $0 and so on meaningful, and to
12109 # report actual input values of CONFIG_FILES etc. instead of their
12110 # values after options handling.
12111 ac_log="
12112 This file was extended by libnfs $as_me 0.0.0, which was
12113 generated by GNU Autoconf 2.68. Invocation command line was
12114
12115 CONFIG_FILES = $CONFIG_FILES
12116 CONFIG_HEADERS = $CONFIG_HEADERS
12117 CONFIG_LINKS = $CONFIG_LINKS
12118 CONFIG_COMMANDS = $CONFIG_COMMANDS
12119 $ $0 $@
12120
12121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12122 "
12123
12124 _ACEOF
12125
12126 case $ac_config_files in *"
12127 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12128 esac
12129
12130 case $ac_config_headers in *"
12131 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12132 esac
12133
12134
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 # Files that config.status was made for.
12137 config_files="$ac_config_files"
12138 config_headers="$ac_config_headers"
12139 config_commands="$ac_config_commands"
12140
12141 _ACEOF
12142
12143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12144 ac_cs_usage="\
12145 \`$as_me' instantiates files and other configuration actions
12146 from templates according to the current configuration. Unless the files
12147 and actions are specified as TAGs, all are instantiated by default.
12148
12149 Usage: $0 [OPTION]... [TAG]...
12150
12151 -h, --help print this help, then exit
12152 -V, --version print version number and configuration settings, then exit
12153 --config print configuration, then exit
12154 -q, --quiet, --silent
12155 do not print progress messages
12156 -d, --debug don't remove temporary files
12157 --recheck update $as_me by reconfiguring in the same conditions
12158 --file=FILE[:TEMPLATE]
12159 instantiate the configuration file FILE
12160 --header=FILE[:TEMPLATE]
12161 instantiate the configuration header FILE
12162
12163 Configuration files:
12164 $config_files
12165
12166 Configuration headers:
12167 $config_headers
12168
12169 Configuration commands:
12170 $config_commands
12171
12172 Report bugs to the package provider."
12173
12174 _ACEOF
12175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12176 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12177 ac_cs_version="\\
12178 libnfs config.status 0.0.0
12179 configured by $0, generated by GNU Autoconf 2.68,
12180 with options \\"\$ac_cs_config\\"
12181
12182 Copyright (C) 2010 Free Software Foundation, Inc.
12183 This config.status script is free software; the Free Software Foundation
12184 gives unlimited permission to copy, distribute and modify it."
12185
12186 ac_pwd='$ac_pwd'
12187 srcdir='$srcdir'
12188 INSTALL='$INSTALL'
12189 MKDIR_P='$MKDIR_P'
12190 AWK='$AWK'
12191 test -n "\$AWK" || AWK=awk
12192 _ACEOF
12193
12194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12195 # The default lists apply if the user does not specify any file.
12196 ac_need_defaults=:
12197 while test $# != 0
12198 do
12199 case $1 in
12200 --*=?*)
12201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12203 ac_shift=:
12204 ;;
12205 --*=)
12206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12207 ac_optarg=
12208 ac_shift=:
12209 ;;
12210 *)
12211 ac_option=$1
12212 ac_optarg=$2
12213 ac_shift=shift
12214 ;;
12215 esac
12216
12217 case $ac_option in
12218 # Handling of the options.
12219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12220 ac_cs_recheck=: ;;
12221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12222 $as_echo "$ac_cs_version"; exit ;;
12223 --config | --confi | --conf | --con | --co | --c )
12224 $as_echo "$ac_cs_config"; exit ;;
12225 --debug | --debu | --deb | --de | --d | -d )
12226 debug=: ;;
12227 --file | --fil | --fi | --f )
12228 $ac_shift
12229 case $ac_optarg in
12230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12231 '') as_fn_error $? "missing file argument" ;;
12232 esac
12233 as_fn_append CONFIG_FILES " '$ac_optarg'"
12234 ac_need_defaults=false;;
12235 --header | --heade | --head | --hea )
12236 $ac_shift
12237 case $ac_optarg in
12238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12239 esac
12240 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12241 ac_need_defaults=false;;
12242 --he | --h)
12243 # Conflict between --help and --header
12244 as_fn_error $? "ambiguous option: \`$1'
12245 Try \`$0 --help' for more information.";;
12246 --help | --hel | -h )
12247 $as_echo "$ac_cs_usage"; exit ;;
12248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12250 ac_cs_silent=: ;;
12251
12252 # This is an error.
12253 -*) as_fn_error $? "unrecognized option: \`$1'
12254 Try \`$0 --help' for more information." ;;
12255
12256 *) as_fn_append ac_config_targets " $1"
12257 ac_need_defaults=false ;;
12258
12259 esac
12260 shift
12261 done
12262
12263 ac_configure_extra_args=
12264
12265 if $ac_cs_silent; then
12266 exec 6>/dev/null
12267 ac_configure_extra_args="$ac_configure_extra_args --silent"
12268 fi
12269
12270 _ACEOF
12271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12272 if \$ac_cs_recheck; then
12273 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12274 shift
12275 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12276 CONFIG_SHELL='$SHELL'
12277 export CONFIG_SHELL
12278 exec "\$@"
12279 fi
12280
12281 _ACEOF
12282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12283 exec 5>>config.log
12284 {
12285 echo
12286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12287 ## Running $as_me. ##
12288 _ASBOX
12289 $as_echo "$ac_log"
12290 } >&5
12291
12292 _ACEOF
12293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294 #
12295 # INIT-COMMANDS
12296 #
12297 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12298
12299
12300 # The HP-UX ksh and POSIX shell print the target directory to stdout
12301 # if CDPATH is set.
12302 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12303
12304 sed_quote_subst='$sed_quote_subst'
12305 double_quote_subst='$double_quote_subst'
12306 delay_variable_subst='$delay_variable_subst'
12307 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12308 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12309 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12310 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12311 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12312 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12313 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12314 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12315 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12316 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12317 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12318 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12319 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12320 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12327 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12328 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12329 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12330 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12331 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12332 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12333 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12334 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12335 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12336 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12337 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12338 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12339 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12340 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12341 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12342 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12343 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12344 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12345 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12348 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12362 lt_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"`'
12363 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12364 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12397 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12398 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12399 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12400 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12401 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12402 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12403 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12404 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12405 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12406 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12407 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12408 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12409 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12410 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12411 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12412 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12413 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12414 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12415 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12416 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12417 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12418 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12419 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12420 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12421 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12422 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12423 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12424 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12425 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12426 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12427 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12428 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12429 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12430 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12431 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12432 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12433 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12434 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12435 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12436 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12437
12438 LTCC='$LTCC'
12439 LTCFLAGS='$LTCFLAGS'
12440 compiler='$compiler_DEFAULT'
12441
12442 # A function that is used when there is no print builtin or printf.
12443 func_fallback_echo ()
12444 {
12445 eval 'cat <<_LTECHO_EOF
12446 \$1
12447 _LTECHO_EOF'
12448 }
12449
12450 # Quote evaled strings.
12451 for var in SHELL \
12452 ECHO \
12453 SED \
12454 GREP \
12455 EGREP \
12456 FGREP \
12457 LD \
12458 NM \
12459 LN_S \
12460 lt_SP2NL \
12461 lt_NL2SP \
12462 reload_flag \
12463 OBJDUMP \
12464 deplibs_check_method \
12465 file_magic_cmd \
12466 file_magic_glob \
12467 want_nocaseglob \
12468 DLLTOOL \
12469 sharedlib_from_linklib_cmd \
12470 AR \
12471 AR_FLAGS \
12472 archiver_list_spec \
12473 STRIP \
12474 RANLIB \
12475 CC \
12476 CFLAGS \
12477 compiler \
12478 lt_cv_sys_global_symbol_pipe \
12479 lt_cv_sys_global_symbol_to_cdecl \
12480 lt_cv_sys_global_symbol_to_c_name_address \
12481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12482 nm_file_list_spec \
12483 lt_prog_compiler_no_builtin_flag \
12484 lt_prog_compiler_pic \
12485 lt_prog_compiler_wl \
12486 lt_prog_compiler_static \
12487 lt_cv_prog_compiler_c_o \
12488 need_locks \
12489 MANIFEST_TOOL \
12490 DSYMUTIL \
12491 NMEDIT \
12492 LIPO \
12493 OTOOL \
12494 OTOOL64 \
12495 shrext_cmds \
12496 export_dynamic_flag_spec \
12497 whole_archive_flag_spec \
12498 compiler_needs_object \
12499 with_gnu_ld \
12500 allow_undefined_flag \
12501 no_undefined_flag \
12502 hardcode_libdir_flag_spec \
12503 hardcode_libdir_flag_spec_ld \
12504 hardcode_libdir_separator \
12505 exclude_expsyms \
12506 include_expsyms \
12507 file_list_spec \
12508 variables_saved_for_relink \
12509 libname_spec \
12510 library_names_spec \
12511 soname_spec \
12512 install_override_mode \
12513 finish_eval \
12514 old_striplib \
12515 striplib; do
12516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12517 *[\\\\\\\`\\"\\\$]*)
12518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12519 ;;
12520 *)
12521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12522 ;;
12523 esac
12524 done
12525
12526 # Double-quote double-evaled strings.
12527 for var in reload_cmds \
12528 old_postinstall_cmds \
12529 old_postuninstall_cmds \
12530 old_archive_cmds \
12531 extract_expsyms_cmds \
12532 old_archive_from_new_cmds \
12533 old_archive_from_expsyms_cmds \
12534 archive_cmds \
12535 archive_expsym_cmds \
12536 module_cmds \
12537 module_expsym_cmds \
12538 export_symbols_cmds \
12539 prelink_cmds \
12540 postlink_cmds \
12541 postinstall_cmds \
12542 postuninstall_cmds \
12543 finish_cmds \
12544 sys_lib_search_path_spec \
12545 sys_lib_dlsearch_path_spec; do
12546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12547 *[\\\\\\\`\\"\\\$]*)
12548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12549 ;;
12550 *)
12551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12552 ;;
12553 esac
12554 done
12555
12556 ac_aux_dir='$ac_aux_dir'
12557 xsi_shell='$xsi_shell'
12558 lt_shell_append='$lt_shell_append'
12559
12560 # See if we are running on zsh, and set the options which allow our
12561 # commands through without removal of \ escapes INIT.
12562 if test -n "\${ZSH_VERSION+set}" ; then
12563 setopt NO_GLOB_SUBST
12564 fi
12565
12566
12567 PACKAGE='$PACKAGE'
12568 VERSION='$VERSION'
12569 TIMESTAMP='$TIMESTAMP'
12570 RM='$RM'
12571 ofile='$ofile'
12572
12573
12574
12575
12576 _ACEOF
12577
12578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12579
12580 # Handling of arguments.
12581 for ac_config_target in $ac_config_targets
12582 do
12583 case $ac_config_target in
12584 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12585 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12586 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12587 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12588 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12589 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12590 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
12591 "nfs/Makefile") CONFIG_FILES="$CONFIG_FILES nfs/Makefile" ;;
12592 "portmap/Makefile") CONFIG_FILES="$CONFIG_FILES portmap/Makefile" ;;
12593 "rquota/Makefile") CONFIG_FILES="$CONFIG_FILES rquota/Makefile" ;;
12594 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12595
12596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12597 esac
12598 done
12599
12600
12601 # If the user did not use the arguments to specify the items to instantiate,
12602 # then the envvar interface is used. Set only those that are not.
12603 # We use the long form for the default assignment because of an extremely
12604 # bizarre bug on SunOS 4.1.3.
12605 if $ac_need_defaults; then
12606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12609 fi
12610
12611 # Have a temporary directory for convenience. Make it in the build tree
12612 # simply because there is no reason against having it here, and in addition,
12613 # creating and moving files from /tmp can sometimes cause problems.
12614 # Hook for its removal unless debugging.
12615 # Note that there is a small window in which the directory will not be cleaned:
12616 # after its creation but before its name has been assigned to `$tmp'.
12617 $debug ||
12618 {
12619 tmp= ac_tmp=
12620 trap 'exit_status=$?
12621 : "${ac_tmp:=$tmp}"
12622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12623 ' 0
12624 trap 'as_fn_exit 1' 1 2 13 15
12625 }
12626 # Create a (secure) tmp directory for tmp files.
12627
12628 {
12629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12630 test -d "$tmp"
12631 } ||
12632 {
12633 tmp=./conf$$-$RANDOM
12634 (umask 077 && mkdir "$tmp")
12635 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12636 ac_tmp=$tmp
12637
12638 # Set up the scripts for CONFIG_FILES section.
12639 # No need to generate them if there are no CONFIG_FILES.
12640 # This happens for instance with `./config.status config.h'.
12641 if test -n "$CONFIG_FILES"; then
12642
12643
12644 ac_cr=`echo X | tr X '\015'`
12645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12646 # But we know of no other shell where ac_cr would be empty at this
12647 # point, so we can use a bashism as a fallback.
12648 if test "x$ac_cr" = x; then
12649 eval ac_cr=\$\'\\r\'
12650 fi
12651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12653 ac_cs_awk_cr='\\r'
12654 else
12655 ac_cs_awk_cr=$ac_cr
12656 fi
12657
12658 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12659 _ACEOF
12660
12661
12662 {
12663 echo "cat >conf$$subs.awk <<_ACEOF" &&
12664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12665 echo "_ACEOF"
12666 } >conf$$subs.sh ||
12667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12668 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12669 ac_delim='%!_!# '
12670 for ac_last_try in false false false false false :; do
12671 . ./conf$$subs.sh ||
12672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12673
12674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12675 if test $ac_delim_n = $ac_delim_num; then
12676 break
12677 elif $ac_last_try; then
12678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12679 else
12680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12681 fi
12682 done
12683 rm -f conf$$subs.sh
12684
12685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12686 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12687 _ACEOF
12688 sed -n '
12689 h
12690 s/^/S["/; s/!.*/"]=/
12691 p
12692 g
12693 s/^[^!]*!//
12694 :repl
12695 t repl
12696 s/'"$ac_delim"'$//
12697 t delim
12698 :nl
12699 h
12700 s/\(.\{148\}\)..*/\1/
12701 t more1
12702 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12703 p
12704 n
12705 b repl
12706 :more1
12707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12708 p
12709 g
12710 s/.\{148\}//
12711 t nl
12712 :delim
12713 h
12714 s/\(.\{148\}\)..*/\1/
12715 t more2
12716 s/["\\]/\\&/g; s/^/"/; s/$/"/
12717 p
12718 b
12719 :more2
12720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12721 p
12722 g
12723 s/.\{148\}//
12724 t delim
12725 ' <conf$$subs.awk | sed '
12726 /^[^""]/{
12727 N
12728 s/\n//
12729 }
12730 ' >>$CONFIG_STATUS || ac_write_fail=1
12731 rm -f conf$$subs.awk
12732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12733 _ACAWK
12734 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12735 for (key in S) S_is_set[key] = 1
12736 FS = "\a"
12737
12738 }
12739 {
12740 line = $ 0
12741 nfields = split(line, field, "@")
12742 substed = 0
12743 len = length(field[1])
12744 for (i = 2; i < nfields; i++) {
12745 key = field[i]
12746 keylen = length(key)
12747 if (S_is_set[key]) {
12748 value = S[key]
12749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12750 len += length(value) + length(field[++i])
12751 substed = 1
12752 } else
12753 len += 1 + keylen
12754 }
12755
12756 print line
12757 }
12758
12759 _ACAWK
12760 _ACEOF
12761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12762 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12764 else
12765 cat
12766 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12767 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12768 _ACEOF
12769
12770 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12771 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12772 # trailing colons and then remove the whole line if VPATH becomes empty
12773 # (actually we leave an empty line to preserve line numbers).
12774 if test "x$srcdir" = x.; then
12775 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12776 h
12777 s///
12778 s/^/:/
12779 s/[ ]*$/:/
12780 s/:\$(srcdir):/:/g
12781 s/:\${srcdir}:/:/g
12782 s/:@srcdir@:/:/g
12783 s/^:*//
12784 s/:*$//
12785 x
12786 s/\(=[ ]*\).*/\1/
12787 G
12788 s/\n//
12789 s/^[^=]*=[ ]*$//
12790 }'
12791 fi
12792
12793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12794 fi # test -n "$CONFIG_FILES"
12795
12796 # Set up the scripts for CONFIG_HEADERS section.
12797 # No need to generate them if there are no CONFIG_HEADERS.
12798 # This happens for instance with `./config.status Makefile'.
12799 if test -n "$CONFIG_HEADERS"; then
12800 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12801 BEGIN {
12802 _ACEOF
12803
12804 # Transform confdefs.h into an awk script `defines.awk', embedded as
12805 # here-document in config.status, that substitutes the proper values into
12806 # config.h.in to produce config.h.
12807
12808 # Create a delimiter string that does not exist in confdefs.h, to ease
12809 # handling of long lines.
12810 ac_delim='%!_!# '
12811 for ac_last_try in false false :; do
12812 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12813 if test -z "$ac_tt"; then
12814 break
12815 elif $ac_last_try; then
12816 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12817 else
12818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12819 fi
12820 done
12821
12822 # For the awk script, D is an array of macro values keyed by name,
12823 # likewise P contains macro parameters if any. Preserve backslash
12824 # newline sequences.
12825
12826 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12827 sed -n '
12828 s/.\{148\}/&'"$ac_delim"'/g
12829 t rset
12830 :rset
12831 s/^[ ]*#[ ]*define[ ][ ]*/ /
12832 t def
12833 d
12834 :def
12835 s/\\$//
12836 t bsnl
12837 s/["\\]/\\&/g
12838 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12839 D["\1"]=" \3"/p
12840 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12841 d
12842 :bsnl
12843 s/["\\]/\\&/g
12844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12845 D["\1"]=" \3\\\\\\n"\\/p
12846 t cont
12847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12848 t cont
12849 d
12850 :cont
12851 n
12852 s/.\{148\}/&'"$ac_delim"'/g
12853 t clear
12854 :clear
12855 s/\\$//
12856 t bsnlc
12857 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12858 d
12859 :bsnlc
12860 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12861 b cont
12862 ' <confdefs.h | sed '
12863 s/'"$ac_delim"'/"\\\
12864 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12865
12866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12867 for (key in D) D_is_set[key] = 1
12868 FS = "\a"
12869 }
12870 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12871 line = \$ 0
12872 split(line, arg, " ")
12873 if (arg[1] == "#") {
12874 defundef = arg[2]
12875 mac1 = arg[3]
12876 } else {
12877 defundef = substr(arg[1], 2)
12878 mac1 = arg[2]
12879 }
12880 split(mac1, mac2, "(") #)
12881 macro = mac2[1]
12882 prefix = substr(line, 1, index(line, defundef) - 1)
12883 if (D_is_set[macro]) {
12884 # Preserve the white space surrounding the "#".
12885 print prefix "define", macro P[macro] D[macro]
12886 next
12887 } else {
12888 # Replace #undef with comments. This is necessary, for example,
12889 # in the case of _POSIX_SOURCE, which is predefined and required
12890 # on some systems where configure will not decide to define it.
12891 if (defundef == "undef") {
12892 print "/*", prefix defundef, macro, "*/"
12893 next
12894 }
12895 }
12896 }
12897 { print }
12898 _ACAWK
12899 _ACEOF
12900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12901 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12902 fi # test -n "$CONFIG_HEADERS"
12903
12904
12905 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12906 shift
12907 for ac_tag
12908 do
12909 case $ac_tag in
12910 :[FHLC]) ac_mode=$ac_tag; continue;;
12911 esac
12912 case $ac_mode$ac_tag in
12913 :[FHL]*:*);;
12914 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12915 :[FH]-) ac_tag=-:-;;
12916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12917 esac
12918 ac_save_IFS=$IFS
12919 IFS=:
12920 set x $ac_tag
12921 IFS=$ac_save_IFS
12922 shift
12923 ac_file=$1
12924 shift
12925
12926 case $ac_mode in
12927 :L) ac_source=$1;;
12928 :[FH])
12929 ac_file_inputs=
12930 for ac_f
12931 do
12932 case $ac_f in
12933 -) ac_f="$ac_tmp/stdin";;
12934 *) # Look for the file first in the build tree, then in the source tree
12935 # (if the path is not absolute). The absolute path cannot be DOS-style,
12936 # because $ac_f cannot contain `:'.
12937 test -f "$ac_f" ||
12938 case $ac_f in
12939 [\\/$]*) false;;
12940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12941 esac ||
12942 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12943 esac
12944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12945 as_fn_append ac_file_inputs " '$ac_f'"
12946 done
12947
12948 # Let's still pretend it is `configure' which instantiates (i.e., don't
12949 # use $as_me), people would be surprised to read:
12950 # /* config.h. Generated by config.status. */
12951 configure_input='Generated from '`
12952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12953 `' by configure.'
12954 if test x"$ac_file" != x-; then
12955 configure_input="$ac_file. $configure_input"
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12957 $as_echo "$as_me: creating $ac_file" >&6;}
12958 fi
12959 # Neutralize special characters interpreted by sed in replacement strings.
12960 case $configure_input in #(
12961 *\&* | *\|* | *\\* )
12962 ac_sed_conf_input=`$as_echo "$configure_input" |
12963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12964 *) ac_sed_conf_input=$configure_input;;
12965 esac
12966
12967 case $ac_tag in
12968 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12970 esac
12971 ;;
12972 esac
12973
12974 ac_dir=`$as_dirname -- "$ac_file" ||
12975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12976 X"$ac_file" : 'X\(//\)[^/]' \| \
12977 X"$ac_file" : 'X\(//\)$' \| \
12978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12979 $as_echo X"$ac_file" |
12980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12981 s//\1/
12982 q
12983 }
12984 /^X\(\/\/\)[^/].*/{
12985 s//\1/
12986 q
12987 }
12988 /^X\(\/\/\)$/{
12989 s//\1/
12990 q
12991 }
12992 /^X\(\/\).*/{
12993 s//\1/
12994 q
12995 }
12996 s/.*/./; q'`
12997 as_dir="$ac_dir"; as_fn_mkdir_p
12998 ac_builddir=.
12999
13000 case "$ac_dir" in
13001 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13002 *)
13003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13004 # A ".." for each directory in $ac_dir_suffix.
13005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13006 case $ac_top_builddir_sub in
13007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13009 esac ;;
13010 esac
13011 ac_abs_top_builddir=$ac_pwd
13012 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13013 # for backward compatibility:
13014 ac_top_builddir=$ac_top_build_prefix
13015
13016 case $srcdir in
13017 .) # We are building in place.
13018 ac_srcdir=.
13019 ac_top_srcdir=$ac_top_builddir_sub
13020 ac_abs_top_srcdir=$ac_pwd ;;
13021 [\\/]* | ?:[\\/]* ) # Absolute name.
13022 ac_srcdir=$srcdir$ac_dir_suffix;
13023 ac_top_srcdir=$srcdir
13024 ac_abs_top_srcdir=$srcdir ;;
13025 *) # Relative name.
13026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13027 ac_top_srcdir=$ac_top_build_prefix$srcdir
13028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13029 esac
13030 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13031
13032
13033 case $ac_mode in
13034 :F)
13035 #
13036 # CONFIG_FILE
13037 #
13038
13039 case $INSTALL in
13040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13042 esac
13043 ac_MKDIR_P=$MKDIR_P
13044 case $MKDIR_P in
13045 [\\/$]* | ?:[\\/]* ) ;;
13046 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13047 esac
13048 _ACEOF
13049
13050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13051 # If the template does not know about datarootdir, expand it.
13052 # FIXME: This hack should be removed a few years after 2.60.
13053 ac_datarootdir_hack=; ac_datarootdir_seen=
13054 ac_sed_dataroot='
13055 /datarootdir/ {
13056 p
13057 q
13058 }
13059 /@datadir@/p
13060 /@docdir@/p
13061 /@infodir@/p
13062 /@localedir@/p
13063 /@mandir@/p'
13064 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13065 *datarootdir*) ac_datarootdir_seen=yes;;
13066 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13068 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13069 _ACEOF
13070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071 ac_datarootdir_hack='
13072 s&@datadir@&$datadir&g
13073 s&@docdir@&$docdir&g
13074 s&@infodir@&$infodir&g
13075 s&@localedir@&$localedir&g
13076 s&@mandir@&$mandir&g
13077 s&\\\${datarootdir}&$datarootdir&g' ;;
13078 esac
13079 _ACEOF
13080
13081 # Neutralize VPATH when `$srcdir' = `.'.
13082 # Shell code in configure.ac might set extrasub.
13083 # FIXME: do we really want to maintain this feature?
13084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13085 ac_sed_extra="$ac_vpsub
13086 $extrasub
13087 _ACEOF
13088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13089 :t
13090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13091 s|@configure_input@|$ac_sed_conf_input|;t t
13092 s&@top_builddir@&$ac_top_builddir_sub&;t t
13093 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13094 s&@srcdir@&$ac_srcdir&;t t
13095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13096 s&@top_srcdir@&$ac_top_srcdir&;t t
13097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13098 s&@builddir@&$ac_builddir&;t t
13099 s&@abs_builddir@&$ac_abs_builddir&;t t
13100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13101 s&@INSTALL@&$ac_INSTALL&;t t
13102 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13103 $ac_datarootdir_hack
13104 "
13105 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13106 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13107
13108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13109 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13111 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13113 which seems to be undefined. Please make sure it is defined" >&5
13114 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13115 which seems to be undefined. Please make sure it is defined" >&2;}
13116
13117 rm -f "$ac_tmp/stdin"
13118 case $ac_file in
13119 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13120 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13121 esac \
13122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13123 ;;
13124 :H)
13125 #
13126 # CONFIG_HEADER
13127 #
13128 if test x"$ac_file" != x-; then
13129 {
13130 $as_echo "/* $configure_input */" \
13131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13132 } >"$ac_tmp/config.h" \
13133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13134 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13136 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13137 else
13138 rm -f "$ac_file"
13139 mv "$ac_tmp/config.h" "$ac_file" \
13140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13141 fi
13142 else
13143 $as_echo "/* $configure_input */" \
13144 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13145 || as_fn_error $? "could not create -" "$LINENO" 5
13146 fi
13147 # Compute "$ac_file"'s index in $config_headers.
13148 _am_arg="$ac_file"
13149 _am_stamp_count=1
13150 for _am_header in $config_headers :; do
13151 case $_am_header in
13152 $_am_arg | $_am_arg:* )
13153 break ;;
13154 * )
13155 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13156 esac
13157 done
13158 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13159 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13160 X"$_am_arg" : 'X\(//\)[^/]' \| \
13161 X"$_am_arg" : 'X\(//\)$' \| \
13162 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13163 $as_echo X"$_am_arg" |
13164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13165 s//\1/
13166 q
13167 }
13168 /^X\(\/\/\)[^/].*/{
13169 s//\1/
13170 q
13171 }
13172 /^X\(\/\/\)$/{
13173 s//\1/
13174 q
13175 }
13176 /^X\(\/\).*/{
13177 s//\1/
13178 q
13179 }
13180 s/.*/./; q'`/stamp-h$_am_stamp_count
13181 ;;
13182
13183 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13184 $as_echo "$as_me: executing $ac_file commands" >&6;}
13185 ;;
13186 esac
13187
13188
13189 case $ac_file$ac_mode in
13190 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13191 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13192 # are listed without --file. Let's play safe and only enable the eval
13193 # if we detect the quoting.
13194 case $CONFIG_FILES in
13195 *\'*) eval set x "$CONFIG_FILES" ;;
13196 *) set x $CONFIG_FILES ;;
13197 esac
13198 shift
13199 for mf
13200 do
13201 # Strip MF so we end up with the name of the file.
13202 mf=`echo "$mf" | sed -e 's/:.*$//'`
13203 # Check whether this is an Automake generated Makefile or not.
13204 # We used to match only the files named `Makefile.in', but
13205 # some people rename them; so instead we look at the file content.
13206 # Grep'ing the first line is not enough: some people post-process
13207 # each Makefile.in and add a new line on top of each file to say so.
13208 # Grep'ing the whole file is not good either: AIX grep has a line
13209 # limit of 2048, but all sed's we know have understand at least 4000.
13210 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13211 dirpart=`$as_dirname -- "$mf" ||
13212 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13213 X"$mf" : 'X\(//\)[^/]' \| \
13214 X"$mf" : 'X\(//\)$' \| \
13215 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13216 $as_echo X"$mf" |
13217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13218 s//\1/
13219 q
13220 }
13221 /^X\(\/\/\)[^/].*/{
13222 s//\1/
13223 q
13224 }
13225 /^X\(\/\/\)$/{
13226 s//\1/
13227 q
13228 }
13229 /^X\(\/\).*/{
13230 s//\1/
13231 q
13232 }
13233 s/.*/./; q'`
13234 else
13235 continue
13236 fi
13237 # Extract the definition of DEPDIR, am__include, and am__quote
13238 # from the Makefile without running `make'.
13239 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13240 test -z "$DEPDIR" && continue
13241 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13242 test -z "am__include" && continue
13243 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13244 # When using ansi2knr, U may be empty or an underscore; expand it
13245 U=`sed -n 's/^U = //p' < "$mf"`
13246 # Find all dependency output files, they are included files with
13247 # $(DEPDIR) in their names. We invoke sed twice because it is the
13248 # simplest approach to changing $(DEPDIR) to its actual value in the
13249 # expansion.
13250 for file in `sed -n "
13251 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13252 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13253 # Make sure the directory exists.
13254 test -f "$dirpart/$file" && continue
13255 fdir=`$as_dirname -- "$file" ||
13256 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13257 X"$file" : 'X\(//\)[^/]' \| \
13258 X"$file" : 'X\(//\)$' \| \
13259 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13260 $as_echo X"$file" |
13261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13262 s//\1/
13263 q
13264 }
13265 /^X\(\/\/\)[^/].*/{
13266 s//\1/
13267 q
13268 }
13269 /^X\(\/\/\)$/{
13270 s//\1/
13271 q
13272 }
13273 /^X\(\/\).*/{
13274 s//\1/
13275 q
13276 }
13277 s/.*/./; q'`
13278 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13279 # echo "creating $dirpart/$file"
13280 echo '# dummy' > "$dirpart/$file"
13281 done
13282 done
13283 }
13284 ;;
13285 "libtool":C)
13286
13287 # See if we are running on zsh, and set the options which allow our
13288 # commands through without removal of \ escapes.
13289 if test -n "${ZSH_VERSION+set}" ; then
13290 setopt NO_GLOB_SUBST
13291 fi
13292
13293 cfgfile="${ofile}T"
13294 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13295 $RM "$cfgfile"
13296
13297 cat <<_LT_EOF >> "$cfgfile"
13298 #! $SHELL
13299
13300 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13301 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13304 #
13305 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13306 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13307 # Inc.
13308 # Written by Gordon Matzigkeit, 1996
13309 #
13310 # This file is part of GNU Libtool.
13311 #
13312 # GNU Libtool is free software; you can redistribute it and/or
13313 # modify it under the terms of the GNU General Public License as
13314 # published by the Free Software Foundation; either version 2 of
13315 # the License, or (at your option) any later version.
13316 #
13317 # As a special exception to the GNU General Public License,
13318 # if you distribute this file as part of a program or library that
13319 # is built using GNU Libtool, you may include this file under the
13320 # same distribution terms that you use for the rest of that program.
13321 #
13322 # GNU Libtool is distributed in the hope that it will be useful,
13323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13325 # GNU General Public License for more details.
13326 #
13327 # You should have received a copy of the GNU General Public License
13328 # along with GNU Libtool; see the file COPYING. If not, a copy
13329 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13330 # obtained by writing to the Free Software Foundation, Inc.,
13331 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13332
13333
13334 # The names of the tagged configurations supported by this script.
13335 available_tags=""
13336
13337 # ### BEGIN LIBTOOL CONFIG
13338
13339 # Which release of libtool.m4 was used?
13340 macro_version=$macro_version
13341 macro_revision=$macro_revision
13342
13343 # Whether or not to build shared libraries.
13344 build_libtool_libs=$enable_shared
13345
13346 # Whether or not to build static libraries.
13347 build_old_libs=$enable_static
13348
13349 # What type of objects to build.
13350 pic_mode=$pic_mode
13351
13352 # Whether or not to optimize for fast installation.
13353 fast_install=$enable_fast_install
13354
13355 # Shell to use when invoking shell scripts.
13356 SHELL=$lt_SHELL
13357
13358 # An echo program that protects backslashes.
13359 ECHO=$lt_ECHO
13360
13361 # The host system.
13362 host_alias=$host_alias
13363 host=$host
13364 host_os=$host_os
13365
13366 # The build system.
13367 build_alias=$build_alias
13368 build=$build
13369 build_os=$build_os
13370
13371 # A sed program that does not truncate output.
13372 SED=$lt_SED
13373
13374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13375 Xsed="\$SED -e 1s/^X//"
13376
13377 # A grep program that handles long lines.
13378 GREP=$lt_GREP
13379
13380 # An ERE matcher.
13381 EGREP=$lt_EGREP
13382
13383 # A literal string matcher.
13384 FGREP=$lt_FGREP
13385
13386 # A BSD- or MS-compatible name lister.
13387 NM=$lt_NM
13388
13389 # Whether we need soft or hard links.
13390 LN_S=$lt_LN_S
13391
13392 # What is the maximum length of a command?
13393 max_cmd_len=$max_cmd_len
13394
13395 # Object file suffix (normally "o").
13396 objext=$ac_objext
13397
13398 # Executable file suffix (normally "").
13399 exeext=$exeext
13400
13401 # whether the shell understands "unset".
13402 lt_unset=$lt_unset
13403
13404 # turn spaces into newlines.
13405 SP2NL=$lt_lt_SP2NL
13406
13407 # turn newlines into spaces.
13408 NL2SP=$lt_lt_NL2SP
13409
13410 # convert \$build file names to \$host format.
13411 to_host_file_cmd=$lt_cv_to_host_file_cmd
13412
13413 # convert \$build files to toolchain format.
13414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13415
13416 # An object symbol dumper.
13417 OBJDUMP=$lt_OBJDUMP
13418
13419 # Method to check whether dependent libraries are shared objects.
13420 deplibs_check_method=$lt_deplibs_check_method
13421
13422 # Command to use when deplibs_check_method = "file_magic".
13423 file_magic_cmd=$lt_file_magic_cmd
13424
13425 # How to find potential files when deplibs_check_method = "file_magic".
13426 file_magic_glob=$lt_file_magic_glob
13427
13428 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13429 want_nocaseglob=$lt_want_nocaseglob
13430
13431 # DLL creation program.
13432 DLLTOOL=$lt_DLLTOOL
13433
13434 # Command to associate shared and link libraries.
13435 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13436
13437 # The archiver.
13438 AR=$lt_AR
13439
13440 # Flags to create an archive.
13441 AR_FLAGS=$lt_AR_FLAGS
13442
13443 # How to feed a file listing to the archiver.
13444 archiver_list_spec=$lt_archiver_list_spec
13445
13446 # A symbol stripping program.
13447 STRIP=$lt_STRIP
13448
13449 # Commands used to install an old-style archive.
13450 RANLIB=$lt_RANLIB
13451 old_postinstall_cmds=$lt_old_postinstall_cmds
13452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13453
13454 # Whether to use a lock for old archive extraction.
13455 lock_old_archive_extraction=$lock_old_archive_extraction
13456
13457 # A C compiler.
13458 LTCC=$lt_CC
13459
13460 # LTCC compiler flags.
13461 LTCFLAGS=$lt_CFLAGS
13462
13463 # Take the output of nm and produce a listing of raw symbols and C names.
13464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13465
13466 # Transform the output of nm in a proper C declaration.
13467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13468
13469 # Transform the output of nm in a C name address pair.
13470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13471
13472 # Transform the output of nm in a C name address pair when lib prefix is needed.
13473 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13474
13475 # Specify filename containing input files for \$NM.
13476 nm_file_list_spec=$lt_nm_file_list_spec
13477
13478 # The root where to search for dependent libraries,and in which our libraries should be installed.
13479 lt_sysroot=$lt_sysroot
13480
13481 # The name of the directory that contains temporary libtool files.
13482 objdir=$objdir
13483
13484 # Used to examine libraries when file_magic_cmd begins with "file".
13485 MAGIC_CMD=$MAGIC_CMD
13486
13487 # Must we lock files when doing compilation?
13488 need_locks=$lt_need_locks
13489
13490 # Manifest tool.
13491 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13492
13493 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13494 DSYMUTIL=$lt_DSYMUTIL
13495
13496 # Tool to change global to local symbols on Mac OS X.
13497 NMEDIT=$lt_NMEDIT
13498
13499 # Tool to manipulate fat objects and archives on Mac OS X.
13500 LIPO=$lt_LIPO
13501
13502 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13503 OTOOL=$lt_OTOOL
13504
13505 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13506 OTOOL64=$lt_OTOOL64
13507
13508 # Old archive suffix (normally "a").
13509 libext=$libext
13510
13511 # Shared library suffix (normally ".so").
13512 shrext_cmds=$lt_shrext_cmds
13513
13514 # The commands to extract the exported symbol list from a shared archive.
13515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13516
13517 # Variables whose values should be saved in libtool wrapper scripts and
13518 # restored at link time.
13519 variables_saved_for_relink=$lt_variables_saved_for_relink
13520
13521 # Do we need the "lib" prefix for modules?
13522 need_lib_prefix=$need_lib_prefix
13523
13524 # Do we need a version for libraries?
13525 need_version=$need_version
13526
13527 # Library versioning type.
13528 version_type=$version_type
13529
13530 # Shared library runtime path variable.
13531 runpath_var=$runpath_var
13532
13533 # Shared library path variable.
13534 shlibpath_var=$shlibpath_var
13535
13536 # Is shlibpath searched before the hard-coded library search path?
13537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13538
13539 # Format of library name prefix.
13540 libname_spec=$lt_libname_spec
13541
13542 # List of archive names. First name is the real one, the rest are links.
13543 # The last name is the one that the linker finds with -lNAME
13544 library_names_spec=$lt_library_names_spec
13545
13546 # The coded name of the library, if different from the real name.
13547 soname_spec=$lt_soname_spec
13548
13549 # Permission mode override for installation of shared libraries.
13550 install_override_mode=$lt_install_override_mode
13551
13552 # Command to use after installation of a shared archive.
13553 postinstall_cmds=$lt_postinstall_cmds
13554
13555 # Command to use after uninstallation of a shared archive.
13556 postuninstall_cmds=$lt_postuninstall_cmds
13557
13558 # Commands used to finish a libtool library installation in a directory.
13559 finish_cmds=$lt_finish_cmds
13560
13561 # As "finish_cmds", except a single script fragment to be evaled but
13562 # not shown.
13563 finish_eval=$lt_finish_eval
13564
13565 # Whether we should hardcode library paths into libraries.
13566 hardcode_into_libs=$hardcode_into_libs
13567
13568 # Compile-time system search path for libraries.
13569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13570
13571 # Run-time system search path for libraries.
13572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13573
13574 # Whether dlopen is supported.
13575 dlopen_support=$enable_dlopen
13576
13577 # Whether dlopen of programs is supported.
13578 dlopen_self=$enable_dlopen_self
13579
13580 # Whether dlopen of statically linked programs is supported.
13581 dlopen_self_static=$enable_dlopen_self_static
13582
13583 # Commands to strip libraries.
13584 old_striplib=$lt_old_striplib
13585 striplib=$lt_striplib
13586
13587
13588 # The linker used to build libraries.
13589 LD=$lt_LD
13590
13591 # How to create reloadable object files.
13592 reload_flag=$lt_reload_flag
13593 reload_cmds=$lt_reload_cmds
13594
13595 # Commands used to build an old-style archive.
13596 old_archive_cmds=$lt_old_archive_cmds
13597
13598 # A language specific compiler.
13599 CC=$lt_compiler
13600
13601 # Is the compiler the GNU compiler?
13602 with_gcc=$GCC
13603
13604 # Compiler flag to turn off builtin functions.
13605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13606
13607 # Additional compiler flags for building library objects.
13608 pic_flag=$lt_lt_prog_compiler_pic
13609
13610 # How to pass a linker flag through the compiler.
13611 wl=$lt_lt_prog_compiler_wl
13612
13613 # Compiler flag to prevent dynamic linking.
13614 link_static_flag=$lt_lt_prog_compiler_static
13615
13616 # Does compiler simultaneously support -c and -o options?
13617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13618
13619 # Whether or not to add -lc for building shared libraries.
13620 build_libtool_need_lc=$archive_cmds_need_lc
13621
13622 # Whether or not to disallow shared libs when runtime libs are static.
13623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13624
13625 # Compiler flag to allow reflexive dlopens.
13626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13627
13628 # Compiler flag to generate shared objects directly from archives.
13629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13630
13631 # Whether the compiler copes with passing no objects directly.
13632 compiler_needs_object=$lt_compiler_needs_object
13633
13634 # Create an old-style archive from a shared archive.
13635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13636
13637 # Create a temporary old-style archive to link instead of a shared archive.
13638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13639
13640 # Commands used to build a shared archive.
13641 archive_cmds=$lt_archive_cmds
13642 archive_expsym_cmds=$lt_archive_expsym_cmds
13643
13644 # Commands used to build a loadable module if different from building
13645 # a shared archive.
13646 module_cmds=$lt_module_cmds
13647 module_expsym_cmds=$lt_module_expsym_cmds
13648
13649 # Whether we are building with GNU ld or not.
13650 with_gnu_ld=$lt_with_gnu_ld
13651
13652 # Flag that allows shared libraries with undefined symbols to be built.
13653 allow_undefined_flag=$lt_allow_undefined_flag
13654
13655 # Flag that enforces no undefined symbols.
13656 no_undefined_flag=$lt_no_undefined_flag
13657
13658 # Flag to hardcode \$libdir into a binary during linking.
13659 # This must work even if \$libdir does not exist
13660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13661
13662 # If ld is used when linking, flag to hardcode \$libdir into a binary
13663 # during linking. This must work even if \$libdir does not exist.
13664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13665
13666 # Whether we need a single "-rpath" flag with a separated argument.
13667 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13668
13669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13670 # DIR into the resulting binary.
13671 hardcode_direct=$hardcode_direct
13672
13673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13674 # DIR into the resulting binary and the resulting library dependency is
13675 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13676 # library is relocated.
13677 hardcode_direct_absolute=$hardcode_direct_absolute
13678
13679 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13680 # into the resulting binary.
13681 hardcode_minus_L=$hardcode_minus_L
13682
13683 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13684 # into the resulting binary.
13685 hardcode_shlibpath_var=$hardcode_shlibpath_var
13686
13687 # Set to "yes" if building a shared library automatically hardcodes DIR
13688 # into the library and all subsequent libraries and executables linked
13689 # against it.
13690 hardcode_automatic=$hardcode_automatic
13691
13692 # Set to yes if linker adds runtime paths of dependent libraries
13693 # to runtime path list.
13694 inherit_rpath=$inherit_rpath
13695
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs
13698
13699 # Set to "yes" if exported symbols are required.
13700 always_export_symbols=$always_export_symbols
13701
13702 # The commands to list exported symbols.
13703 export_symbols_cmds=$lt_export_symbols_cmds
13704
13705 # Symbols that should not be listed in the preloaded symbols.
13706 exclude_expsyms=$lt_exclude_expsyms
13707
13708 # Symbols that must always be exported.
13709 include_expsyms=$lt_include_expsyms
13710
13711 # Commands necessary for linking programs (against libraries) with templates.
13712 prelink_cmds=$lt_prelink_cmds
13713
13714 # Commands necessary for finishing linking programs.
13715 postlink_cmds=$lt_postlink_cmds
13716
13717 # Specify filename containing input files.
13718 file_list_spec=$lt_file_list_spec
13719
13720 # How to hardcode a shared library path into an executable.
13721 hardcode_action=$hardcode_action
13722
13723 # ### END LIBTOOL CONFIG
13724
13725 _LT_EOF
13726
13727 case $host_os in
13728 aix3*)
13729 cat <<\_LT_EOF >> "$cfgfile"
13730 # AIX sometimes has problems with the GCC collect2 program. For some
13731 # reason, if we set the COLLECT_NAMES environment variable, the problems
13732 # vanish in a puff of smoke.
13733 if test "X${COLLECT_NAMES+set}" != Xset; then
13734 COLLECT_NAMES=
13735 export COLLECT_NAMES
13736 fi
13737 _LT_EOF
13738 ;;
13739 esac
13740
13741
13742 ltmain="$ac_aux_dir/ltmain.sh"
13743
13744
13745 # We use sed instead of cat because bash on DJGPP gets confused if
13746 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13747 # text mode, it properly converts lines to CR/LF. This bash problem
13748 # is reportedly fixed, but why not run on old versions too?
13749 sed '$q' "$ltmain" >> "$cfgfile" \
13750 || (rm -f "$cfgfile"; exit 1)
13751
13752 if test x"$xsi_shell" = xyes; then
13753 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13754 func_dirname ()\
13755 {\
13756 \ case ${1} in\
13757 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13758 \ * ) func_dirname_result="${3}" ;;\
13759 \ esac\
13760 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13761 && mv -f "$cfgfile.tmp" "$cfgfile" \
13762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13763 test 0 -eq $? || _lt_function_replace_fail=:
13764
13765
13766 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13767 func_basename ()\
13768 {\
13769 \ func_basename_result="${1##*/}"\
13770 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13771 && mv -f "$cfgfile.tmp" "$cfgfile" \
13772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13773 test 0 -eq $? || _lt_function_replace_fail=:
13774
13775
13776 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13777 func_dirname_and_basename ()\
13778 {\
13779 \ case ${1} in\
13780 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13781 \ * ) func_dirname_result="${3}" ;;\
13782 \ esac\
13783 \ func_basename_result="${1##*/}"\
13784 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13785 && mv -f "$cfgfile.tmp" "$cfgfile" \
13786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13787 test 0 -eq $? || _lt_function_replace_fail=:
13788
13789
13790 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13791 func_stripname ()\
13792 {\
13793 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13794 \ # positional parameters, so assign one to ordinary parameter first.\
13795 \ func_stripname_result=${3}\
13796 \ func_stripname_result=${func_stripname_result#"${1}"}\
13797 \ func_stripname_result=${func_stripname_result%"${2}"}\
13798 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13799 && mv -f "$cfgfile.tmp" "$cfgfile" \
13800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13801 test 0 -eq $? || _lt_function_replace_fail=:
13802
13803
13804 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13805 func_split_long_opt ()\
13806 {\
13807 \ func_split_long_opt_name=${1%%=*}\
13808 \ func_split_long_opt_arg=${1#*=}\
13809 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13810 && mv -f "$cfgfile.tmp" "$cfgfile" \
13811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13812 test 0 -eq $? || _lt_function_replace_fail=:
13813
13814
13815 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13816 func_split_short_opt ()\
13817 {\
13818 \ func_split_short_opt_arg=${1#??}\
13819 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13820 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13821 && mv -f "$cfgfile.tmp" "$cfgfile" \
13822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13823 test 0 -eq $? || _lt_function_replace_fail=:
13824
13825
13826 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13827 func_lo2o ()\
13828 {\
13829 \ case ${1} in\
13830 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13831 \ *) func_lo2o_result=${1} ;;\
13832 \ esac\
13833 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13834 && mv -f "$cfgfile.tmp" "$cfgfile" \
13835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13836 test 0 -eq $? || _lt_function_replace_fail=:
13837
13838
13839 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13840 func_xform ()\
13841 {\
13842 func_xform_result=${1%.*}.lo\
13843 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13844 && mv -f "$cfgfile.tmp" "$cfgfile" \
13845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13846 test 0 -eq $? || _lt_function_replace_fail=:
13847
13848
13849 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13850 func_arith ()\
13851 {\
13852 func_arith_result=$(( $* ))\
13853 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13854 && mv -f "$cfgfile.tmp" "$cfgfile" \
13855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13856 test 0 -eq $? || _lt_function_replace_fail=:
13857
13858
13859 sed -e '/^func_len ()$/,/^} # func_len /c\
13860 func_len ()\
13861 {\
13862 func_len_result=${#1}\
13863 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13864 && mv -f "$cfgfile.tmp" "$cfgfile" \
13865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13866 test 0 -eq $? || _lt_function_replace_fail=:
13867
13868 fi
13869
13870 if test x"$lt_shell_append" = xyes; then
13871 sed -e '/^func_append ()$/,/^} # func_append /c\
13872 func_append ()\
13873 {\
13874 eval "${1}+=\\${2}"\
13875 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13876 && mv -f "$cfgfile.tmp" "$cfgfile" \
13877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13878 test 0 -eq $? || _lt_function_replace_fail=:
13879
13880
13881 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13882 func_append_quoted ()\
13883 {\
13884 \ func_quote_for_eval "${2}"\
13885 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13886 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13887 && mv -f "$cfgfile.tmp" "$cfgfile" \
13888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13889 test 0 -eq $? || _lt_function_replace_fail=:
13890
13891
13892 # Save a `func_append' function call where possible by direct use of '+='
13893 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13894 && mv -f "$cfgfile.tmp" "$cfgfile" \
13895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13896 test 0 -eq $? || _lt_function_replace_fail=:
13897 else
13898 # Save a `func_append' function call even when '+=' is not available
13899 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13900 && mv -f "$cfgfile.tmp" "$cfgfile" \
13901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13902 test 0 -eq $? || _lt_function_replace_fail=:
13903 fi
13904
13905 if test x"$_lt_function_replace_fail" = x":"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13907 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13908 fi
13909
13910
13911 mv -f "$cfgfile" "$ofile" ||
13912 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13913 chmod +x "$ofile"
13914
13915 ;;
13916
13917 esac
13918 done # for ac_tag
13919
13920
13921 as_fn_exit 0
13922 _ACEOF
13923 ac_clean_files=$ac_clean_files_save
13924
13925 test $ac_write_fail = 0 ||
13926 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13927
13928
13929 # configure is writing to config.log, and then calls config.status.
13930 # config.status does its own redirection, appending to config.log.
13931 # Unfortunately, on DOS this fails, as config.log is still kept open
13932 # by configure, so config.status won't be able to write to it; its
13933 # output is simply discarded. So we exec the FD to /dev/null,
13934 # effectively closing config.log, so it can be properly (re)opened and
13935 # appended to by config.status. When coming back to configure, we
13936 # need to make the FD available again.
13937 if test "$no_create" != yes; then
13938 ac_cs_success=:
13939 ac_config_status_args=
13940 test "$silent" = yes &&
13941 ac_config_status_args="$ac_config_status_args --quiet"
13942 exec 5>/dev/null
13943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13944 exec 5>>config.log
13945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13946 # would make configure fail if this is the last instruction.
13947 $ac_cs_success || as_fn_exit 1
13948 fi
13949 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13951 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13952 fi
13953