Merge commit 'upstream/1.2.0'
[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 1.2.0.
4 #
5 # Report bugs to <ronniesahlberg@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: ronniesahlberg@gmail.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libnfs'
572 PACKAGE_TARNAME='libnfs'
573 PACKAGE_VERSION='1.2.0'
574 PACKAGE_STRING='libnfs 1.2.0'
575 PACKAGE_BUGREPORT='ronniesahlberg@gmail.com'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 LIBNFS_PC_REQ_PRIVATE
619 TIRPC_LIBS
620 TIRPC_CFLAGS
621 RPCGENFLAGS
622 MAYBE_EXAMPLES
623 HAVE_RPCGEN
624 PKG_CONFIG_LIBDIR
625 PKG_CONFIG_PATH
626 PKG_CONFIG
627 CPP
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 MANIFEST_TOOL
634 RANLIB
635 ac_ct_AR
636 AR
637 DLLTOOL
638 OBJDUMP
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 EGREP
646 GREP
647 SED
648 LIBTOOL
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_dependency_tracking
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 with_sysroot
744 enable_libtool_lock
745 enable_examples
746 enable_tirpc
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 PKG_CONFIG
758 PKG_CONFIG_PATH
759 PKG_CONFIG_LIBDIR
760 TIRPC_CFLAGS
761 TIRPC_LIBS'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *=) ac_optarg= ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190 do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures libnfs 1.2.0 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfs]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of libnfs 1.2.0:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --enable-shared[=PKGS] build shared libraries [default=yes]
1385 --enable-static[=PKGS] build static libraries [default=yes]
1386 --enable-fast-install[=PKGS]
1387 optimize for fast installation [default=yes]
1388 --disable-libtool-lock avoid locking (might break parallel builds)
1389 --enable-examples Build example programs
1390 --enable-tirpc enable use of TI-RPC [default=no]
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398 --with-sysroot=DIR Search for dependent libraries within DIR
1399 (or the compiler's sysroot if not specified).
1400
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1410 PKG_CONFIG path to pkg-config utility
1411 PKG_CONFIG_PATH
1412 directories to add to pkg-config's search path
1413 PKG_CONFIG_LIBDIR
1414 path overriding pkg-config's built-in search path
1415 TIRPC_CFLAGS
1416 C compiler flags for TIRPC, overriding pkg-config
1417 TIRPC_LIBS linker flags for TIRPC, overriding pkg-config
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <ronniesahlberg@gmail.com>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 libnfs configure 1.2.0
1486 generated by GNU Autoconf 2.68
1487
1488 Copyright (C) 2010 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_link LINENO
1538 # -----------------------
1539 # Try to link conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_link ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest$ac_exeext
1544 if { { ac_try="$ac_link"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest$ac_exeext && {
1563 test "$cross_compiling" = yes ||
1564 $as_test_x conftest$ac_exeext
1565 }; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575 # interfere with the next link command; also delete a directory that is
1576 # left behind by Apple's compiler. We do this before executing the actions.
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_link
1582
1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists and can be compiled using the include files in
1586 # INCLUDES, setting the cache variable VAR accordingly.
1587 ac_fn_c_check_header_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593 $as_echo_n "(cached) " >&6
1594 else
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 eval "$3=yes"
1602 else
1603 eval "$3=no"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612 } # ac_fn_c_check_header_compile
1613
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_cpp
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_func LINENO FUNC VAR
1694 # ----------------------------------
1695 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1708 #define $2 innocuous_$2
1709
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $2 (); below.
1712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1713 <limits.h> exists even on freestanding compilers. */
1714
1715 #ifdef __STDC__
1716 # include <limits.h>
1717 #else
1718 # include <assert.h>
1719 #endif
1720
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 ();
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main ()
1739 {
1740 return $2 ();
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext \
1751 conftest$ac_exeext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } # ac_fn_c_check_func
1759
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_header_mongrel ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ;;
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ( $as_echo "## --------------------------------------- ##
1831 ## Report this to ronniesahlberg@gmail.com ##
1832 ## --------------------------------------- ##"
1833 ) | sed "s/^/$as_me: WARNING: /" >&2
1834 ;;
1835 esac
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=\$ac_header_compiler"
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 fi
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_header_mongrel
1850
1851 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1852 # ----------------------------------------------------
1853 # Tries to find if the field MEMBER exists in type AGGR, after including
1854 # INCLUDES, setting cache variable VAR accordingly.
1855 ac_fn_c_check_member ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1859 $as_echo_n "checking for $2.$3... " >&6; }
1860 if eval \${$4+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $5
1866 int
1867 main ()
1868 {
1869 static $2 ac_aggr;
1870 if (ac_aggr.$3)
1871 return 0;
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 eval "$4=yes"
1878 else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $5
1882 int
1883 main ()
1884 {
1885 static $2 ac_aggr;
1886 if (sizeof ac_aggr.$3)
1887 return 0;
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$4=yes"
1894 else
1895 eval "$4=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$4
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_member
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by libnfs $as_me 1.2.0, which was
1912 generated by GNU Autoconf 2.68. Invocation command line was
1913
1914 $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932
1933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1949 done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
1982 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 esac
1985 case $ac_pass in
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 2)
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
2004 as_fn_append ac_configure_args " '$ac_arg'"
2005 ;;
2006 esac
2007 done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log. We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025 echo
2026 # The following way of writing the cache mishandles newlines in values,
2027 (
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in #(
2031 *${as_nl}*)
2032 case $ac_var in #(
2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035 esac
2036 case $ac_var in #(
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2040 esac ;;
2041 esac
2042 done
2043 (set) 2>&1 |
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2046 sed -n \
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049 ;; #(
2050 *)
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 ;;
2053 esac |
2054 sort
2055 )
2056 echo
2057
2058 $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 $as_echo "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092 echo
2093 cat confdefs.h
2094 echo
2095 fi
2096 test "$ac_signal" != 0 &&
2097 $as_echo "$as_me: caught signal $ac_signal"
2098 $as_echo "$as_me: exit $exit_status"
2099 } >&5
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 $as_echo "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2138 _ACEOF
2139
2140
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2143 ac_site_file1=NONE
2144 ac_site_file2=NONE
2145 if test -n "$CONFIG_SITE"; then
2146 # We do not want a PATH search for config.site.
2147 case $CONFIG_SITE in #((
2148 -*) ac_site_file1=./$CONFIG_SITE;;
2149 */*) ac_site_file1=$CONFIG_SITE;;
2150 *) ac_site_file1=./$CONFIG_SITE;;
2151 esac
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2155 else
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2158 fi
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160 do
2161 test "x$ac_site_file" = xNONE && continue
2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file" \
2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171 fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2184 fi
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2189 fi
2190
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2200 set,)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,set)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,);;
2209 *)
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 esac
2239 fi
2240 done
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247 fi
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259 ac_config_headers="$ac_config_headers config.h"
2260
2261 am__api_version='1.11'
2262
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 if test -f "$ac_dir/install-sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 break
2269 elif test -f "$ac_dir/install.sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 break
2273 elif test -f "$ac_dir/shtool"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2276 break
2277 fi
2278 done
2279 if test -z "$ac_aux_dir"; then
2280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2281 fi
2282
2283 # These three variables are undocumented and unsupported,
2284 # and are intended to be withdrawn in a future Autoconf release.
2285 # They can cause serious problems if a builder's source tree is in a directory
2286 # whose full name contains unusual characters.
2287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
2291
2292 # Find a good install program. We prefer a C program (faster),
2293 # so one script is as good as another. But avoid the broken or
2294 # incompatible versions:
2295 # SysV /etc/install, /usr/sbin/install
2296 # SunOS /usr/etc/install
2297 # IRIX /sbin/install
2298 # AIX /bin/install
2299 # AmigaOS /C/install, which installs bootblocks on floppy discs
2300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303 # OS/2's system install, which has a completely different semantic
2304 # ./install, which can be erroneously created by make from ./install.sh.
2305 # Reject install programs that cannot install multiple files.
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2308 if test -z "$INSTALL"; then
2309 if ${ac_cv_path_install+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318 case $as_dir/ in #((
2319 ./ | .// | /[cC]/* | \
2320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 /usr/ucb/* ) ;;
2323 *)
2324 # OSF1 and SCO ODT 3.0 have their own names for install.
2325 # Don't use installbsd from OSF since it installs stuff as root
2326 # by default.
2327 for ac_prog in ginstall scoinst install; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2330 if test $ac_prog = install &&
2331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332 # AIX install. It has an incompatible calling convention.
2333 :
2334 elif test $ac_prog = install &&
2335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # program-specific install script used by HP pwplus--don't use.
2337 :
2338 else
2339 rm -rf conftest.one conftest.two conftest.dir
2340 echo one > conftest.one
2341 echo two > conftest.two
2342 mkdir conftest.dir
2343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344 test -s conftest.one && test -s conftest.two &&
2345 test -s conftest.dir/conftest.one &&
2346 test -s conftest.dir/conftest.two
2347 then
2348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2349 break 3
2350 fi
2351 fi
2352 fi
2353 done
2354 done
2355 ;;
2356 esac
2357
2358 done
2359 IFS=$as_save_IFS
2360
2361 rm -rf conftest.one conftest.two conftest.dir
2362
2363 fi
2364 if test "${ac_cv_path_install+set}" = set; then
2365 INSTALL=$ac_cv_path_install
2366 else
2367 # As a last resort, use the slow shell script. Don't cache a
2368 # value for INSTALL within a source directory, because that will
2369 # break other packages using the cache if that directory is
2370 # removed, or if the value is a relative name.
2371 INSTALL=$ac_install_sh
2372 fi
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375 $as_echo "$INSTALL" >&6; }
2376
2377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378 # It thinks the first close brace ends the variable substitution.
2379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380
2381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382
2383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 # Just in case
2388 sleep 1
2389 echo timestamp > conftest.file
2390 # Reject unsafe characters in $srcdir or the absolute working directory
2391 # name. Accept space and tab only in the latter.
2392 am_lf='
2393 '
2394 case `pwd` in
2395 *[\\\"\#\$\&\'\`$am_lf]*)
2396 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2397 esac
2398 case $srcdir in
2399 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2400 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2401 esac
2402
2403 # Do `set' in a subshell so we don't clobber the current shell's
2404 # arguments. Must try -L first in case configure is actually a
2405 # symlink; some systems play weird games with the mod time of symlinks
2406 # (eg FreeBSD returns the mod time of the symlink's containing
2407 # directory).
2408 if (
2409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410 if test "$*" = "X"; then
2411 # -L didn't work.
2412 set X `ls -t "$srcdir/configure" conftest.file`
2413 fi
2414 rm -f conftest.file
2415 if test "$*" != "X $srcdir/configure conftest.file" \
2416 && test "$*" != "X conftest.file $srcdir/configure"; then
2417
2418 # If neither matched, then we have a broken ls. This can happen
2419 # if, for instance, CONFIG_SHELL is bash and it inherits a
2420 # broken ls alias from the environment. This has actually
2421 # happened. Such a system could not be considered "sane".
2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423 alias in your environment" "$LINENO" 5
2424 fi
2425
2426 test "$2" = conftest.file
2427 )
2428 then
2429 # Ok.
2430 :
2431 else
2432 as_fn_error $? "newly created file is older than distributed files!
2433 Check your system clock" "$LINENO" 5
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436 $as_echo "yes" >&6; }
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2449
2450 if test x"${MISSING+set}" != xset; then
2451 case $am_aux_dir in
2452 *\ * | *\ *)
2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454 *)
2455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456 esac
2457 fi
2458 # Use eval to expand $SHELL
2459 if eval "$MISSING --run true"; then
2460 am_missing_run="$MISSING --run "
2461 else
2462 am_missing_run=
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2464 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2465 fi
2466
2467 if test x"${install_sh}" != xset; then
2468 case $am_aux_dir in
2469 *\ * | *\ *)
2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471 *)
2472 install_sh="\${SHELL} $am_aux_dir/install-sh"
2473 esac
2474 fi
2475
2476 # Installed binaries are usually stripped using `strip' when the user
2477 # run `make install-strip'. However `strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the `STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512 $as_echo "$STRIP" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_STRIP"; then
2521 ac_ct_STRIP=$STRIP
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552 $as_echo "$ac_ct_STRIP" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558 if test "x$ac_ct_STRIP" = x; then
2559 STRIP=":"
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567 STRIP=$ac_ct_STRIP
2568 fi
2569 else
2570 STRIP="$ac_cv_prog_STRIP"
2571 fi
2572
2573 fi
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578 if test -z "$MKDIR_P"; then
2579 if ${ac_cv_path_mkdir+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in mkdir gmkdir; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591 'mkdir (GNU coreutils) '* | \
2592 'mkdir (coreutils) '* | \
2593 'mkdir (fileutils) '4.1*)
2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2595 break 3;;
2596 esac
2597 done
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603
2604 test -d ./--version && rmdir ./--version
2605 if test "${ac_cv_path_mkdir+set}" = set; then
2606 MKDIR_P="$ac_cv_path_mkdir -p"
2607 else
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for MKDIR_P within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 MKDIR_P="$ac_install_sh -d"
2613 fi
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616 $as_echo "$MKDIR_P" >&6; }
2617
2618 mkdir_p="$MKDIR_P"
2619 case $mkdir_p in
2620 [\\/$]* | ?:[\\/]*) ;;
2621 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2622 esac
2623
2624 for ac_prog in gawk mawk nawk awk
2625 do
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_AWK+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$AWK"; then
2634 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_AWK="$ac_prog"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 AWK=$ac_cv_prog_AWK
2654 if test -n "$AWK"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2656 $as_echo "$AWK" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662
2663 test -n "$AWK" && break
2664 done
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2667 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2668 set x ${MAKE-make}
2669 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2670 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat >conftest.make <<\_ACEOF
2674 SHELL = /bin/sh
2675 all:
2676 @echo '@@@%%%=$(MAKE)=@@@%%%'
2677 _ACEOF
2678 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2679 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2680 *@@@%%%=?*=@@@%%%*)
2681 eval ac_cv_prog_make_${ac_make}_set=yes;;
2682 *)
2683 eval ac_cv_prog_make_${ac_make}_set=no;;
2684 esac
2685 rm -f conftest.make
2686 fi
2687 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689 $as_echo "yes" >&6; }
2690 SET_MAKE=
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 SET_MAKE="MAKE=${MAKE-make}"
2695 fi
2696
2697 rm -rf .tst 2>/dev/null
2698 mkdir .tst 2>/dev/null
2699 if test -d .tst; then
2700 am__leading_dot=.
2701 else
2702 am__leading_dot=_
2703 fi
2704 rmdir .tst 2>/dev/null
2705
2706 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2708 # is not polluted with repeated "-I."
2709 am__isrc=' -I$(srcdir)'
2710 # test to see if srcdir already configured
2711 if test -f $srcdir/config.status; then
2712 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2713 fi
2714 fi
2715
2716 # test whether we have cygpath
2717 if test -z "$CYGPATH_W"; then
2718 if (cygpath --version) >/dev/null 2>/dev/null; then
2719 CYGPATH_W='cygpath -w'
2720 else
2721 CYGPATH_W=echo
2722 fi
2723 fi
2724
2725
2726 # Define the identity of the package.
2727 PACKAGE='libnfs'
2728 VERSION='1.2.0'
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE "$PACKAGE"
2733 _ACEOF
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define VERSION "$VERSION"
2738 _ACEOF
2739
2740 # Some tools Automake needs.
2741
2742 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2743
2744
2745 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2746
2747
2748 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2749
2750
2751 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2752
2753
2754 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2755
2756 # We need awk for the "check" target. The system "awk" is bad on
2757 # some platforms.
2758 # Always define AMTAR for backward compatibility.
2759
2760 AMTAR=${AMTAR-"${am_missing_run}tar"}
2761
2762 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2763
2764
2765
2766
2767
2768 # Make sure we can run config.sub.
2769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2773 $as_echo_n "checking build system type... " >&6; }
2774 if ${ac_cv_build+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 ac_build_alias=$build_alias
2778 test "x$ac_build_alias" = x &&
2779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780 test "x$ac_build_alias" = x &&
2781 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2787 $as_echo "$ac_cv_build" >&6; }
2788 case $ac_cv_build in
2789 *-*-*) ;;
2790 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2791 esac
2792 build=$ac_cv_build
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_build
2795 shift
2796 build_cpu=$1
2797 build_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 build_os=$*
2802 IFS=$ac_save_IFS
2803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2807 $as_echo_n "checking host system type... " >&6; }
2808 if ${ac_cv_host+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test "x$host_alias" = x; then
2812 ac_cv_host=$ac_cv_build
2813 else
2814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2816 fi
2817
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2820 $as_echo "$ac_cv_host" >&6; }
2821 case $ac_cv_host in
2822 *-*-*) ;;
2823 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2824 esac
2825 host=$ac_cv_host
2826 ac_save_IFS=$IFS; IFS='-'
2827 set x $ac_cv_host
2828 shift
2829 host_cpu=$1
2830 host_vendor=$2
2831 shift; shift
2832 # Remember, the first character of IFS is used to create $*,
2833 # except with old shells:
2834 host_os=$*
2835 IFS=$ac_save_IFS
2836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2837
2838
2839
2840 # Work around stupid autoconf default cflags. pt 1
2841 SAVE_CFLAGS="x${CFLAGS}"
2842
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_CC"; then
2888 ac_ct_CC=$CC
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CC=$ac_ct_CC
2935 fi
2936 else
2937 CC="$ac_cv_prog_CC"
2938 fi
2939
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 fi
2980 fi
2981 if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 ac_prog_rejected=no
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3002 continue
3003 fi
3004 ac_cv_prog_CC="cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3015 shift
3016 if test $# != 0; then
3017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3020 shift
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3022 fi
3023 fi
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 fi
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe
3040 do
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 test -n "$CC" && break
3079 done
3080 fi
3081 if test -z "$CC"; then
3082 ac_ct_CC=$CC
3083 for ac_prog in cl.exe
3084 do
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 test -n "$ac_ct_CC" && break
3123 done
3124
3125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 CC=$ac_ct_CC
3135 fi
3136 fi
3137
3138 fi
3139
3140
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3145
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148 set X $ac_compile
3149 ac_compiler=$2
3150 for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 ac_status=$?
3160 if test -s conftest.err; then
3161 sed '10a\
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3165 fi
3166 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169 done
3170
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3186 # of exeext.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 $as_echo_n "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194 ac_rmfiles=
3195 for ac_file in $ac_files
3196 do
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201 done
3202 rm -f $ac_rmfiles
3203
3204 if { { ac_try="$ac_link_default"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3219 # Autoconf.
3220 for ac_file in $ac_files ''
3221 do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225 ;;
3226 [ab].out )
3227 # We found the default executable, but exeext='' is most
3228 # certainly right.
3229 break;;
3230 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 then :; else
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 fi
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
3240 break;;
3241 * )
3242 break;;
3243 esac
3244 done
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247 else
3248 ac_file=''
3249 fi
3250 if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error 77 "C compiler cannot create executables
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3269
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 # `rm'.
3289 for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 break;;
3295 * ) break;;
3296 esac
3297 done
3298 else
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 fi
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3307
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3310 ac_exeext=$EXEEXT
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <stdio.h>
3314 int
3315 main ()
3316 {
3317 FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3367
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377
3378 int
3379 main ()
3380 {
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;;
3404 esac
3405 done
3406 else
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3420 ac_objext=$OBJEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if ${ac_cv_c_compiler_gnu+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432 #ifndef __GNUC__
3433 choke me
3434 #endif
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_compiler_gnu=yes
3442 else
3443 ac_compiler_gnu=no
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453 else
3454 GCC=
3455 fi
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
3466 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_g=yes
3480 else
3481 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494
3495 else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_g=yes
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2"
3526 else
3527 CFLAGS="-g"
3528 fi
3529 else
3530 if test "$GCC" = yes; then
3531 CFLAGS="-O2"
3532 else
3533 CFLAGS=
3534 fi
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if ${ac_cv_prog_cc_c89+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_cv_prog_cc_c89=no
3542 ac_save_CC=$CC
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553 char **p;
3554 int i;
3555 {
3556 return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560 char *s;
3561 va_list v;
3562 va_start (v,p);
3563 s = g (p, va_arg (v,int));
3564 va_end (v);
3565 return s;
3566 }
3567
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3588 int
3589 main ()
3590 {
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 do
3599 CC="$ac_save_CC $ac_arg"
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_c89=$ac_arg
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext
3604 test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC
3608
3609 fi
3610 # AC_CACHE_VAL
3611 case "x$ac_cv_prog_cc_c89" in
3612 x)
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 $as_echo "none needed" >&6; } ;;
3615 xno)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 $as_echo "unsupported" >&6; } ;;
3618 *)
3619 CC="$CC $ac_cv_prog_cc_c89"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 esac
3623 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 DEPDIR="${am__leading_dot}deps"
3633
3634 ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637 am_make=${MAKE-make}
3638 cat > confinc << 'END'
3639 am__doit:
3640 @echo this is the am__doit target
3641 .PHONY: am__doit
3642 END
3643 # If we don't find an include directive, just comment out the code.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 am__include="#"
3647 am__quote=
3648 _am_result=none
3649 # First try GNU make style include.
3650 echo "include confinc" > confmf
3651 # Ignore all kinds of additional output from `make'.
3652 case `$am_make -s -f confmf 2> /dev/null` in #(
3653 *the\ am__doit\ target*)
3654 am__include=include
3655 am__quote=
3656 _am_result=GNU
3657 ;;
3658 esac
3659 # Now try BSD make style include.
3660 if test "$am__include" = "#"; then
3661 echo '.include "confinc"' > confmf
3662 case `$am_make -s -f confmf 2> /dev/null` in #(
3663 *the\ am__doit\ target*)
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3667 ;;
3668 esac
3669 fi
3670
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673 $as_echo "$_am_result" >&6; }
3674 rm -f confinc confmf
3675
3676 # Check whether --enable-dependency-tracking was given.
3677 if test "${enable_dependency_tracking+set}" = set; then :
3678 enableval=$enable_dependency_tracking;
3679 fi
3680
3681 if test "x$enable_dependency_tracking" != xno; then
3682 am_depcomp="$ac_aux_dir/depcomp"
3683 AMDEPBACKSLASH='\'
3684 fi
3685 if test "x$enable_dependency_tracking" != xno; then
3686 AMDEP_TRUE=
3687 AMDEP_FALSE='#'
3688 else
3689 AMDEP_TRUE='#'
3690 AMDEP_FALSE=
3691 fi
3692
3693
3694
3695 depcc="$CC" am_compiler_list=
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3698 $as_echo_n "checking dependency style of $depcc... " >&6; }
3699 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703 # We make a subdir and do the tests there. Otherwise we can end up
3704 # making bogus files that we don't know about and never remove. For
3705 # instance it was reported that on HP-UX the gcc test will end up
3706 # making a dummy file named `D' -- because `-MD' means `put the output
3707 # in D'.
3708 mkdir conftest.dir
3709 # Copy depcomp to subdir because otherwise we won't find it if we're
3710 # using a relative directory.
3711 cp "$am_depcomp" conftest.dir
3712 cd conftest.dir
3713 # We will build objects and dependencies in a subdirectory because
3714 # it helps to detect inapplicable dependency modes. For instance
3715 # both Tru64's cc and ICC support -MD to output dependencies as a
3716 # side effect of compilation, but ICC will put the dependencies in
3717 # the current directory while Tru64 will put them in the object
3718 # directory.
3719 mkdir sub
3720
3721 am_cv_CC_dependencies_compiler_type=none
3722 if test "$am_compiler_list" = ""; then
3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 fi
3725 am__universal=false
3726 case " $depcc " in #(
3727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728 esac
3729
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3734 #
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3738 : > sub/conftest.c
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742 # Solaris 8's {/usr,}/bin/sh.
3743 touch sub/conftst$i.h
3744 done
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748 # mode. It turns out that the SunPro C++ compiler does not properly
3749 # handle `-M -o', and we need to detect this. Also, some Intel
3750 # versions had trouble with output in subdirs
3751 am__obj=sub/conftest.${OBJEXT-o}
3752 am__minus_obj="-o $am__obj"
3753 case $depmode in
3754 gcc)
3755 # This depmode causes a compiler race in universal mode.
3756 test "$am__universal" = false || continue
3757 ;;
3758 nosideeffect)
3759 # after this tag, mechanisms are not by side-effect, so they'll
3760 # only be used when explicitly requested
3761 if test "x$enable_dependency_tracking" = xyes; then
3762 continue
3763 else
3764 break
3765 fi
3766 ;;
3767 msvisualcpp | msvcmsys)
3768 # This compiler won't grok `-c -o', but also, the minuso test has
3769 # not run yet. These depmodes are late enough in the game, and
3770 # so weak that their functioning should not be impacted.
3771 am__obj=conftest.${OBJEXT-o}
3772 am__minus_obj=
3773 ;;
3774 none) break ;;
3775 esac
3776 if depmode=$depmode \
3777 source=sub/conftest.c object=$am__obj \
3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780 >/dev/null 2>conftest.err &&
3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785 # icc doesn't choke on unknown options, it will just issue warnings
3786 # or remarks (even with -Werror). So we grep stderr for any message
3787 # that says an option was ignored or not supported.
3788 # When given -MP, icc 7.0 and 7.1 complain thusly:
3789 # icc: Command line warning: ignoring option '-M'; no argument required
3790 # The diagnosis changed in icc 8.0:
3791 # icc: Command line remark: option '-MP' not supported
3792 if (grep 'ignoring option' conftest.err ||
3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794 am_cv_CC_dependencies_compiler_type=$depmode
3795 break
3796 fi
3797 fi
3798 done
3799
3800 cd ..
3801 rm -rf conftest.dir
3802 else
3803 am_cv_CC_dependencies_compiler_type=none
3804 fi
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811 if
3812 test "x$enable_dependency_tracking" != xno \
3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814 am__fastdepCC_TRUE=
3815 am__fastdepCC_FALSE='#'
3816 else
3817 am__fastdepCC_TRUE='#'
3818 am__fastdepCC_FALSE=
3819 fi
3820
3821
3822 case `pwd` in
3823 *\ * | *\ *)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3825 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3826 esac
3827
3828
3829
3830 macro_version='2.4.2'
3831 macro_revision='1.3337'
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845 ltmain="$ac_aux_dir/ltmain.sh"
3846
3847 # Backslashify metacharacters that are still active within
3848 # double-quoted strings.
3849 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3850
3851 # Same as above, but do not quote variable references.
3852 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3853
3854 # Sed substitution to delay expansion of an escaped shell variable in a
3855 # double_quote_subst'ed string.
3856 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3857
3858 # Sed substitution to delay expansion of an escaped single quote.
3859 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3860
3861 # Sed substitution to avoid accidental globbing in evaled expressions
3862 no_glob_subst='s/\*/\\\*/g'
3863
3864 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3865 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3866 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3869 $as_echo_n "checking how to print strings... " >&6; }
3870 # Test print first, because it will be a builtin if present.
3871 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3872 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3873 ECHO='print -r --'
3874 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3875 ECHO='printf %s\n'
3876 else
3877 # Use this function as a fallback that always works.
3878 func_fallback_echo ()
3879 {
3880 eval 'cat <<_LTECHO_EOF
3881 $1
3882 _LTECHO_EOF'
3883 }
3884 ECHO='func_fallback_echo'
3885 fi
3886
3887 # func_echo_all arg...
3888 # Invoke $ECHO with all args, space-separated.
3889 func_echo_all ()
3890 {
3891 $ECHO ""
3892 }
3893
3894 case "$ECHO" in
3895 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3896 $as_echo "printf" >&6; } ;;
3897 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3898 $as_echo "print -r" >&6; } ;;
3899 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3900 $as_echo "cat" >&6; } ;;
3901 esac
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3917 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3918 if ${ac_cv_path_SED+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3922 for ac_i in 1 2 3 4 5 6 7; do
3923 ac_script="$ac_script$as_nl$ac_script"
3924 done
3925 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3926 { ac_script=; unset ac_script;}
3927 if test -z "$SED"; then
3928 ac_path_SED_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in sed gsed; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3939 # Check for GNU ac_path_SED and select it if it is found.
3940 # Check for GNU $ac_path_SED
3941 case `"$ac_path_SED" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3944 *)
3945 ac_count=0
3946 $as_echo_n 0123456789 >"conftest.in"
3947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo '' >> "conftest.nl"
3953 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 as_fn_arith $ac_count + 1 && ac_count=$as_val
3956 if test $ac_count -gt ${ac_path_SED_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_SED="$ac_path_SED"
3959 ac_path_SED_max=$ac_count
3960 fi
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3966
3967 $ac_path_SED_found && break 3
3968 done
3969 done
3970 done
3971 IFS=$as_save_IFS
3972 if test -z "$ac_cv_path_SED"; then
3973 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3974 fi
3975 else
3976 ac_cv_path_SED=$SED
3977 fi
3978
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3981 $as_echo "$ac_cv_path_SED" >&6; }
3982 SED="$ac_cv_path_SED"
3983 rm -f conftest.sed
3984
3985 test -z "$SED" && SED=sed
3986 Xsed="$SED -e 1s/^X//"
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3999 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4000 if ${ac_cv_path_GREP+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$GREP"; then
4004 ac_path_GREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in grep ggrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4015 # Check for GNU ac_path_GREP and select it if it is found.
4016 # Check for GNU $ac_path_GREP
4017 case `"$ac_path_GREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 *)
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'GREP' >> "conftest.nl"
4029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_GREP="$ac_path_GREP"
4035 ac_path_GREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043 $ac_path_GREP_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_GREP"; then
4049 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 fi
4051 else
4052 ac_cv_path_GREP=$GREP
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4057 $as_echo "$ac_cv_path_GREP" >&6; }
4058 GREP="$ac_cv_path_GREP"
4059
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4062 $as_echo_n "checking for egrep... " >&6; }
4063 if ${ac_cv_path_EGREP+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4067 then ac_cv_path_EGREP="$GREP -E"
4068 else
4069 if test -z "$EGREP"; then
4070 ac_path_EGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in egrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4081 # Check for GNU ac_path_EGREP and select it if it is found.
4082 # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4084 *GNU*)
4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 *)
4087 ac_count=0
4088 $as_echo_n 0123456789 >"conftest.in"
4089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'EGREP' >> "conftest.nl"
4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_EGREP="$ac_path_EGREP"
4101 ac_path_EGREP_max=$ac_count
4102 fi
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109 $ac_path_EGREP_found && break 3
4110 done
4111 done
4112 done
4113 IFS=$as_save_IFS
4114 if test -z "$ac_cv_path_EGREP"; then
4115 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 fi
4117 else
4118 ac_cv_path_EGREP=$EGREP
4119 fi
4120
4121 fi
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4124 $as_echo "$ac_cv_path_EGREP" >&6; }
4125 EGREP="$ac_cv_path_EGREP"
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4129 $as_echo_n "checking for fgrep... " >&6; }
4130 if ${ac_cv_path_FGREP+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4134 then ac_cv_path_FGREP="$GREP -F"
4135 else
4136 if test -z "$FGREP"; then
4137 ac_path_FGREP_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in fgrep; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4148 # Check for GNU ac_path_FGREP and select it if it is found.
4149 # Check for GNU $ac_path_FGREP
4150 case `"$ac_path_FGREP" --version 2>&1` in
4151 *GNU*)
4152 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4153 *)
4154 ac_count=0
4155 $as_echo_n 0123456789 >"conftest.in"
4156 while :
4157 do
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 $as_echo 'FGREP' >> "conftest.nl"
4162 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 as_fn_arith $ac_count + 1 && ac_count=$as_val
4165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_FGREP="$ac_path_FGREP"
4168 ac_path_FGREP_max=$ac_count
4169 fi
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4175
4176 $ac_path_FGREP_found && break 3
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4181 if test -z "$ac_cv_path_FGREP"; then
4182 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183 fi
4184 else
4185 ac_cv_path_FGREP=$FGREP
4186 fi
4187
4188 fi
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4191 $as_echo "$ac_cv_path_FGREP" >&6; }
4192 FGREP="$ac_cv_path_FGREP"
4193
4194
4195 test -z "$GREP" && GREP=grep
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215 # Check whether --with-gnu-ld was given.
4216 if test "${with_gnu_ld+set}" = set; then :
4217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4218 else
4219 with_gnu_ld=no
4220 fi
4221
4222 ac_prog=ld
4223 if test "$GCC" = yes; then
4224 # Check if gcc -print-prog-name=ld gives a path.
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4226 $as_echo_n "checking for ld used by $CC... " >&6; }
4227 case $host in
4228 *-*-mingw*)
4229 # gcc leaves a trailing carriage return which upsets mingw
4230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4231 *)
4232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4233 esac
4234 case $ac_prog in
4235 # Accept absolute paths.
4236 [\\/]* | ?:[\\/]*)
4237 re_direlt='/[^/][^/]*/\.\./'
4238 # Canonicalize the pathname of ld
4239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4242 done
4243 test -z "$LD" && LD="$ac_prog"
4244 ;;
4245 "")
4246 # If it fails, then pretend we aren't using GCC.
4247 ac_prog=ld
4248 ;;
4249 *)
4250 # If it is relative, then search for the first ld in PATH.
4251 with_gnu_ld=unknown
4252 ;;
4253 esac
4254 elif test "$with_gnu_ld" = yes; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4256 $as_echo_n "checking for GNU ld... " >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4259 $as_echo_n "checking for non-GNU ld... " >&6; }
4260 fi
4261 if ${lt_cv_path_LD+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -z "$LD"; then
4265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4266 for ac_dir in $PATH; do
4267 IFS="$lt_save_ifs"
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4270 lt_cv_path_LD="$ac_dir/$ac_prog"
4271 # Check to see if the program is GNU ld. I'd rather use --version,
4272 # but apparently some variants of GNU ld only accept -v.
4273 # Break only if it was the GNU/non-GNU ld that we prefer.
4274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4275 *GNU* | *'with BFD'*)
4276 test "$with_gnu_ld" != no && break
4277 ;;
4278 *)
4279 test "$with_gnu_ld" != yes && break
4280 ;;
4281 esac
4282 fi
4283 done
4284 IFS="$lt_save_ifs"
4285 else
4286 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4287 fi
4288 fi
4289
4290 LD="$lt_cv_path_LD"
4291 if test -n "$LD"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4293 $as_echo "$LD" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4301 if ${lt_cv_prog_gnu_ld+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4305 case `$LD -v 2>&1 </dev/null` in
4306 *GNU* | *'with BFD'*)
4307 lt_cv_prog_gnu_ld=yes
4308 ;;
4309 *)
4310 lt_cv_prog_gnu_ld=no
4311 ;;
4312 esac
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4316 with_gnu_ld=$lt_cv_prog_gnu_ld
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4327 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4328 if ${lt_cv_path_NM+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$NM"; then
4332 # Let the user override the test.
4333 lt_cv_path_NM="$NM"
4334 else
4335 lt_nm_to_check="${ac_tool_prefix}nm"
4336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4337 lt_nm_to_check="$lt_nm_to_check nm"
4338 fi
4339 for lt_tmp_nm in $lt_nm_to_check; do
4340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4342 IFS="$lt_save_ifs"
4343 test -z "$ac_dir" && ac_dir=.
4344 tmp_nm="$ac_dir/$lt_tmp_nm"
4345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4346 # Check to see if the nm accepts a BSD-compat flag.
4347 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4348 # nm: unknown option "B" ignored
4349 # Tru64's nm complains that /dev/null is an invalid object file
4350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4351 */dev/null* | *'Invalid file or object type'*)
4352 lt_cv_path_NM="$tmp_nm -B"
4353 break
4354 ;;
4355 *)
4356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4357 */dev/null*)
4358 lt_cv_path_NM="$tmp_nm -p"
4359 break
4360 ;;
4361 *)
4362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4363 continue # so that we can try to find one that supports BSD flags
4364 ;;
4365 esac
4366 ;;
4367 esac
4368 fi
4369 done
4370 IFS="$lt_save_ifs"
4371 done
4372 : ${lt_cv_path_NM=no}
4373 fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4376 $as_echo "$lt_cv_path_NM" >&6; }
4377 if test "$lt_cv_path_NM" != "no"; then
4378 NM="$lt_cv_path_NM"
4379 else
4380 # Didn't find any BSD compatible name lister, look for dumpbin.
4381 if test -n "$DUMPBIN"; then :
4382 # Let the user override the test.
4383 else
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in dumpbin "link -dump"
4386 do
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_DUMPBIN+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$DUMPBIN"; then
4395 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 DUMPBIN=$ac_cv_prog_DUMPBIN
4415 if test -n "$DUMPBIN"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4417 $as_echo "$DUMPBIN" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424 test -n "$DUMPBIN" && break
4425 done
4426 fi
4427 if test -z "$DUMPBIN"; then
4428 ac_ct_DUMPBIN=$DUMPBIN
4429 for ac_prog in dumpbin "link -dump"
4430 do
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$ac_ct_DUMPBIN"; then
4439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4459 if test -n "$ac_ct_DUMPBIN"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4461 $as_echo "$ac_ct_DUMPBIN" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468 test -n "$ac_ct_DUMPBIN" && break
4469 done
4470
4471 if test "x$ac_ct_DUMPBIN" = x; then
4472 DUMPBIN=":"
4473 else
4474 case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480 DUMPBIN=$ac_ct_DUMPBIN
4481 fi
4482 fi
4483
4484 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4485 *COFF*)
4486 DUMPBIN="$DUMPBIN -symbols"
4487 ;;
4488 *)
4489 DUMPBIN=:
4490 ;;
4491 esac
4492 fi
4493
4494 if test "$DUMPBIN" != ":"; then
4495 NM="$DUMPBIN"
4496 fi
4497 fi
4498 test -z "$NM" && NM=nm
4499
4500
4501
4502
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4506 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4507 if ${lt_cv_nm_interface+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 lt_cv_nm_interface="BSD nm"
4511 echo "int some_variable = 0;" > conftest.$ac_ext
4512 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4513 (eval "$ac_compile" 2>conftest.err)
4514 cat conftest.err >&5
4515 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4516 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4517 cat conftest.err >&5
4518 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4519 cat conftest.out >&5
4520 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4521 lt_cv_nm_interface="MS dumpbin"
4522 fi
4523 rm -f conftest*
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4526 $as_echo "$lt_cv_nm_interface" >&6; }
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4529 $as_echo_n "checking whether ln -s works... " >&6; }
4530 LN_S=$as_ln_s
4531 if test "$LN_S" = "ln -s"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4533 $as_echo "yes" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4536 $as_echo "no, using $LN_S" >&6; }
4537 fi
4538
4539 # find the maximum length of command line arguments
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4541 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4542 if ${lt_cv_sys_max_cmd_len+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 i=0
4546 teststring="ABCD"
4547
4548 case $build_os in
4549 msdosdjgpp*)
4550 # On DJGPP, this test can blow up pretty badly due to problems in libc
4551 # (any single argument exceeding 2000 bytes causes a buffer overrun
4552 # during glob expansion). Even if it were fixed, the result of this
4553 # check would be larger than it should be.
4554 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4555 ;;
4556
4557 gnu*)
4558 # Under GNU Hurd, this test is not required because there is
4559 # no limit to the length of command line arguments.
4560 # Libtool will interpret -1 as no limit whatsoever
4561 lt_cv_sys_max_cmd_len=-1;
4562 ;;
4563
4564 cygwin* | mingw* | cegcc*)
4565 # On Win9x/ME, this test blows up -- it succeeds, but takes
4566 # about 5 minutes as the teststring grows exponentially.
4567 # Worse, since 9x/ME are not pre-emptively multitasking,
4568 # you end up with a "frozen" computer, even though with patience
4569 # the test eventually succeeds (with a max line length of 256k).
4570 # Instead, let's just punt: use the minimum linelength reported by
4571 # all of the supported platforms: 8192 (on NT/2K/XP).
4572 lt_cv_sys_max_cmd_len=8192;
4573 ;;
4574
4575 mint*)
4576 # On MiNT this can take a long time and run out of memory.
4577 lt_cv_sys_max_cmd_len=8192;
4578 ;;
4579
4580 amigaos*)
4581 # On AmigaOS with pdksh, this test takes hours, literally.
4582 # So we just punt and use a minimum line length of 8192.
4583 lt_cv_sys_max_cmd_len=8192;
4584 ;;
4585
4586 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4587 # This has been around since 386BSD, at least. Likely further.
4588 if test -x /sbin/sysctl; then
4589 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4590 elif test -x /usr/sbin/sysctl; then
4591 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4592 else
4593 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4594 fi
4595 # And add a safety zone
4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4598 ;;
4599
4600 interix*)
4601 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4602 lt_cv_sys_max_cmd_len=196608
4603 ;;
4604
4605 os2*)
4606 # The test takes a long time on OS/2.
4607 lt_cv_sys_max_cmd_len=8192
4608 ;;
4609
4610 osf*)
4611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4613 # nice to cause kernel panics so lets avoid the loop below.
4614 # First set a reasonable default.
4615 lt_cv_sys_max_cmd_len=16384
4616 #
4617 if test -x /sbin/sysconfig; then
4618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4620 esac
4621 fi
4622 ;;
4623 sco3.2v5*)
4624 lt_cv_sys_max_cmd_len=102400
4625 ;;
4626 sysv5* | sco5v6* | sysv4.2uw2*)
4627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4628 if test -n "$kargmax"; then
4629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4630 else
4631 lt_cv_sys_max_cmd_len=32768
4632 fi
4633 ;;
4634 *)
4635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4636 if test -n "$lt_cv_sys_max_cmd_len"; then
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4639 else
4640 # Make teststring a little bigger before we do anything with it.
4641 # a 1K string should be a reasonable start.
4642 for i in 1 2 3 4 5 6 7 8 ; do
4643 teststring=$teststring$teststring
4644 done
4645 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4646 # If test is not a shell built-in, we'll probably end up computing a
4647 # maximum length that is only half of the actual maximum length, but
4648 # we can't tell.
4649 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4650 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4651 test $i != 17 # 1/2 MB should be enough
4652 do
4653 i=`expr $i + 1`
4654 teststring=$teststring$teststring
4655 done
4656 # Only check the string length outside the loop.
4657 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4658 teststring=
4659 # Add a significant safety factor because C++ compilers can tack on
4660 # massive amounts of additional arguments before passing them to the
4661 # linker. It appears as though 1/2 is a usable value.
4662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4663 fi
4664 ;;
4665 esac
4666
4667 fi
4668
4669 if test -n $lt_cv_sys_max_cmd_len ; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4671 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4674 $as_echo "none" >&6; }
4675 fi
4676 max_cmd_len=$lt_cv_sys_max_cmd_len
4677
4678
4679
4680
4681
4682
4683 : ${CP="cp -f"}
4684 : ${MV="mv -f"}
4685 : ${RM="rm -f"}
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4688 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4689 # Try some XSI features
4690 xsi_shell=no
4691 ( _lt_dummy="a/b/c"
4692 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4693 = c,a/b,b/c, \
4694 && eval 'test $(( 1 + 1 )) -eq 2 \
4695 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4696 && xsi_shell=yes
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4698 $as_echo "$xsi_shell" >&6; }
4699
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4702 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4703 lt_shell_append=no
4704 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4705 >/dev/null 2>&1 \
4706 && lt_shell_append=yes
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4708 $as_echo "$lt_shell_append" >&6; }
4709
4710
4711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4712 lt_unset=unset
4713 else
4714 lt_unset=false
4715 fi
4716
4717
4718
4719
4720
4721 # test EBCDIC or ASCII
4722 case `echo X|tr X '\101'` in
4723 A) # ASCII based system
4724 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4725 lt_SP2NL='tr \040 \012'
4726 lt_NL2SP='tr \015\012 \040\040'
4727 ;;
4728 *) # EBCDIC based system
4729 lt_SP2NL='tr \100 \n'
4730 lt_NL2SP='tr \r\n \100\100'
4731 ;;
4732 esac
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4743 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4744 if ${lt_cv_to_host_file_cmd+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 case $host in
4748 *-*-mingw* )
4749 case $build in
4750 *-*-mingw* ) # actually msys
4751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4752 ;;
4753 *-*-cygwin* )
4754 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4755 ;;
4756 * ) # otherwise, assume *nix
4757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4758 ;;
4759 esac
4760 ;;
4761 *-*-cygwin* )
4762 case $build in
4763 *-*-mingw* ) # actually msys
4764 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4765 ;;
4766 *-*-cygwin* )
4767 lt_cv_to_host_file_cmd=func_convert_file_noop
4768 ;;
4769 * ) # otherwise, assume *nix
4770 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4771 ;;
4772 esac
4773 ;;
4774 * ) # unhandled hosts (and "normal" native builds)
4775 lt_cv_to_host_file_cmd=func_convert_file_noop
4776 ;;
4777 esac
4778
4779 fi
4780
4781 to_host_file_cmd=$lt_cv_to_host_file_cmd
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4783 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4784
4785
4786
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4790 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4791 if ${lt_cv_to_tool_file_cmd+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 #assume ordinary cross tools, or native build.
4795 lt_cv_to_tool_file_cmd=func_convert_file_noop
4796 case $host in
4797 *-*-mingw* )
4798 case $build in
4799 *-*-mingw* ) # actually msys
4800 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4801 ;;
4802 esac
4803 ;;
4804 esac
4805
4806 fi
4807
4808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4810 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4817 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4818 if ${lt_cv_ld_reload_flag+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 lt_cv_ld_reload_flag='-r'
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4824 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4825 reload_flag=$lt_cv_ld_reload_flag
4826 case $reload_flag in
4827 "" | " "*) ;;
4828 *) reload_flag=" $reload_flag" ;;
4829 esac
4830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4831 case $host_os in
4832 cygwin* | mingw* | pw32* | cegcc*)
4833 if test "$GCC" != yes; then
4834 reload_cmds=false
4835 fi
4836 ;;
4837 darwin*)
4838 if test "$GCC" = yes; then
4839 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4840 else
4841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4842 fi
4843 ;;
4844 esac
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_OBJDUMP+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$OBJDUMP"; then
4863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 OBJDUMP=$ac_cv_prog_OBJDUMP
4883 if test -n "$OBJDUMP"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4885 $as_echo "$OBJDUMP" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 if test -z "$ac_cv_prog_OBJDUMP"; then
4894 ac_ct_OBJDUMP=$OBJDUMP
4895 # Extract the first word of "objdump", so it can be a program name with args.
4896 set dummy objdump; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_OBJDUMP"; then
4903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4923 if test -n "$ac_ct_OBJDUMP"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4925 $as_echo "$ac_ct_OBJDUMP" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931 if test "x$ac_ct_OBJDUMP" = x; then
4932 OBJDUMP="false"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 OBJDUMP=$ac_ct_OBJDUMP
4941 fi
4942 else
4943 OBJDUMP="$ac_cv_prog_OBJDUMP"
4944 fi
4945
4946 test -z "$OBJDUMP" && OBJDUMP=objdump
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4957 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4958 if ${lt_cv_deplibs_check_method+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 lt_cv_file_magic_cmd='$MAGIC_CMD'
4962 lt_cv_file_magic_test_file=
4963 lt_cv_deplibs_check_method='unknown'
4964 # Need to set the preceding variable on all platforms that support
4965 # interlibrary dependencies.
4966 # 'none' -- dependencies not supported.
4967 # `unknown' -- same as none, but documents that we really don't know.
4968 # 'pass_all' -- all dependencies passed with no checks.
4969 # 'test_compile' -- check by making test program.
4970 # 'file_magic [[regex]]' -- check by looking for files in library path
4971 # which responds to the $file_magic_cmd with a given extended regex.
4972 # If you have `file' or equivalent on your system and you're not sure
4973 # whether `pass_all' will *always* work, you probably want this one.
4974
4975 case $host_os in
4976 aix[4-9]*)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979
4980 beos*)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
4984 bsdi[45]*)
4985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4986 lt_cv_file_magic_cmd='/usr/bin/file -L'
4987 lt_cv_file_magic_test_file=/shlib/libc.so
4988 ;;
4989
4990 cygwin*)
4991 # func_win32_libid is a shell function defined in ltmain.sh
4992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4993 lt_cv_file_magic_cmd='func_win32_libid'
4994 ;;
4995
4996 mingw* | pw32*)
4997 # Base MSYS/MinGW do not provide the 'file' command needed by
4998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4999 # unless we find 'file', for example because we are cross-compiling.
5000 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5001 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5003 lt_cv_file_magic_cmd='func_win32_libid'
5004 else
5005 # Keep this pattern in sync with the one in func_win32_libid.
5006 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5007 lt_cv_file_magic_cmd='$OBJDUMP -f'
5008 fi
5009 ;;
5010
5011 cegcc*)
5012 # use the weaker test based on 'objdump'. See mingw*.
5013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5014 lt_cv_file_magic_cmd='$OBJDUMP -f'
5015 ;;
5016
5017 darwin* | rhapsody*)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020
5021 freebsd* | dragonfly*)
5022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5023 case $host_cpu in
5024 i*86 )
5025 # Not sure whether the presence of OpenBSD here was a mistake.
5026 # Let's accept both of them until this is cleared up.
5027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5028 lt_cv_file_magic_cmd=/usr/bin/file
5029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5030 ;;
5031 esac
5032 else
5033 lt_cv_deplibs_check_method=pass_all
5034 fi
5035 ;;
5036
5037 gnu*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040
5041 haiku*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 hpux10.20* | hpux11*)
5046 lt_cv_file_magic_cmd=/usr/bin/file
5047 case $host_cpu in
5048 ia64*)
5049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5051 ;;
5052 hppa*64*)
5053 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]'
5054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5055 ;;
5056 *)
5057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5058 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5059 ;;
5060 esac
5061 ;;
5062
5063 interix[3-9]*)
5064 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5066 ;;
5067
5068 irix5* | irix6* | nonstopux*)
5069 case $LD in
5070 *-32|*"-32 ") libmagic=32-bit;;
5071 *-n32|*"-n32 ") libmagic=N32;;
5072 *-64|*"-64 ") libmagic=64-bit;;
5073 *) libmagic=never-match;;
5074 esac
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078 # This must be glibc/ELF.
5079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083 netbsd* | netbsdelf*-gnu)
5084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5086 else
5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5088 fi
5089 ;;
5090
5091 newos6*)
5092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5093 lt_cv_file_magic_cmd=/usr/bin/file
5094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5095 ;;
5096
5097 *nto* | *qnx*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100
5101 openbsd*)
5102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5104 else
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106 fi
5107 ;;
5108
5109 osf3* | osf4* | osf5*)
5110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112
5113 rdos*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116
5117 solaris*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 sysv4 | sysv4.3*)
5126 case $host_vendor in
5127 motorola)
5128 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]'
5129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5130 ;;
5131 ncr)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5134 sequent)
5135 lt_cv_file_magic_cmd='/bin/file'
5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5137 ;;
5138 sni)
5139 lt_cv_file_magic_cmd='/bin/file'
5140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5141 lt_cv_file_magic_test_file=/lib/libc.so
5142 ;;
5143 siemens)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146 pc)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149 esac
5150 ;;
5151
5152 tpf*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155 esac
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5159 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5160
5161 file_magic_glob=
5162 want_nocaseglob=no
5163 if test "$build" = "$host"; then
5164 case $host_os in
5165 mingw* | pw32*)
5166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5167 want_nocaseglob=yes
5168 else
5169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5170 fi
5171 ;;
5172 esac
5173 fi
5174
5175 file_magic_cmd=$lt_cv_file_magic_cmd
5176 deplibs_check_method=$lt_cv_deplibs_check_method
5177 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_DLLTOOL+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$DLLTOOL"; then
5209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 DLLTOOL=$ac_cv_prog_DLLTOOL
5229 if test -n "$DLLTOOL"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5231 $as_echo "$DLLTOOL" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237
5238 fi
5239 if test -z "$ac_cv_prog_DLLTOOL"; then
5240 ac_ct_DLLTOOL=$DLLTOOL
5241 # Extract the first word of "dlltool", so it can be a program name with args.
5242 set dummy dlltool; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$ac_ct_DLLTOOL"; then
5249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5269 if test -n "$ac_ct_DLLTOOL"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5271 $as_echo "$ac_ct_DLLTOOL" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277 if test "x$ac_ct_DLLTOOL" = x; then
5278 DLLTOOL="false"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284 ac_tool_warned=yes ;;
5285 esac
5286 DLLTOOL=$ac_ct_DLLTOOL
5287 fi
5288 else
5289 DLLTOOL="$ac_cv_prog_DLLTOOL"
5290 fi
5291
5292 test -z "$DLLTOOL" && DLLTOOL=dlltool
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5304 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5305 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 lt_cv_sharedlib_from_linklib_cmd='unknown'
5309
5310 case $host_os in
5311 cygwin* | mingw* | pw32* | cegcc*)
5312 # two different shell functions defined in ltmain.sh
5313 # decide which to use based on capabilities of $DLLTOOL
5314 case `$DLLTOOL --help 2>&1` in
5315 *--identify-strict*)
5316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5317 ;;
5318 *)
5319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5320 ;;
5321 esac
5322 ;;
5323 *)
5324 # fallback: assume linklib IS sharedlib
5325 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5326 ;;
5327 esac
5328
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5331 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5332 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5333 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5334
5335
5336
5337
5338
5339
5340
5341
5342 if test -n "$ac_tool_prefix"; then
5343 for ac_prog in ar
5344 do
5345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_AR+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$AR"; then
5353 ac_cv_prog_AR="$AR" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 AR=$ac_cv_prog_AR
5373 if test -n "$AR"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5375 $as_echo "$AR" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 test -n "$AR" && break
5383 done
5384 fi
5385 if test -z "$AR"; then
5386 ac_ct_AR=$AR
5387 for ac_prog in ar
5388 do
5389 # Extract the first word of "$ac_prog", so it can be a program name with args.
5390 set dummy $ac_prog; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_ac_ct_AR="$ac_prog"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417 if test -n "$ac_ct_AR"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5419 $as_echo "$ac_ct_AR" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 test -n "$ac_ct_AR" && break
5427 done
5428
5429 if test "x$ac_ct_AR" = x; then
5430 AR="false"
5431 else
5432 case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438 AR=$ac_ct_AR
5439 fi
5440 fi
5441
5442 : ${AR=ar}
5443 : ${AR_FLAGS=cru}
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5456 $as_echo_n "checking for archiver @FILE support... " >&6; }
5457 if ${lt_cv_ar_at_file+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 lt_cv_ar_at_file=no
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463
5464 int
5465 main ()
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 echo conftest.$ac_objext > conftest.lst
5474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5476 (eval $lt_ar_try) 2>&5
5477 ac_status=$?
5478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5479 test $ac_status = 0; }
5480 if test "$ac_status" -eq 0; then
5481 # Ensure the archiver fails upon bogus file names.
5482 rm -f conftest.$ac_objext libconftest.a
5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5484 (eval $lt_ar_try) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }
5488 if test "$ac_status" -ne 0; then
5489 lt_cv_ar_at_file=@
5490 fi
5491 fi
5492 rm -f conftest.* libconftest.a
5493
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5499 $as_echo "$lt_cv_ar_at_file" >&6; }
5500
5501 if test "x$lt_cv_ar_at_file" = xno; then
5502 archiver_list_spec=
5503 else
5504 archiver_list_spec=$lt_cv_ar_at_file
5505 fi
5506
5507
5508
5509
5510
5511
5512
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}strip; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_STRIP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 fi
5540 fi
5541 STRIP=$ac_cv_prog_STRIP
5542 if test -n "$STRIP"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5544 $as_echo "$STRIP" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 fi
5549
5550
5551 fi
5552 if test -z "$ac_cv_prog_STRIP"; then
5553 ac_ct_STRIP=$STRIP
5554 # Extract the first word of "strip", so it can be a program name with args.
5555 set dummy strip; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$ac_ct_STRIP"; then
5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_STRIP="strip"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575 done
5576 done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5582 if test -n "$ac_ct_STRIP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5584 $as_echo "$ac_ct_STRIP" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590 if test "x$ac_ct_STRIP" = x; then
5591 STRIP=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599 STRIP=$ac_ct_STRIP
5600 fi
5601 else
5602 STRIP="$ac_cv_prog_STRIP"
5603 fi
5604
5605 test -z "$STRIP" && STRIP=:
5606
5607
5608
5609
5610
5611
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_RANLIB+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$RANLIB"; then
5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634 done
5635 done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 RANLIB=$ac_cv_prog_RANLIB
5641 if test -n "$RANLIB"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5643 $as_echo "$RANLIB" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 fi
5651 if test -z "$ac_cv_prog_RANLIB"; then
5652 ac_ct_RANLIB=$RANLIB
5653 # Extract the first word of "ranlib", so it can be a program name with args.
5654 set dummy ranlib; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$ac_ct_RANLIB"; then
5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_RANLIB="ranlib"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5681 if test -n "$ac_ct_RANLIB"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5683 $as_echo "$ac_ct_RANLIB" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689 if test "x$ac_ct_RANLIB" = x; then
5690 RANLIB=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693 yes:)
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5697 esac
5698 RANLIB=$ac_ct_RANLIB
5699 fi
5700 else
5701 RANLIB="$ac_cv_prog_RANLIB"
5702 fi
5703
5704 test -z "$RANLIB" && RANLIB=:
5705
5706
5707
5708
5709
5710
5711 # Determine commands to create old-style static archives.
5712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5713 old_postinstall_cmds='chmod 644 $oldlib'
5714 old_postuninstall_cmds=
5715
5716 if test -n "$RANLIB"; then
5717 case $host_os in
5718 openbsd*)
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5720 ;;
5721 *)
5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5723 ;;
5724 esac
5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5726 fi
5727
5728 case $host_os in
5729 darwin*)
5730 lock_old_archive_extraction=yes ;;
5731 *)
5732 lock_old_archive_extraction=no ;;
5733 esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 # If no C compiler was specified, use CC.
5774 LTCC=${LTCC-"$CC"}
5775
5776 # If no C compiler flags were specified, use CFLAGS.
5777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5778
5779 # Allow CC to be a program name with arguments.
5780 compiler=$CC
5781
5782
5783 # Check for command to grab the raw symbol name followed by C symbol from nm.
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5785 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5786 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789
5790 # These are sane defaults that work on at least a few old systems.
5791 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5792
5793 # Character class describing NM global symbol codes.
5794 symcode='[BCDEGRST]'
5795
5796 # Regexp to match symbols that can be accessed directly from C.
5797 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5798
5799 # Define system-specific variables.
5800 case $host_os in
5801 aix*)
5802 symcode='[BCDT]'
5803 ;;
5804 cygwin* | mingw* | pw32* | cegcc*)
5805 symcode='[ABCDGISTW]'
5806 ;;
5807 hpux*)
5808 if test "$host_cpu" = ia64; then
5809 symcode='[ABCDEGRST]'
5810 fi
5811 ;;
5812 irix* | nonstopux*)
5813 symcode='[BCDEGRST]'
5814 ;;
5815 osf*)
5816 symcode='[BCDEGQRST]'
5817 ;;
5818 solaris*)
5819 symcode='[BDRT]'
5820 ;;
5821 sco3.2v5*)
5822 symcode='[DT]'
5823 ;;
5824 sysv4.2uw2*)
5825 symcode='[DT]'
5826 ;;
5827 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5828 symcode='[ABDT]'
5829 ;;
5830 sysv4)
5831 symcode='[DFNSTU]'
5832 ;;
5833 esac
5834
5835 # If we're using GNU nm, then use its standard symbol codes.
5836 case `$NM -V 2>&1` in
5837 *GNU* | *'with BFD'*)
5838 symcode='[ABCDGIRSTW]' ;;
5839 esac
5840
5841 # Transform an extracted symbol line into a proper C declaration.
5842 # Some systems (esp. on ia64) link data and code symbols differently,
5843 # so use this general approach.
5844 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5845
5846 # Transform an extracted symbol line into symbol name and symbol address
5847 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5848 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'"
5849
5850 # Handle CRLF in mingw tool chain
5851 opt_cr=
5852 case $build_os in
5853 mingw*)
5854 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5855 ;;
5856 esac
5857
5858 # Try without a prefix underscore, then with it.
5859 for ac_symprfx in "" "_"; do
5860
5861 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5862 symxfrm="\\1 $ac_symprfx\\2 \\2"
5863
5864 # Write the raw and C identifiers.
5865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5866 # Fake it for dumpbin and say T for any non-static function
5867 # and D for any global variable.
5868 # Also find C++ and __fastcall symbols from MSVC++,
5869 # which start with @ or ?.
5870 lt_cv_sys_global_symbol_pipe="$AWK '"\
5871 " {last_section=section; section=\$ 3};"\
5872 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5874 " \$ 0!~/External *\|/{next};"\
5875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5876 " {if(hide[section]) next};"\
5877 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5878 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5879 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5880 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5881 " ' prfx=^$ac_symprfx"
5882 else
5883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5884 fi
5885 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5886
5887 # Check to see that the pipe works correctly.
5888 pipe_works=no
5889
5890 rm -f conftest*
5891 cat > conftest.$ac_ext <<_LT_EOF
5892 #ifdef __cplusplus
5893 extern "C" {
5894 #endif
5895 char nm_test_var;
5896 void nm_test_func(void);
5897 void nm_test_func(void){}
5898 #ifdef __cplusplus
5899 }
5900 #endif
5901 int main(){nm_test_var='a';nm_test_func();return(0);}
5902 _LT_EOF
5903
5904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5905 (eval $ac_compile) 2>&5
5906 ac_status=$?
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; }; then
5909 # Now try to grab the symbols.
5910 nlist=conftest.nm
5911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5912 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; } && test -s "$nlist"; then
5916 # Try sorting and uniquifying the output.
5917 if sort "$nlist" | uniq > "$nlist"T; then
5918 mv -f "$nlist"T "$nlist"
5919 else
5920 rm -f "$nlist"T
5921 fi
5922
5923 # Make sure that we snagged all the symbols we need.
5924 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5925 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5926 cat <<_LT_EOF > conftest.$ac_ext
5927 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5928 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5929 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5930 relocations are performed -- see ld's documentation on pseudo-relocs. */
5931 # define LT_DLSYM_CONST
5932 #elif defined(__osf__)
5933 /* This system does not cope well with relocations in const data. */
5934 # define LT_DLSYM_CONST
5935 #else
5936 # define LT_DLSYM_CONST const
5937 #endif
5938
5939 #ifdef __cplusplus
5940 extern "C" {
5941 #endif
5942
5943 _LT_EOF
5944 # Now generate the symbol file.
5945 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5946
5947 cat <<_LT_EOF >> conftest.$ac_ext
5948
5949 /* The mapping between symbol names and symbols. */
5950 LT_DLSYM_CONST struct {
5951 const char *name;
5952 void *address;
5953 }
5954 lt__PROGRAM__LTX_preloaded_symbols[] =
5955 {
5956 { "@PROGRAM@", (void *) 0 },
5957 _LT_EOF
5958 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5959 cat <<\_LT_EOF >> conftest.$ac_ext
5960 {0, (void *) 0}
5961 };
5962
5963 /* This works around a problem in FreeBSD linker */
5964 #ifdef FREEBSD_WORKAROUND
5965 static const void *lt_preloaded_setup() {
5966 return lt__PROGRAM__LTX_preloaded_symbols;
5967 }
5968 #endif
5969
5970 #ifdef __cplusplus
5971 }
5972 #endif
5973 _LT_EOF
5974 # Now try linking the two files.
5975 mv conftest.$ac_objext conftstm.$ac_objext
5976 lt_globsym_save_LIBS=$LIBS
5977 lt_globsym_save_CFLAGS=$CFLAGS
5978 LIBS="conftstm.$ac_objext"
5979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5981 (eval $ac_link) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5985 pipe_works=yes
5986 fi
5987 LIBS=$lt_globsym_save_LIBS
5988 CFLAGS=$lt_globsym_save_CFLAGS
5989 else
5990 echo "cannot find nm_test_func in $nlist" >&5
5991 fi
5992 else
5993 echo "cannot find nm_test_var in $nlist" >&5
5994 fi
5995 else
5996 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5997 fi
5998 else
5999 echo "$progname: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6001 fi
6002 rm -rf conftest* conftst*
6003
6004 # Do not use the global_symbol_pipe unless it works.
6005 if test "$pipe_works" = yes; then
6006 break
6007 else
6008 lt_cv_sys_global_symbol_pipe=
6009 fi
6010 done
6011
6012 fi
6013
6014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6015 lt_cv_sys_global_symbol_to_cdecl=
6016 fi
6017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6019 $as_echo "failed" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6022 $as_echo "ok" >&6; }
6023 fi
6024
6025 # Response file support.
6026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6027 nm_file_list_spec='@'
6028 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6029 nm_file_list_spec='@'
6030 fi
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6059 $as_echo_n "checking for sysroot... " >&6; }
6060
6061 # Check whether --with-sysroot was given.
6062 if test "${with_sysroot+set}" = set; then :
6063 withval=$with_sysroot;
6064 else
6065 with_sysroot=no
6066 fi
6067
6068
6069 lt_sysroot=
6070 case ${with_sysroot} in #(
6071 yes)
6072 if test "$GCC" = yes; then
6073 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6074 fi
6075 ;; #(
6076 /*)
6077 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6078 ;; #(
6079 no|'')
6080 ;; #(
6081 *)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6083 $as_echo "${with_sysroot}" >&6; }
6084 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6085 ;;
6086 esac
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6089 $as_echo "${lt_sysroot:-no}" >&6; }
6090
6091
6092
6093
6094
6095 # Check whether --enable-libtool-lock was given.
6096 if test "${enable_libtool_lock+set}" = set; then :
6097 enableval=$enable_libtool_lock;
6098 fi
6099
6100 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6101
6102 # Some flags need to be propagated to the compiler or linker for good
6103 # libtool support.
6104 case $host in
6105 ia64-*-hpux*)
6106 # Find out which ABI we are using.
6107 echo 'int i;' > conftest.$ac_ext
6108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6109 (eval $ac_compile) 2>&5
6110 ac_status=$?
6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; }; then
6113 case `/usr/bin/file conftest.$ac_objext` in
6114 *ELF-32*)
6115 HPUX_IA64_MODE="32"
6116 ;;
6117 *ELF-64*)
6118 HPUX_IA64_MODE="64"
6119 ;;
6120 esac
6121 fi
6122 rm -rf conftest*
6123 ;;
6124 *-*-irix6*)
6125 # Find out which ABI we are using.
6126 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6128 (eval $ac_compile) 2>&5
6129 ac_status=$?
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; }; then
6132 if test "$lt_cv_prog_gnu_ld" = yes; then
6133 case `/usr/bin/file conftest.$ac_objext` in
6134 *32-bit*)
6135 LD="${LD-ld} -melf32bsmip"
6136 ;;
6137 *N32*)
6138 LD="${LD-ld} -melf32bmipn32"
6139 ;;
6140 *64-bit*)
6141 LD="${LD-ld} -melf64bmip"
6142 ;;
6143 esac
6144 else
6145 case `/usr/bin/file conftest.$ac_objext` in
6146 *32-bit*)
6147 LD="${LD-ld} -32"
6148 ;;
6149 *N32*)
6150 LD="${LD-ld} -n32"
6151 ;;
6152 *64-bit*)
6153 LD="${LD-ld} -64"
6154 ;;
6155 esac
6156 fi
6157 fi
6158 rm -rf conftest*
6159 ;;
6160
6161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; }; then
6170 case `/usr/bin/file conftest.o` in
6171 *32-bit*)
6172 case $host in
6173 x86_64-*kfreebsd*-gnu)
6174 LD="${LD-ld} -m elf_i386_fbsd"
6175 ;;
6176 x86_64-*linux*)
6177 LD="${LD-ld} -m elf_i386"
6178 ;;
6179 ppc64-*linux*|powerpc64-*linux*)
6180 LD="${LD-ld} -m elf32ppclinux"
6181 ;;
6182 s390x-*linux*)
6183 LD="${LD-ld} -m elf_s390"
6184 ;;
6185 sparc64-*linux*)
6186 LD="${LD-ld} -m elf32_sparc"
6187 ;;
6188 esac
6189 ;;
6190 *64-bit*)
6191 case $host in
6192 x86_64-*kfreebsd*-gnu)
6193 LD="${LD-ld} -m elf_x86_64_fbsd"
6194 ;;
6195 x86_64-*linux*)
6196 LD="${LD-ld} -m elf_x86_64"
6197 ;;
6198 ppc*-*linux*|powerpc*-*linux*)
6199 LD="${LD-ld} -m elf64ppc"
6200 ;;
6201 s390*-*linux*|s390*-*tpf*)
6202 LD="${LD-ld} -m elf64_s390"
6203 ;;
6204 sparc*-*linux*)
6205 LD="${LD-ld} -m elf64_sparc"
6206 ;;
6207 esac
6208 ;;
6209 esac
6210 fi
6211 rm -rf conftest*
6212 ;;
6213
6214 *-*-sco3.2v5*)
6215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6216 SAVE_CFLAGS="$CFLAGS"
6217 CFLAGS="$CFLAGS -belf"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6219 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6220 if ${lt_cv_cc_needs_belf+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 ac_ext=c
6224 ac_cpp='$CPP $CPPFLAGS'
6225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231
6232 int
6233 main ()
6234 {
6235
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_link "$LINENO"; then :
6241 lt_cv_cc_needs_belf=yes
6242 else
6243 lt_cv_cc_needs_belf=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6247 ac_ext=c
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6255 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6258 CFLAGS="$SAVE_CFLAGS"
6259 fi
6260 ;;
6261 *-*solaris*)
6262 # Find out which ABI we are using.
6263 echo 'int i;' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 case `/usr/bin/file conftest.o` in
6270 *64-bit*)
6271 case $lt_cv_prog_gnu_ld in
6272 yes*)
6273 case $host in
6274 i?86-*-solaris*)
6275 LD="${LD-ld} -m elf_x86_64"
6276 ;;
6277 sparc*-*-solaris*)
6278 LD="${LD-ld} -m elf64_sparc"
6279 ;;
6280 esac
6281 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6282 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6283 LD="${LD-ld}_sol2"
6284 fi
6285 ;;
6286 *)
6287 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6288 LD="${LD-ld} -64"
6289 fi
6290 ;;
6291 esac
6292 ;;
6293 esac
6294 fi
6295 rm -rf conftest*
6296 ;;
6297 esac
6298
6299 need_locks="$enable_libtool_lock"
6300
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}mt; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$MANIFEST_TOOL"; then
6310 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6330 if test -n "$MANIFEST_TOOL"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6332 $as_echo "$MANIFEST_TOOL" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6341 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6342 # Extract the first word of "mt", so it can be a program name with args.
6343 set dummy mt; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$ac_ct_MANIFEST_TOOL"; then
6350 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6370 if test -n "$ac_ct_MANIFEST_TOOL"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6372 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6379 MANIFEST_TOOL=":"
6380 else
6381 case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6388 fi
6389 else
6390 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6391 fi
6392
6393 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6395 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6396 if ${lt_cv_path_mainfest_tool+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 lt_cv_path_mainfest_tool=no
6400 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6401 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6402 cat conftest.err >&5
6403 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6404 lt_cv_path_mainfest_tool=yes
6405 fi
6406 rm -f conftest*
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6409 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6410 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6411 MANIFEST_TOOL=:
6412 fi
6413
6414
6415
6416
6417
6418
6419 case $host_os in
6420 rhapsody* | darwin*)
6421 if test -n "$ac_tool_prefix"; then
6422 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6423 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test -n "$DSYMUTIL"; then
6430 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6450 if test -n "$DSYMUTIL"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6452 $as_echo "$DSYMUTIL" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 fi
6457
6458
6459 fi
6460 if test -z "$ac_cv_prog_DSYMUTIL"; then
6461 ac_ct_DSYMUTIL=$DSYMUTIL
6462 # Extract the first word of "dsymutil", so it can be a program name with args.
6463 set dummy dsymutil; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 if test -n "$ac_ct_DSYMUTIL"; then
6470 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6490 if test -n "$ac_ct_DSYMUTIL"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6492 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498 if test "x$ac_ct_DSYMUTIL" = x; then
6499 DSYMUTIL=":"
6500 else
6501 case $cross_compiling:$ac_tool_warned in
6502 yes:)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505 ac_tool_warned=yes ;;
6506 esac
6507 DSYMUTIL=$ac_ct_DSYMUTIL
6508 fi
6509 else
6510 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6511 fi
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_NMEDIT+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$NMEDIT"; then
6522 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 NMEDIT=$ac_cv_prog_NMEDIT
6542 if test -n "$NMEDIT"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6544 $as_echo "$NMEDIT" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_NMEDIT"; then
6553 ac_ct_NMEDIT=$NMEDIT
6554 # Extract the first word of "nmedit", so it can be a program name with args.
6555 set dummy nmedit; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_NMEDIT"; then
6562 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6582 if test -n "$ac_ct_NMEDIT"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6584 $as_echo "$ac_ct_NMEDIT" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590 if test "x$ac_ct_NMEDIT" = x; then
6591 NMEDIT=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 NMEDIT=$ac_ct_NMEDIT
6600 fi
6601 else
6602 NMEDIT="$ac_cv_prog_NMEDIT"
6603 fi
6604
6605 if test -n "$ac_tool_prefix"; then
6606 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6607 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_prog_LIPO+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 if test -n "$LIPO"; then
6614 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6615 else
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631 fi
6632 fi
6633 LIPO=$ac_cv_prog_LIPO
6634 if test -n "$LIPO"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6636 $as_echo "$LIPO" >&6; }
6637 else
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 fi
6641
6642
6643 fi
6644 if test -z "$ac_cv_prog_LIPO"; then
6645 ac_ct_LIPO=$LIPO
6646 # Extract the first word of "lipo", so it can be a program name with args.
6647 set dummy lipo; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test -n "$ac_ct_LIPO"; then
6654 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_ac_ct_LIPO="lipo"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6674 if test -n "$ac_ct_LIPO"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6676 $as_echo "$ac_ct_LIPO" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681
6682 if test "x$ac_ct_LIPO" = x; then
6683 LIPO=":"
6684 else
6685 case $cross_compiling:$ac_tool_warned in
6686 yes:)
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6689 ac_tool_warned=yes ;;
6690 esac
6691 LIPO=$ac_ct_LIPO
6692 fi
6693 else
6694 LIPO="$ac_cv_prog_LIPO"
6695 fi
6696
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}otool; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_OTOOL+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -n "$OTOOL"; then
6706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 OTOOL=$ac_cv_prog_OTOOL
6726 if test -n "$OTOOL"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6728 $as_echo "$OTOOL" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735 fi
6736 if test -z "$ac_cv_prog_OTOOL"; then
6737 ac_ct_OTOOL=$OTOOL
6738 # Extract the first word of "otool", so it can be a program name with args.
6739 set dummy otool; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_OTOOL"; then
6746 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_ac_ct_OTOOL="otool"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6766 if test -n "$ac_ct_OTOOL"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6768 $as_echo "$ac_ct_OTOOL" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774 if test "x$ac_ct_OTOOL" = x; then
6775 OTOOL=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 OTOOL=$ac_ct_OTOOL
6784 fi
6785 else
6786 OTOOL="$ac_cv_prog_OTOOL"
6787 fi
6788
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_OTOOL64+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$OTOOL64"; then
6798 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 OTOOL64=$ac_cv_prog_OTOOL64
6818 if test -n "$OTOOL64"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6820 $as_echo "$OTOOL64" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_OTOOL64"; then
6829 ac_ct_OTOOL64=$OTOOL64
6830 # Extract the first word of "otool64", so it can be a program name with args.
6831 set dummy otool64; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$ac_ct_OTOOL64"; then
6838 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_OTOOL64="otool64"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6858 if test -n "$ac_ct_OTOOL64"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6860 $as_echo "$ac_ct_OTOOL64" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$ac_ct_OTOOL64" = x; then
6867 OTOOL64=":"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 OTOOL64=$ac_ct_OTOOL64
6876 fi
6877 else
6878 OTOOL64="$ac_cv_prog_OTOOL64"
6879 fi
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6908 $as_echo_n "checking for -single_module linker flag... " >&6; }
6909 if ${lt_cv_apple_cc_single_mod+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 lt_cv_apple_cc_single_mod=no
6913 if test -z "${LT_MULTI_MODULE}"; then
6914 # By default we will add the -single_module flag. You can override
6915 # by either setting the environment variable LT_MULTI_MODULE
6916 # non-empty at configure time, or by adding -multi_module to the
6917 # link flags.
6918 rm -rf libconftest.dylib*
6919 echo "int foo(void){return 1;}" > conftest.c
6920 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6921 -dynamiclib -Wl,-single_module conftest.c" >&5
6922 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6923 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6924 _lt_result=$?
6925 # If there is a non-empty error log, and "single_module"
6926 # appears in it, assume the flag caused a linker warning
6927 if test -s conftest.err && $GREP single_module conftest.err; then
6928 cat conftest.err >&5
6929 # Otherwise, if the output was created with a 0 exit code from
6930 # the compiler, it worked.
6931 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6932 lt_cv_apple_cc_single_mod=yes
6933 else
6934 cat conftest.err >&5
6935 fi
6936 rm -rf libconftest.dylib*
6937 rm -f conftest.*
6938 fi
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6941 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6944 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6945 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 lt_cv_ld_exported_symbols_list=no
6949 save_LDFLAGS=$LDFLAGS
6950 echo "_main" > conftest.sym
6951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954
6955 int
6956 main ()
6957 {
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_link "$LINENO"; then :
6964 lt_cv_ld_exported_symbols_list=yes
6965 else
6966 lt_cv_ld_exported_symbols_list=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 LDFLAGS="$save_LDFLAGS"
6971
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6974 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6975
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6977 $as_echo_n "checking for -force_load linker flag... " >&6; }
6978 if ${lt_cv_ld_force_load+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 lt_cv_ld_force_load=no
6982 cat > conftest.c << _LT_EOF
6983 int forced_loaded() { return 2;}
6984 _LT_EOF
6985 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6986 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6987 echo "$AR cru libconftest.a conftest.o" >&5
6988 $AR cru libconftest.a conftest.o 2>&5
6989 echo "$RANLIB libconftest.a" >&5
6990 $RANLIB libconftest.a 2>&5
6991 cat > conftest.c << _LT_EOF
6992 int main() { return 0;}
6993 _LT_EOF
6994 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6995 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6996 _lt_result=$?
6997 if test -s conftest.err && $GREP force_load conftest.err; then
6998 cat conftest.err >&5
6999 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7000 lt_cv_ld_force_load=yes
7001 else
7002 cat conftest.err >&5
7003 fi
7004 rm -f conftest.err libconftest.a conftest conftest.c
7005 rm -rf conftest.dSYM
7006
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7009 $as_echo "$lt_cv_ld_force_load" >&6; }
7010 case $host_os in
7011 rhapsody* | darwin1.[012])
7012 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7013 darwin1.*)
7014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7015 darwin*) # darwin 5.x on
7016 # if running on 10.5 or later, the deployment target defaults
7017 # to the OS version, if on x86, and 10.4, the deployment
7018 # target defaults to 10.4. Don't you love it?
7019 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7020 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7021 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7022 10.[012]*)
7023 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7024 10.*)
7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026 esac
7027 ;;
7028 esac
7029 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7030 _lt_dar_single_mod='$single_module'
7031 fi
7032 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7033 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7034 else
7035 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7036 fi
7037 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7038 _lt_dsymutil='~$DSYMUTIL $lib || :'
7039 else
7040 _lt_dsymutil=
7041 fi
7042 ;;
7043 esac
7044
7045 ac_ext=c
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7051 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7052 # On Suns, sometimes $CPP names a directory.
7053 if test -n "$CPP" && test -d "$CPP"; then
7054 CPP=
7055 fi
7056 if test -z "$CPP"; then
7057 if ${ac_cv_prog_CPP+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 # Double quotes because CPP needs to be expanded
7061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7062 do
7063 ac_preproc_ok=false
7064 for ac_c_preproc_warn_flag in '' yes
7065 do
7066 # Use a header file that comes with gcc, so configuring glibc
7067 # with a fresh cross-compiler works.
7068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 # <limits.h> exists even on freestanding compilers.
7070 # On the NeXT, cc -E runs the code through the compiler's parser,
7071 # not just through cpp. "Syntax error" is here to catch this case.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #ifdef __STDC__
7075 # include <limits.h>
7076 #else
7077 # include <assert.h>
7078 #endif
7079 Syntax error
7080 _ACEOF
7081 if ac_fn_c_try_cpp "$LINENO"; then :
7082
7083 else
7084 # Broken: fails on valid input.
7085 continue
7086 fi
7087 rm -f conftest.err conftest.i conftest.$ac_ext
7088
7089 # OK, works on sane cases. Now check whether nonexistent headers
7090 # can be detected and how.
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #include <ac_nonexistent.h>
7094 _ACEOF
7095 if ac_fn_c_try_cpp "$LINENO"; then :
7096 # Broken: success on invalid input.
7097 continue
7098 else
7099 # Passes both tests.
7100 ac_preproc_ok=:
7101 break
7102 fi
7103 rm -f conftest.err conftest.i conftest.$ac_ext
7104
7105 done
7106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7107 rm -f conftest.i conftest.err conftest.$ac_ext
7108 if $ac_preproc_ok; then :
7109 break
7110 fi
7111
7112 done
7113 ac_cv_prog_CPP=$CPP
7114
7115 fi
7116 CPP=$ac_cv_prog_CPP
7117 else
7118 ac_cv_prog_CPP=$CPP
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7121 $as_echo "$CPP" >&6; }
7122 ac_preproc_ok=false
7123 for ac_c_preproc_warn_flag in '' yes
7124 do
7125 # Use a header file that comes with gcc, so configuring glibc
7126 # with a fresh cross-compiler works.
7127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7128 # <limits.h> exists even on freestanding compilers.
7129 # On the NeXT, cc -E runs the code through the compiler's parser,
7130 # not just through cpp. "Syntax error" is here to catch this case.
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #ifdef __STDC__
7134 # include <limits.h>
7135 #else
7136 # include <assert.h>
7137 #endif
7138 Syntax error
7139 _ACEOF
7140 if ac_fn_c_try_cpp "$LINENO"; then :
7141
7142 else
7143 # Broken: fails on valid input.
7144 continue
7145 fi
7146 rm -f conftest.err conftest.i conftest.$ac_ext
7147
7148 # OK, works on sane cases. Now check whether nonexistent headers
7149 # can be detected and how.
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <ac_nonexistent.h>
7153 _ACEOF
7154 if ac_fn_c_try_cpp "$LINENO"; then :
7155 # Broken: success on invalid input.
7156 continue
7157 else
7158 # Passes both tests.
7159 ac_preproc_ok=:
7160 break
7161 fi
7162 rm -f conftest.err conftest.i conftest.$ac_ext
7163
7164 done
7165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7166 rm -f conftest.i conftest.err conftest.$ac_ext
7167 if $ac_preproc_ok; then :
7168
7169 else
7170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7172 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7173 See \`config.log' for more details" "$LINENO" 5; }
7174 fi
7175
7176 ac_ext=c
7177 ac_cpp='$CPP $CPPFLAGS'
7178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7184 $as_echo_n "checking for ANSI C header files... " >&6; }
7185 if ${ac_cv_header_stdc+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 #include <stdlib.h>
7191 #include <stdarg.h>
7192 #include <string.h>
7193 #include <float.h>
7194
7195 int
7196 main ()
7197 {
7198
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 ac_cv_header_stdc=yes
7205 else
7206 ac_cv_header_stdc=no
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209
7210 if test $ac_cv_header_stdc = yes; then
7211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <string.h>
7215
7216 _ACEOF
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 $EGREP "memchr" >/dev/null 2>&1; then :
7219
7220 else
7221 ac_cv_header_stdc=no
7222 fi
7223 rm -f conftest*
7224
7225 fi
7226
7227 if test $ac_cv_header_stdc = yes; then
7228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <stdlib.h>
7232
7233 _ACEOF
7234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 $EGREP "free" >/dev/null 2>&1; then :
7236
7237 else
7238 ac_cv_header_stdc=no
7239 fi
7240 rm -f conftest*
7241
7242 fi
7243
7244 if test $ac_cv_header_stdc = yes; then
7245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7246 if test "$cross_compiling" = yes; then :
7247 :
7248 else
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <ctype.h>
7252 #include <stdlib.h>
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7256 #else
7257 # define ISLOWER(c) \
7258 (('a' <= (c) && (c) <= 'i') \
7259 || ('j' <= (c) && (c) <= 'r') \
7260 || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #endif
7263
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7265 int
7266 main ()
7267 {
7268 int i;
7269 for (i = 0; i < 256; i++)
7270 if (XOR (islower (i), ISLOWER (i))
7271 || toupper (i) != TOUPPER (i))
7272 return 2;
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_run "$LINENO"; then :
7277
7278 else
7279 ac_cv_header_stdc=no
7280 fi
7281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7282 conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284
7285 fi
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7288 $as_echo "$ac_cv_header_stdc" >&6; }
7289 if test $ac_cv_header_stdc = yes; then
7290
7291 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7292
7293 fi
7294
7295 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7297 inttypes.h stdint.h unistd.h
7298 do :
7299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7301 "
7302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7303 cat >>confdefs.h <<_ACEOF
7304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305 _ACEOF
7306
7307 fi
7308
7309 done
7310
7311
7312 for ac_header in dlfcn.h
7313 do :
7314 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7315 "
7316 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7317 cat >>confdefs.h <<_ACEOF
7318 #define HAVE_DLFCN_H 1
7319 _ACEOF
7320
7321 fi
7322
7323 done
7324
7325
7326
7327
7328
7329 # Set options
7330
7331
7332
7333 enable_dlopen=no
7334
7335
7336 enable_win32_dll=no
7337
7338
7339 # Check whether --enable-shared was given.
7340 if test "${enable_shared+set}" = set; then :
7341 enableval=$enable_shared; p=${PACKAGE-default}
7342 case $enableval in
7343 yes) enable_shared=yes ;;
7344 no) enable_shared=no ;;
7345 *)
7346 enable_shared=no
7347 # Look at the argument we got. We use all the common list separators.
7348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7349 for pkg in $enableval; do
7350 IFS="$lt_save_ifs"
7351 if test "X$pkg" = "X$p"; then
7352 enable_shared=yes
7353 fi
7354 done
7355 IFS="$lt_save_ifs"
7356 ;;
7357 esac
7358 else
7359 enable_shared=yes
7360 fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # Check whether --enable-static was given.
7371 if test "${enable_static+set}" = set; then :
7372 enableval=$enable_static; p=${PACKAGE-default}
7373 case $enableval in
7374 yes) enable_static=yes ;;
7375 no) enable_static=no ;;
7376 *)
7377 enable_static=no
7378 # Look at the argument we got. We use all the common list separators.
7379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7380 for pkg in $enableval; do
7381 IFS="$lt_save_ifs"
7382 if test "X$pkg" = "X$p"; then
7383 enable_static=yes
7384 fi
7385 done
7386 IFS="$lt_save_ifs"
7387 ;;
7388 esac
7389 else
7390 enable_static=yes
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 # Check whether --with-pic was given.
7403 if test "${with_pic+set}" = set; then :
7404 withval=$with_pic; lt_p=${PACKAGE-default}
7405 case $withval in
7406 yes|no) pic_mode=$withval ;;
7407 *)
7408 pic_mode=default
7409 # Look at the argument we got. We use all the common list separators.
7410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7411 for lt_pkg in $withval; do
7412 IFS="$lt_save_ifs"
7413 if test "X$lt_pkg" = "X$lt_p"; then
7414 pic_mode=yes
7415 fi
7416 done
7417 IFS="$lt_save_ifs"
7418 ;;
7419 esac
7420 else
7421 pic_mode=default
7422 fi
7423
7424
7425 test -z "$pic_mode" && pic_mode=default
7426
7427
7428
7429
7430
7431
7432
7433 # Check whether --enable-fast-install was given.
7434 if test "${enable_fast_install+set}" = set; then :
7435 enableval=$enable_fast_install; p=${PACKAGE-default}
7436 case $enableval in
7437 yes) enable_fast_install=yes ;;
7438 no) enable_fast_install=no ;;
7439 *)
7440 enable_fast_install=no
7441 # Look at the argument we got. We use all the common list separators.
7442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7443 for pkg in $enableval; do
7444 IFS="$lt_save_ifs"
7445 if test "X$pkg" = "X$p"; then
7446 enable_fast_install=yes
7447 fi
7448 done
7449 IFS="$lt_save_ifs"
7450 ;;
7451 esac
7452 else
7453 enable_fast_install=yes
7454 fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # This can be used to rebuild libtool when needed
7467 LIBTOOL_DEPS="$ltmain"
7468
7469 # Always use our own libtool.
7470 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 test -z "$LN_S" && LN_S="ln -s"
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 if test -n "${ZSH_VERSION+set}" ; then
7517 setopt NO_GLOB_SUBST
7518 fi
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7521 $as_echo_n "checking for objdir... " >&6; }
7522 if ${lt_cv_objdir+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 rm -f .libs 2>/dev/null
7526 mkdir .libs 2>/dev/null
7527 if test -d .libs; then
7528 lt_cv_objdir=.libs
7529 else
7530 # MS-DOS does not allow filenames that begin with a dot.
7531 lt_cv_objdir=_libs
7532 fi
7533 rmdir .libs 2>/dev/null
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7536 $as_echo "$lt_cv_objdir" >&6; }
7537 objdir=$lt_cv_objdir
7538
7539
7540
7541
7542
7543 cat >>confdefs.h <<_ACEOF
7544 #define LT_OBJDIR "$lt_cv_objdir/"
7545 _ACEOF
7546
7547
7548
7549
7550 case $host_os in
7551 aix3*)
7552 # AIX sometimes has problems with the GCC collect2 program. For some
7553 # reason, if we set the COLLECT_NAMES environment variable, the problems
7554 # vanish in a puff of smoke.
7555 if test "X${COLLECT_NAMES+set}" != Xset; then
7556 COLLECT_NAMES=
7557 export COLLECT_NAMES
7558 fi
7559 ;;
7560 esac
7561
7562 # Global variables:
7563 ofile=libtool
7564 can_build_shared=yes
7565
7566 # All known linkers require a `.a' archive for static linking (except MSVC,
7567 # which needs '.lib').
7568 libext=a
7569
7570 with_gnu_ld="$lt_cv_prog_gnu_ld"
7571
7572 old_CC="$CC"
7573 old_CFLAGS="$CFLAGS"
7574
7575 # Set sane defaults for various variables
7576 test -z "$CC" && CC=cc
7577 test -z "$LTCC" && LTCC=$CC
7578 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7579 test -z "$LD" && LD=ld
7580 test -z "$ac_objext" && ac_objext=o
7581
7582 for cc_temp in $compiler""; do
7583 case $cc_temp in
7584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7586 \-*) ;;
7587 *) break;;
7588 esac
7589 done
7590 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7591
7592
7593 # Only perform the check for file, if the check method requires it
7594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7595 case $deplibs_check_method in
7596 file_magic*)
7597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7599 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7600 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 case $MAGIC_CMD in
7604 [\\/*] | ?:[\\/]*)
7605 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7606 ;;
7607 *)
7608 lt_save_MAGIC_CMD="$MAGIC_CMD"
7609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7610 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7611 for ac_dir in $ac_dummy; do
7612 IFS="$lt_save_ifs"
7613 test -z "$ac_dir" && ac_dir=.
7614 if test -f $ac_dir/${ac_tool_prefix}file; then
7615 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7616 if test -n "$file_magic_test_file"; then
7617 case $deplibs_check_method in
7618 "file_magic "*)
7619 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7622 $EGREP "$file_magic_regex" > /dev/null; then
7623 :
7624 else
7625 cat <<_LT_EOF 1>&2
7626
7627 *** Warning: the command libtool uses to detect shared libraries,
7628 *** $file_magic_cmd, produces output that libtool cannot recognize.
7629 *** The result is that libtool may fail to recognize shared libraries
7630 *** as such. This will affect the creation of libtool libraries that
7631 *** depend on shared libraries, but programs linked with such libtool
7632 *** libraries will work regardless of this problem. Nevertheless, you
7633 *** may want to report the problem to your system manager and/or to
7634 *** bug-libtool@gnu.org
7635
7636 _LT_EOF
7637 fi ;;
7638 esac
7639 fi
7640 break
7641 fi
7642 done
7643 IFS="$lt_save_ifs"
7644 MAGIC_CMD="$lt_save_MAGIC_CMD"
7645 ;;
7646 esac
7647 fi
7648
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if test -n "$MAGIC_CMD"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7652 $as_echo "$MAGIC_CMD" >&6; }
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658
7659
7660
7661
7662 if test -z "$lt_cv_path_MAGIC_CMD"; then
7663 if test -n "$ac_tool_prefix"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7665 $as_echo_n "checking for file... " >&6; }
7666 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 case $MAGIC_CMD in
7670 [\\/*] | ?:[\\/]*)
7671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7672 ;;
7673 *)
7674 lt_save_MAGIC_CMD="$MAGIC_CMD"
7675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7677 for ac_dir in $ac_dummy; do
7678 IFS="$lt_save_ifs"
7679 test -z "$ac_dir" && ac_dir=.
7680 if test -f $ac_dir/file; then
7681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7682 if test -n "$file_magic_test_file"; then
7683 case $deplibs_check_method in
7684 "file_magic "*)
7685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7688 $EGREP "$file_magic_regex" > /dev/null; then
7689 :
7690 else
7691 cat <<_LT_EOF 1>&2
7692
7693 *** Warning: the command libtool uses to detect shared libraries,
7694 *** $file_magic_cmd, produces output that libtool cannot recognize.
7695 *** The result is that libtool may fail to recognize shared libraries
7696 *** as such. This will affect the creation of libtool libraries that
7697 *** depend on shared libraries, but programs linked with such libtool
7698 *** libraries will work regardless of this problem. Nevertheless, you
7699 *** may want to report the problem to your system manager and/or to
7700 *** bug-libtool@gnu.org
7701
7702 _LT_EOF
7703 fi ;;
7704 esac
7705 fi
7706 break
7707 fi
7708 done
7709 IFS="$lt_save_ifs"
7710 MAGIC_CMD="$lt_save_MAGIC_CMD"
7711 ;;
7712 esac
7713 fi
7714
7715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716 if test -n "$MAGIC_CMD"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7718 $as_echo "$MAGIC_CMD" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 else
7726 MAGIC_CMD=:
7727 fi
7728 fi
7729
7730 fi
7731 ;;
7732 esac
7733
7734 # Use C for the default configuration in the libtool script
7735
7736 lt_save_CC="$CC"
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743
7744 # Source file extension for C test sources.
7745 ac_ext=c
7746
7747 # Object file extension for compiled C test sources.
7748 objext=o
7749 objext=$objext
7750
7751 # Code to be used in simple compile tests
7752 lt_simple_compile_test_code="int some_variable = 0;"
7753
7754 # Code to be used in simple link tests
7755 lt_simple_link_test_code='int main(){return(0);}'
7756
7757
7758
7759
7760
7761
7762
7763 # If no C compiler was specified, use CC.
7764 LTCC=${LTCC-"$CC"}
7765
7766 # If no C compiler flags were specified, use CFLAGS.
7767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7768
7769 # Allow CC to be a program name with arguments.
7770 compiler=$CC
7771
7772 # Save the default compiler, since it gets overwritten when the other
7773 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7774 compiler_DEFAULT=$CC
7775
7776 # save warnings/boilerplate of simple test code
7777 ac_outfile=conftest.$ac_objext
7778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7780 _lt_compiler_boilerplate=`cat conftest.err`
7781 $RM conftest*
7782
7783 ac_outfile=conftest.$ac_objext
7784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7786 _lt_linker_boilerplate=`cat conftest.err`
7787 $RM -r conftest*
7788
7789
7790 if test -n "$compiler"; then
7791
7792 lt_prog_compiler_no_builtin_flag=
7793
7794 if test "$GCC" = yes; then
7795 case $cc_basename in
7796 nvcc*)
7797 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7798 *)
7799 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7800 esac
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7803 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7804 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 lt_cv_prog_compiler_rtti_exceptions=no
7808 ac_outfile=conftest.$ac_objext
7809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810 lt_compiler_flag="-fno-rtti -fno-exceptions"
7811 # Insert the option either (1) after the last *FLAGS variable, or
7812 # (2) before a word containing "conftest.", or (3) at the end.
7813 # Note that $ac_compile itself does not contain backslashes and begins
7814 # with a dollar sign (not a hyphen), so the echo should work correctly.
7815 # The option is referenced via a variable to avoid confusing sed.
7816 lt_compile=`echo "$ac_compile" | $SED \
7817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 -e 's:$: $lt_compiler_flag:'`
7820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7821 (eval "$lt_compile" 2>conftest.err)
7822 ac_status=$?
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 if (exit $ac_status) && test -s "$ac_outfile"; then
7826 # The compiler can only warn and ignore the option if not recognized
7827 # So say no if there are warnings other than the usual output.
7828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7831 lt_cv_prog_compiler_rtti_exceptions=yes
7832 fi
7833 fi
7834 $RM conftest*
7835
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7838 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7839
7840 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7842 else
7843 :
7844 fi
7845
7846 fi
7847
7848
7849
7850
7851
7852
7853 lt_prog_compiler_wl=
7854 lt_prog_compiler_pic=
7855 lt_prog_compiler_static=
7856
7857
7858 if test "$GCC" = yes; then
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_static='-static'
7861
7862 case $host_os in
7863 aix*)
7864 # All AIX code is PIC.
7865 if test "$host_cpu" = ia64; then
7866 # AIX 5 now supports IA64 processor
7867 lt_prog_compiler_static='-Bstatic'
7868 fi
7869 ;;
7870
7871 amigaos*)
7872 case $host_cpu in
7873 powerpc)
7874 # see comment about AmigaOS4 .so support
7875 lt_prog_compiler_pic='-fPIC'
7876 ;;
7877 m68k)
7878 # FIXME: we need at least 68020 code to build shared libraries, but
7879 # adding the `-m68020' flag to GCC prevents building anything better,
7880 # like `-m68040'.
7881 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7882 ;;
7883 esac
7884 ;;
7885
7886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7887 # PIC is the default for these OSes.
7888 ;;
7889
7890 mingw* | cygwin* | pw32* | os2* | cegcc*)
7891 # This hack is so that the source file can tell whether it is being
7892 # built for inclusion in a dll (and should export symbols for example).
7893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7894 # (--disable-auto-import) libraries
7895 lt_prog_compiler_pic='-DDLL_EXPORT'
7896 ;;
7897
7898 darwin* | rhapsody*)
7899 # PIC is the default on this platform
7900 # Common symbols not allowed in MH_DYLIB files
7901 lt_prog_compiler_pic='-fno-common'
7902 ;;
7903
7904 haiku*)
7905 # PIC is the default for Haiku.
7906 # The "-static" flag exists, but is broken.
7907 lt_prog_compiler_static=
7908 ;;
7909
7910 hpux*)
7911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7913 # sets the default TLS model and affects inlining.
7914 case $host_cpu in
7915 hppa*64*)
7916 # +Z the default
7917 ;;
7918 *)
7919 lt_prog_compiler_pic='-fPIC'
7920 ;;
7921 esac
7922 ;;
7923
7924 interix[3-9]*)
7925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7926 # Instead, we relocate shared libraries at runtime.
7927 ;;
7928
7929 msdosdjgpp*)
7930 # Just because we use GCC doesn't mean we suddenly get shared libraries
7931 # on systems that don't support them.
7932 lt_prog_compiler_can_build_shared=no
7933 enable_shared=no
7934 ;;
7935
7936 *nto* | *qnx*)
7937 # QNX uses GNU C++, but need to define -shared option too, otherwise
7938 # it will coredump.
7939 lt_prog_compiler_pic='-fPIC -shared'
7940 ;;
7941
7942 sysv4*MP*)
7943 if test -d /usr/nec; then
7944 lt_prog_compiler_pic=-Kconform_pic
7945 fi
7946 ;;
7947
7948 *)
7949 lt_prog_compiler_pic='-fPIC'
7950 ;;
7951 esac
7952
7953 case $cc_basename in
7954 nvcc*) # Cuda Compiler Driver 2.2
7955 lt_prog_compiler_wl='-Xlinker '
7956 if test -n "$lt_prog_compiler_pic"; then
7957 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7958 fi
7959 ;;
7960 esac
7961 else
7962 # PORTME Check for flag to pass linker flags through the system compiler.
7963 case $host_os in
7964 aix*)
7965 lt_prog_compiler_wl='-Wl,'
7966 if test "$host_cpu" = ia64; then
7967 # AIX 5 now supports IA64 processor
7968 lt_prog_compiler_static='-Bstatic'
7969 else
7970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7971 fi
7972 ;;
7973
7974 mingw* | cygwin* | pw32* | os2* | cegcc*)
7975 # This hack is so that the source file can tell whether it is being
7976 # built for inclusion in a dll (and should export symbols for example).
7977 lt_prog_compiler_pic='-DDLL_EXPORT'
7978 ;;
7979
7980 hpux9* | hpux10* | hpux11*)
7981 lt_prog_compiler_wl='-Wl,'
7982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7983 # not for PA HP-UX.
7984 case $host_cpu in
7985 hppa*64*|ia64*)
7986 # +Z the default
7987 ;;
7988 *)
7989 lt_prog_compiler_pic='+Z'
7990 ;;
7991 esac
7992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7993 lt_prog_compiler_static='${wl}-a ${wl}archive'
7994 ;;
7995
7996 irix5* | irix6* | nonstopux*)
7997 lt_prog_compiler_wl='-Wl,'
7998 # PIC (with -KPIC) is the default.
7999 lt_prog_compiler_static='-non_shared'
8000 ;;
8001
8002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8003 case $cc_basename in
8004 # old Intel for x86_64 which still supported -KPIC.
8005 ecc*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-static'
8009 ;;
8010 # icc used to be incompatible with GCC.
8011 # ICC 10 doesn't accept -KPIC any more.
8012 icc* | ifort*)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='-fPIC'
8015 lt_prog_compiler_static='-static'
8016 ;;
8017 # Lahey Fortran 8.1.
8018 lf95*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='--shared'
8021 lt_prog_compiler_static='--static'
8022 ;;
8023 nagfor*)
8024 # NAG Fortran compiler
8025 lt_prog_compiler_wl='-Wl,-Wl,,'
8026 lt_prog_compiler_pic='-PIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8030 # Portland Group compilers (*not* the Pentium gcc compiler,
8031 # which looks to be a dead project)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-fpic'
8034 lt_prog_compiler_static='-Bstatic'
8035 ;;
8036 ccc*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # All Alpha code is PIC.
8039 lt_prog_compiler_static='-non_shared'
8040 ;;
8041 xl* | bgxl* | bgf* | mpixl*)
8042 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='-qpic'
8045 lt_prog_compiler_static='-qstaticlink'
8046 ;;
8047 *)
8048 case `$CC -V 2>&1 | sed 5q` in
8049 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-Bstatic'
8053 lt_prog_compiler_wl=''
8054 ;;
8055 *Sun\ F* | *Sun*Fortran*)
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 lt_prog_compiler_wl='-Qoption ld '
8059 ;;
8060 *Sun\ C*)
8061 # Sun C 5.9
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 lt_prog_compiler_wl='-Wl,'
8065 ;;
8066 *Intel*\ [CF]*Compiler*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-fPIC'
8069 lt_prog_compiler_static='-static'
8070 ;;
8071 *Portland\ Group*)
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-fpic'
8074 lt_prog_compiler_static='-Bstatic'
8075 ;;
8076 esac
8077 ;;
8078 esac
8079 ;;
8080
8081 newsos6)
8082 lt_prog_compiler_pic='-KPIC'
8083 lt_prog_compiler_static='-Bstatic'
8084 ;;
8085
8086 *nto* | *qnx*)
8087 # QNX uses GNU C++, but need to define -shared option too, otherwise
8088 # it will coredump.
8089 lt_prog_compiler_pic='-fPIC -shared'
8090 ;;
8091
8092 osf3* | osf4* | osf5*)
8093 lt_prog_compiler_wl='-Wl,'
8094 # All OSF/1 code is PIC.
8095 lt_prog_compiler_static='-non_shared'
8096 ;;
8097
8098 rdos*)
8099 lt_prog_compiler_static='-non_shared'
8100 ;;
8101
8102 solaris*)
8103 lt_prog_compiler_pic='-KPIC'
8104 lt_prog_compiler_static='-Bstatic'
8105 case $cc_basename in
8106 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8107 lt_prog_compiler_wl='-Qoption ld ';;
8108 *)
8109 lt_prog_compiler_wl='-Wl,';;
8110 esac
8111 ;;
8112
8113 sunos4*)
8114 lt_prog_compiler_wl='-Qoption ld '
8115 lt_prog_compiler_pic='-PIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 ;;
8118
8119 sysv4 | sysv4.2uw2* | sysv4.3*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
8123 ;;
8124
8125 sysv4*MP*)
8126 if test -d /usr/nec ;then
8127 lt_prog_compiler_pic='-Kconform_pic'
8128 lt_prog_compiler_static='-Bstatic'
8129 fi
8130 ;;
8131
8132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-Bstatic'
8136 ;;
8137
8138 unicos*)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_can_build_shared=no
8141 ;;
8142
8143 uts4*)
8144 lt_prog_compiler_pic='-pic'
8145 lt_prog_compiler_static='-Bstatic'
8146 ;;
8147
8148 *)
8149 lt_prog_compiler_can_build_shared=no
8150 ;;
8151 esac
8152 fi
8153
8154 case $host_os in
8155 # For platforms which do not support PIC, -DPIC is meaningless:
8156 *djgpp*)
8157 lt_prog_compiler_pic=
8158 ;;
8159 *)
8160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8161 ;;
8162 esac
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8166 if ${lt_cv_prog_compiler_pic+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8172 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8173 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8174
8175 #
8176 # Check to make sure the PIC flag actually works.
8177 #
8178 if test -n "$lt_prog_compiler_pic"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 lt_cv_prog_compiler_pic_works=no
8185 ac_outfile=conftest.$ac_objext
8186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 # The option is referenced via a variable to avoid confusing sed.
8193 lt_compile=`echo "$ac_compile" | $SED \
8194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196 -e 's:$: $lt_compiler_flag:'`
8197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8198 (eval "$lt_compile" 2>conftest.err)
8199 ac_status=$?
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 if (exit $ac_status) && test -s "$ac_outfile"; then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings other than the usual output.
8205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_pic_works=yes
8209 fi
8210 fi
8211 $RM conftest*
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218 case $lt_prog_compiler_pic in
8219 "" | " "*) ;;
8220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8221 esac
8222 else
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_can_build_shared=no
8225 fi
8226
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 #
8240 # Check to make sure the static flag actually works.
8241 #
8242 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8244 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8245 if ${lt_cv_prog_compiler_static_works+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 lt_cv_prog_compiler_static_works=no
8249 save_LDFLAGS="$LDFLAGS"
8250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8253 # The linker can only warn and ignore the option if not recognized
8254 # So say no if there are warnings
8255 if test -s conftest.err; then
8256 # Append any errors to the config.log.
8257 cat conftest.err 1>&5
8258 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8260 if diff conftest.exp conftest.er2 >/dev/null; then
8261 lt_cv_prog_compiler_static_works=yes
8262 fi
8263 else
8264 lt_cv_prog_compiler_static_works=yes
8265 fi
8266 fi
8267 $RM -r conftest*
8268 LDFLAGS="$save_LDFLAGS"
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8272 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8273
8274 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8275 :
8276 else
8277 lt_prog_compiler_static=
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8287 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8288 if ${lt_cv_prog_compiler_c_o+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 lt_cv_prog_compiler_c_o=no
8292 $RM -r conftest 2>/dev/null
8293 mkdir conftest
8294 cd conftest
8295 mkdir out
8296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8297
8298 lt_compiler_flag="-o out/conftest2.$ac_objext"
8299 # Insert the option either (1) after the last *FLAGS variable, or
8300 # (2) before a word containing "conftest.", or (3) at the end.
8301 # Note that $ac_compile itself does not contain backslashes and begins
8302 # with a dollar sign (not a hyphen), so the echo should work correctly.
8303 lt_compile=`echo "$ac_compile" | $SED \
8304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8306 -e 's:$: $lt_compiler_flag:'`
8307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8308 (eval "$lt_compile" 2>out/conftest.err)
8309 ac_status=$?
8310 cat out/conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8313 then
8314 # The compiler can only warn and ignore the option if not recognized
8315 # So say no if there are warnings
8316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_c_o=yes
8320 fi
8321 fi
8322 chmod u+w . 2>&5
8323 $RM conftest*
8324 # SGI C++ compiler will create directory out/ii_files/ for
8325 # template instantiation
8326 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8327 $RM out/* && rmdir out
8328 cd ..
8329 $RM -r conftest
8330 $RM conftest*
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8334 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8335
8336
8337
8338
8339
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8343 if ${lt_cv_prog_compiler_c_o+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 lt_cv_prog_compiler_c_o=no
8347 $RM -r conftest 2>/dev/null
8348 mkdir conftest
8349 cd conftest
8350 mkdir out
8351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352
8353 lt_compiler_flag="-o out/conftest2.$ac_objext"
8354 # Insert the option either (1) after the last *FLAGS variable, or
8355 # (2) before a word containing "conftest.", or (3) at the end.
8356 # Note that $ac_compile itself does not contain backslashes and begins
8357 # with a dollar sign (not a hyphen), so the echo should work correctly.
8358 lt_compile=`echo "$ac_compile" | $SED \
8359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361 -e 's:$: $lt_compiler_flag:'`
8362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8363 (eval "$lt_compile" 2>out/conftest.err)
8364 ac_status=$?
8365 cat out/conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8368 then
8369 # The compiler can only warn and ignore the option if not recognized
8370 # So say no if there are warnings
8371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8374 lt_cv_prog_compiler_c_o=yes
8375 fi
8376 fi
8377 chmod u+w . 2>&5
8378 $RM conftest*
8379 # SGI C++ compiler will create directory out/ii_files/ for
8380 # template instantiation
8381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8382 $RM out/* && rmdir out
8383 cd ..
8384 $RM -r conftest
8385 $RM conftest*
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8390
8391
8392
8393
8394 hard_links="nottested"
8395 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8396 # do not overwrite the value of need_locks provided by the user
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8398 $as_echo_n "checking if we can lock with hard links... " >&6; }
8399 hard_links=yes
8400 $RM conftest*
8401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8402 touch conftest.a
8403 ln conftest.a conftest.b 2>&5 || hard_links=no
8404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8406 $as_echo "$hard_links" >&6; }
8407 if test "$hard_links" = no; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8410 need_locks=warn
8411 fi
8412 else
8413 need_locks=no
8414 fi
8415
8416
8417
8418
8419
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8423
8424 runpath_var=
8425 allow_undefined_flag=
8426 always_export_symbols=no
8427 archive_cmds=
8428 archive_expsym_cmds=
8429 compiler_needs_object=no
8430 enable_shared_with_static_runtimes=no
8431 export_dynamic_flag_spec=
8432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8433 hardcode_automatic=no
8434 hardcode_direct=no
8435 hardcode_direct_absolute=no
8436 hardcode_libdir_flag_spec=
8437 hardcode_libdir_separator=
8438 hardcode_minus_L=no
8439 hardcode_shlibpath_var=unsupported
8440 inherit_rpath=no
8441 link_all_deplibs=unknown
8442 module_cmds=
8443 module_expsym_cmds=
8444 old_archive_from_new_cmds=
8445 old_archive_from_expsyms_cmds=
8446 thread_safe_flag_spec=
8447 whole_archive_flag_spec=
8448 # include_expsyms should be a list of space-separated symbols to be *always*
8449 # included in the symbol list
8450 include_expsyms=
8451 # exclude_expsyms can be an extended regexp of symbols to exclude
8452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8454 # as well as any symbol that contains `d'.
8455 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8457 # platforms (ab)use it in PIC code, but their linkers get confused if
8458 # the symbol is explicitly referenced. Since portable code cannot
8459 # rely on this symbol name, it's probably fine to never include it in
8460 # preloaded symbol tables.
8461 # Exclude shared library initialization/finalization symbols.
8462 extract_expsyms_cmds=
8463
8464 case $host_os in
8465 cygwin* | mingw* | pw32* | cegcc*)
8466 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8467 # When not using gcc, we currently assume that we are using
8468 # Microsoft Visual C++.
8469 if test "$GCC" != yes; then
8470 with_gnu_ld=no
8471 fi
8472 ;;
8473 interix*)
8474 # we just hope/assume this is gcc and not c89 (= MSVC++)
8475 with_gnu_ld=yes
8476 ;;
8477 openbsd*)
8478 with_gnu_ld=no
8479 ;;
8480 linux* | k*bsd*-gnu | gnu*)
8481 link_all_deplibs=no
8482 ;;
8483 esac
8484
8485 ld_shlibs=yes
8486
8487 # On some targets, GNU ld is compatible enough with the native linker
8488 # that we're better off using the native interface for both.
8489 lt_use_gnu_ld_interface=no
8490 if test "$with_gnu_ld" = yes; then
8491 case $host_os in
8492 aix*)
8493 # The AIX port of GNU ld has always aspired to compatibility
8494 # with the native linker. However, as the warning in the GNU ld
8495 # block says, versions before 2.19.5* couldn't really create working
8496 # shared libraries, regardless of the interface used.
8497 case `$LD -v 2>&1` in
8498 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8499 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8500 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8501 *)
8502 lt_use_gnu_ld_interface=yes
8503 ;;
8504 esac
8505 ;;
8506 *)
8507 lt_use_gnu_ld_interface=yes
8508 ;;
8509 esac
8510 fi
8511
8512 if test "$lt_use_gnu_ld_interface" = yes; then
8513 # If archive_cmds runs LD, not CC, wlarc should be empty
8514 wlarc='${wl}'
8515
8516 # Set some defaults for GNU ld with shared library support. These
8517 # are reset later if shared libraries are not supported. Putting them
8518 # here allows them to be overridden if necessary.
8519 runpath_var=LD_RUN_PATH
8520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8521 export_dynamic_flag_spec='${wl}--export-dynamic'
8522 # ancient GNU ld didn't support --whole-archive et. al.
8523 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8524 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8525 else
8526 whole_archive_flag_spec=
8527 fi
8528 supports_anon_versioning=no
8529 case `$LD -v 2>&1` in
8530 *GNU\ gold*) supports_anon_versioning=yes ;;
8531 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8532 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8533 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8534 *\ 2.11.*) ;; # other 2.11 versions
8535 *) supports_anon_versioning=yes ;;
8536 esac
8537
8538 # See if GNU ld supports shared libraries.
8539 case $host_os in
8540 aix[3-9]*)
8541 # On AIX/PPC, the GNU linker is very broken
8542 if test "$host_cpu" != ia64; then
8543 ld_shlibs=no
8544 cat <<_LT_EOF 1>&2
8545
8546 *** Warning: the GNU linker, at least up to release 2.19, is reported
8547 *** to be unable to reliably create shared libraries on AIX.
8548 *** Therefore, libtool is disabling shared libraries support. If you
8549 *** really care for shared libraries, you may want to install binutils
8550 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8551 *** You will then need to restart the configuration process.
8552
8553 _LT_EOF
8554 fi
8555 ;;
8556
8557 amigaos*)
8558 case $host_cpu in
8559 powerpc)
8560 # see comment about AmigaOS4 .so support
8561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562 archive_expsym_cmds=''
8563 ;;
8564 m68k)
8565 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)'
8566 hardcode_libdir_flag_spec='-L$libdir'
8567 hardcode_minus_L=yes
8568 ;;
8569 esac
8570 ;;
8571
8572 beos*)
8573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8574 allow_undefined_flag=unsupported
8575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8576 # support --undefined. This deserves some investigation. FIXME
8577 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578 else
8579 ld_shlibs=no
8580 fi
8581 ;;
8582
8583 cygwin* | mingw* | pw32* | cegcc*)
8584 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8585 # as there is no search path for DLLs.
8586 hardcode_libdir_flag_spec='-L$libdir'
8587 export_dynamic_flag_spec='${wl}--export-all-symbols'
8588 allow_undefined_flag=unsupported
8589 always_export_symbols=no
8590 enable_shared_with_static_runtimes=yes
8591 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'
8592 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8593
8594 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8596 # If the export-symbols file already is a .def file (1st line
8597 # is EXPORTS), use it as is; otherwise, prepend...
8598 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8599 cp $export_symbols $output_objdir/$soname.def;
8600 else
8601 echo EXPORTS > $output_objdir/$soname.def;
8602 cat $export_symbols >> $output_objdir/$soname.def;
8603 fi~
8604 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605 else
8606 ld_shlibs=no
8607 fi
8608 ;;
8609
8610 haiku*)
8611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612 link_all_deplibs=yes
8613 ;;
8614
8615 interix[3-9]*)
8616 hardcode_direct=no
8617 hardcode_shlibpath_var=no
8618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8619 export_dynamic_flag_spec='${wl}-E'
8620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8621 # Instead, shared libraries are loaded at an image base (0x10000000 by
8622 # default) and relocated if they conflict, which is a slow very memory
8623 # consuming and fragmenting process. To avoid this, we pick a random,
8624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8627 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'
8628 ;;
8629
8630 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8631 tmp_diet=no
8632 if test "$host_os" = linux-dietlibc; then
8633 case $cc_basename in
8634 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8635 esac
8636 fi
8637 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8638 && test "$tmp_diet" = no
8639 then
8640 tmp_addflag=' $pic_flag'
8641 tmp_sharedflag='-shared'
8642 case $cc_basename,$host_cpu in
8643 pgcc*) # Portland Group C compiler
8644 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'
8645 tmp_addflag=' $pic_flag'
8646 ;;
8647 pgf77* | pgf90* | pgf95* | pgfortran*)
8648 # Portland Group f77 and f90 compilers
8649 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'
8650 tmp_addflag=' $pic_flag -Mnomain' ;;
8651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8652 tmp_addflag=' -i_dynamic' ;;
8653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8654 tmp_addflag=' -i_dynamic -nofor_main' ;;
8655 ifc* | ifort*) # Intel Fortran compiler
8656 tmp_addflag=' -nofor_main' ;;
8657 lf95*) # Lahey Fortran 8.1
8658 whole_archive_flag_spec=
8659 tmp_sharedflag='--shared' ;;
8660 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8661 tmp_sharedflag='-qmkshrobj'
8662 tmp_addflag= ;;
8663 nvcc*) # Cuda Compiler Driver 2.2
8664 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'
8665 compiler_needs_object=yes
8666 ;;
8667 esac
8668 case `$CC -V 2>&1 | sed 5q` in
8669 *Sun\ C*) # Sun C 5.9
8670 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'
8671 compiler_needs_object=yes
8672 tmp_sharedflag='-G' ;;
8673 *Sun\ F*) # Sun Fortran 8.3
8674 tmp_sharedflag='-G' ;;
8675 esac
8676 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677
8678 if test "x$supports_anon_versioning" = xyes; then
8679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8681 echo "local: *; };" >> $output_objdir/$libname.ver~
8682 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8683 fi
8684
8685 case $cc_basename in
8686 xlf* | bgf* | bgxlf* | mpixlf*)
8687 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8688 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8691 if test "x$supports_anon_versioning" = xyes; then
8692 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8694 echo "local: *; };" >> $output_objdir/$libname.ver~
8695 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8696 fi
8697 ;;
8698 esac
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703
8704 netbsd* | netbsdelf*-gnu)
8705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8707 wlarc=
8708 else
8709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711 fi
8712 ;;
8713
8714 solaris*)
8715 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8716 ld_shlibs=no
8717 cat <<_LT_EOF 1>&2
8718
8719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720 *** create shared libraries on Solaris systems. Therefore, libtool
8721 *** is disabling shared libraries support. We urge you to upgrade GNU
8722 *** binutils to release 2.9.1 or newer. Another option is to modify
8723 *** your PATH or compiler configuration so that the native linker is
8724 *** used, and then restart.
8725
8726 _LT_EOF
8727 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8728 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 else
8731 ld_shlibs=no
8732 fi
8733 ;;
8734
8735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736 case `$LD -v 2>&1` in
8737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8738 ld_shlibs=no
8739 cat <<_LT_EOF 1>&2
8740
8741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742 *** reliably create shared libraries on SCO systems. Therefore, libtool
8743 *** is disabling shared libraries support. We urge you to upgrade GNU
8744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8747
8748 _LT_EOF
8749 ;;
8750 *)
8751 # For security reasons, it is highly recommended that you always
8752 # use absolute paths for naming shared libraries, and exclude the
8753 # DT_RUNPATH tag from executables and libraries. But doing so
8754 # requires that you compile everything twice, which is a pain.
8755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759 else
8760 ld_shlibs=no
8761 fi
8762 ;;
8763 esac
8764 ;;
8765
8766 sunos4*)
8767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8768 wlarc=
8769 hardcode_direct=yes
8770 hardcode_shlibpath_var=no
8771 ;;
8772
8773 *)
8774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777 else
8778 ld_shlibs=no
8779 fi
8780 ;;
8781 esac
8782
8783 if test "$ld_shlibs" = no; then
8784 runpath_var=
8785 hardcode_libdir_flag_spec=
8786 export_dynamic_flag_spec=
8787 whole_archive_flag_spec=
8788 fi
8789 else
8790 # PORTME fill in a description of your system's linker (not GNU ld)
8791 case $host_os in
8792 aix3*)
8793 allow_undefined_flag=unsupported
8794 always_export_symbols=yes
8795 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'
8796 # Note: this linker hardcodes the directories in LIBPATH if there
8797 # are no directories specified by -L.
8798 hardcode_minus_L=yes
8799 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8800 # Neither direct hardcoding nor static linking is supported with a
8801 # broken collect2.
8802 hardcode_direct=unsupported
8803 fi
8804 ;;
8805
8806 aix[4-9]*)
8807 if test "$host_cpu" = ia64; then
8808 # On IA64, the linker does run time linking by default, so we don't
8809 # have to do anything special.
8810 aix_use_runtimelinking=no
8811 exp_sym_flag='-Bexport'
8812 no_entry_flag=""
8813 else
8814 # If we're using GNU nm, then we don't want the "-C" option.
8815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8816 # Also, AIX nm treats weak defined symbols like other global
8817 # defined symbols, whereas GNU nm marks them as "W".
8818 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8819 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'
8820 else
8821 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'
8822 fi
8823 aix_use_runtimelinking=no
8824
8825 # Test if we are trying to use run time linking or normal
8826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8827 # need to do runtime linking.
8828 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8829 for ld_flag in $LDFLAGS; do
8830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8831 aix_use_runtimelinking=yes
8832 break
8833 fi
8834 done
8835 ;;
8836 esac
8837
8838 exp_sym_flag='-bexport'
8839 no_entry_flag='-bnoentry'
8840 fi
8841
8842 # When large executables or shared objects are built, AIX ld can
8843 # have problems creating the table of contents. If linking a library
8844 # or program results in "error TOC overflow" add -mminimal-toc to
8845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8847
8848 archive_cmds=''
8849 hardcode_direct=yes
8850 hardcode_direct_absolute=yes
8851 hardcode_libdir_separator=':'
8852 link_all_deplibs=yes
8853 file_list_spec='${wl}-f,'
8854
8855 if test "$GCC" = yes; then
8856 case $host_os in aix4.[012]|aix4.[012].*)
8857 # We only want to do this on AIX 4.2 and lower, the check
8858 # below for broken collect2 doesn't work under 4.3+
8859 collect2name=`${CC} -print-prog-name=collect2`
8860 if test -f "$collect2name" &&
8861 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8862 then
8863 # We have reworked collect2
8864 :
8865 else
8866 # We have old collect2
8867 hardcode_direct=unsupported
8868 # It fails to find uninstalled libraries when the uninstalled
8869 # path is not listed in the libpath. Setting hardcode_minus_L
8870 # to unsupported forces relinking
8871 hardcode_minus_L=yes
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_libdir_separator=
8874 fi
8875 ;;
8876 esac
8877 shared_flag='-shared'
8878 if test "$aix_use_runtimelinking" = yes; then
8879 shared_flag="$shared_flag "'${wl}-G'
8880 fi
8881 link_all_deplibs=no
8882 else
8883 # not using gcc
8884 if test "$host_cpu" = ia64; then
8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8886 # chokes on -Wl,-G. The following line is correct:
8887 shared_flag='-G'
8888 else
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag='${wl}-G'
8891 else
8892 shared_flag='${wl}-bM:SRE'
8893 fi
8894 fi
8895 fi
8896
8897 export_dynamic_flag_spec='${wl}-bexpall'
8898 # It seems that -bexpall does not export symbols beginning with
8899 # underscore (_), so it is better to generate a list of symbols to export.
8900 always_export_symbols=yes
8901 if test "$aix_use_runtimelinking" = yes; then
8902 # Warning - without using the other runtime loading flags (-brtl),
8903 # -berok will link without error, but may produce a broken library.
8904 allow_undefined_flag='-berok'
8905 # Determine the default libpath from the value encoded in an
8906 # empty executable.
8907 if test "${lt_cv_aix_libpath+set}" = set; then
8908 aix_libpath=$lt_cv_aix_libpath
8909 else
8910 if ${lt_cv_aix_libpath_+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915
8916 int
8917 main ()
8918 {
8919
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925
8926 lt_aix_libpath_sed='
8927 /Import File Strings/,/^$/ {
8928 /^0/ {
8929 s/^0 *\([^ ]*\) *$/\1/
8930 p
8931 }
8932 }'
8933 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934 # Check for a 64-bit object if we didn't find anything.
8935 if test -z "$lt_cv_aix_libpath_"; then
8936 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 fi
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 if test -z "$lt_cv_aix_libpath_"; then
8942 lt_cv_aix_libpath_="/usr/lib:/lib"
8943 fi
8944
8945 fi
8946
8947 aix_libpath=$lt_cv_aix_libpath_
8948 fi
8949
8950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951 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"
8952 else
8953 if test "$host_cpu" = ia64; then
8954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955 allow_undefined_flag="-z nodefs"
8956 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"
8957 else
8958 # Determine the default libpath from the value encoded in an
8959 # empty executable.
8960 if test "${lt_cv_aix_libpath+set}" = set; then
8961 aix_libpath=$lt_cv_aix_libpath
8962 else
8963 if ${lt_cv_aix_libpath_+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968
8969 int
8970 main ()
8971 {
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978
8979 lt_aix_libpath_sed='
8980 /Import File Strings/,/^$/ {
8981 /^0/ {
8982 s/^0 *\([^ ]*\) *$/\1/
8983 p
8984 }
8985 }'
8986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 # Check for a 64-bit object if we didn't find anything.
8988 if test -z "$lt_cv_aix_libpath_"; then
8989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 fi
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 if test -z "$lt_cv_aix_libpath_"; then
8995 lt_cv_aix_libpath_="/usr/lib:/lib"
8996 fi
8997
8998 fi
8999
9000 aix_libpath=$lt_cv_aix_libpath_
9001 fi
9002
9003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004 # Warning - without using the other run time loading flags,
9005 # -berok will link without error, but may produce a broken library.
9006 no_undefined_flag=' ${wl}-bernotok'
9007 allow_undefined_flag=' ${wl}-berok'
9008 if test "$with_gnu_ld" = yes; then
9009 # We only use this code for GNU lds that support --whole-archive.
9010 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9011 else
9012 # Exported symbols can be pulled into shared objects from archives
9013 whole_archive_flag_spec='$convenience'
9014 fi
9015 archive_cmds_need_lc=yes
9016 # This is similar to how AIX traditionally builds its shared libraries.
9017 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'
9018 fi
9019 fi
9020 ;;
9021
9022 amigaos*)
9023 case $host_cpu in
9024 powerpc)
9025 # see comment about AmigaOS4 .so support
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds=''
9028 ;;
9029 m68k)
9030 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)'
9031 hardcode_libdir_flag_spec='-L$libdir'
9032 hardcode_minus_L=yes
9033 ;;
9034 esac
9035 ;;
9036
9037 bsdi[45]*)
9038 export_dynamic_flag_spec=-rdynamic
9039 ;;
9040
9041 cygwin* | mingw* | pw32* | cegcc*)
9042 # When not using gcc, we currently assume that we are using
9043 # Microsoft Visual C++.
9044 # hardcode_libdir_flag_spec is actually meaningless, as there is
9045 # no search path for DLLs.
9046 case $cc_basename in
9047 cl*)
9048 # Native MSVC
9049 hardcode_libdir_flag_spec=' '
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 file_list_spec='@'
9053 # Tell ltmain to make .lib files, not .a files.
9054 libext=lib
9055 # Tell ltmain to make .dll files, not .so files.
9056 shrext_cmds=".dll"
9057 # FIXME: Setting linknames here is a bad hack.
9058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9060 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9061 else
9062 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9063 fi~
9064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9065 linknames='
9066 # The linker will not automatically build a static lib if we build a DLL.
9067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9068 enable_shared_with_static_runtimes=yes
9069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9071 # Don't use ranlib
9072 old_postinstall_cmds='chmod 644 $oldlib'
9073 postlink_cmds='lt_outputfile="@OUTPUT@"~
9074 lt_tool_outputfile="@TOOL_OUTPUT@"~
9075 case $lt_outputfile in
9076 *.exe|*.EXE) ;;
9077 *)
9078 lt_outputfile="$lt_outputfile.exe"
9079 lt_tool_outputfile="$lt_tool_outputfile.exe"
9080 ;;
9081 esac~
9082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9084 $RM "$lt_outputfile.manifest";
9085 fi'
9086 ;;
9087 *)
9088 # Assume MSVC wrapper
9089 hardcode_libdir_flag_spec=' '
9090 allow_undefined_flag=unsupported
9091 # Tell ltmain to make .lib files, not .a files.
9092 libext=lib
9093 # Tell ltmain to make .dll files, not .so files.
9094 shrext_cmds=".dll"
9095 # FIXME: Setting linknames here is a bad hack.
9096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9097 # The linker will automatically build a .lib file if we build a DLL.
9098 old_archive_from_new_cmds='true'
9099 # FIXME: Should let the user specify the lib program.
9100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9101 enable_shared_with_static_runtimes=yes
9102 ;;
9103 esac
9104 ;;
9105
9106 darwin* | rhapsody*)
9107
9108
9109 archive_cmds_need_lc=no
9110 hardcode_direct=no
9111 hardcode_automatic=yes
9112 hardcode_shlibpath_var=unsupported
9113 if test "$lt_cv_ld_force_load" = "yes"; then
9114 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\"`'
9115
9116 else
9117 whole_archive_flag_spec=''
9118 fi
9119 link_all_deplibs=yes
9120 allow_undefined_flag="$_lt_dar_allow_undefined"
9121 case $cc_basename in
9122 ifort*) _lt_dar_can_shared=yes ;;
9123 *) _lt_dar_can_shared=$GCC ;;
9124 esac
9125 if test "$_lt_dar_can_shared" = "yes"; then
9126 output_verbose_link_cmd=func_echo_all
9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129 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}"
9130 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}"
9131
9132 else
9133 ld_shlibs=no
9134 fi
9135
9136 ;;
9137
9138 dgux*)
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_shlibpath_var=no
9142 ;;
9143
9144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9145 # support. Future versions do this automatically, but an explicit c++rt0.o
9146 # does not break anything, and helps significantly (at the cost of a little
9147 # extra space).
9148 freebsd2.2*)
9149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9150 hardcode_libdir_flag_spec='-R$libdir'
9151 hardcode_direct=yes
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9156 freebsd2.*)
9157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158 hardcode_direct=yes
9159 hardcode_minus_L=yes
9160 hardcode_shlibpath_var=no
9161 ;;
9162
9163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9164 freebsd* | dragonfly*)
9165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9169 ;;
9170
9171 hpux9*)
9172 if test "$GCC" = yes; then
9173 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'
9174 else
9175 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'
9176 fi
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179 hardcode_direct=yes
9180
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 export_dynamic_flag_spec='${wl}-E'
9185 ;;
9186
9187 hpux10*)
9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 else
9191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9192 fi
9193 if test "$with_gnu_ld" = no; then
9194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195 hardcode_libdir_separator=:
9196 hardcode_direct=yes
9197 hardcode_direct_absolute=yes
9198 export_dynamic_flag_spec='${wl}-E'
9199 # hardcode_minus_L: Not really in the search PATH,
9200 # but as the default location of the library.
9201 hardcode_minus_L=yes
9202 fi
9203 ;;
9204
9205 hpux11*)
9206 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9207 case $host_cpu in
9208 hppa*64*)
9209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 ;;
9211 ia64*)
9212 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9213 ;;
9214 *)
9215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9216 ;;
9217 esac
9218 else
9219 case $host_cpu in
9220 hppa*64*)
9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222 ;;
9223 ia64*)
9224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225 ;;
9226 *)
9227
9228 # Older versions of the 11.00 compiler do not understand -b yet
9229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9231 $as_echo_n "checking if $CC understands -b... " >&6; }
9232 if ${lt_cv_prog_compiler__b+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 lt_cv_prog_compiler__b=no
9236 save_LDFLAGS="$LDFLAGS"
9237 LDFLAGS="$LDFLAGS -b"
9238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9240 # The linker can only warn and ignore the option if not recognized
9241 # So say no if there are warnings
9242 if test -s conftest.err; then
9243 # Append any errors to the config.log.
9244 cat conftest.err 1>&5
9245 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9247 if diff conftest.exp conftest.er2 >/dev/null; then
9248 lt_cv_prog_compiler__b=yes
9249 fi
9250 else
9251 lt_cv_prog_compiler__b=yes
9252 fi
9253 fi
9254 $RM -r conftest*
9255 LDFLAGS="$save_LDFLAGS"
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9259 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9260
9261 if test x"$lt_cv_prog_compiler__b" = xyes; then
9262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 else
9264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9265 fi
9266
9267 ;;
9268 esac
9269 fi
9270 if test "$with_gnu_ld" = no; then
9271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272 hardcode_libdir_separator=:
9273
9274 case $host_cpu in
9275 hppa*64*|ia64*)
9276 hardcode_direct=no
9277 hardcode_shlibpath_var=no
9278 ;;
9279 *)
9280 hardcode_direct=yes
9281 hardcode_direct_absolute=yes
9282 export_dynamic_flag_spec='${wl}-E'
9283
9284 # hardcode_minus_L: Not really in the search PATH,
9285 # but as the default location of the library.
9286 hardcode_minus_L=yes
9287 ;;
9288 esac
9289 fi
9290 ;;
9291
9292 irix5* | irix6* | nonstopux*)
9293 if test "$GCC" = yes; then
9294 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'
9295 # Try to use the -exported_symbol ld option, if it does not
9296 # work, assume that -exports_file does not work either and
9297 # implicitly export all symbols.
9298 # This should be the same for all languages, so no per-tag cache variable.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9300 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9301 if ${lt_cv_irix_exported_symbol+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 save_LDFLAGS="$LDFLAGS"
9305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int foo (void) { return 0; }
9309 _ACEOF
9310 if ac_fn_c_try_link "$LINENO"; then :
9311 lt_cv_irix_exported_symbol=yes
9312 else
9313 lt_cv_irix_exported_symbol=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LDFLAGS="$save_LDFLAGS"
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9320 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9321 if test "$lt_cv_irix_exported_symbol" = yes; then
9322 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'
9323 fi
9324 else
9325 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'
9326 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'
9327 fi
9328 archive_cmds_need_lc='no'
9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330 hardcode_libdir_separator=:
9331 inherit_rpath=yes
9332 link_all_deplibs=yes
9333 ;;
9334
9335 netbsd* | netbsdelf*-gnu)
9336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9338 else
9339 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9340 fi
9341 hardcode_libdir_flag_spec='-R$libdir'
9342 hardcode_direct=yes
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 newsos6)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_direct=yes
9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 hardcode_libdir_separator=:
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 *nto* | *qnx*)
9355 ;;
9356
9357 openbsd*)
9358 if test -f /usr/libexec/ld.so; then
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9361 hardcode_direct_absolute=yes
9362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9366 export_dynamic_flag_spec='${wl}-E'
9367 else
9368 case $host_os in
9369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 ;;
9373 *)
9374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9376 ;;
9377 esac
9378 fi
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 os2*)
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_minus_L=yes
9387 allow_undefined_flag=unsupported
9388 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'
9389 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9390 ;;
9391
9392 osf3*)
9393 if test "$GCC" = yes; then
9394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9395 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'
9396 else
9397 allow_undefined_flag=' -expect_unresolved \*'
9398 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'
9399 fi
9400 archive_cmds_need_lc='no'
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 ;;
9404
9405 osf4* | osf5*) # as osf3* with the addition of -msym flag
9406 if test "$GCC" = yes; then
9407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9408 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'
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 else
9411 allow_undefined_flag=' -expect_unresolved \*'
9412 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'
9413 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~
9414 $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'
9415
9416 # Both c and cxx compiler support -rpath directly
9417 hardcode_libdir_flag_spec='-rpath $libdir'
9418 fi
9419 archive_cmds_need_lc='no'
9420 hardcode_libdir_separator=:
9421 ;;
9422
9423 solaris*)
9424 no_undefined_flag=' -z defs'
9425 if test "$GCC" = yes; then
9426 wlarc='${wl}'
9427 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9429 $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'
9430 else
9431 case `$CC -V 2>&1` in
9432 *"Compilers 5.0"*)
9433 wlarc=''
9434 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9436 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9437 ;;
9438 *)
9439 wlarc='${wl}'
9440 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9442 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9443 ;;
9444 esac
9445 fi
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 hardcode_shlibpath_var=no
9448 case $host_os in
9449 solaris2.[0-5] | solaris2.[0-5].*) ;;
9450 *)
9451 # The compiler driver will combine and reorder linker options,
9452 # but understands `-z linker_flag'. GCC discards it without `$wl',
9453 # but is careful enough not to reorder.
9454 # Supported since Solaris 2.6 (maybe 2.5.1?)
9455 if test "$GCC" = yes; then
9456 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9457 else
9458 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9459 fi
9460 ;;
9461 esac
9462 link_all_deplibs=yes
9463 ;;
9464
9465 sunos4*)
9466 if test "x$host_vendor" = xsequent; then
9467 # Use $CC to link under sequent, because it throws in some extra .o
9468 # files that make .init and .fini sections work.
9469 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9470 else
9471 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9472 fi
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_direct=yes
9475 hardcode_minus_L=yes
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 sysv4)
9480 case $host_vendor in
9481 sni)
9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_direct=yes # is this really true???
9484 ;;
9485 siemens)
9486 ## LD is ld it makes a PLAMLIB
9487 ## CC just makes a GrossModule.
9488 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9489 reload_cmds='$CC -r -o $output$reload_objs'
9490 hardcode_direct=no
9491 ;;
9492 motorola)
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9495 ;;
9496 esac
9497 runpath_var='LD_RUN_PATH'
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 sysv4.3*)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_shlibpath_var=no
9504 export_dynamic_flag_spec='-Bexport'
9505 ;;
9506
9507 sysv4*MP*)
9508 if test -d /usr/nec; then
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_shlibpath_var=no
9511 runpath_var=LD_RUN_PATH
9512 hardcode_runpath_var=yes
9513 ld_shlibs=yes
9514 fi
9515 ;;
9516
9517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9518 no_undefined_flag='${wl}-z,text'
9519 archive_cmds_need_lc=no
9520 hardcode_shlibpath_var=no
9521 runpath_var='LD_RUN_PATH'
9522
9523 if test "$GCC" = yes; then
9524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 else
9527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 fi
9530 ;;
9531
9532 sysv5* | sco3.2v5* | sco5v6*)
9533 # Note: We can NOT use -z defs as we might desire, because we do not
9534 # link with -lc, and that would cause any symbols used from libc to
9535 # always be unresolved, which means just about no library would
9536 # ever link correctly. If we're not using GNU ld we use -z text
9537 # though, which does catch some bad symbols but isn't as heavy-handed
9538 # as -z defs.
9539 no_undefined_flag='${wl}-z,text'
9540 allow_undefined_flag='${wl}-z,nodefs'
9541 archive_cmds_need_lc=no
9542 hardcode_shlibpath_var=no
9543 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9544 hardcode_libdir_separator=':'
9545 link_all_deplibs=yes
9546 export_dynamic_flag_spec='${wl}-Bexport'
9547 runpath_var='LD_RUN_PATH'
9548
9549 if test "$GCC" = yes; then
9550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 fi
9556 ;;
9557
9558 uts4*)
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *)
9565 ld_shlibs=no
9566 ;;
9567 esac
9568
9569 if test x$host_vendor = xsni; then
9570 case $host in
9571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9572 export_dynamic_flag_spec='${wl}-Blargedynsym'
9573 ;;
9574 esac
9575 fi
9576 fi
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9579 $as_echo "$ld_shlibs" >&6; }
9580 test "$ld_shlibs" = no && can_build_shared=no
9581
9582 with_gnu_ld=$with_gnu_ld
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598 #
9599 # Do we need to explicitly link libc?
9600 #
9601 case "x$archive_cmds_need_lc" in
9602 x|xyes)
9603 # Assume -lc should be added
9604 archive_cmds_need_lc=yes
9605
9606 if test "$enable_shared" = yes && test "$GCC" = yes; then
9607 case $archive_cmds in
9608 *'~'*)
9609 # FIXME: we may have to deal with multi-command sequences.
9610 ;;
9611 '$CC '*)
9612 # Test whether the compiler implicitly links with -lc since on some
9613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9614 # to ld, don't add -lc before -lgcc.
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9616 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9617 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 $RM conftest*
9621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9622
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9624 (eval $ac_compile) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; } 2>conftest.err; then
9628 soname=conftest
9629 lib=conftest
9630 libobjs=conftest.$ac_objext
9631 deplibs=
9632 wl=$lt_prog_compiler_wl
9633 pic_flag=$lt_prog_compiler_pic
9634 compiler_flags=-v
9635 linker_flags=-v
9636 verstring=
9637 output_objdir=.
9638 libname=conftest
9639 lt_save_allow_undefined_flag=$allow_undefined_flag
9640 allow_undefined_flag=
9641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9642 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9643 ac_status=$?
9644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9645 test $ac_status = 0; }
9646 then
9647 lt_cv_archive_cmds_need_lc=no
9648 else
9649 lt_cv_archive_cmds_need_lc=yes
9650 fi
9651 allow_undefined_flag=$lt_save_allow_undefined_flag
9652 else
9653 cat conftest.err 1>&5
9654 fi
9655 $RM conftest*
9656
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9659 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9660 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9661 ;;
9662 esac
9663 fi
9664 ;;
9665 esac
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9820
9821 if test "$GCC" = yes; then
9822 case $host_os in
9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg="/^libraries:/" ;;
9825 esac
9826 case $host_os in
9827 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9828 *) lt_sed_strip_eq="s,=/,/,g" ;;
9829 esac
9830 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9831 case $lt_search_path_spec in
9832 *\;*)
9833 # if the path contains ";" then we assume it to be the separator
9834 # otherwise default to the standard path separator (i.e. ":") - it is
9835 # assumed that no part of a normal pathname contains ";" but that should
9836 # okay in the real world where ";" in dirpaths is itself problematic.
9837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9838 ;;
9839 *)
9840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9841 ;;
9842 esac
9843 # Ok, now we have the path, separated by spaces, we can step through it
9844 # and add multilib dir if necessary.
9845 lt_tmp_lt_search_path_spec=
9846 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9847 for lt_sys_path in $lt_search_path_spec; do
9848 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9850 else
9851 test -d "$lt_sys_path" && \
9852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9853 fi
9854 done
9855 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9856 BEGIN {RS=" "; FS="/|\n";} {
9857 lt_foo="";
9858 lt_count=0;
9859 for (lt_i = NF; lt_i > 0; lt_i--) {
9860 if ($lt_i != "" && $lt_i != ".") {
9861 if ($lt_i == "..") {
9862 lt_count++;
9863 } else {
9864 if (lt_count == 0) {
9865 lt_foo="/" $lt_i lt_foo;
9866 } else {
9867 lt_count--;
9868 }
9869 }
9870 }
9871 }
9872 if (lt_foo != "") { lt_freq[lt_foo]++; }
9873 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9874 }'`
9875 # AWK program above erroneously prepends '/' to C:/dos/paths
9876 # for these hosts.
9877 case $host_os in
9878 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9879 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9880 esac
9881 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9882 else
9883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9884 fi
9885 library_names_spec=
9886 libname_spec='lib$name'
9887 soname_spec=
9888 shrext_cmds=".so"
9889 postinstall_cmds=
9890 postuninstall_cmds=
9891 finish_cmds=
9892 finish_eval=
9893 shlibpath_var=
9894 shlibpath_overrides_runpath=unknown
9895 version_type=none
9896 dynamic_linker="$host_os ld.so"
9897 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9898 need_lib_prefix=unknown
9899 hardcode_into_libs=no
9900
9901 # when you set need_version to no, make sure it does not cause -set_version
9902 # flags to be left without arguments
9903 need_version=unknown
9904
9905 case $host_os in
9906 aix3*)
9907 version_type=linux # correct to gnu/linux during the next big refactor
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9909 shlibpath_var=LIBPATH
9910
9911 # AIX 3 has no versioning support, so we append a major version to the name.
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 ;;
9914
9915 aix[4-9]*)
9916 version_type=linux # correct to gnu/linux during the next big refactor
9917 need_lib_prefix=no
9918 need_version=no
9919 hardcode_into_libs=yes
9920 if test "$host_cpu" = ia64; then
9921 # AIX 5 supports IA64
9922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 else
9925 # With GCC up to 2.95.x, collect2 would create an import file
9926 # for dependence libraries. The import file would start with
9927 # the line `#! .'. This would cause the generated library to
9928 # depend on `.', always an invalid library. This was fixed in
9929 # development snapshots of GCC prior to 3.0.
9930 case $host_os in
9931 aix4 | aix4.[01] | aix4.[01].*)
9932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9933 echo ' yes '
9934 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9935 :
9936 else
9937 can_build_shared=no
9938 fi
9939 ;;
9940 esac
9941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9942 # soname into executable. Probably we can add versioning support to
9943 # collect2, so additional links can be useful in future.
9944 if test "$aix_use_runtimelinking" = yes; then
9945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9946 # instead of lib<name>.a to let people know that these are not
9947 # typical AIX shared libraries.
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 else
9950 # We preserve .a as extension for shared libraries through AIX4.2
9951 # and later when we are not doing run time linking.
9952 library_names_spec='${libname}${release}.a $libname.a'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 fi
9955 shlibpath_var=LIBPATH
9956 fi
9957 ;;
9958
9959 amigaos*)
9960 case $host_cpu in
9961 powerpc)
9962 # Since July 2007 AmigaOS4 officially supports .so libraries.
9963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 ;;
9966 m68k)
9967 library_names_spec='$libname.ixlibrary $libname.a'
9968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9969 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'
9970 ;;
9971 esac
9972 ;;
9973
9974 beos*)
9975 library_names_spec='${libname}${shared_ext}'
9976 dynamic_linker="$host_os ld.so"
9977 shlibpath_var=LIBRARY_PATH
9978 ;;
9979
9980 bsdi[45]*)
9981 version_type=linux # correct to gnu/linux during the next big refactor
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9989 # the default ld.so.conf also contains /usr/contrib/lib and
9990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9991 # libtool to hard-code these into programs
9992 ;;
9993
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 version_type=windows
9996 shrext_cmds=".dll"
9997 need_version=no
9998 need_lib_prefix=no
9999
10000 case $GCC,$cc_basename in
10001 yes,*)
10002 # gcc
10003 library_names_spec='$libname.dll.a'
10004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10005 postinstall_cmds='base_file=`basename \${file}`~
10006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10007 dldir=$destdir/`dirname \$dlpath`~
10008 test -d \$dldir || mkdir -p \$dldir~
10009 $install_prog $dir/$dlname \$dldir/$dlname~
10010 chmod a+x \$dldir/$dlname~
10011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10013 fi'
10014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10015 dlpath=$dir/\$dldll~
10016 $RM \$dlpath'
10017 shlibpath_overrides_runpath=yes
10018
10019 case $host_os in
10020 cygwin*)
10021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023
10024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10025 ;;
10026 mingw* | cegcc*)
10027 # MinGW DLLs use traditional 'lib' prefix
10028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10029 ;;
10030 pw32*)
10031 # pw32 DLLs use 'pw' prefix rather than 'lib'
10032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10033 ;;
10034 esac
10035 dynamic_linker='Win32 ld.exe'
10036 ;;
10037
10038 *,cl*)
10039 # Native MSVC
10040 libname_spec='$name'
10041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10042 library_names_spec='${libname}.dll.lib'
10043
10044 case $build_os in
10045 mingw*)
10046 sys_lib_search_path_spec=
10047 lt_save_ifs=$IFS
10048 IFS=';'
10049 for lt_path in $LIB
10050 do
10051 IFS=$lt_save_ifs
10052 # Let DOS variable expansion print the short 8.3 style file name.
10053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10055 done
10056 IFS=$lt_save_ifs
10057 # Convert to MSYS style.
10058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10059 ;;
10060 cygwin*)
10061 # Convert to unix form, then to dos form, then back to unix form
10062 # but this time dos style (no spaces!) so that the unix form looks
10063 # like /cygdrive/c/PROGRA~1:/cygdr...
10064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10067 ;;
10068 *)
10069 sys_lib_search_path_spec="$LIB"
10070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10071 # It is most probably a Windows format PATH.
10072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10073 else
10074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10075 fi
10076 # FIXME: find the short name or the path components, as spaces are
10077 # common. (e.g. "Program Files" -> "PROGRA~1")
10078 ;;
10079 esac
10080
10081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10082 postinstall_cmds='base_file=`basename \${file}`~
10083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10084 dldir=$destdir/`dirname \$dlpath`~
10085 test -d \$dldir || mkdir -p \$dldir~
10086 $install_prog $dir/$dlname \$dldir/$dlname'
10087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10088 dlpath=$dir/\$dldll~
10089 $RM \$dlpath'
10090 shlibpath_overrides_runpath=yes
10091 dynamic_linker='Win32 link.exe'
10092 ;;
10093
10094 *)
10095 # Assume MSVC wrapper
10096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10097 dynamic_linker='Win32 ld.exe'
10098 ;;
10099 esac
10100 # FIXME: first we should search . and the directory the executable is in
10101 shlibpath_var=PATH
10102 ;;
10103
10104 darwin* | rhapsody*)
10105 dynamic_linker="$host_os dyld"
10106 version_type=darwin
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10110 soname_spec='${libname}${release}${major}$shared_ext'
10111 shlibpath_overrides_runpath=yes
10112 shlibpath_var=DYLD_LIBRARY_PATH
10113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10114
10115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10117 ;;
10118
10119 dgux*)
10120 version_type=linux # correct to gnu/linux during the next big refactor
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 ;;
10127
10128 freebsd* | dragonfly*)
10129 # DragonFly does not have aout. When/if they implement a new
10130 # versioning mechanism, adjust this.
10131 if test -x /usr/bin/objformat; then
10132 objformat=`/usr/bin/objformat`
10133 else
10134 case $host_os in
10135 freebsd[23].*) objformat=aout ;;
10136 *) objformat=elf ;;
10137 esac
10138 fi
10139 version_type=freebsd-$objformat
10140 case $version_type in
10141 freebsd-elf*)
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10143 need_version=no
10144 need_lib_prefix=no
10145 ;;
10146 freebsd-*)
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10148 need_version=yes
10149 ;;
10150 esac
10151 shlibpath_var=LD_LIBRARY_PATH
10152 case $host_os in
10153 freebsd2.*)
10154 shlibpath_overrides_runpath=yes
10155 ;;
10156 freebsd3.[01]* | freebsdelf3.[01]*)
10157 shlibpath_overrides_runpath=yes
10158 hardcode_into_libs=yes
10159 ;;
10160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10162 shlibpath_overrides_runpath=no
10163 hardcode_into_libs=yes
10164 ;;
10165 *) # from 4.6 on, and DragonFly
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10168 ;;
10169 esac
10170 ;;
10171
10172 gnu*)
10173 version_type=linux # correct to gnu/linux during the next big refactor
10174 need_lib_prefix=no
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=no
10180 hardcode_into_libs=yes
10181 ;;
10182
10183 haiku*)
10184 version_type=linux # correct to gnu/linux during the next big refactor
10185 need_lib_prefix=no
10186 need_version=no
10187 dynamic_linker="$host_os runtime_loader"
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 shlibpath_var=LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes
10192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10193 hardcode_into_libs=yes
10194 ;;
10195
10196 hpux9* | hpux10* | hpux11*)
10197 # Give a soname corresponding to the major version so that dld.sl refuses to
10198 # link against other versions.
10199 version_type=sunos
10200 need_lib_prefix=no
10201 need_version=no
10202 case $host_cpu in
10203 ia64*)
10204 shrext_cmds='.so'
10205 hardcode_into_libs=yes
10206 dynamic_linker="$host_os dld.so"
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 if test "X$HPUX_IA64_MODE" = X32; then
10212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10213 else
10214 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10215 fi
10216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10217 ;;
10218 hppa*64*)
10219 shrext_cmds='.sl'
10220 hardcode_into_libs=yes
10221 dynamic_linker="$host_os dld.sl"
10222 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10228 ;;
10229 *)
10230 shrext_cmds='.sl'
10231 dynamic_linker="$host_os dld.sl"
10232 shlibpath_var=SHLIB_PATH
10233 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 ;;
10237 esac
10238 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10239 postinstall_cmds='chmod 555 $lib'
10240 # or fails outright, so override atomically:
10241 install_override_mode=555
10242 ;;
10243
10244 interix[3-9]*)
10245 version_type=linux # correct to gnu/linux during the next big refactor
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 ;;
10255
10256 irix5* | irix6* | nonstopux*)
10257 case $host_os in
10258 nonstopux*) version_type=nonstopux ;;
10259 *)
10260 if test "$lt_cv_prog_gnu_ld" = yes; then
10261 version_type=linux # correct to gnu/linux during the next big refactor
10262 else
10263 version_type=irix
10264 fi ;;
10265 esac
10266 need_lib_prefix=no
10267 need_version=no
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10270 case $host_os in
10271 irix5* | nonstopux*)
10272 libsuff= shlibsuff=
10273 ;;
10274 *)
10275 case $LD in # libtool.m4 will add one of these switches to LD
10276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10277 libsuff= shlibsuff= libmagic=32-bit;;
10278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10279 libsuff=32 shlibsuff=N32 libmagic=N32;;
10280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10282 *) libsuff= shlibsuff= libmagic=never-match;;
10283 esac
10284 ;;
10285 esac
10286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10287 shlibpath_overrides_runpath=no
10288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10290 hardcode_into_libs=yes
10291 ;;
10292
10293 # No shared lib support for Linux oldld, aout, or coff.
10294 linux*oldld* | linux*aout* | linux*coff*)
10295 dynamic_linker=no
10296 ;;
10297
10298 # This must be glibc/ELF.
10299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10300 version_type=linux # correct to gnu/linux during the next big refactor
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=no
10308
10309 # Some binutils ld are patched to set DT_RUNPATH
10310 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 lt_cv_shlibpath_overrides_runpath=no
10314 save_LDFLAGS=$LDFLAGS
10315 save_libdir=$libdir
10316 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10317 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320
10321 int
10322 main ()
10323 {
10324
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10331 lt_cv_shlibpath_overrides_runpath=yes
10332 fi
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LDFLAGS=$save_LDFLAGS
10337 libdir=$save_libdir
10338
10339 fi
10340
10341 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10342
10343 # This implies no fast_install, which is unacceptable.
10344 # Some rework will be needed to allow for fast_install
10345 # before this can be enabled.
10346 hardcode_into_libs=yes
10347
10348 # Append ld.so.conf contents to the search path
10349 if test -f /etc/ld.so.conf; then
10350 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' ' '`
10351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10352 fi
10353
10354 # We used to test for /lib/ld.so.1 and disable shared libraries on
10355 # powerpc, because MkLinux only supported shared libraries with the
10356 # GNU dynamic linker. Since this was broken with cross compilers,
10357 # most powerpc-linux boxes support dynamic linking these days and
10358 # people can always --disable-shared, the test was removed, and we
10359 # assume the GNU/Linux dynamic linker is in use.
10360 dynamic_linker='GNU/Linux ld.so'
10361 ;;
10362
10363 netbsdelf*-gnu)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10372 dynamic_linker='NetBSD ld.elf_so'
10373 ;;
10374
10375 netbsd*)
10376 version_type=sunos
10377 need_lib_prefix=no
10378 need_version=no
10379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10382 dynamic_linker='NetBSD (a.out) ld.so'
10383 else
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 dynamic_linker='NetBSD ld.elf_so'
10387 fi
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10390 hardcode_into_libs=yes
10391 ;;
10392
10393 newsos6)
10394 version_type=linux # correct to gnu/linux during the next big refactor
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10398 ;;
10399
10400 *nto* | *qnx*)
10401 version_type=qnx
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=no
10408 hardcode_into_libs=yes
10409 dynamic_linker='ldqnx.so'
10410 ;;
10411
10412 openbsd*)
10413 version_type=sunos
10414 sys_lib_dlsearch_path_spec="/usr/lib"
10415 need_lib_prefix=no
10416 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10417 case $host_os in
10418 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10419 *) need_version=no ;;
10420 esac
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10425 case $host_os in
10426 openbsd2.[89] | openbsd2.[89].*)
10427 shlibpath_overrides_runpath=no
10428 ;;
10429 *)
10430 shlibpath_overrides_runpath=yes
10431 ;;
10432 esac
10433 else
10434 shlibpath_overrides_runpath=yes
10435 fi
10436 ;;
10437
10438 os2*)
10439 libname_spec='$name'
10440 shrext_cmds=".dll"
10441 need_lib_prefix=no
10442 library_names_spec='$libname${shared_ext} $libname.a'
10443 dynamic_linker='OS/2 ld.exe'
10444 shlibpath_var=LIBPATH
10445 ;;
10446
10447 osf3* | osf4* | osf5*)
10448 version_type=osf
10449 need_lib_prefix=no
10450 need_version=no
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10455 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10456 ;;
10457
10458 rdos*)
10459 dynamic_linker=no
10460 ;;
10461
10462 solaris*)
10463 version_type=linux # correct to gnu/linux during the next big refactor
10464 need_lib_prefix=no
10465 need_version=no
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=yes
10470 hardcode_into_libs=yes
10471 # ldd complains unless libraries are executable
10472 postinstall_cmds='chmod +x $lib'
10473 ;;
10474
10475 sunos4*)
10476 version_type=sunos
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 shlibpath_overrides_runpath=yes
10481 if test "$with_gnu_ld" = yes; then
10482 need_lib_prefix=no
10483 fi
10484 need_version=yes
10485 ;;
10486
10487 sysv4 | sysv4.3*)
10488 version_type=linux # correct to gnu/linux during the next big refactor
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 case $host_vendor in
10493 sni)
10494 shlibpath_overrides_runpath=no
10495 need_lib_prefix=no
10496 runpath_var=LD_RUN_PATH
10497 ;;
10498 siemens)
10499 need_lib_prefix=no
10500 ;;
10501 motorola)
10502 need_lib_prefix=no
10503 need_version=no
10504 shlibpath_overrides_runpath=no
10505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10506 ;;
10507 esac
10508 ;;
10509
10510 sysv4*MP*)
10511 if test -d /usr/nec ;then
10512 version_type=linux # correct to gnu/linux during the next big refactor
10513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10514 soname_spec='$libname${shared_ext}.$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 fi
10517 ;;
10518
10519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10520 version_type=freebsd-elf
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=yes
10527 hardcode_into_libs=yes
10528 if test "$with_gnu_ld" = yes; then
10529 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10530 else
10531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10532 case $host_os in
10533 sco3.2v5*)
10534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10535 ;;
10536 esac
10537 fi
10538 sys_lib_dlsearch_path_spec='/usr/lib'
10539 ;;
10540
10541 tpf*)
10542 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10543 version_type=linux # correct to gnu/linux during the next big refactor
10544 need_lib_prefix=no
10545 need_version=no
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=no
10549 hardcode_into_libs=yes
10550 ;;
10551
10552 uts4*)
10553 version_type=linux # correct to gnu/linux during the next big refactor
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 ;;
10558
10559 *)
10560 dynamic_linker=no
10561 ;;
10562 esac
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10564 $as_echo "$dynamic_linker" >&6; }
10565 test "$dynamic_linker" = no && can_build_shared=no
10566
10567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10568 if test "$GCC" = yes; then
10569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10570 fi
10571
10572 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10573 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10574 fi
10575 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10576 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10577 fi
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10671 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10672 hardcode_action=
10673 if test -n "$hardcode_libdir_flag_spec" ||
10674 test -n "$runpath_var" ||
10675 test "X$hardcode_automatic" = "Xyes" ; then
10676
10677 # We can hardcode non-existent directories.
10678 if test "$hardcode_direct" != no &&
10679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10680 # have to relink, otherwise we might link with an installed library
10681 # when we should be linking with a yet-to-be-installed one
10682 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10683 test "$hardcode_minus_L" != no; then
10684 # Linking always hardcodes the temporary library directory.
10685 hardcode_action=relink
10686 else
10687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10688 hardcode_action=immediate
10689 fi
10690 else
10691 # We cannot hardcode anything, or else we can only hardcode existing
10692 # directories.
10693 hardcode_action=unsupported
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10696 $as_echo "$hardcode_action" >&6; }
10697
10698 if test "$hardcode_action" = relink ||
10699 test "$inherit_rpath" = yes; then
10700 # Fast installation is not supported
10701 enable_fast_install=no
10702 elif test "$shlibpath_overrides_runpath" = yes ||
10703 test "$enable_shared" = no; then
10704 # Fast installation is not necessary
10705 enable_fast_install=needless
10706 fi
10707
10708
10709
10710
10711
10712
10713 if test "x$enable_dlopen" != xyes; then
10714 enable_dlopen=unknown
10715 enable_dlopen_self=unknown
10716 enable_dlopen_self_static=unknown
10717 else
10718 lt_cv_dlopen=no
10719 lt_cv_dlopen_libs=
10720
10721 case $host_os in
10722 beos*)
10723 lt_cv_dlopen="load_add_on"
10724 lt_cv_dlopen_libs=
10725 lt_cv_dlopen_self=yes
10726 ;;
10727
10728 mingw* | pw32* | cegcc*)
10729 lt_cv_dlopen="LoadLibrary"
10730 lt_cv_dlopen_libs=
10731 ;;
10732
10733 cygwin*)
10734 lt_cv_dlopen="dlopen"
10735 lt_cv_dlopen_libs=
10736 ;;
10737
10738 darwin*)
10739 # if libdl is installed we need to link against it
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10742 if ${ac_cv_lib_dl_dlopen+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldl $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10749
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char dlopen ();
10757 int
10758 main ()
10759 {
10760 return dlopen ();
10761 ;
10762 return 0;
10763 }
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_dl_dlopen=yes
10767 else
10768 ac_cv_lib_dl_dlopen=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10778 else
10779
10780 lt_cv_dlopen="dyld"
10781 lt_cv_dlopen_libs=
10782 lt_cv_dlopen_self=yes
10783
10784 fi
10785
10786 ;;
10787
10788 *)
10789 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10790 if test "x$ac_cv_func_shl_load" = xyes; then :
10791 lt_cv_dlopen="shl_load"
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10794 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10795 if ${ac_cv_lib_dld_shl_load+:} false; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 ac_check_lib_save_LIBS=$LIBS
10799 LIBS="-ldld $LIBS"
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10802
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char shl_load ();
10810 int
10811 main ()
10812 {
10813 return shl_load ();
10814 ;
10815 return 0;
10816 }
10817 _ACEOF
10818 if ac_fn_c_try_link "$LINENO"; then :
10819 ac_cv_lib_dld_shl_load=yes
10820 else
10821 ac_cv_lib_dld_shl_load=no
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10828 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10829 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10830 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10831 else
10832 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10833 if test "x$ac_cv_func_dlopen" = xyes; then :
10834 lt_cv_dlopen="dlopen"
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10837 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10838 if ${ac_cv_lib_dl_dlopen+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ldl $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char dlopen ();
10853 int
10854 main ()
10855 {
10856 return dlopen ();
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 ac_cv_lib_dl_dlopen=yes
10863 else
10864 ac_cv_lib_dl_dlopen=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10871 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10872 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10876 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10877 if ${ac_cv_lib_svld_dlopen+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lsvld $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char dlopen ();
10892 int
10893 main ()
10894 {
10895 return dlopen ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_lib_svld_dlopen=yes
10902 else
10903 ac_cv_lib_svld_dlopen=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10910 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10911 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10915 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10916 if ${ac_cv_lib_dld_dld_link+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char dld_link ();
10931 int
10932 main ()
10933 {
10934 return dld_link ();
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_dld_dld_link=yes
10941 else
10942 ac_cv_lib_dld_dld_link=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10949 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10950 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10951 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10952 fi
10953
10954
10955 fi
10956
10957
10958 fi
10959
10960
10961 fi
10962
10963
10964 fi
10965
10966
10967 fi
10968
10969 ;;
10970 esac
10971
10972 if test "x$lt_cv_dlopen" != xno; then
10973 enable_dlopen=yes
10974 else
10975 enable_dlopen=no
10976 fi
10977
10978 case $lt_cv_dlopen in
10979 dlopen)
10980 save_CPPFLAGS="$CPPFLAGS"
10981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10982
10983 save_LDFLAGS="$LDFLAGS"
10984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10985
10986 save_LIBS="$LIBS"
10987 LIBS="$lt_cv_dlopen_libs $LIBS"
10988
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10990 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10991 if ${lt_cv_dlopen_self+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 if test "$cross_compiling" = yes; then :
10995 lt_cv_dlopen_self=cross
10996 else
10997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998 lt_status=$lt_dlunknown
10999 cat > conftest.$ac_ext <<_LT_EOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11002
11003 #if HAVE_DLFCN_H
11004 #include <dlfcn.h>
11005 #endif
11006
11007 #include <stdio.h>
11008
11009 #ifdef RTLD_GLOBAL
11010 # define LT_DLGLOBAL RTLD_GLOBAL
11011 #else
11012 # ifdef DL_GLOBAL
11013 # define LT_DLGLOBAL DL_GLOBAL
11014 # else
11015 # define LT_DLGLOBAL 0
11016 # endif
11017 #endif
11018
11019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020 find out it does not work in some platform. */
11021 #ifndef LT_DLLAZY_OR_NOW
11022 # ifdef RTLD_LAZY
11023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11024 # else
11025 # ifdef DL_LAZY
11026 # define LT_DLLAZY_OR_NOW DL_LAZY
11027 # else
11028 # ifdef RTLD_NOW
11029 # define LT_DLLAZY_OR_NOW RTLD_NOW
11030 # else
11031 # ifdef DL_NOW
11032 # define LT_DLLAZY_OR_NOW DL_NOW
11033 # else
11034 # define LT_DLLAZY_OR_NOW 0
11035 # endif
11036 # endif
11037 # endif
11038 # endif
11039 #endif
11040
11041 /* When -fvisbility=hidden is used, assume the code has been annotated
11042 correspondingly for the symbols needed. */
11043 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11044 int fnord () __attribute__((visibility("default")));
11045 #endif
11046
11047 int fnord () { return 42; }
11048 int main ()
11049 {
11050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11051 int status = $lt_dlunknown;
11052
11053 if (self)
11054 {
11055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11056 else
11057 {
11058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 else puts (dlerror ());
11060 }
11061 /* dlclose (self); */
11062 }
11063 else
11064 puts (dlerror ());
11065
11066 return status;
11067 }
11068 _LT_EOF
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11074 (./conftest; exit; ) >&5 2>/dev/null
11075 lt_status=$?
11076 case x$lt_status in
11077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11079 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11080 esac
11081 else :
11082 # compilation failed
11083 lt_cv_dlopen_self=no
11084 fi
11085 fi
11086 rm -fr conftest*
11087
11088
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11091 $as_echo "$lt_cv_dlopen_self" >&6; }
11092
11093 if test "x$lt_cv_dlopen_self" = xyes; then
11094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11096 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11097 if ${lt_cv_dlopen_self_static+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 if test "$cross_compiling" = yes; then :
11101 lt_cv_dlopen_self_static=cross
11102 else
11103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11104 lt_status=$lt_dlunknown
11105 cat > conftest.$ac_ext <<_LT_EOF
11106 #line $LINENO "configure"
11107 #include "confdefs.h"
11108
11109 #if HAVE_DLFCN_H
11110 #include <dlfcn.h>
11111 #endif
11112
11113 #include <stdio.h>
11114
11115 #ifdef RTLD_GLOBAL
11116 # define LT_DLGLOBAL RTLD_GLOBAL
11117 #else
11118 # ifdef DL_GLOBAL
11119 # define LT_DLGLOBAL DL_GLOBAL
11120 # else
11121 # define LT_DLGLOBAL 0
11122 # endif
11123 #endif
11124
11125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11126 find out it does not work in some platform. */
11127 #ifndef LT_DLLAZY_OR_NOW
11128 # ifdef RTLD_LAZY
11129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11130 # else
11131 # ifdef DL_LAZY
11132 # define LT_DLLAZY_OR_NOW DL_LAZY
11133 # else
11134 # ifdef RTLD_NOW
11135 # define LT_DLLAZY_OR_NOW RTLD_NOW
11136 # else
11137 # ifdef DL_NOW
11138 # define LT_DLLAZY_OR_NOW DL_NOW
11139 # else
11140 # define LT_DLLAZY_OR_NOW 0
11141 # endif
11142 # endif
11143 # endif
11144 # endif
11145 #endif
11146
11147 /* When -fvisbility=hidden is used, assume the code has been annotated
11148 correspondingly for the symbols needed. */
11149 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11150 int fnord () __attribute__((visibility("default")));
11151 #endif
11152
11153 int fnord () { return 42; }
11154 int main ()
11155 {
11156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11157 int status = $lt_dlunknown;
11158
11159 if (self)
11160 {
11161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 else
11163 {
11164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11165 else puts (dlerror ());
11166 }
11167 /* dlclose (self); */
11168 }
11169 else
11170 puts (dlerror ());
11171
11172 return status;
11173 }
11174 _LT_EOF
11175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11180 (./conftest; exit; ) >&5 2>/dev/null
11181 lt_status=$?
11182 case x$lt_status in
11183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11185 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11186 esac
11187 else :
11188 # compilation failed
11189 lt_cv_dlopen_self_static=no
11190 fi
11191 fi
11192 rm -fr conftest*
11193
11194
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11197 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11198 fi
11199
11200 CPPFLAGS="$save_CPPFLAGS"
11201 LDFLAGS="$save_LDFLAGS"
11202 LIBS="$save_LIBS"
11203 ;;
11204 esac
11205
11206 case $lt_cv_dlopen_self in
11207 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11208 *) enable_dlopen_self=unknown ;;
11209 esac
11210
11211 case $lt_cv_dlopen_self_static in
11212 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11213 *) enable_dlopen_self_static=unknown ;;
11214 esac
11215 fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233 striplib=
11234 old_striplib=
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11236 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11237 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 else
11243 # FIXME - insert some real tests, host_os isn't really good enough
11244 case $host_os in
11245 darwin*)
11246 if test -n "$STRIP" ; then
11247 striplib="$STRIP -x"
11248 old_striplib="$STRIP -S"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250 $as_echo "yes" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 fi
11255 ;;
11256 *)
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11259 ;;
11260 esac
11261 fi
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274 # Report which library types will actually be built
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11276 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11278 $as_echo "$can_build_shared" >&6; }
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11281 $as_echo_n "checking whether to build shared libraries... " >&6; }
11282 test "$can_build_shared" = "no" && enable_shared=no
11283
11284 # On AIX, shared libraries and static libraries use the same namespace, and
11285 # are all built from PIC.
11286 case $host_os in
11287 aix3*)
11288 test "$enable_shared" = yes && enable_static=no
11289 if test -n "$RANLIB"; then
11290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11291 postinstall_cmds='$RANLIB $lib'
11292 fi
11293 ;;
11294
11295 aix[4-9]*)
11296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11297 test "$enable_shared" = yes && enable_static=no
11298 fi
11299 ;;
11300 esac
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11302 $as_echo "$enable_shared" >&6; }
11303
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11305 $as_echo_n "checking whether to build static libraries... " >&6; }
11306 # Make sure either enable_shared or enable_static is yes.
11307 test "$enable_shared" = yes || enable_static=yes
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11309 $as_echo "$enable_static" >&6; }
11310
11311
11312
11313
11314 fi
11315 ac_ext=c
11316 ac_cpp='$CPP $CPPFLAGS'
11317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11320
11321 CC="$lt_save_CC"
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 ac_config_commands="$ac_config_commands libtool"
11338
11339
11340
11341
11342 # Only expand once:
11343
11344
11345
11346 if test "x$CC" != xcc; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11348 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11349 else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11351 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11352 fi
11353 set dummy $CC; ac_cc=`$as_echo "$2" |
11354 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11355 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 int
11362 main ()
11363 {
11364
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 # Make sure it works both with $CC and with simple cc.
11370 # We do the test twice because some compilers refuse to overwrite an
11371 # existing .o file with -o, though they will create one.
11372 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11373 rm -f conftest2.*
11374 if { { case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377 esac
11378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11379 $as_echo "$ac_try_echo"; } >&5
11380 (eval "$ac_try") 2>&5
11381 ac_status=$?
11382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11383 test $ac_status = 0; } &&
11384 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387 esac
11388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11389 $as_echo "$ac_try_echo"; } >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393 test $ac_status = 0; };
11394 then
11395 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11396 if test "x$CC" != xcc; then
11397 # Test first that cc exists at all.
11398 if { ac_try='cc -c conftest.$ac_ext >&5'
11399 { { case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402 esac
11403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11404 $as_echo "$ac_try_echo"; } >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11408 test $ac_status = 0; }; }; then
11409 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11410 rm -f conftest2.*
11411 if { { case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414 esac
11415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11416 $as_echo "$ac_try_echo"; } >&5
11417 (eval "$ac_try") 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; } &&
11421 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11426 $as_echo "$ac_try_echo"; } >&5
11427 (eval "$ac_try") 2>&5
11428 ac_status=$?
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; };
11431 then
11432 # cc works too.
11433 :
11434 else
11435 # cc exists but doesn't like -o.
11436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11437 fi
11438 fi
11439 fi
11440 else
11441 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11442 fi
11443 rm -f core conftest*
11444
11445 fi
11446 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11448 $as_echo "yes" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11452
11453 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11454
11455 fi
11456
11457 # FIXME: we rely on the cache variable name because
11458 # there is no other way.
11459 set dummy $CC
11460 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11461 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11462 if test "$am_t" != yes; then
11463 # Losing compiler, so override with the script.
11464 # FIXME: It is wrong to rewrite CC.
11465 # But if we don't then we get into trouble of one sort or another.
11466 # A longer-term fix would be to have automake use am__CC in this case,
11467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11468 CC="$am_aux_dir/compile $CC"
11469 fi
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11480 if test -n "$ac_tool_prefix"; then
11481 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11482 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 case $PKG_CONFIG in
11489 [\\/]* | ?:[\\/]*)
11490 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11491 ;;
11492 *)
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11495 do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11500 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 ;;
11509 esac
11510 fi
11511 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11512 if test -n "$PKG_CONFIG"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11514 $as_echo "$PKG_CONFIG" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11518 fi
11519
11520
11521 fi
11522 if test -z "$ac_cv_path_PKG_CONFIG"; then
11523 ac_pt_PKG_CONFIG=$PKG_CONFIG
11524 # Extract the first word of "pkg-config", so it can be a program name with args.
11525 set dummy pkg-config; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 case $ac_pt_PKG_CONFIG in
11532 [\\/]* | ?:[\\/]*)
11533 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11534 ;;
11535 *)
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11538 do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547 done
11548 done
11549 IFS=$as_save_IFS
11550
11551 ;;
11552 esac
11553 fi
11554 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11555 if test -n "$ac_pt_PKG_CONFIG"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11557 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11561 fi
11562
11563 if test "x$ac_pt_PKG_CONFIG" = x; then
11564 PKG_CONFIG=""
11565 else
11566 case $cross_compiling:$ac_tool_warned in
11567 yes:)
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11570 ac_tool_warned=yes ;;
11571 esac
11572 PKG_CONFIG=$ac_pt_PKG_CONFIG
11573 fi
11574 else
11575 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11576 fi
11577
11578 fi
11579 if test -n "$PKG_CONFIG"; then
11580 _pkg_min_version=0.9.0
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11582 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11583 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585 $as_echo "yes" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11589 PKG_CONFIG=""
11590 fi
11591 fi
11592
11593 # Work around stupid autoconf default cflags. pt 2
11594 if test "$SAVE_CFLAGS" = "x"; then
11595 CFLAGS=""
11596 fi
11597
11598 # We always want 64 bit file offsets
11599 CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64"
11600
11601 # Extract the first word of "rpcgen", so it can be a program name with args.
11602 set dummy rpcgen; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if ${ac_cv_prog_HAVE_RPCGEN+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 if test -n "$HAVE_RPCGEN"; then
11609 ac_cv_prog_HAVE_RPCGEN="$HAVE_RPCGEN" # Let the user override the test.
11610 else
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11613 do
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_prog_HAVE_RPCGEN="yes"
11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11621 fi
11622 done
11623 done
11624 IFS=$as_save_IFS
11625
11626 test -z "$ac_cv_prog_HAVE_RPCGEN" && ac_cv_prog_HAVE_RPCGEN="no"
11627 fi
11628 fi
11629 HAVE_RPCGEN=$ac_cv_prog_HAVE_RPCGEN
11630 if test -n "$HAVE_RPCGEN"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPCGEN" >&5
11632 $as_echo "$HAVE_RPCGEN" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 fi
11637
11638
11639 if test x$HAVE_RPCGEN != xyes; then
11640 as_fn_error $? "Can not find required program" "$LINENO" 5
11641 fi
11642
11643 #option: examples
11644 # Check whether --enable-examples was given.
11645 if test "${enable_examples+set}" = set; then :
11646 enableval=$enable_examples; ENABLE_EXAMPLES=$enableval
11647 else
11648 ENABLE_EXAMPLES="no"
11649 fi
11650
11651
11652 if test x$ENABLE_EXAMPLES = xyes; then
11653 MAYBE_EXAMPLES="examples"
11654 fi
11655
11656
11657 # Check whether --enable-tirpc was given.
11658 if test "${enable_tirpc+set}" = set; then :
11659 enableval=$enable_tirpc; enable_tirpc=$enableval
11660 else
11661 enable_tirpc='no'
11662 fi
11663
11664
11665 case $host in
11666 *darwin*)
11667 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11668 ;;
11669 *cygwin*)
11670 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11671 ;;
11672 *solaris*)
11673 for ac_header in sys/filio.h
11674 do :
11675 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11676 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
11677 cat >>confdefs.h <<_ACEOF
11678 #define HAVE_SYS_FILIO_H 1
11679 _ACEOF
11680
11681 fi
11682
11683 done
11684
11685 for ac_header in sys/sockio.h
11686 do :
11687 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
11688 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
11689 cat >>confdefs.h <<_ACEOF
11690 #define HAVE_SYS_SOCKIO_H 1
11691 _ACEOF
11692
11693 fi
11694
11695 done
11696
11697 if test x$ENABLE_EXAMPLES = xyes; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11699 $as_echo_n "checking for main in -lsocket... " >&6; }
11700 if ${ac_cv_lib_socket_main+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 ac_check_lib_save_LIBS=$LIBS
11704 LIBS="-lsocket $LIBS"
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11707
11708
11709 int
11710 main ()
11711 {
11712 return main ();
11713 ;
11714 return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_c_try_link "$LINENO"; then :
11718 ac_cv_lib_socket_main=yes
11719 else
11720 ac_cv_lib_socket_main=no
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724 LIBS=$ac_check_lib_save_LIBS
11725 fi
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11727 $as_echo "$ac_cv_lib_socket_main" >&6; }
11728 if test "x$ac_cv_lib_socket_main" = xyes; then :
11729 cat >>confdefs.h <<_ACEOF
11730 #define HAVE_LIBSOCKET 1
11731 _ACEOF
11732
11733 LIBS="-lsocket $LIBS"
11734
11735 else
11736 as_fn_error $? "Can not find required library" "$LINENO" 5
11737 fi
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11740 $as_echo_n "checking for main in -lnsl... " >&6; }
11741 if ${ac_cv_lib_nsl_main+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-lnsl $LIBS"
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748
11749
11750 int
11751 main ()
11752 {
11753 return main ();
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 ac_cv_lib_nsl_main=yes
11760 else
11761 ac_cv_lib_nsl_main=no
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11768 $as_echo "$ac_cv_lib_nsl_main" >&6; }
11769 if test "x$ac_cv_lib_nsl_main" = xyes; then :
11770 cat >>confdefs.h <<_ACEOF
11771 #define HAVE_LIBNSL 1
11772 _ACEOF
11773
11774 LIBS="-lnsl $LIBS"
11775
11776 else
11777 as_fn_error $? "Can not find required library" "$LINENO" 5
11778 fi
11779
11780 fi
11781 ;;
11782 *)
11783 ;;
11784 esac
11785
11786
11787
11788 # check for SA_LEN
11789 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11790 #include <sys/types.h>
11791 #include <sys/socket.h>
11792
11793 "
11794 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11795
11796 $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
11797
11798 fi
11799
11800
11801 LIBNFS_PC_REQ_PRIVATE=
11802
11803 if test "$enable_tirpc" = "yes"; then
11804
11805 pkg_failed=no
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIRPC" >&5
11807 $as_echo_n "checking for TIRPC... " >&6; }
11808
11809 if test -n "$TIRPC_CFLAGS"; then
11810 pkg_cv_TIRPC_CFLAGS="$TIRPC_CFLAGS"
11811 elif test -n "$PKG_CONFIG"; then
11812 if test -n "$PKG_CONFIG" && \
11813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
11814 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
11815 ac_status=$?
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; }; then
11818 pkg_cv_TIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
11819 test "x$?" != "x0" && pkg_failed=yes
11820 else
11821 pkg_failed=yes
11822 fi
11823 else
11824 pkg_failed=untried
11825 fi
11826 if test -n "$TIRPC_LIBS"; then
11827 pkg_cv_TIRPC_LIBS="$TIRPC_LIBS"
11828 elif test -n "$PKG_CONFIG"; then
11829 if test -n "$PKG_CONFIG" && \
11830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
11831 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; }; then
11835 pkg_cv_TIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
11836 test "x$?" != "x0" && pkg_failed=yes
11837 else
11838 pkg_failed=yes
11839 fi
11840 else
11841 pkg_failed=untried
11842 fi
11843
11844
11845
11846 if test $pkg_failed = yes; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849
11850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11851 _pkg_short_errors_supported=yes
11852 else
11853 _pkg_short_errors_supported=no
11854 fi
11855 if test $_pkg_short_errors_supported = yes; then
11856 TIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
11857 else
11858 TIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
11859 fi
11860 # Put the nasty error message in config.log where it belongs
11861 echo "$TIRPC_PKG_ERRORS" >&5
11862
11863 as_fn_error $? "unable to locate libtirpc files" "$LINENO" 5
11864 elif test $pkg_failed = untried; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 as_fn_error $? "unable to locate libtirpc files" "$LINENO" 5
11868 else
11869 TIRPC_CFLAGS=$pkg_cv_TIRPC_CFLAGS
11870 TIRPC_LIBS=$pkg_cv_TIRPC_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11873
11874 fi
11875 CFLAGS="${CFLAGS} ${TIRPC_CFLAGS}"
11876 LIBS="${LIBS} ${TIRPC_LIBS}"
11877 LIBNFS_PC_REQ_PRIVATE="${LIBNFS_PC_REQ_PRIVATE} libtirpc"
11878 fi
11879
11880
11881
11882 #output
11883 ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
11884
11885
11886 ac_config_files="$ac_config_files libnfs.pc"
11887
11888 cat >confcache <<\_ACEOF
11889 # This file is a shell script that caches the results of configure
11890 # tests run on this system so they can be shared between configure
11891 # scripts and configure runs, see configure's option --config-cache.
11892 # It is not useful on other systems. If it contains results you don't
11893 # want to keep, you may remove or edit it.
11894 #
11895 # config.status only pays attention to the cache file if you give it
11896 # the --recheck option to rerun configure.
11897 #
11898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11900 # following values.
11901
11902 _ACEOF
11903
11904 # The following way of writing the cache mishandles newlines in values,
11905 # but we know of no workaround that is simple, portable, and efficient.
11906 # So, we kill variables containing newlines.
11907 # Ultrix sh set writes to stderr and can't be redirected directly,
11908 # and sets the high bit in the cache file unless we assign to the vars.
11909 (
11910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11911 eval ac_val=\$$ac_var
11912 case $ac_val in #(
11913 *${as_nl}*)
11914 case $ac_var in #(
11915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11917 esac
11918 case $ac_var in #(
11919 _ | IFS | as_nl) ;; #(
11920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11921 *) { eval $ac_var=; unset $ac_var;} ;;
11922 esac ;;
11923 esac
11924 done
11925
11926 (set) 2>&1 |
11927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11928 *${as_nl}ac_space=\ *)
11929 # `set' does not quote correctly, so add quotes: double-quote
11930 # substitution turns \\\\ into \\, and sed turns \\ into \.
11931 sed -n \
11932 "s/'/'\\\\''/g;
11933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11934 ;; #(
11935 *)
11936 # `set' quotes correctly as required by POSIX, so do not add quotes.
11937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11938 ;;
11939 esac |
11940 sort
11941 ) |
11942 sed '
11943 /^ac_cv_env_/b end
11944 t clear
11945 :clear
11946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11947 t end
11948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11949 :end' >>confcache
11950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11951 if test -w "$cache_file"; then
11952 if test "x$cache_file" != "x/dev/null"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11954 $as_echo "$as_me: updating cache $cache_file" >&6;}
11955 if test ! -f "$cache_file" || test -h "$cache_file"; then
11956 cat confcache >"$cache_file"
11957 else
11958 case $cache_file in #(
11959 */* | ?:*)
11960 mv -f confcache "$cache_file"$$ &&
11961 mv -f "$cache_file"$$ "$cache_file" ;; #(
11962 *)
11963 mv -f confcache "$cache_file" ;;
11964 esac
11965 fi
11966 fi
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11970 fi
11971 fi
11972 rm -f confcache
11973
11974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11975 # Let make expand exec_prefix.
11976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11977
11978 DEFS=-DHAVE_CONFIG_H
11979
11980 ac_libobjs=
11981 ac_ltlibobjs=
11982 U=
11983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11984 # 1. Remove the extension, and $U if already installed.
11985 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11986 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11988 # will be set to the directory where LIBOBJS objects are built.
11989 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11990 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11991 done
11992 LIBOBJS=$ac_libobjs
11993
11994 LTLIBOBJS=$ac_ltlibobjs
11995
11996
11997 if test -n "$EXEEXT"; then
11998 am__EXEEXT_TRUE=
11999 am__EXEEXT_FALSE='#'
12000 else
12001 am__EXEEXT_TRUE='#'
12002 am__EXEEXT_FALSE=
12003 fi
12004
12005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12006 as_fn_error $? "conditional \"AMDEP\" was never defined.
12007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12008 fi
12009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12012 fi
12013
12014 : "${CONFIG_STATUS=./config.status}"
12015 ac_write_fail=0
12016 ac_clean_files_save=$ac_clean_files
12017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12020 as_write_fail=0
12021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12022 #! $SHELL
12023 # Generated by $as_me.
12024 # Run this file to recreate the current configuration.
12025 # Compiler output produced by configure, useful for debugging
12026 # configure, is in config.log if it exists.
12027
12028 debug=false
12029 ac_cs_recheck=false
12030 ac_cs_silent=false
12031
12032 SHELL=\${CONFIG_SHELL-$SHELL}
12033 export SHELL
12034 _ASEOF
12035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12036 ## -------------------- ##
12037 ## M4sh Initialization. ##
12038 ## -------------------- ##
12039
12040 # Be more Bourne compatible
12041 DUALCASE=1; export DUALCASE # for MKS sh
12042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12043 emulate sh
12044 NULLCMD=:
12045 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12046 # is contrary to our usage. Disable this feature.
12047 alias -g '${1+"$@"}'='"$@"'
12048 setopt NO_GLOB_SUBST
12049 else
12050 case `(set -o) 2>/dev/null` in #(
12051 *posix*) :
12052 set -o posix ;; #(
12053 *) :
12054 ;;
12055 esac
12056 fi
12057
12058
12059 as_nl='
12060 '
12061 export as_nl
12062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12066 # Prefer a ksh shell builtin over an external printf program on Solaris,
12067 # but without wasting forks for bash or zsh.
12068 if test -z "$BASH_VERSION$ZSH_VERSION" \
12069 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12070 as_echo='print -r --'
12071 as_echo_n='print -rn --'
12072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12073 as_echo='printf %s\n'
12074 as_echo_n='printf %s'
12075 else
12076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12078 as_echo_n='/usr/ucb/echo -n'
12079 else
12080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12081 as_echo_n_body='eval
12082 arg=$1;
12083 case $arg in #(
12084 *"$as_nl"*)
12085 expr "X$arg" : "X\\(.*\\)$as_nl";
12086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12087 esac;
12088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12089 '
12090 export as_echo_n_body
12091 as_echo_n='sh -c $as_echo_n_body as_echo'
12092 fi
12093 export as_echo_body
12094 as_echo='sh -c $as_echo_body as_echo'
12095 fi
12096
12097 # The user is always right.
12098 if test "${PATH_SEPARATOR+set}" != set; then
12099 PATH_SEPARATOR=:
12100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12102 PATH_SEPARATOR=';'
12103 }
12104 fi
12105
12106
12107 # IFS
12108 # We need space, tab and new line, in precisely that order. Quoting is
12109 # there to prevent editors from complaining about space-tab.
12110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12111 # splitting by setting IFS to empty value.)
12112 IFS=" "" $as_nl"
12113
12114 # Find who we are. Look in the path if we contain no directory separator.
12115 as_myself=
12116 case $0 in #((
12117 *[\\/]* ) as_myself=$0 ;;
12118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12124 done
12125 IFS=$as_save_IFS
12126
12127 ;;
12128 esac
12129 # We did not find ourselves, most probably we were run as `sh COMMAND'
12130 # in which case we are not to be found in the path.
12131 if test "x$as_myself" = x; then
12132 as_myself=$0
12133 fi
12134 if test ! -f "$as_myself"; then
12135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12136 exit 1
12137 fi
12138
12139 # Unset variables that we do not need and which cause bugs (e.g. in
12140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12141 # suppresses any "Segmentation fault" message there. '((' could
12142 # trigger a bug in pdksh 5.2.14.
12143 for as_var in BASH_ENV ENV MAIL MAILPATH
12144 do eval test x\${$as_var+set} = xset \
12145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12146 done
12147 PS1='$ '
12148 PS2='> '
12149 PS4='+ '
12150
12151 # NLS nuisances.
12152 LC_ALL=C
12153 export LC_ALL
12154 LANGUAGE=C
12155 export LANGUAGE
12156
12157 # CDPATH.
12158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12159
12160
12161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12162 # ----------------------------------------
12163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12165 # script with STATUS, using 1 if that was 0.
12166 as_fn_error ()
12167 {
12168 as_status=$1; test $as_status -eq 0 && as_status=1
12169 if test "$4"; then
12170 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12172 fi
12173 $as_echo "$as_me: error: $2" >&2
12174 as_fn_exit $as_status
12175 } # as_fn_error
12176
12177
12178 # as_fn_set_status STATUS
12179 # -----------------------
12180 # Set $? to STATUS, without forking.
12181 as_fn_set_status ()
12182 {
12183 return $1
12184 } # as_fn_set_status
12185
12186 # as_fn_exit STATUS
12187 # -----------------
12188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12189 as_fn_exit ()
12190 {
12191 set +e
12192 as_fn_set_status $1
12193 exit $1
12194 } # as_fn_exit
12195
12196 # as_fn_unset VAR
12197 # ---------------
12198 # Portably unset VAR.
12199 as_fn_unset ()
12200 {
12201 { eval $1=; unset $1;}
12202 }
12203 as_unset=as_fn_unset
12204 # as_fn_append VAR VALUE
12205 # ----------------------
12206 # Append the text in VALUE to the end of the definition contained in VAR. Take
12207 # advantage of any shell optimizations that allow amortized linear growth over
12208 # repeated appends, instead of the typical quadratic growth present in naive
12209 # implementations.
12210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12211 eval 'as_fn_append ()
12212 {
12213 eval $1+=\$2
12214 }'
12215 else
12216 as_fn_append ()
12217 {
12218 eval $1=\$$1\$2
12219 }
12220 fi # as_fn_append
12221
12222 # as_fn_arith ARG...
12223 # ------------------
12224 # Perform arithmetic evaluation on the ARGs, and store the result in the
12225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12226 # must be portable across $(()) and expr.
12227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12228 eval 'as_fn_arith ()
12229 {
12230 as_val=$(( $* ))
12231 }'
12232 else
12233 as_fn_arith ()
12234 {
12235 as_val=`expr "$@" || test $? -eq 1`
12236 }
12237 fi # as_fn_arith
12238
12239
12240 if expr a : '\(a\)' >/dev/null 2>&1 &&
12241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12242 as_expr=expr
12243 else
12244 as_expr=false
12245 fi
12246
12247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12248 as_basename=basename
12249 else
12250 as_basename=false
12251 fi
12252
12253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12254 as_dirname=dirname
12255 else
12256 as_dirname=false
12257 fi
12258
12259 as_me=`$as_basename -- "$0" ||
12260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12261 X"$0" : 'X\(//\)$' \| \
12262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12263 $as_echo X/"$0" |
12264 sed '/^.*\/\([^/][^/]*\)\/*$/{
12265 s//\1/
12266 q
12267 }
12268 /^X\/\(\/\/\)$/{
12269 s//\1/
12270 q
12271 }
12272 /^X\/\(\/\).*/{
12273 s//\1/
12274 q
12275 }
12276 s/.*/./; q'`
12277
12278 # Avoid depending upon Character Ranges.
12279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12282 as_cr_digits='0123456789'
12283 as_cr_alnum=$as_cr_Letters$as_cr_digits
12284
12285 ECHO_C= ECHO_N= ECHO_T=
12286 case `echo -n x` in #(((((
12287 -n*)
12288 case `echo 'xy\c'` in
12289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12290 xy) ECHO_C='\c';;
12291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12292 ECHO_T=' ';;
12293 esac;;
12294 *)
12295 ECHO_N='-n';;
12296 esac
12297
12298 rm -f conf$$ conf$$.exe conf$$.file
12299 if test -d conf$$.dir; then
12300 rm -f conf$$.dir/conf$$.file
12301 else
12302 rm -f conf$$.dir
12303 mkdir conf$$.dir 2>/dev/null
12304 fi
12305 if (echo >conf$$.file) 2>/dev/null; then
12306 if ln -s conf$$.file conf$$ 2>/dev/null; then
12307 as_ln_s='ln -s'
12308 # ... but there are two gotchas:
12309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12311 # In both cases, we have to default to `cp -p'.
12312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12313 as_ln_s='cp -p'
12314 elif ln conf$$.file conf$$ 2>/dev/null; then
12315 as_ln_s=ln
12316 else
12317 as_ln_s='cp -p'
12318 fi
12319 else
12320 as_ln_s='cp -p'
12321 fi
12322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12323 rmdir conf$$.dir 2>/dev/null
12324
12325
12326 # as_fn_mkdir_p
12327 # -------------
12328 # Create "$as_dir" as a directory, including parents if necessary.
12329 as_fn_mkdir_p ()
12330 {
12331
12332 case $as_dir in #(
12333 -*) as_dir=./$as_dir;;
12334 esac
12335 test -d "$as_dir" || eval $as_mkdir_p || {
12336 as_dirs=
12337 while :; do
12338 case $as_dir in #(
12339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12340 *) as_qdir=$as_dir;;
12341 esac
12342 as_dirs="'$as_qdir' $as_dirs"
12343 as_dir=`$as_dirname -- "$as_dir" ||
12344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12345 X"$as_dir" : 'X\(//\)[^/]' \| \
12346 X"$as_dir" : 'X\(//\)$' \| \
12347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12348 $as_echo X"$as_dir" |
12349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12350 s//\1/
12351 q
12352 }
12353 /^X\(\/\/\)[^/].*/{
12354 s//\1/
12355 q
12356 }
12357 /^X\(\/\/\)$/{
12358 s//\1/
12359 q
12360 }
12361 /^X\(\/\).*/{
12362 s//\1/
12363 q
12364 }
12365 s/.*/./; q'`
12366 test -d "$as_dir" && break
12367 done
12368 test -z "$as_dirs" || eval "mkdir $as_dirs"
12369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12370
12371
12372 } # as_fn_mkdir_p
12373 if mkdir -p . 2>/dev/null; then
12374 as_mkdir_p='mkdir -p "$as_dir"'
12375 else
12376 test -d ./-p && rmdir ./-p
12377 as_mkdir_p=false
12378 fi
12379
12380 if test -x / >/dev/null 2>&1; then
12381 as_test_x='test -x'
12382 else
12383 if ls -dL / >/dev/null 2>&1; then
12384 as_ls_L_option=L
12385 else
12386 as_ls_L_option=
12387 fi
12388 as_test_x='
12389 eval sh -c '\''
12390 if test -d "$1"; then
12391 test -d "$1/.";
12392 else
12393 case $1 in #(
12394 -*)set "./$1";;
12395 esac;
12396 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12397 ???[sx]*):;;*)false;;esac;fi
12398 '\'' sh
12399 '
12400 fi
12401 as_executable_p=$as_test_x
12402
12403 # Sed expression to map a string onto a valid CPP name.
12404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12405
12406 # Sed expression to map a string onto a valid variable name.
12407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12408
12409
12410 exec 6>&1
12411 ## ----------------------------------- ##
12412 ## Main body of $CONFIG_STATUS script. ##
12413 ## ----------------------------------- ##
12414 _ASEOF
12415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12416
12417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12418 # Save the log message, to keep $0 and so on meaningful, and to
12419 # report actual input values of CONFIG_FILES etc. instead of their
12420 # values after options handling.
12421 ac_log="
12422 This file was extended by libnfs $as_me 1.2.0, which was
12423 generated by GNU Autoconf 2.68. Invocation command line was
12424
12425 CONFIG_FILES = $CONFIG_FILES
12426 CONFIG_HEADERS = $CONFIG_HEADERS
12427 CONFIG_LINKS = $CONFIG_LINKS
12428 CONFIG_COMMANDS = $CONFIG_COMMANDS
12429 $ $0 $@
12430
12431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12432 "
12433
12434 _ACEOF
12435
12436 case $ac_config_files in *"
12437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12438 esac
12439
12440 case $ac_config_headers in *"
12441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12442 esac
12443
12444
12445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12446 # Files that config.status was made for.
12447 config_files="$ac_config_files"
12448 config_headers="$ac_config_headers"
12449 config_commands="$ac_config_commands"
12450
12451 _ACEOF
12452
12453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454 ac_cs_usage="\
12455 \`$as_me' instantiates files and other configuration actions
12456 from templates according to the current configuration. Unless the files
12457 and actions are specified as TAGs, all are instantiated by default.
12458
12459 Usage: $0 [OPTION]... [TAG]...
12460
12461 -h, --help print this help, then exit
12462 -V, --version print version number and configuration settings, then exit
12463 --config print configuration, then exit
12464 -q, --quiet, --silent
12465 do not print progress messages
12466 -d, --debug don't remove temporary files
12467 --recheck update $as_me by reconfiguring in the same conditions
12468 --file=FILE[:TEMPLATE]
12469 instantiate the configuration file FILE
12470 --header=FILE[:TEMPLATE]
12471 instantiate the configuration header FILE
12472
12473 Configuration files:
12474 $config_files
12475
12476 Configuration headers:
12477 $config_headers
12478
12479 Configuration commands:
12480 $config_commands
12481
12482 Report bugs to <ronniesahlberg@gmail.com>."
12483
12484 _ACEOF
12485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12487 ac_cs_version="\\
12488 libnfs config.status 1.2.0
12489 configured by $0, generated by GNU Autoconf 2.68,
12490 with options \\"\$ac_cs_config\\"
12491
12492 Copyright (C) 2010 Free Software Foundation, Inc.
12493 This config.status script is free software; the Free Software Foundation
12494 gives unlimited permission to copy, distribute and modify it."
12495
12496 ac_pwd='$ac_pwd'
12497 srcdir='$srcdir'
12498 INSTALL='$INSTALL'
12499 MKDIR_P='$MKDIR_P'
12500 AWK='$AWK'
12501 test -n "\$AWK" || AWK=awk
12502 _ACEOF
12503
12504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12505 # The default lists apply if the user does not specify any file.
12506 ac_need_defaults=:
12507 while test $# != 0
12508 do
12509 case $1 in
12510 --*=?*)
12511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12513 ac_shift=:
12514 ;;
12515 --*=)
12516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12517 ac_optarg=
12518 ac_shift=:
12519 ;;
12520 *)
12521 ac_option=$1
12522 ac_optarg=$2
12523 ac_shift=shift
12524 ;;
12525 esac
12526
12527 case $ac_option in
12528 # Handling of the options.
12529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12530 ac_cs_recheck=: ;;
12531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12532 $as_echo "$ac_cs_version"; exit ;;
12533 --config | --confi | --conf | --con | --co | --c )
12534 $as_echo "$ac_cs_config"; exit ;;
12535 --debug | --debu | --deb | --de | --d | -d )
12536 debug=: ;;
12537 --file | --fil | --fi | --f )
12538 $ac_shift
12539 case $ac_optarg in
12540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12541 '') as_fn_error $? "missing file argument" ;;
12542 esac
12543 as_fn_append CONFIG_FILES " '$ac_optarg'"
12544 ac_need_defaults=false;;
12545 --header | --heade | --head | --hea )
12546 $ac_shift
12547 case $ac_optarg in
12548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12549 esac
12550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12551 ac_need_defaults=false;;
12552 --he | --h)
12553 # Conflict between --help and --header
12554 as_fn_error $? "ambiguous option: \`$1'
12555 Try \`$0 --help' for more information.";;
12556 --help | --hel | -h )
12557 $as_echo "$ac_cs_usage"; exit ;;
12558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12560 ac_cs_silent=: ;;
12561
12562 # This is an error.
12563 -*) as_fn_error $? "unrecognized option: \`$1'
12564 Try \`$0 --help' for more information." ;;
12565
12566 *) as_fn_append ac_config_targets " $1"
12567 ac_need_defaults=false ;;
12568
12569 esac
12570 shift
12571 done
12572
12573 ac_configure_extra_args=
12574
12575 if $ac_cs_silent; then
12576 exec 6>/dev/null
12577 ac_configure_extra_args="$ac_configure_extra_args --silent"
12578 fi
12579
12580 _ACEOF
12581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12582 if \$ac_cs_recheck; then
12583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12584 shift
12585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12586 CONFIG_SHELL='$SHELL'
12587 export CONFIG_SHELL
12588 exec "\$@"
12589 fi
12590
12591 _ACEOF
12592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593 exec 5>>config.log
12594 {
12595 echo
12596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12597 ## Running $as_me. ##
12598 _ASBOX
12599 $as_echo "$ac_log"
12600 } >&5
12601
12602 _ACEOF
12603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604 #
12605 # INIT-COMMANDS
12606 #
12607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12608
12609
12610 # The HP-UX ksh and POSIX shell print the target directory to stdout
12611 # if CDPATH is set.
12612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12613
12614 sed_quote_subst='$sed_quote_subst'
12615 double_quote_subst='$double_quote_subst'
12616 delay_variable_subst='$delay_variable_subst'
12617 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12618 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12619 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12620 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12621 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12622 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12623 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12624 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12625 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12626 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12627 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12628 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12629 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12630 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12631 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12637 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12638 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12639 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12640 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12641 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12642 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12643 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12644 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12645 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12646 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12647 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12648 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12649 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12653 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12654 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12655 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12672 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12673 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"`'
12674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12747
12748 LTCC='$LTCC'
12749 LTCFLAGS='$LTCFLAGS'
12750 compiler='$compiler_DEFAULT'
12751
12752 # A function that is used when there is no print builtin or printf.
12753 func_fallback_echo ()
12754 {
12755 eval 'cat <<_LTECHO_EOF
12756 \$1
12757 _LTECHO_EOF'
12758 }
12759
12760 # Quote evaled strings.
12761 for var in SHELL \
12762 ECHO \
12763 PATH_SEPARATOR \
12764 SED \
12765 GREP \
12766 EGREP \
12767 FGREP \
12768 LD \
12769 NM \
12770 LN_S \
12771 lt_SP2NL \
12772 lt_NL2SP \
12773 reload_flag \
12774 OBJDUMP \
12775 deplibs_check_method \
12776 file_magic_cmd \
12777 file_magic_glob \
12778 want_nocaseglob \
12779 DLLTOOL \
12780 sharedlib_from_linklib_cmd \
12781 AR \
12782 AR_FLAGS \
12783 archiver_list_spec \
12784 STRIP \
12785 RANLIB \
12786 CC \
12787 CFLAGS \
12788 compiler \
12789 lt_cv_sys_global_symbol_pipe \
12790 lt_cv_sys_global_symbol_to_cdecl \
12791 lt_cv_sys_global_symbol_to_c_name_address \
12792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12793 nm_file_list_spec \
12794 lt_prog_compiler_no_builtin_flag \
12795 lt_prog_compiler_pic \
12796 lt_prog_compiler_wl \
12797 lt_prog_compiler_static \
12798 lt_cv_prog_compiler_c_o \
12799 need_locks \
12800 MANIFEST_TOOL \
12801 DSYMUTIL \
12802 NMEDIT \
12803 LIPO \
12804 OTOOL \
12805 OTOOL64 \
12806 shrext_cmds \
12807 export_dynamic_flag_spec \
12808 whole_archive_flag_spec \
12809 compiler_needs_object \
12810 with_gnu_ld \
12811 allow_undefined_flag \
12812 no_undefined_flag \
12813 hardcode_libdir_flag_spec \
12814 hardcode_libdir_separator \
12815 exclude_expsyms \
12816 include_expsyms \
12817 file_list_spec \
12818 variables_saved_for_relink \
12819 libname_spec \
12820 library_names_spec \
12821 soname_spec \
12822 install_override_mode \
12823 finish_eval \
12824 old_striplib \
12825 striplib; do
12826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12827 *[\\\\\\\`\\"\\\$]*)
12828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12829 ;;
12830 *)
12831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12832 ;;
12833 esac
12834 done
12835
12836 # Double-quote double-evaled strings.
12837 for var in reload_cmds \
12838 old_postinstall_cmds \
12839 old_postuninstall_cmds \
12840 old_archive_cmds \
12841 extract_expsyms_cmds \
12842 old_archive_from_new_cmds \
12843 old_archive_from_expsyms_cmds \
12844 archive_cmds \
12845 archive_expsym_cmds \
12846 module_cmds \
12847 module_expsym_cmds \
12848 export_symbols_cmds \
12849 prelink_cmds \
12850 postlink_cmds \
12851 postinstall_cmds \
12852 postuninstall_cmds \
12853 finish_cmds \
12854 sys_lib_search_path_spec \
12855 sys_lib_dlsearch_path_spec; do
12856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12857 *[\\\\\\\`\\"\\\$]*)
12858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12859 ;;
12860 *)
12861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12862 ;;
12863 esac
12864 done
12865
12866 ac_aux_dir='$ac_aux_dir'
12867 xsi_shell='$xsi_shell'
12868 lt_shell_append='$lt_shell_append'
12869
12870 # See if we are running on zsh, and set the options which allow our
12871 # commands through without removal of \ escapes INIT.
12872 if test -n "\${ZSH_VERSION+set}" ; then
12873 setopt NO_GLOB_SUBST
12874 fi
12875
12876
12877 PACKAGE='$PACKAGE'
12878 VERSION='$VERSION'
12879 TIMESTAMP='$TIMESTAMP'
12880 RM='$RM'
12881 ofile='$ofile'
12882
12883
12884
12885
12886 _ACEOF
12887
12888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12889
12890 # Handling of arguments.
12891 for ac_config_target in $ac_config_targets
12892 do
12893 case $ac_config_target in
12894 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12895 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12896 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12898 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12899 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12900 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
12901 "nfs/Makefile") CONFIG_FILES="$CONFIG_FILES nfs/Makefile" ;;
12902 "portmap/Makefile") CONFIG_FILES="$CONFIG_FILES portmap/Makefile" ;;
12903 "rquota/Makefile") CONFIG_FILES="$CONFIG_FILES rquota/Makefile" ;;
12904 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12905 "libnfs.pc") CONFIG_FILES="$CONFIG_FILES libnfs.pc" ;;
12906
12907 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12908 esac
12909 done
12910
12911
12912 # If the user did not use the arguments to specify the items to instantiate,
12913 # then the envvar interface is used. Set only those that are not.
12914 # We use the long form for the default assignment because of an extremely
12915 # bizarre bug on SunOS 4.1.3.
12916 if $ac_need_defaults; then
12917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12920 fi
12921
12922 # Have a temporary directory for convenience. Make it in the build tree
12923 # simply because there is no reason against having it here, and in addition,
12924 # creating and moving files from /tmp can sometimes cause problems.
12925 # Hook for its removal unless debugging.
12926 # Note that there is a small window in which the directory will not be cleaned:
12927 # after its creation but before its name has been assigned to `$tmp'.
12928 $debug ||
12929 {
12930 tmp= ac_tmp=
12931 trap 'exit_status=$?
12932 : "${ac_tmp:=$tmp}"
12933 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12934 ' 0
12935 trap 'as_fn_exit 1' 1 2 13 15
12936 }
12937 # Create a (secure) tmp directory for tmp files.
12938
12939 {
12940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12941 test -d "$tmp"
12942 } ||
12943 {
12944 tmp=./conf$$-$RANDOM
12945 (umask 077 && mkdir "$tmp")
12946 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12947 ac_tmp=$tmp
12948
12949 # Set up the scripts for CONFIG_FILES section.
12950 # No need to generate them if there are no CONFIG_FILES.
12951 # This happens for instance with `./config.status config.h'.
12952 if test -n "$CONFIG_FILES"; then
12953
12954
12955 ac_cr=`echo X | tr X '\015'`
12956 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12957 # But we know of no other shell where ac_cr would be empty at this
12958 # point, so we can use a bashism as a fallback.
12959 if test "x$ac_cr" = x; then
12960 eval ac_cr=\$\'\\r\'
12961 fi
12962 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12963 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12964 ac_cs_awk_cr='\\r'
12965 else
12966 ac_cs_awk_cr=$ac_cr
12967 fi
12968
12969 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12970 _ACEOF
12971
12972
12973 {
12974 echo "cat >conf$$subs.awk <<_ACEOF" &&
12975 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12976 echo "_ACEOF"
12977 } >conf$$subs.sh ||
12978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12979 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12980 ac_delim='%!_!# '
12981 for ac_last_try in false false false false false :; do
12982 . ./conf$$subs.sh ||
12983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12984
12985 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12986 if test $ac_delim_n = $ac_delim_num; then
12987 break
12988 elif $ac_last_try; then
12989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12990 else
12991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12992 fi
12993 done
12994 rm -f conf$$subs.sh
12995
12996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12997 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12998 _ACEOF
12999 sed -n '
13000 h
13001 s/^/S["/; s/!.*/"]=/
13002 p
13003 g
13004 s/^[^!]*!//
13005 :repl
13006 t repl
13007 s/'"$ac_delim"'$//
13008 t delim
13009 :nl
13010 h
13011 s/\(.\{148\}\)..*/\1/
13012 t more1
13013 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13014 p
13015 n
13016 b repl
13017 :more1
13018 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13019 p
13020 g
13021 s/.\{148\}//
13022 t nl
13023 :delim
13024 h
13025 s/\(.\{148\}\)..*/\1/
13026 t more2
13027 s/["\\]/\\&/g; s/^/"/; s/$/"/
13028 p
13029 b
13030 :more2
13031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13032 p
13033 g
13034 s/.\{148\}//
13035 t delim
13036 ' <conf$$subs.awk | sed '
13037 /^[^""]/{
13038 N
13039 s/\n//
13040 }
13041 ' >>$CONFIG_STATUS || ac_write_fail=1
13042 rm -f conf$$subs.awk
13043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13044 _ACAWK
13045 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13046 for (key in S) S_is_set[key] = 1
13047 FS = "\a"
13048
13049 }
13050 {
13051 line = $ 0
13052 nfields = split(line, field, "@")
13053 substed = 0
13054 len = length(field[1])
13055 for (i = 2; i < nfields; i++) {
13056 key = field[i]
13057 keylen = length(key)
13058 if (S_is_set[key]) {
13059 value = S[key]
13060 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13061 len += length(value) + length(field[++i])
13062 substed = 1
13063 } else
13064 len += 1 + keylen
13065 }
13066
13067 print line
13068 }
13069
13070 _ACAWK
13071 _ACEOF
13072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13073 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13074 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13075 else
13076 cat
13077 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13078 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13079 _ACEOF
13080
13081 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13082 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13083 # trailing colons and then remove the whole line if VPATH becomes empty
13084 # (actually we leave an empty line to preserve line numbers).
13085 if test "x$srcdir" = x.; then
13086 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13087 h
13088 s///
13089 s/^/:/
13090 s/[ ]*$/:/
13091 s/:\$(srcdir):/:/g
13092 s/:\${srcdir}:/:/g
13093 s/:@srcdir@:/:/g
13094 s/^:*//
13095 s/:*$//
13096 x
13097 s/\(=[ ]*\).*/\1/
13098 G
13099 s/\n//
13100 s/^[^=]*=[ ]*$//
13101 }'
13102 fi
13103
13104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105 fi # test -n "$CONFIG_FILES"
13106
13107 # Set up the scripts for CONFIG_HEADERS section.
13108 # No need to generate them if there are no CONFIG_HEADERS.
13109 # This happens for instance with `./config.status Makefile'.
13110 if test -n "$CONFIG_HEADERS"; then
13111 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13112 BEGIN {
13113 _ACEOF
13114
13115 # Transform confdefs.h into an awk script `defines.awk', embedded as
13116 # here-document in config.status, that substitutes the proper values into
13117 # config.h.in to produce config.h.
13118
13119 # Create a delimiter string that does not exist in confdefs.h, to ease
13120 # handling of long lines.
13121 ac_delim='%!_!# '
13122 for ac_last_try in false false :; do
13123 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13124 if test -z "$ac_tt"; then
13125 break
13126 elif $ac_last_try; then
13127 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13128 else
13129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13130 fi
13131 done
13132
13133 # For the awk script, D is an array of macro values keyed by name,
13134 # likewise P contains macro parameters if any. Preserve backslash
13135 # newline sequences.
13136
13137 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13138 sed -n '
13139 s/.\{148\}/&'"$ac_delim"'/g
13140 t rset
13141 :rset
13142 s/^[ ]*#[ ]*define[ ][ ]*/ /
13143 t def
13144 d
13145 :def
13146 s/\\$//
13147 t bsnl
13148 s/["\\]/\\&/g
13149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13150 D["\1"]=" \3"/p
13151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13152 d
13153 :bsnl
13154 s/["\\]/\\&/g
13155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13156 D["\1"]=" \3\\\\\\n"\\/p
13157 t cont
13158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13159 t cont
13160 d
13161 :cont
13162 n
13163 s/.\{148\}/&'"$ac_delim"'/g
13164 t clear
13165 :clear
13166 s/\\$//
13167 t bsnlc
13168 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13169 d
13170 :bsnlc
13171 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13172 b cont
13173 ' <confdefs.h | sed '
13174 s/'"$ac_delim"'/"\\\
13175 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13176
13177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13178 for (key in D) D_is_set[key] = 1
13179 FS = "\a"
13180 }
13181 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13182 line = \$ 0
13183 split(line, arg, " ")
13184 if (arg[1] == "#") {
13185 defundef = arg[2]
13186 mac1 = arg[3]
13187 } else {
13188 defundef = substr(arg[1], 2)
13189 mac1 = arg[2]
13190 }
13191 split(mac1, mac2, "(") #)
13192 macro = mac2[1]
13193 prefix = substr(line, 1, index(line, defundef) - 1)
13194 if (D_is_set[macro]) {
13195 # Preserve the white space surrounding the "#".
13196 print prefix "define", macro P[macro] D[macro]
13197 next
13198 } else {
13199 # Replace #undef with comments. This is necessary, for example,
13200 # in the case of _POSIX_SOURCE, which is predefined and required
13201 # on some systems where configure will not decide to define it.
13202 if (defundef == "undef") {
13203 print "/*", prefix defundef, macro, "*/"
13204 next
13205 }
13206 }
13207 }
13208 { print }
13209 _ACAWK
13210 _ACEOF
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13213 fi # test -n "$CONFIG_HEADERS"
13214
13215
13216 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13217 shift
13218 for ac_tag
13219 do
13220 case $ac_tag in
13221 :[FHLC]) ac_mode=$ac_tag; continue;;
13222 esac
13223 case $ac_mode$ac_tag in
13224 :[FHL]*:*);;
13225 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13226 :[FH]-) ac_tag=-:-;;
13227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13228 esac
13229 ac_save_IFS=$IFS
13230 IFS=:
13231 set x $ac_tag
13232 IFS=$ac_save_IFS
13233 shift
13234 ac_file=$1
13235 shift
13236
13237 case $ac_mode in
13238 :L) ac_source=$1;;
13239 :[FH])
13240 ac_file_inputs=
13241 for ac_f
13242 do
13243 case $ac_f in
13244 -) ac_f="$ac_tmp/stdin";;
13245 *) # Look for the file first in the build tree, then in the source tree
13246 # (if the path is not absolute). The absolute path cannot be DOS-style,
13247 # because $ac_f cannot contain `:'.
13248 test -f "$ac_f" ||
13249 case $ac_f in
13250 [\\/$]*) false;;
13251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13252 esac ||
13253 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13254 esac
13255 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13256 as_fn_append ac_file_inputs " '$ac_f'"
13257 done
13258
13259 # Let's still pretend it is `configure' which instantiates (i.e., don't
13260 # use $as_me), people would be surprised to read:
13261 # /* config.h. Generated by config.status. */
13262 configure_input='Generated from '`
13263 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13264 `' by configure.'
13265 if test x"$ac_file" != x-; then
13266 configure_input="$ac_file. $configure_input"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13268 $as_echo "$as_me: creating $ac_file" >&6;}
13269 fi
13270 # Neutralize special characters interpreted by sed in replacement strings.
13271 case $configure_input in #(
13272 *\&* | *\|* | *\\* )
13273 ac_sed_conf_input=`$as_echo "$configure_input" |
13274 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13275 *) ac_sed_conf_input=$configure_input;;
13276 esac
13277
13278 case $ac_tag in
13279 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13281 esac
13282 ;;
13283 esac
13284
13285 ac_dir=`$as_dirname -- "$ac_file" ||
13286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13287 X"$ac_file" : 'X\(//\)[^/]' \| \
13288 X"$ac_file" : 'X\(//\)$' \| \
13289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13290 $as_echo X"$ac_file" |
13291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13292 s//\1/
13293 q
13294 }
13295 /^X\(\/\/\)[^/].*/{
13296 s//\1/
13297 q
13298 }
13299 /^X\(\/\/\)$/{
13300 s//\1/
13301 q
13302 }
13303 /^X\(\/\).*/{
13304 s//\1/
13305 q
13306 }
13307 s/.*/./; q'`
13308 as_dir="$ac_dir"; as_fn_mkdir_p
13309 ac_builddir=.
13310
13311 case "$ac_dir" in
13312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13313 *)
13314 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13315 # A ".." for each directory in $ac_dir_suffix.
13316 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13317 case $ac_top_builddir_sub in
13318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13320 esac ;;
13321 esac
13322 ac_abs_top_builddir=$ac_pwd
13323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13324 # for backward compatibility:
13325 ac_top_builddir=$ac_top_build_prefix
13326
13327 case $srcdir in
13328 .) # We are building in place.
13329 ac_srcdir=.
13330 ac_top_srcdir=$ac_top_builddir_sub
13331 ac_abs_top_srcdir=$ac_pwd ;;
13332 [\\/]* | ?:[\\/]* ) # Absolute name.
13333 ac_srcdir=$srcdir$ac_dir_suffix;
13334 ac_top_srcdir=$srcdir
13335 ac_abs_top_srcdir=$srcdir ;;
13336 *) # Relative name.
13337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13338 ac_top_srcdir=$ac_top_build_prefix$srcdir
13339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13340 esac
13341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13342
13343
13344 case $ac_mode in
13345 :F)
13346 #
13347 # CONFIG_FILE
13348 #
13349
13350 case $INSTALL in
13351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13352 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13353 esac
13354 ac_MKDIR_P=$MKDIR_P
13355 case $MKDIR_P in
13356 [\\/$]* | ?:[\\/]* ) ;;
13357 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13358 esac
13359 _ACEOF
13360
13361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13362 # If the template does not know about datarootdir, expand it.
13363 # FIXME: This hack should be removed a few years after 2.60.
13364 ac_datarootdir_hack=; ac_datarootdir_seen=
13365 ac_sed_dataroot='
13366 /datarootdir/ {
13367 p
13368 q
13369 }
13370 /@datadir@/p
13371 /@docdir@/p
13372 /@infodir@/p
13373 /@localedir@/p
13374 /@mandir@/p'
13375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13376 *datarootdir*) ac_datarootdir_seen=yes;;
13377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13379 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13380 _ACEOF
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 ac_datarootdir_hack='
13383 s&@datadir@&$datadir&g
13384 s&@docdir@&$docdir&g
13385 s&@infodir@&$infodir&g
13386 s&@localedir@&$localedir&g
13387 s&@mandir@&$mandir&g
13388 s&\\\${datarootdir}&$datarootdir&g' ;;
13389 esac
13390 _ACEOF
13391
13392 # Neutralize VPATH when `$srcdir' = `.'.
13393 # Shell code in configure.ac might set extrasub.
13394 # FIXME: do we really want to maintain this feature?
13395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13396 ac_sed_extra="$ac_vpsub
13397 $extrasub
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13400 :t
13401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13402 s|@configure_input@|$ac_sed_conf_input|;t t
13403 s&@top_builddir@&$ac_top_builddir_sub&;t t
13404 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13405 s&@srcdir@&$ac_srcdir&;t t
13406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13407 s&@top_srcdir@&$ac_top_srcdir&;t t
13408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13409 s&@builddir@&$ac_builddir&;t t
13410 s&@abs_builddir@&$ac_abs_builddir&;t t
13411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13412 s&@INSTALL@&$ac_INSTALL&;t t
13413 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13414 $ac_datarootdir_hack
13415 "
13416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13417 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13418
13419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13420 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13422 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13424 which seems to be undefined. Please make sure it is defined" >&5
13425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13426 which seems to be undefined. Please make sure it is defined" >&2;}
13427
13428 rm -f "$ac_tmp/stdin"
13429 case $ac_file in
13430 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13431 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13432 esac \
13433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13434 ;;
13435 :H)
13436 #
13437 # CONFIG_HEADER
13438 #
13439 if test x"$ac_file" != x-; then
13440 {
13441 $as_echo "/* $configure_input */" \
13442 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13443 } >"$ac_tmp/config.h" \
13444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13445 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13448 else
13449 rm -f "$ac_file"
13450 mv "$ac_tmp/config.h" "$ac_file" \
13451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13452 fi
13453 else
13454 $as_echo "/* $configure_input */" \
13455 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13456 || as_fn_error $? "could not create -" "$LINENO" 5
13457 fi
13458 # Compute "$ac_file"'s index in $config_headers.
13459 _am_arg="$ac_file"
13460 _am_stamp_count=1
13461 for _am_header in $config_headers :; do
13462 case $_am_header in
13463 $_am_arg | $_am_arg:* )
13464 break ;;
13465 * )
13466 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13467 esac
13468 done
13469 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13470 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13471 X"$_am_arg" : 'X\(//\)[^/]' \| \
13472 X"$_am_arg" : 'X\(//\)$' \| \
13473 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13474 $as_echo X"$_am_arg" |
13475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13476 s//\1/
13477 q
13478 }
13479 /^X\(\/\/\)[^/].*/{
13480 s//\1/
13481 q
13482 }
13483 /^X\(\/\/\)$/{
13484 s//\1/
13485 q
13486 }
13487 /^X\(\/\).*/{
13488 s//\1/
13489 q
13490 }
13491 s/.*/./; q'`/stamp-h$_am_stamp_count
13492 ;;
13493
13494 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13495 $as_echo "$as_me: executing $ac_file commands" >&6;}
13496 ;;
13497 esac
13498
13499
13500 case $ac_file$ac_mode in
13501 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13502 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13503 # are listed without --file. Let's play safe and only enable the eval
13504 # if we detect the quoting.
13505 case $CONFIG_FILES in
13506 *\'*) eval set x "$CONFIG_FILES" ;;
13507 *) set x $CONFIG_FILES ;;
13508 esac
13509 shift
13510 for mf
13511 do
13512 # Strip MF so we end up with the name of the file.
13513 mf=`echo "$mf" | sed -e 's/:.*$//'`
13514 # Check whether this is an Automake generated Makefile or not.
13515 # We used to match only the files named `Makefile.in', but
13516 # some people rename them; so instead we look at the file content.
13517 # Grep'ing the first line is not enough: some people post-process
13518 # each Makefile.in and add a new line on top of each file to say so.
13519 # Grep'ing the whole file is not good either: AIX grep has a line
13520 # limit of 2048, but all sed's we know have understand at least 4000.
13521 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13522 dirpart=`$as_dirname -- "$mf" ||
13523 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13524 X"$mf" : 'X\(//\)[^/]' \| \
13525 X"$mf" : 'X\(//\)$' \| \
13526 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13527 $as_echo X"$mf" |
13528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13529 s//\1/
13530 q
13531 }
13532 /^X\(\/\/\)[^/].*/{
13533 s//\1/
13534 q
13535 }
13536 /^X\(\/\/\)$/{
13537 s//\1/
13538 q
13539 }
13540 /^X\(\/\).*/{
13541 s//\1/
13542 q
13543 }
13544 s/.*/./; q'`
13545 else
13546 continue
13547 fi
13548 # Extract the definition of DEPDIR, am__include, and am__quote
13549 # from the Makefile without running `make'.
13550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13551 test -z "$DEPDIR" && continue
13552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13553 test -z "am__include" && continue
13554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13555 # When using ansi2knr, U may be empty or an underscore; expand it
13556 U=`sed -n 's/^U = //p' < "$mf"`
13557 # Find all dependency output files, they are included files with
13558 # $(DEPDIR) in their names. We invoke sed twice because it is the
13559 # simplest approach to changing $(DEPDIR) to its actual value in the
13560 # expansion.
13561 for file in `sed -n "
13562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13564 # Make sure the directory exists.
13565 test -f "$dirpart/$file" && continue
13566 fdir=`$as_dirname -- "$file" ||
13567 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13568 X"$file" : 'X\(//\)[^/]' \| \
13569 X"$file" : 'X\(//\)$' \| \
13570 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13571 $as_echo X"$file" |
13572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13573 s//\1/
13574 q
13575 }
13576 /^X\(\/\/\)[^/].*/{
13577 s//\1/
13578 q
13579 }
13580 /^X\(\/\/\)$/{
13581 s//\1/
13582 q
13583 }
13584 /^X\(\/\).*/{
13585 s//\1/
13586 q
13587 }
13588 s/.*/./; q'`
13589 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13590 # echo "creating $dirpart/$file"
13591 echo '# dummy' > "$dirpart/$file"
13592 done
13593 done
13594 }
13595 ;;
13596 "libtool":C)
13597
13598 # See if we are running on zsh, and set the options which allow our
13599 # commands through without removal of \ escapes.
13600 if test -n "${ZSH_VERSION+set}" ; then
13601 setopt NO_GLOB_SUBST
13602 fi
13603
13604 cfgfile="${ofile}T"
13605 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13606 $RM "$cfgfile"
13607
13608 cat <<_LT_EOF >> "$cfgfile"
13609 #! $SHELL
13610
13611 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13612 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13614 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13615 #
13616 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13617 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13618 # Foundation, Inc.
13619 # Written by Gordon Matzigkeit, 1996
13620 #
13621 # This file is part of GNU Libtool.
13622 #
13623 # GNU Libtool is free software; you can redistribute it and/or
13624 # modify it under the terms of the GNU General Public License as
13625 # published by the Free Software Foundation; either version 2 of
13626 # the License, or (at your option) any later version.
13627 #
13628 # As a special exception to the GNU General Public License,
13629 # if you distribute this file as part of a program or library that
13630 # is built using GNU Libtool, you may include this file under the
13631 # same distribution terms that you use for the rest of that program.
13632 #
13633 # GNU Libtool is distributed in the hope that it will be useful,
13634 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13636 # GNU General Public License for more details.
13637 #
13638 # You should have received a copy of the GNU General Public License
13639 # along with GNU Libtool; see the file COPYING. If not, a copy
13640 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13641 # obtained by writing to the Free Software Foundation, Inc.,
13642 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13643
13644
13645 # The names of the tagged configurations supported by this script.
13646 available_tags=""
13647
13648 # ### BEGIN LIBTOOL CONFIG
13649
13650 # Which release of libtool.m4 was used?
13651 macro_version=$macro_version
13652 macro_revision=$macro_revision
13653
13654 # Whether or not to build shared libraries.
13655 build_libtool_libs=$enable_shared
13656
13657 # Whether or not to build static libraries.
13658 build_old_libs=$enable_static
13659
13660 # What type of objects to build.
13661 pic_mode=$pic_mode
13662
13663 # Whether or not to optimize for fast installation.
13664 fast_install=$enable_fast_install
13665
13666 # Shell to use when invoking shell scripts.
13667 SHELL=$lt_SHELL
13668
13669 # An echo program that protects backslashes.
13670 ECHO=$lt_ECHO
13671
13672 # The PATH separator for the build system.
13673 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13674
13675 # The host system.
13676 host_alias=$host_alias
13677 host=$host
13678 host_os=$host_os
13679
13680 # The build system.
13681 build_alias=$build_alias
13682 build=$build
13683 build_os=$build_os
13684
13685 # A sed program that does not truncate output.
13686 SED=$lt_SED
13687
13688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13689 Xsed="\$SED -e 1s/^X//"
13690
13691 # A grep program that handles long lines.
13692 GREP=$lt_GREP
13693
13694 # An ERE matcher.
13695 EGREP=$lt_EGREP
13696
13697 # A literal string matcher.
13698 FGREP=$lt_FGREP
13699
13700 # A BSD- or MS-compatible name lister.
13701 NM=$lt_NM
13702
13703 # Whether we need soft or hard links.
13704 LN_S=$lt_LN_S
13705
13706 # What is the maximum length of a command?
13707 max_cmd_len=$max_cmd_len
13708
13709 # Object file suffix (normally "o").
13710 objext=$ac_objext
13711
13712 # Executable file suffix (normally "").
13713 exeext=$exeext
13714
13715 # whether the shell understands "unset".
13716 lt_unset=$lt_unset
13717
13718 # turn spaces into newlines.
13719 SP2NL=$lt_lt_SP2NL
13720
13721 # turn newlines into spaces.
13722 NL2SP=$lt_lt_NL2SP
13723
13724 # convert \$build file names to \$host format.
13725 to_host_file_cmd=$lt_cv_to_host_file_cmd
13726
13727 # convert \$build files to toolchain format.
13728 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13729
13730 # An object symbol dumper.
13731 OBJDUMP=$lt_OBJDUMP
13732
13733 # Method to check whether dependent libraries are shared objects.
13734 deplibs_check_method=$lt_deplibs_check_method
13735
13736 # Command to use when deplibs_check_method = "file_magic".
13737 file_magic_cmd=$lt_file_magic_cmd
13738
13739 # How to find potential files when deplibs_check_method = "file_magic".
13740 file_magic_glob=$lt_file_magic_glob
13741
13742 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13743 want_nocaseglob=$lt_want_nocaseglob
13744
13745 # DLL creation program.
13746 DLLTOOL=$lt_DLLTOOL
13747
13748 # Command to associate shared and link libraries.
13749 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13750
13751 # The archiver.
13752 AR=$lt_AR
13753
13754 # Flags to create an archive.
13755 AR_FLAGS=$lt_AR_FLAGS
13756
13757 # How to feed a file listing to the archiver.
13758 archiver_list_spec=$lt_archiver_list_spec
13759
13760 # A symbol stripping program.
13761 STRIP=$lt_STRIP
13762
13763 # Commands used to install an old-style archive.
13764 RANLIB=$lt_RANLIB
13765 old_postinstall_cmds=$lt_old_postinstall_cmds
13766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13767
13768 # Whether to use a lock for old archive extraction.
13769 lock_old_archive_extraction=$lock_old_archive_extraction
13770
13771 # A C compiler.
13772 LTCC=$lt_CC
13773
13774 # LTCC compiler flags.
13775 LTCFLAGS=$lt_CFLAGS
13776
13777 # Take the output of nm and produce a listing of raw symbols and C names.
13778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13779
13780 # Transform the output of nm in a proper C declaration.
13781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13782
13783 # Transform the output of nm in a C name address pair.
13784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13785
13786 # Transform the output of nm in a C name address pair when lib prefix is needed.
13787 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13788
13789 # Specify filename containing input files for \$NM.
13790 nm_file_list_spec=$lt_nm_file_list_spec
13791
13792 # The root where to search for dependent libraries,and in which our libraries should be installed.
13793 lt_sysroot=$lt_sysroot
13794
13795 # The name of the directory that contains temporary libtool files.
13796 objdir=$objdir
13797
13798 # Used to examine libraries when file_magic_cmd begins with "file".
13799 MAGIC_CMD=$MAGIC_CMD
13800
13801 # Must we lock files when doing compilation?
13802 need_locks=$lt_need_locks
13803
13804 # Manifest tool.
13805 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13806
13807 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13808 DSYMUTIL=$lt_DSYMUTIL
13809
13810 # Tool to change global to local symbols on Mac OS X.
13811 NMEDIT=$lt_NMEDIT
13812
13813 # Tool to manipulate fat objects and archives on Mac OS X.
13814 LIPO=$lt_LIPO
13815
13816 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13817 OTOOL=$lt_OTOOL
13818
13819 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13820 OTOOL64=$lt_OTOOL64
13821
13822 # Old archive suffix (normally "a").
13823 libext=$libext
13824
13825 # Shared library suffix (normally ".so").
13826 shrext_cmds=$lt_shrext_cmds
13827
13828 # The commands to extract the exported symbol list from a shared archive.
13829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13830
13831 # Variables whose values should be saved in libtool wrapper scripts and
13832 # restored at link time.
13833 variables_saved_for_relink=$lt_variables_saved_for_relink
13834
13835 # Do we need the "lib" prefix for modules?
13836 need_lib_prefix=$need_lib_prefix
13837
13838 # Do we need a version for libraries?
13839 need_version=$need_version
13840
13841 # Library versioning type.
13842 version_type=$version_type
13843
13844 # Shared library runtime path variable.
13845 runpath_var=$runpath_var
13846
13847 # Shared library path variable.
13848 shlibpath_var=$shlibpath_var
13849
13850 # Is shlibpath searched before the hard-coded library search path?
13851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13852
13853 # Format of library name prefix.
13854 libname_spec=$lt_libname_spec
13855
13856 # List of archive names. First name is the real one, the rest are links.
13857 # The last name is the one that the linker finds with -lNAME
13858 library_names_spec=$lt_library_names_spec
13859
13860 # The coded name of the library, if different from the real name.
13861 soname_spec=$lt_soname_spec
13862
13863 # Permission mode override for installation of shared libraries.
13864 install_override_mode=$lt_install_override_mode
13865
13866 # Command to use after installation of a shared archive.
13867 postinstall_cmds=$lt_postinstall_cmds
13868
13869 # Command to use after uninstallation of a shared archive.
13870 postuninstall_cmds=$lt_postuninstall_cmds
13871
13872 # Commands used to finish a libtool library installation in a directory.
13873 finish_cmds=$lt_finish_cmds
13874
13875 # As "finish_cmds", except a single script fragment to be evaled but
13876 # not shown.
13877 finish_eval=$lt_finish_eval
13878
13879 # Whether we should hardcode library paths into libraries.
13880 hardcode_into_libs=$hardcode_into_libs
13881
13882 # Compile-time system search path for libraries.
13883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13884
13885 # Run-time system search path for libraries.
13886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13887
13888 # Whether dlopen is supported.
13889 dlopen_support=$enable_dlopen
13890
13891 # Whether dlopen of programs is supported.
13892 dlopen_self=$enable_dlopen_self
13893
13894 # Whether dlopen of statically linked programs is supported.
13895 dlopen_self_static=$enable_dlopen_self_static
13896
13897 # Commands to strip libraries.
13898 old_striplib=$lt_old_striplib
13899 striplib=$lt_striplib
13900
13901
13902 # The linker used to build libraries.
13903 LD=$lt_LD
13904
13905 # How to create reloadable object files.
13906 reload_flag=$lt_reload_flag
13907 reload_cmds=$lt_reload_cmds
13908
13909 # Commands used to build an old-style archive.
13910 old_archive_cmds=$lt_old_archive_cmds
13911
13912 # A language specific compiler.
13913 CC=$lt_compiler
13914
13915 # Is the compiler the GNU compiler?
13916 with_gcc=$GCC
13917
13918 # Compiler flag to turn off builtin functions.
13919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13920
13921 # Additional compiler flags for building library objects.
13922 pic_flag=$lt_lt_prog_compiler_pic
13923
13924 # How to pass a linker flag through the compiler.
13925 wl=$lt_lt_prog_compiler_wl
13926
13927 # Compiler flag to prevent dynamic linking.
13928 link_static_flag=$lt_lt_prog_compiler_static
13929
13930 # Does compiler simultaneously support -c and -o options?
13931 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13932
13933 # Whether or not to add -lc for building shared libraries.
13934 build_libtool_need_lc=$archive_cmds_need_lc
13935
13936 # Whether or not to disallow shared libs when runtime libs are static.
13937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13938
13939 # Compiler flag to allow reflexive dlopens.
13940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13941
13942 # Compiler flag to generate shared objects directly from archives.
13943 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13944
13945 # Whether the compiler copes with passing no objects directly.
13946 compiler_needs_object=$lt_compiler_needs_object
13947
13948 # Create an old-style archive from a shared archive.
13949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13950
13951 # Create a temporary old-style archive to link instead of a shared archive.
13952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13953
13954 # Commands used to build a shared archive.
13955 archive_cmds=$lt_archive_cmds
13956 archive_expsym_cmds=$lt_archive_expsym_cmds
13957
13958 # Commands used to build a loadable module if different from building
13959 # a shared archive.
13960 module_cmds=$lt_module_cmds
13961 module_expsym_cmds=$lt_module_expsym_cmds
13962
13963 # Whether we are building with GNU ld or not.
13964 with_gnu_ld=$lt_with_gnu_ld
13965
13966 # Flag that allows shared libraries with undefined symbols to be built.
13967 allow_undefined_flag=$lt_allow_undefined_flag
13968
13969 # Flag that enforces no undefined symbols.
13970 no_undefined_flag=$lt_no_undefined_flag
13971
13972 # Flag to hardcode \$libdir into a binary during linking.
13973 # This must work even if \$libdir does not exist
13974 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13975
13976 # Whether we need a single "-rpath" flag with a separated argument.
13977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13978
13979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13980 # DIR into the resulting binary.
13981 hardcode_direct=$hardcode_direct
13982
13983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13984 # DIR into the resulting binary and the resulting library dependency is
13985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13986 # library is relocated.
13987 hardcode_direct_absolute=$hardcode_direct_absolute
13988
13989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13990 # into the resulting binary.
13991 hardcode_minus_L=$hardcode_minus_L
13992
13993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13994 # into the resulting binary.
13995 hardcode_shlibpath_var=$hardcode_shlibpath_var
13996
13997 # Set to "yes" if building a shared library automatically hardcodes DIR
13998 # into the library and all subsequent libraries and executables linked
13999 # against it.
14000 hardcode_automatic=$hardcode_automatic
14001
14002 # Set to yes if linker adds runtime paths of dependent libraries
14003 # to runtime path list.
14004 inherit_rpath=$inherit_rpath
14005
14006 # Whether libtool must link a program against all its dependency libraries.
14007 link_all_deplibs=$link_all_deplibs
14008
14009 # Set to "yes" if exported symbols are required.
14010 always_export_symbols=$always_export_symbols
14011
14012 # The commands to list exported symbols.
14013 export_symbols_cmds=$lt_export_symbols_cmds
14014
14015 # Symbols that should not be listed in the preloaded symbols.
14016 exclude_expsyms=$lt_exclude_expsyms
14017
14018 # Symbols that must always be exported.
14019 include_expsyms=$lt_include_expsyms
14020
14021 # Commands necessary for linking programs (against libraries) with templates.
14022 prelink_cmds=$lt_prelink_cmds
14023
14024 # Commands necessary for finishing linking programs.
14025 postlink_cmds=$lt_postlink_cmds
14026
14027 # Specify filename containing input files.
14028 file_list_spec=$lt_file_list_spec
14029
14030 # How to hardcode a shared library path into an executable.
14031 hardcode_action=$hardcode_action
14032
14033 # ### END LIBTOOL CONFIG
14034
14035 _LT_EOF
14036
14037 case $host_os in
14038 aix3*)
14039 cat <<\_LT_EOF >> "$cfgfile"
14040 # AIX sometimes has problems with the GCC collect2 program. For some
14041 # reason, if we set the COLLECT_NAMES environment variable, the problems
14042 # vanish in a puff of smoke.
14043 if test "X${COLLECT_NAMES+set}" != Xset; then
14044 COLLECT_NAMES=
14045 export COLLECT_NAMES
14046 fi
14047 _LT_EOF
14048 ;;
14049 esac
14050
14051
14052 ltmain="$ac_aux_dir/ltmain.sh"
14053
14054
14055 # We use sed instead of cat because bash on DJGPP gets confused if
14056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14057 # text mode, it properly converts lines to CR/LF. This bash problem
14058 # is reportedly fixed, but why not run on old versions too?
14059 sed '$q' "$ltmain" >> "$cfgfile" \
14060 || (rm -f "$cfgfile"; exit 1)
14061
14062 if test x"$xsi_shell" = xyes; then
14063 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14064 func_dirname ()\
14065 {\
14066 \ case ${1} in\
14067 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14068 \ * ) func_dirname_result="${3}" ;;\
14069 \ esac\
14070 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14071 && mv -f "$cfgfile.tmp" "$cfgfile" \
14072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14073 test 0 -eq $? || _lt_function_replace_fail=:
14074
14075
14076 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14077 func_basename ()\
14078 {\
14079 \ func_basename_result="${1##*/}"\
14080 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14081 && mv -f "$cfgfile.tmp" "$cfgfile" \
14082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14083 test 0 -eq $? || _lt_function_replace_fail=:
14084
14085
14086 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14087 func_dirname_and_basename ()\
14088 {\
14089 \ case ${1} in\
14090 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14091 \ * ) func_dirname_result="${3}" ;;\
14092 \ esac\
14093 \ func_basename_result="${1##*/}"\
14094 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14095 && mv -f "$cfgfile.tmp" "$cfgfile" \
14096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14097 test 0 -eq $? || _lt_function_replace_fail=:
14098
14099
14100 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14101 func_stripname ()\
14102 {\
14103 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14104 \ # positional parameters, so assign one to ordinary parameter first.\
14105 \ func_stripname_result=${3}\
14106 \ func_stripname_result=${func_stripname_result#"${1}"}\
14107 \ func_stripname_result=${func_stripname_result%"${2}"}\
14108 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14109 && mv -f "$cfgfile.tmp" "$cfgfile" \
14110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14111 test 0 -eq $? || _lt_function_replace_fail=:
14112
14113
14114 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14115 func_split_long_opt ()\
14116 {\
14117 \ func_split_long_opt_name=${1%%=*}\
14118 \ func_split_long_opt_arg=${1#*=}\
14119 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14120 && mv -f "$cfgfile.tmp" "$cfgfile" \
14121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14122 test 0 -eq $? || _lt_function_replace_fail=:
14123
14124
14125 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14126 func_split_short_opt ()\
14127 {\
14128 \ func_split_short_opt_arg=${1#??}\
14129 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14130 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14131 && mv -f "$cfgfile.tmp" "$cfgfile" \
14132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14133 test 0 -eq $? || _lt_function_replace_fail=:
14134
14135
14136 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14137 func_lo2o ()\
14138 {\
14139 \ case ${1} in\
14140 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14141 \ *) func_lo2o_result=${1} ;;\
14142 \ esac\
14143 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14144 && mv -f "$cfgfile.tmp" "$cfgfile" \
14145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14146 test 0 -eq $? || _lt_function_replace_fail=:
14147
14148
14149 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14150 func_xform ()\
14151 {\
14152 func_xform_result=${1%.*}.lo\
14153 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14154 && mv -f "$cfgfile.tmp" "$cfgfile" \
14155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14156 test 0 -eq $? || _lt_function_replace_fail=:
14157
14158
14159 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14160 func_arith ()\
14161 {\
14162 func_arith_result=$(( $* ))\
14163 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14164 && mv -f "$cfgfile.tmp" "$cfgfile" \
14165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14166 test 0 -eq $? || _lt_function_replace_fail=:
14167
14168
14169 sed -e '/^func_len ()$/,/^} # func_len /c\
14170 func_len ()\
14171 {\
14172 func_len_result=${#1}\
14173 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14174 && mv -f "$cfgfile.tmp" "$cfgfile" \
14175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14176 test 0 -eq $? || _lt_function_replace_fail=:
14177
14178 fi
14179
14180 if test x"$lt_shell_append" = xyes; then
14181 sed -e '/^func_append ()$/,/^} # func_append /c\
14182 func_append ()\
14183 {\
14184 eval "${1}+=\\${2}"\
14185 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14186 && mv -f "$cfgfile.tmp" "$cfgfile" \
14187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14188 test 0 -eq $? || _lt_function_replace_fail=:
14189
14190
14191 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14192 func_append_quoted ()\
14193 {\
14194 \ func_quote_for_eval "${2}"\
14195 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14196 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14197 && mv -f "$cfgfile.tmp" "$cfgfile" \
14198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14199 test 0 -eq $? || _lt_function_replace_fail=:
14200
14201
14202 # Save a `func_append' function call where possible by direct use of '+='
14203 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14204 && mv -f "$cfgfile.tmp" "$cfgfile" \
14205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14206 test 0 -eq $? || _lt_function_replace_fail=:
14207 else
14208 # Save a `func_append' function call even when '+=' is not available
14209 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14210 && mv -f "$cfgfile.tmp" "$cfgfile" \
14211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14212 test 0 -eq $? || _lt_function_replace_fail=:
14213 fi
14214
14215 if test x"$_lt_function_replace_fail" = x":"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14217 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14218 fi
14219
14220
14221 mv -f "$cfgfile" "$ofile" ||
14222 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14223 chmod +x "$ofile"
14224
14225 ;;
14226
14227 esac
14228 done # for ac_tag
14229
14230
14231 as_fn_exit 0
14232 _ACEOF
14233 ac_clean_files=$ac_clean_files_save
14234
14235 test $ac_write_fail = 0 ||
14236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14237
14238
14239 # configure is writing to config.log, and then calls config.status.
14240 # config.status does its own redirection, appending to config.log.
14241 # Unfortunately, on DOS this fails, as config.log is still kept open
14242 # by configure, so config.status won't be able to write to it; its
14243 # output is simply discarded. So we exec the FD to /dev/null,
14244 # effectively closing config.log, so it can be properly (re)opened and
14245 # appended to by config.status. When coming back to configure, we
14246 # need to make the FD available again.
14247 if test "$no_create" != yes; then
14248 ac_cs_success=:
14249 ac_config_status_args=
14250 test "$silent" = yes &&
14251 ac_config_status_args="$ac_config_status_args --quiet"
14252 exec 5>/dev/null
14253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14254 exec 5>>config.log
14255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14256 # would make configure fail if this is the last instruction.
14257 $ac_cs_success || as_fn_exit 1
14258 fi
14259 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14261 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14262 fi
14263